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_APPLICATION_INFOstatic StringJSON_PROPERTY_ENHANCED_SCHEME_DATAstatic 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 PaymentReversalRequestapplicationInfo(ApplicationInfo applicationInfo)applicationInfoPaymentReversalRequestenhancedSchemeData(EnhancedSchemeData enhancedSchemeData)enhancedSchemeDatabooleanequals(Object o)Return true if this PaymentReversalRequest object is equal to o.static PaymentReversalRequestfromJson(String jsonString)Create an instance of PaymentReversalRequest given an JSON stringApplicationInfogetApplicationInfo()Get applicationInfoEnhancedSchemeDatagetEnhancedSchemeData()Get enhancedSchemeDataMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccount()The merchant account that is used to process the payment.StringgetReference()Your reference for the reversal request.inthashCode()PaymentReversalRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentReversalRequestmerchantAccount(String merchantAccount)The merchant account that is used to process the payment.PaymentReversalRequestreference(String reference)Your reference for the reversal request.voidsetApplicationInfo(ApplicationInfo applicationInfo)applicationInfovoidsetEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData)enhancedSchemeDatavoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)The merchant account that is used to process the payment.voidsetReference(String reference)Your reference for the reversal request.StringtoJson()Convert an instance of PaymentReversalRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_APPLICATION_INFO
public static final String JSON_PROPERTY_APPLICATION_INFO
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENHANCED_SCHEME_DATA
public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA
- See Also:
- Constant Field Values
-
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
-
applicationInfo
public PaymentReversalRequest applicationInfo(ApplicationInfo applicationInfo)
applicationInfo- Parameters:
applicationInfo-- Returns:
- the current
PaymentReversalRequestinstance, allowing for method chaining
-
getApplicationInfo
public ApplicationInfo getApplicationInfo()
Get applicationInfo- Returns:
- applicationInfo
-
setApplicationInfo
public void setApplicationInfo(ApplicationInfo applicationInfo)
applicationInfo- Parameters:
applicationInfo-
-
enhancedSchemeData
public PaymentReversalRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData)
enhancedSchemeData- Parameters:
enhancedSchemeData-- Returns:
- the current
PaymentReversalRequestinstance, allowing for method chaining
-
getEnhancedSchemeData
public EnhancedSchemeData getEnhancedSchemeData()
Get enhancedSchemeData- Returns:
- enhancedSchemeData
-
setEnhancedSchemeData
public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData)
enhancedSchemeData- Parameters:
enhancedSchemeData-
-
merchantAccount
public PaymentReversalRequest merchantAccount(String merchantAccount)
The merchant account that is used to process the payment.- Parameters:
merchantAccount- The merchant account that is used to process the payment.- Returns:
- the current
PaymentReversalRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account that is used to process the payment.- Returns:
- merchantAccount The merchant account that is used to process the payment.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account that is used to process the payment.- Parameters:
merchantAccount- The merchant account that is used to process the payment.
-
reference
public PaymentReversalRequest reference(String reference)
Your reference for the reversal request. Maximum length: 80 characters.- Parameters:
reference- Your reference for the reversal request. Maximum length: 80 characters.- Returns:
- the current
PaymentReversalRequestinstance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the reversal request. Maximum length: 80 characters.- Returns:
- reference Your reference for the reversal request. Maximum length: 80 characters.
-
setReference
public void setReference(String reference)
Your reference for the reversal request. Maximum length: 80 characters.- Parameters:
reference- Your reference for the reversal request. Maximum length: 80 characters.
-
includeNullValues
public PaymentReversalRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaymentReversalRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-