Class MerchantData


  • public class MerchantData
    extends Object
    MerchantData
    • Constructor Detail

      • MerchantData

        public MerchantData()
    • Method Detail

      • acquirerId

        public MerchantData acquirerId​(String acquirerId)
        The unique identifier of the merchant's acquirer.
        Parameters:
        acquirerId -
        Returns:
        the current MerchantData instance, allowing for method chaining
      • getAcquirerId

        public String getAcquirerId()
        The unique identifier of the merchant's acquirer.
        Returns:
        acquirerId
      • setAcquirerId

        public void setAcquirerId​(String acquirerId)
        The unique identifier of the merchant's acquirer.
        Parameters:
        acquirerId -
      • mcc

        public MerchantData mcc​(String mcc)
        The merchant category code.
        Parameters:
        mcc -
        Returns:
        the current MerchantData instance, allowing for method chaining
      • getMcc

        public String getMcc()
        The merchant category code.
        Returns:
        mcc
      • setMcc

        public void setMcc​(String mcc)
        The merchant category code.
        Parameters:
        mcc -
      • merchantId

        public MerchantData merchantId​(String merchantId)
        The merchant identifier.
        Parameters:
        merchantId -
        Returns:
        the current MerchantData instance, allowing for method chaining
      • getMerchantId

        public String getMerchantId()
        The merchant identifier.
        Returns:
        merchantId
      • setMerchantId

        public void setMerchantId​(String merchantId)
        The merchant identifier.
        Parameters:
        merchantId -
      • nameLocation

        public MerchantData nameLocation​(NameLocation nameLocation)
        nameLocation
        Parameters:
        nameLocation -
        Returns:
        the current MerchantData instance, allowing for method chaining
      • getNameLocation

        public NameLocation getNameLocation()
        nameLocation
        Returns:
        nameLocation
      • setNameLocation

        public void setNameLocation​(NameLocation nameLocation)
        nameLocation
        Parameters:
        nameLocation -
      • postalCode

        public MerchantData postalCode​(String postalCode)
        The merchant postal code.
        Parameters:
        postalCode -
        Returns:
        the current MerchantData instance, allowing for method chaining
      • getPostalCode

        public String getPostalCode()
        The merchant postal code.
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
        The merchant postal code.
        Parameters:
        postalCode -
      • equals

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

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

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

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