Package com.adyen.model.checkout
Class PaymentReversalResource
- java.lang.Object
-
- com.adyen.model.checkout.PaymentReversalResource
-
public class PaymentReversalResource extends Object
PaymentReversalResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentReversalResource.CustomTypeAdapterFactorystatic classPaymentReversalResource.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 PaymentReversalResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PaymentReversalResourcefromJson(String jsonString)Create an instance of PaymentReversalResource 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.PaymentReversalResource.StatusEnumgetStatus()The status of your request.inthashCode()PaymentReversalResourcemerchantAccount(String merchantAccount)PaymentReversalResourcepaymentPspReference(String paymentPspReference)PaymentReversalResourcepspReference(String pspReference)PaymentReversalResourcereference(String reference)voidsetMerchantAccount(String merchantAccount)voidsetPaymentPspReference(String paymentPspReference)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetStatus(PaymentReversalResource.StatusEnum status)PaymentReversalResourcestatus(PaymentReversalResource.StatusEnum status)StringtoJson()Convert an instance of PaymentReversalResource 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 PaymentReversalResource 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 PaymentReversalResource 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)
-
pspReference
public PaymentReversalResource 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)
-
reference
public PaymentReversalResource reference(String reference)
-
getReference
public String getReference()
Your reference for the reversal request.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
status
public PaymentReversalResource status(PaymentReversalResource.StatusEnum status)
-
getStatus
public PaymentReversalResource.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentReversalResource.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 PaymentReversalResource
-
fromJson
public static PaymentReversalResource fromJson(String jsonString) throws IOException
Create an instance of PaymentReversalResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentReversalResource
- Throws:
IOException- if the JSON string is invalid with respect to PaymentReversalResource
-
toJson
public String toJson()
Convert an instance of PaymentReversalResource to an JSON string- Returns:
- JSON string
-
-