Package com.adyen.model.checkout
Class ShopperTaxInfo
- java.lang.Object
-
- com.adyen.model.checkout.ShopperTaxInfo
-
public class ShopperTaxInfo extends Object
ShopperTaxInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_TAX_IDstatic StringJSON_PROPERTY_TAX_ID_COUNTRY_CODE
-
Constructor Summary
Constructors Constructor Description ShopperTaxInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ShopperTaxInfo object is equal to o.static ShopperTaxInfofromJson(String jsonString)Create an instance of ShopperTaxInfo given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetTaxId()The tax-id of the shopper doing the transaction.StringgetTaxIdCountryCode()The country to which the tax-id belongs to.inthashCode()ShopperTaxInfoincludeNullValues(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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTaxId(String taxId)The tax-id of the shopper doing the transaction.voidsetTaxIdCountryCode(String taxIdCountryCode)The country to which the tax-id belongs to.ShopperTaxInfotaxId(String taxId)The tax-id of the shopper doing the transaction.ShopperTaxInfotaxIdCountryCode(String taxIdCountryCode)The country to which the tax-id belongs to.StringtoJson()Convert an instance of ShopperTaxInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_TAX_ID
public static final String JSON_PROPERTY_TAX_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ID_COUNTRY_CODE
public static final String JSON_PROPERTY_TAX_ID_COUNTRY_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
taxId
public ShopperTaxInfo taxId(String taxId)
The tax-id of the shopper doing the transaction.- Parameters:
taxId- The tax-id of the shopper doing the transaction.- Returns:
- the current
ShopperTaxInfoinstance, allowing for method chaining
-
getTaxId
public String getTaxId()
The tax-id of the shopper doing the transaction.- Returns:
- taxId The tax-id of the shopper doing the transaction.
-
setTaxId
public void setTaxId(String taxId)
The tax-id of the shopper doing the transaction.- Parameters:
taxId- The tax-id of the shopper doing the transaction.
-
taxIdCountryCode
public ShopperTaxInfo taxIdCountryCode(String taxIdCountryCode)
The country to which the tax-id belongs to.- Parameters:
taxIdCountryCode- The country to which the tax-id belongs to.- Returns:
- the current
ShopperTaxInfoinstance, allowing for method chaining
-
getTaxIdCountryCode
public String getTaxIdCountryCode()
The country to which the tax-id belongs to.- Returns:
- taxIdCountryCode The country to which the tax-id belongs to.
-
setTaxIdCountryCode
public void setTaxIdCountryCode(String taxIdCountryCode)
The country to which the tax-id belongs to.- Parameters:
taxIdCountryCode- The country to which the tax-id belongs to.
-
includeNullValues
public ShopperTaxInfo 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 ShopperTaxInfo 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 ShopperTaxInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ShopperTaxInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShopperTaxInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ShopperTaxInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ShopperTaxInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-