Package com.adyen.service.checkout
Class ModificationsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.checkout.ModificationsApi
-
public class ModificationsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description ModificationsApi(Client client)Modifications constructor inpackage.ModificationsApi(Client client, String baseURL)Modifications constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandalonePaymentCancelResponsecancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest)Cancel an authorised paymentStandalonePaymentCancelResponsecancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest, RequestOptions requestOptions)Cancel an authorised paymentPaymentCancelResponsecancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest)Cancel an authorised paymentPaymentCancelResponsecancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest, RequestOptions requestOptions)Cancel an authorised paymentPaymentCaptureResponsecaptureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest)Capture an authorised paymentPaymentCaptureResponsecaptureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest, RequestOptions requestOptions)Capture an authorised paymentPaymentRefundResponserefundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest)Refund a captured paymentPaymentRefundResponserefundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest, RequestOptions requestOptions)Refund a captured paymentPaymentReversalResponserefundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest)Refund or cancel a paymentPaymentReversalResponserefundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest, RequestOptions requestOptions)Refund or cancel a paymentPaymentAmountUpdateResponseupdateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest)Update an authorised amountPaymentAmountUpdateResponseupdateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest, RequestOptions requestOptions)Update an authorised amount-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
ModificationsApi
public ModificationsApi(Client client)
Modifications constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
cancelAuthorisedPayment
public StandalonePaymentCancelResponse cancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest) throws ApiException, IOException
Cancel an authorised payment- Parameters:
standalonePaymentCancelRequest-StandalonePaymentCancelRequest(required)- Returns:
StandalonePaymentCancelResponse- Throws:
ApiException- if fails to make API callIOException
-
cancelAuthorisedPayment
public StandalonePaymentCancelResponse cancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest, RequestOptions requestOptions) throws ApiException, IOException
Cancel an authorised payment- Parameters:
standalonePaymentCancelRequest-StandalonePaymentCancelRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
StandalonePaymentCancelResponse- Throws:
ApiException- if fails to make API callIOException
-
cancelAuthorisedPaymentByPspReference
public PaymentCancelResponse cancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest) throws ApiException, IOException
Cancel an authorised payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to cancel. (required)paymentCancelRequest-PaymentCancelRequest(required)- Returns:
PaymentCancelResponse- Throws:
ApiException- if fails to make API callIOException
-
cancelAuthorisedPaymentByPspReference
public PaymentCancelResponse cancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest, RequestOptions requestOptions) throws ApiException, IOException
Cancel an authorised payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to cancel. (required)paymentCancelRequest-PaymentCancelRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentCancelResponse- Throws:
ApiException- if fails to make API callIOException
-
captureAuthorisedPayment
public PaymentCaptureResponse captureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest) throws ApiException, IOException
Capture an authorised payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture. (required)paymentCaptureRequest-PaymentCaptureRequest(required)- Returns:
PaymentCaptureResponse- Throws:
ApiException- if fails to make API callIOException
-
captureAuthorisedPayment
public PaymentCaptureResponse captureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest, RequestOptions requestOptions) throws ApiException, IOException
Capture an authorised payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture. (required)paymentCaptureRequest-PaymentCaptureRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentCaptureResponse- Throws:
ApiException- if fails to make API callIOException
-
refundCapturedPayment
public PaymentRefundResponse refundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest) throws ApiException, IOException
Refund a captured payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to refund. (required)paymentRefundRequest-PaymentRefundRequest(required)- Returns:
PaymentRefundResponse- Throws:
ApiException- if fails to make API callIOException
-
refundCapturedPayment
public PaymentRefundResponse refundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest, RequestOptions requestOptions) throws ApiException, IOException
Refund a captured payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to refund. (required)paymentRefundRequest-PaymentRefundRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentRefundResponse- Throws:
ApiException- if fails to make API callIOException
-
refundOrCancelPayment
public PaymentReversalResponse refundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest) throws ApiException, IOException
Refund or cancel a payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to reverse. (required)paymentReversalRequest-PaymentReversalRequest(required)- Returns:
PaymentReversalResponse- Throws:
ApiException- if fails to make API callIOException
-
refundOrCancelPayment
public PaymentReversalResponse refundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest, RequestOptions requestOptions) throws ApiException, IOException
Refund or cancel a payment- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to reverse. (required)paymentReversalRequest-PaymentReversalRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentReversalResponse- Throws:
ApiException- if fails to make API callIOException
-
updateAuthorisedAmount
public PaymentAmountUpdateResponse updateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest) throws ApiException, IOException
Update an authorised amount- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment. (required)paymentAmountUpdateRequest-PaymentAmountUpdateRequest(required)- Returns:
PaymentAmountUpdateResponse- Throws:
ApiException- if fails to make API callIOException
-
updateAuthorisedAmount
public PaymentAmountUpdateResponse updateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException
Update an authorised amount- Parameters:
paymentPspReference-StringThe [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment. (required)paymentAmountUpdateRequest-PaymentAmountUpdateRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentAmountUpdateResponse- Throws:
ApiException- if fails to make API callIOException
-
-