Package com.adyen.model.management
Class AmexInfo
- java.lang.Object
-
- com.adyen.model.management.AmexInfo
-
public class AmexInfo extends Object
AmexInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAmexInfo.ServiceLevelEnumSpecifies the service level (settlement type) of this payment method.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MID_NUMBERstatic StringJSON_PROPERTY_REUSE_MID_NUMBERstatic StringJSON_PROPERTY_SERVICE_LEVEL
-
Constructor Summary
Constructors Constructor Description AmexInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this AmexInfo object is equal to o.static AmexInfofromJson(String jsonString)Create an instance of AmexInfo given an JSON stringStringgetMidNumber()MID (Merchant ID) number.BooleangetReuseMidNumber()Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method.AmexInfo.ServiceLevelEnumgetServiceLevel()Specifies the service level (settlement type) of this payment method.inthashCode()AmexInfomidNumber(String midNumber)AmexInforeuseMidNumber(Boolean reuseMidNumber)AmexInfoserviceLevel(AmexInfo.ServiceLevelEnum serviceLevel)voidsetMidNumber(String midNumber)MID (Merchant ID) number.voidsetReuseMidNumber(Boolean reuseMidNumber)Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method.voidsetServiceLevel(AmexInfo.ServiceLevelEnum serviceLevel)Specifies the service level (settlement type) of this payment method.StringtoJson()Convert an instance of AmexInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MID_NUMBER
public static final String JSON_PROPERTY_MID_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REUSE_MID_NUMBER
public static final String JSON_PROPERTY_REUSE_MID_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERVICE_LEVEL
public static final String JSON_PROPERTY_SERVICE_LEVEL
- See Also:
- Constant Field Values
-
-
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-
-
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)
-
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.
-
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
-
-