Package com.adyen.model.checkout
Class CreatePaymentReversalRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreatePaymentReversalRequest
-
public class CreatePaymentReversalRequest extends Object
CreatePaymentReversalRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreatePaymentReversalRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_REFERENCE
-
Constructor Summary
Constructors Constructor Description CreatePaymentReversalRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CreatePaymentReversalRequestfromJson(String jsonString)Create an instance of CreatePaymentReversalRequest given an JSON stringStringgetMerchantAccount()The merchant account that is used to process the payment.StringgetReference()Your reference for the reversal request.inthashCode()CreatePaymentReversalRequestmerchantAccount(String merchantAccount)CreatePaymentReversalRequestreference(String reference)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)StringtoJson()Convert an instance of CreatePaymentReversalRequest 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_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public CreatePaymentReversalRequest 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 CreatePaymentReversalRequest 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)
-
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 CreatePaymentReversalRequest
-
fromJson
public static CreatePaymentReversalRequest fromJson(String jsonString) throws IOException
Create an instance of CreatePaymentReversalRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePaymentReversalRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreatePaymentReversalRequest
-
toJson
public String toJson()
Convert an instance of CreatePaymentReversalRequest to an JSON string- Returns:
- JSON string
-
-