Package Avalara.SDK.model.EInvoicing.V1
Class SupportedDocumentTypes
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.SupportedDocumentTypes
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class SupportedDocumentTypes extends Object
SupportedDocumentTypes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupportedDocumentTypes.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EXTENSIONSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_SUPPORTED_BY_AVALARAstatic StringSERIALIZED_NAME_SUPPORTED_BY_TRADING_PARTNERstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description SupportedDocumentTypes()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportedDocumentTypesaddExtensionsItem(Extension extensionsItem)booleanequals(Object o)SupportedDocumentTypesextensions(List<Extension> extensions)static SupportedDocumentTypesfromJson(String jsonString)Create an instance of SupportedDocumentTypes given an JSON stringList<Extension>getExtensions()Optional array used to carry additional metadata or configuration values that may be required by specific document types.StringgetName()Document type name.BooleangetSupportedByAvalara()Does avalara support exchanging this document type.BooleangetSupportedByTradingPartner()Does trading partner support receiving this document type.StringgetValue()Document type value.inthashCode()SupportedDocumentTypesname(String name)voidsetExtensions(List<Extension> extensions)voidsetName(String name)voidsetSupportedByAvalara(Boolean supportedByAvalara)voidsetSupportedByTradingPartner(Boolean supportedByTradingPartner)voidsetValue(String value)SupportedDocumentTypessupportedByAvalara(Boolean supportedByAvalara)SupportedDocumentTypessupportedByTradingPartner(Boolean supportedByTradingPartner)StringtoJson()Convert an instance of SupportedDocumentTypes to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundSupportedDocumentTypesvalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPORTED_BY_TRADING_PARTNER
public static final String SERIALIZED_NAME_SUPPORTED_BY_TRADING_PARTNER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPORTED_BY_AVALARA
public static final String SERIALIZED_NAME_SUPPORTED_BY_AVALARA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTENSIONS
public static final String SERIALIZED_NAME_EXTENSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public SupportedDocumentTypes name(String name)
-
setName
public void setName(String name)
-
value
public SupportedDocumentTypes value(String value)
-
setValue
public void setValue(String value)
-
supportedByTradingPartner
public SupportedDocumentTypes supportedByTradingPartner(Boolean supportedByTradingPartner)
-
getSupportedByTradingPartner
@Nonnull public Boolean getSupportedByTradingPartner()
Does trading partner support receiving this document type.- Returns:
- supportedByTradingPartner
-
setSupportedByTradingPartner
public void setSupportedByTradingPartner(Boolean supportedByTradingPartner)
-
supportedByAvalara
public SupportedDocumentTypes supportedByAvalara(Boolean supportedByAvalara)
-
getSupportedByAvalara
@Nullable public Boolean getSupportedByAvalara()
Does avalara support exchanging this document type.- Returns:
- supportedByAvalara
-
setSupportedByAvalara
public void setSupportedByAvalara(Boolean supportedByAvalara)
-
extensions
public SupportedDocumentTypes extensions(List<Extension> extensions)
-
addExtensionsItem
public SupportedDocumentTypes addExtensionsItem(Extension extensionsItem)
-
getExtensions
@Nullable public List<Extension> getExtensions()
Optional array used to carry additional metadata or configuration values that may be required by specific document types. When creating or updating a trading partner, the keys provided in the 'extensions' attribute must be selected from a predefined list of supported extensions. Using any unsupported keys will result in a validation error.- Returns:
- extensions
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to SupportedDocumentTypes
-
fromJson
public static SupportedDocumentTypes fromJson(String jsonString) throws IOException
Create an instance of SupportedDocumentTypes given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SupportedDocumentTypes
- Throws:
IOException- if the JSON string is invalid with respect to SupportedDocumentTypes
-
toJson
public String toJson()
Convert an instance of SupportedDocumentTypes to an JSON string- Returns:
- JSON string
-
-