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.ServiceLevelEnumService level
-
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 number.BooleangetReuseMidNumber()Indicates whether the Amex Merchant ID is reused from previously setup payment methodsAmexInfo.ServiceLevelEnumgetServiceLevel()Service levelinthashCode()AmexInfomidNumber(String midNumber)AmexInforeuseMidNumber(Boolean reuseMidNumber)AmexInfoserviceLevel(AmexInfo.ServiceLevelEnum serviceLevel)voidsetMidNumber(String midNumber)MID number.voidsetReuseMidNumber(Boolean reuseMidNumber)Indicates whether the Amex Merchant ID is reused from previously setup payment methodsvoidsetServiceLevel(AmexInfo.ServiceLevelEnum serviceLevel)Service levelStringtoJson()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 number. Format: 10 numeric characters- Returns:
- midNumber
-
setMidNumber
public void setMidNumber(String midNumber)
MID number. Format: 10 numeric characters- Parameters:
midNumber-
-
getReuseMidNumber
public Boolean getReuseMidNumber()
Indicates whether the Amex Merchant ID is reused from previously setup payment methods- Returns:
- reuseMidNumber
-
setReuseMidNumber
public void setReuseMidNumber(Boolean reuseMidNumber)
Indicates whether the Amex Merchant ID is reused from previously setup payment methods- Parameters:
reuseMidNumber-
-
serviceLevel
public AmexInfo serviceLevel(AmexInfo.ServiceLevelEnum serviceLevel)
-
getServiceLevel
public AmexInfo.ServiceLevelEnum getServiceLevel()
Service level- Returns:
- serviceLevel
-
setServiceLevel
public void setServiceLevel(AmexInfo.ServiceLevelEnum serviceLevel)
Service level- 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
-
-