Package com.adyen.model.checkout
Class PaymentCancelResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentCancelResponse
-
public class PaymentCancelResponse extends Object
PaymentCancelResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentCancelResponse.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_PSP_REFERENCEstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description PaymentCancelResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PaymentCancelResponse object is equal to o.static PaymentCancelResponsefromJson(String jsonString)Create an instance of PaymentCancelResponse 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.PaymentCancelResponse.StatusEnumgetStatus()The status of your request.inthashCode()PaymentCancelResponsemerchantAccount(String merchantAccount)PaymentCancelResponsepaymentPspReference(String paymentPspReference)PaymentCancelResponsepspReference(String pspReference)PaymentCancelResponsereference(String reference)voidsetMerchantAccount(String merchantAccount)The merchant account that is used to process the payment.voidsetPaymentPspReference(String paymentPspReference)The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel.voidsetPspReference(String pspReference)Adyen's 16-character reference associated with the cancel request.voidsetReference(String reference)Your reference for the cancel request.voidsetStatus(PaymentCancelResponse.StatusEnum status)The status of your request.PaymentCancelResponsestatus(PaymentCancelResponse.StatusEnum status)StringtoJson()Convert an instance of PaymentCancelResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_PSP_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public PaymentCancelResponse 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)
The merchant account that is used to process the payment.- Parameters:
merchantAccount-
-
paymentPspReference
public PaymentCancelResponse 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)
The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel.- Parameters:
paymentPspReference-
-
pspReference
public PaymentCancelResponse 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)
Adyen's 16-character reference associated with the cancel request.- Parameters:
pspReference-
-
reference
public PaymentCancelResponse reference(String reference)
-
getReference
public String getReference()
Your reference for the cancel request.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the cancel request.- Parameters:
reference-
-
status
public PaymentCancelResponse status(PaymentCancelResponse.StatusEnum status)
-
getStatus
public PaymentCancelResponse.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentCancelResponse.StatusEnum status)
The status of your request. This will always have the value **received**.- Parameters:
status-
-
equals
public boolean equals(Object o)
Return true if this PaymentCancelResponse object is equal to o.
-
fromJson
public static PaymentCancelResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentCancelResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentCancelResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentCancelResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentCancelResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-