Class AmexInfo


  • public class AmexInfo
    extends Object
    AmexInfo
    • Constructor Detail

      • AmexInfo

        public AmexInfo()
    • Method Detail

      • getMidNumber

        public String getMidNumber()
        MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels.
        Returns:
        midNumber
      • setMidNumber

        public void setMidNumber​(String midNumber)
        MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels.
        Parameters:
        midNumber -
      • reuseMidNumber

        public AmexInfo reuseMidNumber​(Boolean reuseMidNumber)
      • 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 -
      • 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. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant.
        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. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant.
        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