Class TaxInformation
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.TaxInformation
-
public class TaxInformation extends Object
TaxInformation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaxInformation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_NUMBERstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description TaxInformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaxInformationcountry(String country)booleanequals(Object o)static TaxInformationfromJson(String jsonString)Create an instance of TaxInformation given an JSON stringStringgetCountry()The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.StringgetNumber()The tax ID number (TIN) of the organization or individual.StringgetType()The TIN type depending on the country where it was issued.inthashCode()TaxInformationnumber(String number)voidsetCountry(String country)voidsetNumber(String number)voidsetType(String type)StringtoJson()Convert an instance of TaxInformation to an JSON stringStringtoString()TaxInformationtype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER
public static final String SERIALIZED_NAME_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
country
public TaxInformation country(String country)
-
getCountry
public String getCountry()
The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
number
public TaxInformation number(String number)
-
getNumber
public String getNumber()
The tax ID number (TIN) of the organization or individual.- Returns:
- number
-
setNumber
public void setNumber(String number)
-
type
public TaxInformation type(String type)
-
getType
public String getType()
The TIN type depending on the country where it was issued. Provide only for countries that have multiple tax IDs, such as Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.- Returns:
- type
-
setType
public void setType(String type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to TaxInformation
-
fromJson
public static TaxInformation fromJson(String jsonString) throws IOException
Create an instance of TaxInformation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TaxInformation
- Throws:
IOException- if the JSON string is invalid with respect to TaxInformation
-
toJson
public String toJson()
Convert an instance of TaxInformation to an JSON string- Returns:
- JSON string
-
-