Package Avalara.SDK.model.EInvoicing.V1
Class TaxIdentifierRequest
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.TaxIdentifierRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class TaxIdentifierRequest extends Object
Represents a request to validate company’s tax identifier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaxIdentifierRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_EXTENSIONSstatic StringSERIALIZED_NAME_IDENTIFIERstatic StringSERIALIZED_NAME_IDENTIFIER_TYPE
-
Constructor Summary
Constructors Constructor Description TaxIdentifierRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaxIdentifierRequestcountryCode(String countryCode)booleanequals(Object o)TaxIdentifierRequestextensions(Object extensions)static TaxIdentifierRequestfromJson(String jsonString)Create an instance of TaxIdentifierRequest given an JSON stringStringgetCountryCode()The two-letter ISO-3166 country code of the tax identifier.ObjectgetExtensions()Optional field for adding additional details required by specific tax authorities.StringgetIdentifier()The tax identifier of the company.StringgetIdentifierType()Type of the identifier.inthashCode()TaxIdentifierRequestidentifier(String identifier)TaxIdentifierRequestidentifierType(String identifierType)voidsetCountryCode(String countryCode)voidsetExtensions(Object extensions)voidsetIdentifier(String identifier)voidsetIdentifierType(String identifierType)StringtoJson()Convert an instance of TaxIdentifierRequest to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDENTIFIER_TYPE
public static final String SERIALIZED_NAME_IDENTIFIER_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDENTIFIER
public static final String SERIALIZED_NAME_IDENTIFIER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTENSIONS
public static final String SERIALIZED_NAME_EXTENSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryCode
public TaxIdentifierRequest countryCode(String countryCode)
-
getCountryCode
@Nonnull public String getCountryCode()
The two-letter ISO-3166 country code of the tax identifier.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
identifierType
public TaxIdentifierRequest identifierType(String identifierType)
-
getIdentifierType
@Nonnull public String getIdentifierType()
Type of the identifier.- Returns:
- identifierType
-
setIdentifierType
public void setIdentifierType(String identifierType)
-
identifier
public TaxIdentifierRequest identifier(String identifier)
-
getIdentifier
@Nonnull public String getIdentifier()
The tax identifier of the company.- Returns:
- identifier
-
setIdentifier
public void setIdentifier(String identifier)
-
extensions
public TaxIdentifierRequest extensions(Object extensions)
-
getExtensions
@Nullable public Object getExtensions()
Optional field for adding additional details required by specific tax authorities. Refer to the GET /tax-identifiers/schema API endpoint for the full request structure for a given country.- Returns:
- extensions
-
setExtensions
public void setExtensions(Object 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 TaxIdentifierRequest
-
fromJson
public static TaxIdentifierRequest fromJson(String jsonString) throws IOException
Create an instance of TaxIdentifierRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TaxIdentifierRequest
- Throws:
IOException- if the JSON string is invalid with respect to TaxIdentifierRequest
-
toJson
public String toJson()
Convert an instance of TaxIdentifierRequest to an JSON string- Returns:
- JSON string
-
-