Package com.adyen.model.transferwebhooks
Class MerchantData
- java.lang.Object
-
- com.adyen.model.transferwebhooks.MerchantData
-
public class MerchantData extends Object
MerchantData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRER_IDstatic StringJSON_PROPERTY_MCCstatic StringJSON_PROPERTY_MERCHANT_IDstatic StringJSON_PROPERTY_NAME_LOCATIONstatic StringJSON_PROPERTY_POSTAL_CODE
-
Constructor Summary
Constructors Constructor Description MerchantData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantDataacquirerId(String acquirerId)booleanequals(Object o)Return true if this MerchantData object is equal to o.static MerchantDatafromJson(String jsonString)Create an instance of MerchantData given an JSON stringStringgetAcquirerId()The unique identifier of the merchant's acquirer.StringgetMcc()The merchant category code.StringgetMerchantId()The merchant identifier.NameLocationgetNameLocation()Get nameLocationStringgetPostalCode()The merchant postal code.inthashCode()MerchantDatamcc(String mcc)MerchantDatamerchantId(String merchantId)MerchantDatanameLocation(NameLocation nameLocation)MerchantDatapostalCode(String postalCode)voidsetAcquirerId(String acquirerId)The unique identifier of the merchant's acquirer.voidsetMcc(String mcc)The merchant category code.voidsetMerchantId(String merchantId)The merchant identifier.voidsetNameLocation(NameLocation nameLocation)nameLocationvoidsetPostalCode(String postalCode)The merchant postal code.StringtoJson()Convert an instance of MerchantData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACQUIRER_ID
public static final String JSON_PROPERTY_ACQUIRER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MCC
public static final String JSON_PROPERTY_MCC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ID
public static final String JSON_PROPERTY_MERCHANT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME_LOCATION
public static final String JSON_PROPERTY_NAME_LOCATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POSTAL_CODE
public static final String JSON_PROPERTY_POSTAL_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquirerId
public MerchantData acquirerId(String acquirerId)
-
getAcquirerId
public String getAcquirerId()
The unique identifier of the merchant's acquirer.- Returns:
- acquirerId
-
setAcquirerId
public void setAcquirerId(String acquirerId)
The unique identifier of the merchant's acquirer.- Parameters:
acquirerId-
-
mcc
public MerchantData mcc(String mcc)
-
getMcc
public String getMcc()
The merchant category code.- Returns:
- mcc
-
setMcc
public void setMcc(String mcc)
The merchant category code.- Parameters:
mcc-
-
merchantId
public MerchantData merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
The merchant identifier.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
The merchant identifier.- Parameters:
merchantId-
-
nameLocation
public MerchantData nameLocation(NameLocation nameLocation)
-
getNameLocation
public NameLocation getNameLocation()
Get nameLocation- Returns:
- nameLocation
-
setNameLocation
public void setNameLocation(NameLocation nameLocation)
nameLocation- Parameters:
nameLocation-
-
postalCode
public MerchantData postalCode(String postalCode)
-
getPostalCode
public String getPostalCode()
The merchant postal code.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
The merchant postal code.- Parameters:
postalCode-
-
equals
public boolean equals(Object o)
Return true if this MerchantData object is equal to o.
-
fromJson
public static MerchantData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MerchantData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-