Package com.adyen.model.checkout
Class SubMerchant
- java.lang.Object
-
- com.adyen.model.checkout.SubMerchant
-
public class SubMerchant extends Object
SubMerchant
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_MCCstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_TAX_ID
-
Constructor Summary
Constructors Constructor Description SubMerchant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubMerchantcity(String city)The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 charactersSubMerchantcountry(String country)The three-letter country code of the sub-merchant's address.booleanequals(Object o)Return true if this SubMerchant object is equal to o.static SubMerchantfromJson(String jsonString)Create an instance of SubMerchant given an JSON stringStringgetCity()The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 charactersStringgetCountry()The three-letter country code of the sub-merchant's address.StringgetMcc()The sub-merchant's 4-digit Merchant Category Code (MCC)StringgetName()The name of the sub-merchant.StringgetTaxId()The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJinthashCode()SubMerchantmcc(String mcc)The sub-merchant's 4-digit Merchant Category Code (MCC)SubMerchantname(String name)The name of the sub-merchant.voidsetCity(String city)The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 charactersvoidsetCountry(String country)The three-letter country code of the sub-merchant's address.voidsetMcc(String mcc)The sub-merchant's 4-digit Merchant Category Code (MCC)voidsetName(String name)The name of the sub-merchant.voidsetTaxId(String taxId)The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJSubMerchanttaxId(String taxId)The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJStringtoJson()Convert an instance of SubMerchant to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CITY
public static final String JSON_PROPERTY_CITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY
public static final String JSON_PROPERTY_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MCC
public static final String JSON_PROPERTY_MCC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ID
public static final String JSON_PROPERTY_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
city
public SubMerchant city(String city)
The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters- Parameters:
city-- Returns:
- the current
SubMerchantinstance, allowing for method chaining
-
getCity
public String getCity()
The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters- Returns:
- city
-
setCity
public void setCity(String city)
The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters- Parameters:
city-
-
country
public SubMerchant country(String country)
The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters- Parameters:
country-- Returns:
- the current
SubMerchantinstance, allowing for method chaining
-
getCountry
public String getCountry()
The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters- Returns:
- country
-
setCountry
public void setCountry(String country)
The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters- Parameters:
country-
-
mcc
public SubMerchant mcc(String mcc)
The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Parameters:
mcc-- Returns:
- the current
SubMerchantinstance, allowing for method chaining
-
getMcc
public String getMcc()
The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Returns:
- mcc
-
setMcc
public void setMcc(String mcc)
The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Parameters:
mcc-
-
name
public SubMerchant name(String name)
The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters- Parameters:
name-- Returns:
- the current
SubMerchantinstance, allowing for method chaining
-
getName
public String getName()
The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters- Returns:
- name
-
setName
public void setName(String name)
The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters- Parameters:
name-
-
taxId
public SubMerchant taxId(String taxId)
The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ- Parameters:
taxId-- Returns:
- the current
SubMerchantinstance, allowing for method chaining
-
getTaxId
public String getTaxId()
The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ- Returns:
- taxId
-
setTaxId
public void setTaxId(String taxId)
The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ- Parameters:
taxId-
-
equals
public boolean equals(Object o)
Return true if this SubMerchant object is equal to o.
-
fromJson
public static SubMerchant fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SubMerchant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubMerchant
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SubMerchant
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SubMerchant to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-