Class SubMerchantData


  • public class SubMerchantData
    extends Object
    SubMerchantData
    • Constructor Detail

      • SubMerchantData

        public SubMerchantData()
    • 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 SubMerchantData instance, 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 SubMerchantData instance, 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 SubMerchantData instance, 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 SubMerchantData instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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