Package com.adyen.model.checkout
Class AdditionalDataSubMerchant
- java.lang.Object
-
- com.adyen.model.checkout.AdditionalDataSubMerchant
-
public class AdditionalDataSubMerchant extends Object
AdditionalDataSubMerchant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalDataSubMerchant.CustomTypeAdapterFactory
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AdditionalDataSubMerchant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AdditionalDataSubMerchantfromJson(String jsonString)Create an instance of AdditionalDataSubMerchant given an JSON stringStringgetSubMerchantNumberOfSubSellers()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrCity()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrCountry()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrId()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrMcc()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrName()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrPostalCode()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrState()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrStreet()Required for transactions performed by registered payment facilitators.StringgetSubMerchantSubSellerSubSellerNrTaxId()Required for transactions performed by registered payment facilitators.inthashCode()voidsetSubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers)voidsetSubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity)voidsetSubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry)voidsetSubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId)voidsetSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc)voidsetSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName)voidsetSubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode)voidsetSubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState)voidsetSubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet)voidsetSubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId)AdditionalDataSubMerchantsubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet)AdditionalDataSubMerchantsubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId)StringtoJson()Convert an instance of AdditionalDataSubMerchant 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_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS
public static final String SERIALIZED_NAME_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID
public static final String SERIALIZED_NAME_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
subMerchantNumberOfSubSellers
public AdditionalDataSubMerchant subMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers)
-
getSubMerchantNumberOfSubSellers
public String getSubMerchantNumberOfSubSellers()
Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**.- Returns:
- subMerchantNumberOfSubSellers
-
setSubMerchantNumberOfSubSellers
public void setSubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers)
-
subMerchantSubSellerSubSellerNrCity
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity)
-
getSubMerchantSubSellerSubSellerNrCity
public String getSubMerchantSubSellerSubSellerNrCity()
Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters- Returns:
- subMerchantSubSellerSubSellerNrCity
-
setSubMerchantSubSellerSubSellerNrCity
public void setSubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity)
-
subMerchantSubSellerSubSellerNrCountry
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry)
-
getSubMerchantSubSellerSubSellerNrCountry
public String getSubMerchantSubSellerSubSellerNrCountry()
Required for transactions performed by registered payment facilitators. 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:
- subMerchantSubSellerSubSellerNrCountry
-
setSubMerchantSubSellerSubSellerNrCountry
public void setSubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry)
-
subMerchantSubSellerSubSellerNrId
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId)
-
getSubMerchantSubSellerSubSellerNrId
public String getSubMerchantSubSellerSubSellerNrId()
Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters- Returns:
- subMerchantSubSellerSubSellerNrId
-
setSubMerchantSubSellerSubSellerNrId
public void setSubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId)
-
subMerchantSubSellerSubSellerNrMcc
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc)
-
getSubMerchantSubSellerSubSellerNrMcc
public String getSubMerchantSubSellerSubSellerNrMcc()
Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Returns:
- subMerchantSubSellerSubSellerNrMcc
-
setSubMerchantSubSellerSubSellerNrMcc
public void setSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc)
-
subMerchantSubSellerSubSellerNrName
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName)
-
getSubMerchantSubSellerSubSellerNrName
public String getSubMerchantSubSellerSubSellerNrName()
Required for transactions performed by registered payment facilitators. 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:
- subMerchantSubSellerSubSellerNrName
-
setSubMerchantSubSellerSubSellerNrName
public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName)
-
subMerchantSubSellerSubSellerNrPostalCode
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode)
-
getSubMerchantSubSellerSubSellerNrPostalCode
public String getSubMerchantSubSellerSubSellerNrPostalCode()
Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits- Returns:
- subMerchantSubSellerSubSellerNrPostalCode
-
setSubMerchantSubSellerSubSellerNrPostalCode
public void setSubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode)
-
subMerchantSubSellerSubSellerNrState
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState)
-
getSubMerchantSubSellerSubSellerNrState
public String getSubMerchantSubSellerSubSellerNrState()
Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters- Returns:
- subMerchantSubSellerSubSellerNrState
-
setSubMerchantSubSellerSubSellerNrState
public void setSubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState)
-
subMerchantSubSellerSubSellerNrStreet
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet)
-
getSubMerchantSubSellerSubSellerNrStreet
public String getSubMerchantSubSellerSubSellerNrStreet()
Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters- Returns:
- subMerchantSubSellerSubSellerNrStreet
-
setSubMerchantSubSellerSubSellerNrStreet
public void setSubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet)
-
subMerchantSubSellerSubSellerNrTaxId
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId)
-
getSubMerchantSubSellerSubSellerNrTaxId
public String getSubMerchantSubSellerSubSellerNrTaxId()
Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ- Returns:
- subMerchantSubSellerSubSellerNrTaxId
-
setSubMerchantSubSellerSubSellerNrTaxId
public void setSubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId)
-
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 AdditionalDataSubMerchant
-
fromJson
public static AdditionalDataSubMerchant fromJson(String jsonString) throws IOException
Create an instance of AdditionalDataSubMerchant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalDataSubMerchant
- Throws:
IOException- if the JSON string is invalid with respect to AdditionalDataSubMerchant
-
toJson
public String toJson()
Convert an instance of AdditionalDataSubMerchant to an JSON string- Returns:
- JSON string
-
-