Class SubMerchantInfo


  • public class SubMerchantInfo
    extends Object
    SubMerchantInfo
    • Constructor Detail

      • SubMerchantInfo

        public SubMerchantInfo()
    • Method Detail

      • address

        public SubMerchantInfo address​(BillingAddress address)
        address
        Parameters:
        address -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • getAddress

        public BillingAddress getAddress()
        address
        Returns:
        address
      • setAddress

        public void setAddress​(BillingAddress address)
        address
        Parameters:
        address -
      • amount

        public SubMerchantInfo amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • email

        public SubMerchantInfo email​(String email)
        Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account.
        Parameters:
        email -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • getEmail

        public String getEmail()
        Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account.
        Returns:
        email
      • 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)
        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 -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • 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)
        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 -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • 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)
        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 -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • 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)
        Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account.
        Parameters:
        phoneNumber -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • 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)
        registeredSince
        Parameters:
        registeredSince -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • getRegisteredSince

        public String getRegisteredSince()
        registeredSince
        Returns:
        registeredSince
      • setRegisteredSince

        public void setRegisteredSince​(String registeredSince)
        registeredSince
        Parameters:
        registeredSince -
      • taxId

        public SubMerchantInfo taxId​(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 -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • 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)
        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 -
        Returns:
        the current SubMerchantInfo instance, allowing for method chaining
      • 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.
        Overrides:
        equals in class Object
      • hashCode

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