Package com.adyen.model.checkout
Class CreateStandalonePaymentCancelRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreateStandalonePaymentCancelRequest
-
public class CreateStandalonePaymentCancelRequest extends Object
CreateStandalonePaymentCancelRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateStandalonePaymentCancelRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_PAYMENT_REFERENCEstatic StringSERIALIZED_NAME_REFERENCE
-
Constructor Summary
Constructors Constructor Description CreateStandalonePaymentCancelRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CreateStandalonePaymentCancelRequestfromJson(String jsonString)Create an instance of CreateStandalonePaymentCancelRequest given an JSON stringStringgetMerchantAccount()The merchant account that is used to process the payment.StringgetPaymentReference()The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.StringgetReference()Your reference for the cancel request.inthashCode()CreateStandalonePaymentCancelRequestmerchantAccount(String merchantAccount)CreateStandalonePaymentCancelRequestpaymentReference(String paymentReference)CreateStandalonePaymentCancelRequestreference(String reference)voidsetMerchantAccount(String merchantAccount)voidsetPaymentReference(String paymentReference)voidsetReference(String reference)StringtoJson()Convert an instance of CreateStandalonePaymentCancelRequest 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_PAYMENT_REFERENCE
public static final String SERIALIZED_NAME_PAYMENT_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public CreateStandalonePaymentCancelRequest 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)
-
paymentReference
public CreateStandalonePaymentCancelRequest paymentReference(String paymentReference)
-
getPaymentReference
public String getPaymentReference()
The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.- Returns:
- paymentReference
-
setPaymentReference
public void setPaymentReference(String paymentReference)
-
reference
public CreateStandalonePaymentCancelRequest 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 CreateStandalonePaymentCancelRequest
-
fromJson
public static CreateStandalonePaymentCancelRequest fromJson(String jsonString) throws IOException
Create an instance of CreateStandalonePaymentCancelRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateStandalonePaymentCancelRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateStandalonePaymentCancelRequest
-
toJson
public String toJson()
Convert an instance of CreateStandalonePaymentCancelRequest to an JSON string- Returns:
- JSON string
-
-