Package com.adyen.model.checkout
Class PaymentReversalRequest
- java.lang.Object
-
- com.adyen.model.checkout.PaymentReversalRequest
-
public class PaymentReversalRequest extends Object
PaymentReversalRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_REFERENCE
-
Constructor Summary
Constructors Constructor Description PaymentReversalRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PaymentReversalRequest object is equal to o.static PaymentReversalRequestfromJson(String jsonString)Create an instance of PaymentReversalRequest given an JSON stringStringgetMerchantAccount()The merchant account that is used to process the payment.StringgetReference()Your reference for the reversal request.inthashCode()PaymentReversalRequestmerchantAccount(String merchantAccount)PaymentReversalRequestreference(String reference)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)StringtoJson()Convert an instance of PaymentReversalRequest 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_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public PaymentReversalRequest 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)
-
reference
public PaymentReversalRequest reference(String reference)
-
getReference
public String getReference()
Your reference for the reversal request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
equals
public boolean equals(Object o)
Return true if this PaymentReversalRequest object is equal to o.
-
fromJson
public static PaymentReversalRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentReversalRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentReversalRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentReversalRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentReversalRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-