Class AdditionalDataSubMerchant


  • public class AdditionalDataSubMerchant
    extends Object
    AdditionalDataSubMerchant
    • Field Detail

      • JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS

        public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID

        public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • AdditionalDataSubMerchant

        public AdditionalDataSubMerchant()
    • Method Detail

      • 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)
        Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**.
        Parameters:
        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)
        Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters
        Parameters:
        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)
        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
        Parameters:
        subMerchantSubSellerSubSellerNrCountry -
      • 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)
        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:
        subMerchantSubSellerSubSellerNrId -
      • 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)
        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:
        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)
        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:
        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)
        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
        Parameters:
        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)
        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
        Parameters:
        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)
        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
        Parameters:
        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)
        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:
        subMerchantSubSellerSubSellerNrTaxId -
      • equals

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

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

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

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