Package com.adyen.model.checkout
Class StandalonePaymentCancelResponse
- java.lang.Object
-
- com.adyen.model.checkout.StandalonePaymentCancelResponse
-
public class StandalonePaymentCancelResponse extends Object
StandalonePaymentCancelResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandalonePaymentCancelResponse.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_REFERENCEstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description StandalonePaymentCancelResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this StandalonePaymentCancelResponse object is equal to o.static StandalonePaymentCancelResponsefromJson(String jsonString)Create an instance of StandalonePaymentCancelResponse 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 to cancel.StringgetPspReference()Adyen's 16-character reference associated with the cancel request.StringgetReference()Your reference for the cancel request.StandalonePaymentCancelResponse.StatusEnumgetStatus()The status of your request.inthashCode()StandalonePaymentCancelResponsemerchantAccount(String merchantAccount)StandalonePaymentCancelResponsepaymentReference(String paymentReference)StandalonePaymentCancelResponsepspReference(String pspReference)StandalonePaymentCancelResponsereference(String reference)voidsetMerchantAccount(String merchantAccount)The merchant account that is used to process the payment.voidsetPaymentReference(String paymentReference)The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) 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(StandalonePaymentCancelResponse.StatusEnum status)The status of your request.StandalonePaymentCancelResponsestatus(StandalonePaymentCancelResponse.StatusEnum status)StringtoJson()Convert an instance of StandalonePaymentCancelResponse 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_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_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 StandalonePaymentCancelResponse 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-
-
paymentReference
public StandalonePaymentCancelResponse paymentReference(String paymentReference)
-
getPaymentReference
public String getPaymentReference()
The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel.- Returns:
- paymentReference
-
setPaymentReference
public void setPaymentReference(String paymentReference)
The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel.- Parameters:
paymentReference-
-
pspReference
public StandalonePaymentCancelResponse 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 StandalonePaymentCancelResponse 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 StandalonePaymentCancelResponse status(StandalonePaymentCancelResponse.StatusEnum status)
-
getStatus
public StandalonePaymentCancelResponse.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(StandalonePaymentCancelResponse.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 StandalonePaymentCancelResponse object is equal to o.
-
fromJson
public static StandalonePaymentCancelResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StandalonePaymentCancelResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StandalonePaymentCancelResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StandalonePaymentCancelResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StandalonePaymentCancelResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-