Package com.adyen.model.management
Class SubMerchantData
- java.lang.Object
-
- com.adyen.model.management.SubMerchantData
-
public class SubMerchantData extends Object
SubMerchantData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_MCCstatic StringJSON_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description SubMerchantData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubMerchantDataemail(String email)The email associated with the sub-merchant's account.booleanequals(Object o)Return true if this SubMerchantData object is equal to o.static SubMerchantDatafromJson(String jsonString)Create an instance of SubMerchantData given an JSON stringStringgetEmail()The email associated with the sub-merchant's account.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 charactersStringgetMcc()The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digitsStringgetName()The name of the sub-merchant.inthashCode()SubMerchantDataid(String id)A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 charactersSubMerchantDataincludeNullValues(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.SubMerchantDatamcc(String mcc)The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digitsSubMerchantDataname(String name)The name of the sub-merchant.voidsetEmail(String email)The email associated with the sub-merchant's account.voidsetId(String id)A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 charactersvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMcc(String mcc)The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digitsvoidsetName(String name)The name of the sub-merchant.StringtoJson()Convert an instance of SubMerchantData to an JSON stringStringtoString()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
email
public SubMerchantData email(String email)
The email associated with the sub-merchant's account.- Parameters:
email- The email associated with the sub-merchant's account.- Returns:
- the current
SubMerchantDatainstance, allowing for method chaining
-
getEmail
public String getEmail()
The email associated with the sub-merchant's account.- Returns:
- email The email associated with the sub-merchant's account.
-
setEmail
public void setEmail(String email)
The email associated with the sub-merchant's account.- Parameters:
email- The email associated with the sub-merchant's account.
-
id
public SubMerchantData id(String id)
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- 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:
- the current
SubMerchantDatainstance, allowing for method chaining
-
getId
public String getId()
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 A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters
-
setId
public void setId(String id)
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- A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters
-
mcc
public SubMerchantData mcc(String mcc)
The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Parameters:
mcc- The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Returns:
- the current
SubMerchantDatainstance, 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 The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits
-
setMcc
public void setMcc(String mcc)
The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits- Parameters:
mcc- The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits
-
name
public SubMerchantData 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- 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:
- the current
SubMerchantDatainstance, 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 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
-
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- 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
-
includeNullValues
public SubMerchantData 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 SubMerchantData 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 SubMerchantData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SubMerchantData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubMerchantData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SubMerchantData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SubMerchantData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-