Package com.adyen.model.payments
Class SubMerchant
- java.lang.Object
-
- com.adyen.model.payments.SubMerchant
-
public class SubMerchant extends Object
SubMerchant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubMerchant.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_MCCstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_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)SubMerchantcountry(String country)booleanequals(Object o)static SubMerchantfromJson(String jsonString)Create an instance of SubMerchant given an JSON stringStringgetCity()The city of the sub-merchant's address.StringgetCountry()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.inthashCode()SubMerchantmcc(String mcc)SubMerchantname(String name)voidsetCity(String city)voidsetCountry(String country)voidsetMcc(String mcc)voidsetName(String name)voidsetTaxId(String taxId)SubMerchanttaxId(String taxId)StringtoJson()Convert an instance of SubMerchant to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MCC
public static final String SERIALIZED_NAME_MCC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAX_ID
public static final String SERIALIZED_NAME_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
city
public SubMerchant city(String city)
-
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)
-
country
public SubMerchant country(String country)
-
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)
-
mcc
public SubMerchant mcc(String mcc)
-
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)
-
name
public SubMerchant name(String name)
-
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)
-
taxId
public SubMerchant taxId(String taxId)
-
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)
-
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 SubMerchant
-
fromJson
public static SubMerchant fromJson(String jsonString) throws IOException
Create an instance of SubMerchant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubMerchant
- Throws:
IOException- if the JSON string is invalid with respect to SubMerchant
-
toJson
public String toJson()
Convert an instance of SubMerchant to an JSON string- Returns:
- JSON string
-
-