Package com.adyen.model.checkout
Class StandalonePaymentCancelRequest
- java.lang.Object
-
- com.adyen.model.checkout.StandalonePaymentCancelRequest
-
public class StandalonePaymentCancelRequest extends Object
StandalonePaymentCancelRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APPLICATION_INFOstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_REFERENCEstatic StringJSON_PROPERTY_REFERENCE
-
Constructor Summary
Constructors Constructor Description StandalonePaymentCancelRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StandalonePaymentCancelRequestapplicationInfo(ApplicationInfo applicationInfo)applicationInfobooleanequals(Object o)Return true if this StandalonePaymentCancelRequest object is equal to o.static StandalonePaymentCancelRequestfromJson(String jsonString)Create an instance of StandalonePaymentCancelRequest given an JSON stringApplicationInfogetApplicationInfo()applicationInfoStringgetMerchantAccount()The merchant account that is used to process the payment.StringgetPaymentReference()The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.StringgetReference()Your reference for the cancel request.inthashCode()StandalonePaymentCancelRequestmerchantAccount(String merchantAccount)The merchant account that is used to process the payment.StandalonePaymentCancelRequestpaymentReference(String paymentReference)The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.StandalonePaymentCancelRequestreference(String reference)Your reference for the cancel request.voidsetApplicationInfo(ApplicationInfo applicationInfo)applicationInfovoidsetMerchantAccount(String merchantAccount)The merchant account that is used to process the payment.voidsetPaymentReference(String paymentReference)The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.voidsetReference(String reference)Your reference for the cancel request.StringtoJson()Convert an instance of StandalonePaymentCancelRequest 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_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
applicationInfo
public StandalonePaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo)
applicationInfo- Parameters:
applicationInfo-- Returns:
- the current
StandalonePaymentCancelRequestinstance, allowing for method chaining
-
getApplicationInfo
public ApplicationInfo getApplicationInfo()
applicationInfo- Returns:
- applicationInfo
-
setApplicationInfo
public void setApplicationInfo(ApplicationInfo applicationInfo)
applicationInfo- Parameters:
applicationInfo-
-
merchantAccount
public StandalonePaymentCancelRequest merchantAccount(String merchantAccount)
The merchant account that is used to process the payment.- Parameters:
merchantAccount-- Returns:
- the current
StandalonePaymentCancelRequestinstance, allowing for method chaining
-
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-
-
paymentReference
public StandalonePaymentCancelRequest paymentReference(String paymentReference)
The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.- Parameters:
paymentReference-- Returns:
- the current
StandalonePaymentCancelRequestinstance, allowing for method chaining
-
getPaymentReference
public String getPaymentReference()
The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.- Returns:
- paymentReference
-
setPaymentReference
public void setPaymentReference(String paymentReference)
The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.- Parameters:
paymentReference-
-
reference
public StandalonePaymentCancelRequest reference(String reference)
Your reference for the cancel request. Maximum length: 80 characters.- Parameters:
reference-- Returns:
- the current
StandalonePaymentCancelRequestinstance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the cancel request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the cancel request. Maximum length: 80 characters.- Parameters:
reference-
-
equals
public boolean equals(Object o)
Return true if this StandalonePaymentCancelRequest object is equal to o.
-
fromJson
public static StandalonePaymentCancelRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StandalonePaymentCancelRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StandalonePaymentCancelRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StandalonePaymentCancelRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StandalonePaymentCancelRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-