UNPKG

@adyen/api-library

Version:

The Adyen API Library for NodeJS enables you to work with Adyen APIs.

71 lines (70 loc) 4.71 kB
import Service from "../../service"; import Client from "../../client"; import { IRequest } from "../../typings/requestOptions"; import { PaymentAmountUpdateRequest } from "../../typings/checkout/models"; import { PaymentAmountUpdateResponse } from "../../typings/checkout/models"; import { PaymentCancelRequest } from "../../typings/checkout/models"; import { PaymentCancelResponse } from "../../typings/checkout/models"; import { PaymentCaptureRequest } from "../../typings/checkout/models"; import { PaymentCaptureResponse } from "../../typings/checkout/models"; import { PaymentRefundRequest } from "../../typings/checkout/models"; import { PaymentRefundResponse } from "../../typings/checkout/models"; import { PaymentReversalRequest } from "../../typings/checkout/models"; import { PaymentReversalResponse } from "../../typings/checkout/models"; import { StandalonePaymentCancelRequest } from "../../typings/checkout/models"; import { StandalonePaymentCancelResponse } from "../../typings/checkout/models"; /** * API handler for ModificationsApi */ export declare class ModificationsApi extends Service { private readonly API_BASEPATH; private baseUrl; constructor(client: Client); /** * @summary Cancel an authorised payment * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } * @param requestOptions {@link IRequest.Options } * @return {@link StandalonePaymentCancelResponse } */ cancelAuthorisedPayment(standalonePaymentCancelRequest: StandalonePaymentCancelRequest, requestOptions?: IRequest.Options): Promise<StandalonePaymentCancelResponse>; /** * @summary Cancel an authorised payment * @param paymentPspReference {@link string } The [&#x60;pspReference&#x60;](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to cancel. * @param paymentCancelRequest {@link PaymentCancelRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentCancelResponse } */ cancelAuthorisedPaymentByPspReference(paymentPspReference: string, paymentCancelRequest: PaymentCancelRequest, requestOptions?: IRequest.Options): Promise<PaymentCancelResponse>; /** * @summary Capture an authorised payment * @param paymentPspReference {@link string } The [&#x60;pspReference&#x60;](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture. * @param paymentCaptureRequest {@link PaymentCaptureRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentCaptureResponse } */ captureAuthorisedPayment(paymentPspReference: string, paymentCaptureRequest: PaymentCaptureRequest, requestOptions?: IRequest.Options): Promise<PaymentCaptureResponse>; /** * @summary Refund a captured payment * @param paymentPspReference {@link string } The [&#x60;pspReference&#x60;](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to refund. * @param paymentRefundRequest {@link PaymentRefundRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentRefundResponse } */ refundCapturedPayment(paymentPspReference: string, paymentRefundRequest: PaymentRefundRequest, requestOptions?: IRequest.Options): Promise<PaymentRefundResponse>; /** * @summary Refund or cancel a payment * @param paymentPspReference {@link string } The [&#x60;pspReference&#x60;](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to reverse. * @param paymentReversalRequest {@link PaymentReversalRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentReversalResponse } */ refundOrCancelPayment(paymentPspReference: string, paymentReversalRequest: PaymentReversalRequest, requestOptions?: IRequest.Options): Promise<PaymentReversalResponse>; /** * @summary Update an authorised amount * @param paymentPspReference {@link string } The [&#x60;pspReference&#x60;](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment. * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentAmountUpdateResponse } */ updateAuthorisedAmount(paymentPspReference: string, paymentAmountUpdateRequest: PaymentAmountUpdateRequest, requestOptions?: IRequest.Options): Promise<PaymentAmountUpdateResponse>; }