Package com.adyen.model.checkout
Class CreatePaymentCancelRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreatePaymentCancelRequest
-
public class CreatePaymentCancelRequest extends Object
CreatePaymentCancelRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreatePaymentCancelRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_REFERENCE
-
Constructor Summary
Constructors Constructor Description CreatePaymentCancelRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CreatePaymentCancelRequestfromJson(String jsonString)Create an instance of CreatePaymentCancelRequest given an JSON stringStringgetMerchantAccount()The merchant account that is used to process the payment.StringgetReference()Your reference for the cancel request.inthashCode()CreatePaymentCancelRequestmerchantAccount(String merchantAccount)CreatePaymentCancelRequestreference(String reference)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)StringtoJson()Convert an instance of CreatePaymentCancelRequest 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_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public CreatePaymentCancelRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account that is used to process the payment.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
reference
public CreatePaymentCancelRequest reference(String reference)
-
getReference
public String getReference()
Your reference for the cancel request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
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 CreatePaymentCancelRequest
-
fromJson
public static CreatePaymentCancelRequest fromJson(String jsonString) throws IOException
Create an instance of CreatePaymentCancelRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePaymentCancelRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreatePaymentCancelRequest
-
toJson
public String toJson()
Convert an instance of CreatePaymentCancelRequest to an JSON string- Returns:
- JSON string
-
-