Class SubMerchant


  • public class SubMerchant
    extends Object
    SubMerchant
    • Constructor Detail

      • SubMerchant

        public SubMerchant()
    • Method Detail

      • city

        public SubMerchant city​(String city)
        The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters
        Parameters:
        city -
        Returns:
        the current SubMerchant instance, allowing for method chaining
      • 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)
        The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters
        Parameters:
        city -
      • country

        public SubMerchant country​(String country)
        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
        Parameters:
        country -
        Returns:
        the current SubMerchant instance, allowing for method chaining
      • 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)
        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
        Parameters:
        country -
      • mcc

        public SubMerchant mcc​(String mcc)
        The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits
        Parameters:
        mcc -
        Returns:
        the current SubMerchant 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
      • setMcc

        public void setMcc​(String mcc)
        The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits
        Parameters:
        mcc -
      • name

        public SubMerchant 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 -
        Returns:
        the current SubMerchant 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
      • 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 -
      • taxId

        public SubMerchant taxId​(String taxId)
        The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ
        Parameters:
        taxId -
        Returns:
        the current SubMerchant instance, allowing for method chaining
      • 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)
        The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ
        Parameters:
        taxId -
      • equals

        public boolean equals​(Object o)
        Return true if this SubMerchant object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static SubMerchant fromJson​(String jsonString)
                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of SubMerchant given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of SubMerchant
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to SubMerchant
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of SubMerchant to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException