Class TaxInformation
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.TaxInformation
-
public class TaxInformation extends Object
TaxInformation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_NUMBER_ABSENTstatic StringJSON_PROPERTY_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)The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.booleanequals(Object o)Return true if this TaxInformation object is equal to 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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetNumber()The tax ID number (TIN) of the organization or individual.BooleangetNumberAbsent()Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN).StringgetType()The TIN type depending on the country where it was issued.inthashCode()TaxInformationincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.TaxInformationnumber(String number)The tax ID number (TIN) of the organization or individual.TaxInformationnumberAbsent(Boolean numberAbsent)Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN).voidsetCountry(String country)The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetNumber(String number)The tax ID number (TIN) of the organization or individual.voidsetNumberAbsent(Boolean numberAbsent)Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN).voidsetType(String type)The TIN type depending on the country where it was issued.StringtoJson()Convert an instance of TaxInformation to an JSON stringStringtoString()TaxInformationtype(String type)The TIN type depending on the country where it was issued.
-
-
-
Field Detail
-
JSON_PROPERTY_COUNTRY
public static final String JSON_PROPERTY_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER_ABSENT
public static final String JSON_PROPERTY_NUMBER_ABSENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
country
public TaxInformation country(String country)
The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.- Parameters:
country- The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.- Returns:
- the current
TaxInformationinstance, allowing for method chaining
-
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 The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
-
setCountry
public void setCountry(String country)
The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.- Parameters:
country- The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
-
number
public TaxInformation number(String number)
The tax ID number (TIN) of the organization or individual.- Parameters:
number- The tax ID number (TIN) of the organization or individual.- Returns:
- the current
TaxInformationinstance, allowing for method chaining
-
getNumber
public String getNumber()
The tax ID number (TIN) of the organization or individual.- Returns:
- number The tax ID number (TIN) of the organization or individual.
-
setNumber
public void setNumber(String number)
The tax ID number (TIN) of the organization or individual.- Parameters:
number- The tax ID number (TIN) of the organization or individual.
-
numberAbsent
public TaxInformation numberAbsent(Boolean numberAbsent)
Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia.- Parameters:
numberAbsent- Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia.- Returns:
- the current
TaxInformationinstance, allowing for method chaining
-
getNumberAbsent
public Boolean getNumberAbsent()
Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia.- Returns:
- numberAbsent Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia.
-
setNumberAbsent
public void setNumberAbsent(Boolean numberAbsent)
Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia.- Parameters:
numberAbsent- Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia.
-
type
public TaxInformation type(String type)
The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.- Parameters:
type- The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.- Returns:
- the current
TaxInformationinstance, allowing for method chaining
-
getType
public String getType()
The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.- Returns:
- type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
-
setType
public void setType(String type)
The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.- Parameters:
type- The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
-
includeNullValues
public TaxInformation includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this TaxInformation object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static TaxInformation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TaxInformation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TaxInformation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TaxInformation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TaxInformation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-