Class AmexInfo


  • public class AmexInfo
    extends Object
    AmexInfo
    • Constructor Detail

      • AmexInfo

        public AmexInfo()
    • Method Detail

      • midNumber

        public AmexInfo midNumber​(String midNumber)
        Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels.
        Parameters:
        midNumber -
        Returns:
        the current AmexInfo instance, allowing for method chaining
      • getMidNumber

        public String getMidNumber()
        Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels.
        Returns:
        midNumber
      • setMidNumber

        public void setMidNumber​(String midNumber)
        Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels.
        Parameters:
        midNumber -
      • reuseMidNumber

        public AmexInfo reuseMidNumber​(Boolean reuseMidNumber)
        Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**.
        Parameters:
        reuseMidNumber -
        Returns:
        the current AmexInfo instance, allowing for method chaining
      • getReuseMidNumber

        public Boolean getReuseMidNumber()
        Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**.
        Returns:
        reuseMidNumber
      • setReuseMidNumber

        public void setReuseMidNumber​(Boolean reuseMidNumber)
        Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**.
        Parameters:
        reuseMidNumber -
      • serviceLevel

        public AmexInfo serviceLevel​(AmexInfo.ServiceLevelEnum serviceLevel)
        Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
        Parameters:
        serviceLevel -
        Returns:
        the current AmexInfo instance, allowing for method chaining
      • getServiceLevel

        public AmexInfo.ServiceLevelEnum getServiceLevel()
        Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
        Returns:
        serviceLevel
      • setServiceLevel

        public void setServiceLevel​(AmexInfo.ServiceLevelEnum serviceLevel)
        Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
        Parameters:
        serviceLevel -
      • equals

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

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

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

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