Package com.adyen.model.checkout
Class PaymentCancelResource
- java.lang.Object
-
- com.adyen.model.checkout.PaymentCancelResource
-
public class PaymentCancelResource extends Object
PaymentCancelResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentCancelResource.CustomTypeAdapterFactorystatic classPaymentCancelResource.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_PAYMENT_PSP_REFERENCEstatic StringSERIALIZED_NAME_PSP_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description PaymentCancelResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PaymentCancelResourcefromJson(String jsonString)Create an instance of PaymentCancelResource given an JSON stringStringgetMerchantAccount()The merchant account that is used to process the payment.StringgetPaymentPspReference()The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel.StringgetPspReference()Adyen's 16-character reference associated with the cancel request.StringgetReference()Your reference for the cancel request.PaymentCancelResource.StatusEnumgetStatus()The status of your request.inthashCode()PaymentCancelResourcemerchantAccount(String merchantAccount)PaymentCancelResourcepaymentPspReference(String paymentPspReference)PaymentCancelResourcepspReference(String pspReference)PaymentCancelResourcereference(String reference)voidsetMerchantAccount(String merchantAccount)voidsetPaymentPspReference(String paymentPspReference)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetStatus(PaymentCancelResource.StatusEnum status)PaymentCancelResourcestatus(PaymentCancelResource.StatusEnum status)StringtoJson()Convert an instance of PaymentCancelResource 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_PSP_REFERENCE
public static final String SERIALIZED_NAME_PAYMENT_PSP_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public PaymentCancelResource 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)
-
paymentPspReference
public PaymentCancelResource paymentPspReference(String paymentPspReference)
-
getPaymentPspReference
public String getPaymentPspReference()
The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel.- Returns:
- paymentPspReference
-
setPaymentPspReference
public void setPaymentPspReference(String paymentPspReference)
-
pspReference
public PaymentCancelResource pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the cancel request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reference
public PaymentCancelResource reference(String reference)
-
getReference
public String getReference()
Your reference for the cancel request.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
status
public PaymentCancelResource status(PaymentCancelResource.StatusEnum status)
-
getStatus
public PaymentCancelResource.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentCancelResource.StatusEnum status)
-
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 PaymentCancelResource
-
fromJson
public static PaymentCancelResource fromJson(String jsonString) throws IOException
Create an instance of PaymentCancelResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentCancelResource
- Throws:
IOException- if the JSON string is invalid with respect to PaymentCancelResource
-
toJson
public String toJson()
Convert an instance of PaymentCancelResource to an JSON string- Returns:
- JSON string
-
-