Package com.adyen.model.checkout
Class SubMerchantInfo
- java.lang.Object
-
- com.adyen.model.checkout.SubMerchantInfo
-
public class SubMerchantInfo extends Object
SubMerchantInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_MCCstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_REGISTERED_SINCEstatic StringJSON_PROPERTY_TAX_IDstatic StringJSON_PROPERTY_URL
-
Constructor Summary
Constructors Constructor Description SubMerchantInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubMerchantInfoaddress(BillingAddress address)SubMerchantInfoamount(Amount amount)SubMerchantInfoemail(String email)booleanequals(Object o)Return true if this SubMerchantInfo object is equal to o.static SubMerchantInfofromJson(String jsonString)Create an instance of SubMerchantInfo given an JSON stringBillingAddressgetAddress()Get addressAmountgetAmount()Get amountStringgetEmail()Required for transactions performed by registered payment facilitators.StringgetId()Required for transactions performed by registered payment facilitators.StringgetMcc()Required for transactions performed by registered payment facilitators.StringgetName()Required for transactions performed by registered payment facilitators.StringgetPhoneNumber()Required for transactions performed by registered payment facilitators.StringgetRegisteredSince()Get registeredSinceStringgetTaxId()Required for transactions performed by registered payment facilitators.StringgetUrl()Required for transactions performed by registered payment facilitators.inthashCode()SubMerchantInfoid(String id)SubMerchantInfomcc(String mcc)SubMerchantInfoname(String name)SubMerchantInfophoneNumber(String phoneNumber)SubMerchantInforegisteredSince(String registeredSince)voidsetAddress(BillingAddress address)addressvoidsetAmount(Amount amount)amountvoidsetEmail(String email)Required for transactions performed by registered payment facilitators.voidsetId(String id)Required for transactions performed by registered payment facilitators.voidsetMcc(String mcc)Required for transactions performed by registered payment facilitators.voidsetName(String name)Required for transactions performed by registered payment facilitators.voidsetPhoneNumber(String phoneNumber)Required for transactions performed by registered payment facilitators.voidsetRegisteredSince(String registeredSince)registeredSincevoidsetTaxId(String taxId)Required for transactions performed by registered payment facilitators.voidsetUrl(String url)Required for transactions performed by registered payment facilitators.SubMerchantInfotaxId(String taxId)StringtoJson()Convert an instance of SubMerchantInfo to an JSON stringStringtoString()SubMerchantInfourl(String url)
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- 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_PHONE_NUMBER
public static final String JSON_PROPERTY_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTERED_SINCE
public static final String JSON_PROPERTY_REGISTERED_SINCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ID
public static final String JSON_PROPERTY_TAX_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URL
public static final String JSON_PROPERTY_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public SubMerchantInfo address(BillingAddress address)
-
getAddress
public BillingAddress getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(BillingAddress address)
address- Parameters:
address-
-
amount
public SubMerchantInfo amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
email
public SubMerchantInfo email(String email)
-
getEmail
public String getEmail()
Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account.- Returns:
-
setEmail
public void setEmail(String email)
Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account.- Parameters:
email-
-
id
public SubMerchantInfo id(String id)
-
getId
public String getId()
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:
- id
-
setId
public void setId(String id)
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- Parameters:
id-
-
mcc
public SubMerchantInfo mcc(String mcc)
-
getMcc
public String getMcc()
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:
- mcc
-
setMcc
public void setMcc(String mcc)
Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Parameters:
mcc-
-
name
public SubMerchantInfo name(String name)
-
getName
public String getName()
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:
- name
-
setName
public void setName(String name)
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- Parameters:
name-
-
phoneNumber
public SubMerchantInfo phoneNumber(String phoneNumber)
-
getPhoneNumber
public String getPhoneNumber()
Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account.- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account.- Parameters:
phoneNumber-
-
registeredSince
public SubMerchantInfo registeredSince(String registeredSince)
-
getRegisteredSince
public String getRegisteredSince()
Get registeredSince- Returns:
- registeredSince
-
setRegisteredSince
public void setRegisteredSince(String registeredSince)
registeredSince- Parameters:
registeredSince-
-
taxId
public SubMerchantInfo taxId(String taxId)
-
getTaxId
public String getTaxId()
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:
- taxId
-
setTaxId
public void setTaxId(String taxId)
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- Parameters:
taxId-
-
url
public SubMerchantInfo url(String url)
-
getUrl
public String getUrl()
Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop.- Returns:
- url
-
setUrl
public void setUrl(String url)
Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop.- Parameters:
url-
-
equals
public boolean equals(Object o)
Return true if this SubMerchantInfo object is equal to o.
-
fromJson
public static SubMerchantInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SubMerchantInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubMerchantInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SubMerchantInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SubMerchantInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-