Package Avalara.SDK.model.EInvoicing.V1
Class TaxIdentifierResponse
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.TaxIdentifierResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class TaxIdentifierResponse extends Object
Represents the response for a tax identifier validation request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaxIdentifierResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description TaxIdentifierResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaxIdentifierResponsecountryCode(String countryCode)booleanequals(Object o)static TaxIdentifierResponsefromJson(String jsonString)Create an instance of TaxIdentifierResponse given an JSON stringStringgetCountryCode()The two-letter ISO-3166 country code of the tax identifier.TaxIdentifierResponseValuegetValue()Get valueinthashCode()voidsetCountryCode(String countryCode)voidsetValue(TaxIdentifierResponseValue value)StringtoJson()Convert an instance of TaxIdentifierResponse to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundTaxIdentifierResponsevalue(TaxIdentifierResponseValue value)
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryCode
public TaxIdentifierResponse 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)
-
value
public TaxIdentifierResponse value(TaxIdentifierResponseValue value)
-
getValue
@Nullable public TaxIdentifierResponseValue getValue()
Get value- Returns:
- value
-
setValue
public void setValue(TaxIdentifierResponseValue value)
-
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 TaxIdentifierResponse
-
fromJson
public static TaxIdentifierResponse fromJson(String jsonString) throws IOException
Create an instance of TaxIdentifierResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TaxIdentifierResponse
- Throws:
IOException- if the JSON string is invalid with respect to TaxIdentifierResponse
-
toJson
public String toJson()
Convert an instance of TaxIdentifierResponse to an JSON string- Returns:
- JSON string
-
-