Package com.adyen.model.checkout
Class PaymentReversalResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentReversalResponse
-
public class PaymentReversalResponse extends Object
PaymentReversalResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentReversalResponse.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 PaymentReversalResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PaymentReversalResponse object is equal to o.static PaymentReversalResponsefromJson(String jsonString)Create an instance of PaymentReversalResponse 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 reverse.StringgetPspReference()Adyen's 16-character reference associated with the reversal request.StringgetReference()Your reference for the reversal request.PaymentReversalResponse.StatusEnumgetStatus()The status of your request.inthashCode()PaymentReversalResponsemerchantAccount(String merchantAccount)PaymentReversalResponsepaymentPspReference(String paymentPspReference)PaymentReversalResponsepspReference(String pspReference)PaymentReversalResponsereference(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 reverse.voidsetPspReference(String pspReference)Adyen's 16-character reference associated with the reversal request.voidsetReference(String reference)Your reference for the reversal request.voidsetStatus(PaymentReversalResponse.StatusEnum status)The status of your request.PaymentReversalResponsestatus(PaymentReversalResponse.StatusEnum status)StringtoJson()Convert an instance of PaymentReversalResponse 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 PaymentReversalResponse 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 PaymentReversalResponse 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 reverse.- 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 reverse.- Parameters:
paymentPspReference-
-
pspReference
public PaymentReversalResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the reversal request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
Adyen's 16-character reference associated with the reversal request.- Parameters:
pspReference-
-
reference
public PaymentReversalResponse reference(String reference)
-
getReference
public String getReference()
Your reference for the reversal request.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the reversal request.- Parameters:
reference-
-
status
public PaymentReversalResponse status(PaymentReversalResponse.StatusEnum status)
-
getStatus
public PaymentReversalResponse.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentReversalResponse.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 PaymentReversalResponse object is equal to o.
-
fromJson
public static PaymentReversalResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentReversalResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentReversalResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentReversalResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentReversalResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-