Package com.adyen.model.binlookup
Class MerchantDetails
- java.lang.Object
-
- com.adyen.model.binlookup.MerchantDetails
-
public class MerchantDetails extends Object
MerchantDetails
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COUNTRY_CODEstatic StringJSON_PROPERTY_ENROLLED_IN3_D_SECUREstatic StringJSON_PROPERTY_MCC
-
Constructor Summary
Constructors Constructor Description MerchantDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantDetailscountryCode(String countryCode)MerchantDetailsenrolledIn3DSecure(Boolean enrolledIn3DSecure)booleanequals(Object o)Return true if this MerchantDetails object is equal to o.static MerchantDetailsfromJson(String jsonString)Create an instance of MerchantDetails given an JSON stringStringgetCountryCode()2-letter ISO 3166 country code of the card acceptor location.BooleangetEnrolledIn3DSecure()If true, indicates that the merchant is enrolled in 3D Secure for the card network.StringgetMcc()The merchant category code (MCC) is a four-digit number which relates to a particular market segment.inthashCode()MerchantDetailsmcc(String mcc)voidsetCountryCode(String countryCode)2-letter ISO 3166 country code of the card acceptor location.voidsetEnrolledIn3DSecure(Boolean enrolledIn3DSecure)If true, indicates that the merchant is enrolled in 3D Secure for the card network.voidsetMcc(String mcc)The merchant category code (MCC) is a four-digit number which relates to a particular market segment.StringtoJson()Convert an instance of MerchantDetails to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_COUNTRY_CODE
public static final String JSON_PROPERTY_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENROLLED_IN3_D_SECURE
public static final String JSON_PROPERTY_ENROLLED_IN3_D_SECURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MCC
public static final String JSON_PROPERTY_MCC
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryCode
public MerchantDetails countryCode(String countryCode)
-
getCountryCode
public String getCountryCode()
2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway.- Parameters:
countryCode-
-
enrolledIn3DSecure
public MerchantDetails enrolledIn3DSecure(Boolean enrolledIn3DSecure)
-
getEnrolledIn3DSecure
public Boolean getEnrolledIn3DSecure()
If true, indicates that the merchant is enrolled in 3D Secure for the card network.- Returns:
- enrolledIn3DSecure
-
setEnrolledIn3DSecure
public void setEnrolledIn3DSecure(Boolean enrolledIn3DSecure)
If true, indicates that the merchant is enrolled in 3D Secure for the card network.- Parameters:
enrolledIn3DSecure-
-
mcc
public MerchantDetails mcc(String mcc)
-
getMcc
public String getMcc()
The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code).- Returns:
- mcc
-
setMcc
public void setMcc(String mcc)
The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code).- Parameters:
mcc-
-
equals
public boolean equals(Object o)
Return true if this MerchantDetails object is equal to o.
-
fromJson
public static MerchantDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MerchantDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-