Package com.adyen.model.transfers
Class MerchantData
- java.lang.Object
-
- com.adyen.model.transfers.MerchantData
-
public class MerchantData extends Object
MerchantData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MCCstatic StringSERIALIZED_NAME_MERCHANT_IDstatic StringSERIALIZED_NAME_NAME_LOCATIONstatic StringSERIALIZED_NAME_POSTAL_CODE
-
Constructor Summary
Constructors Constructor Description MerchantData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static MerchantDatafromJson(String jsonString)Create an instance of MerchantData given an JSON stringStringgetMcc()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)voidsetMcc(String mcc)voidsetMerchantId(String merchantId)voidsetNameLocation(NameLocation nameLocation)voidsetPostalCode(String postalCode)StringtoJson()Convert an instance of MerchantData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_MCC
public static final String SERIALIZED_NAME_MCC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ID
public static final String SERIALIZED_NAME_MERCHANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME_LOCATION
public static final String SERIALIZED_NAME_NAME_LOCATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POSTAL_CODE
public static final String SERIALIZED_NAME_POSTAL_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
mcc
public MerchantData mcc(String mcc)
-
getMcc
public String getMcc()
The merchant category code.- Returns:
- mcc
-
setMcc
public void setMcc(String mcc)
-
merchantId
public MerchantData merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
The merchant identifier.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
-
nameLocation
public MerchantData nameLocation(NameLocation nameLocation)
-
getNameLocation
public NameLocation getNameLocation()
Get nameLocation- Returns:
- nameLocation
-
setNameLocation
public void setNameLocation(NameLocation nameLocation)
-
postalCode
public MerchantData postalCode(String postalCode)
-
getPostalCode
public String getPostalCode()
The merchant postal code.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to MerchantData
-
fromJson
public static MerchantData fromJson(String jsonString) throws IOException
Create an instance of MerchantData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantData
- Throws:
IOException- if the JSON string is invalid with respect to MerchantData
-
toJson
public String toJson()
Convert an instance of MerchantData to an JSON string- Returns:
- JSON string
-
-