import type { RequestData } from "../types_internal.js"; import type { CancelPaymentResponse, CaptureModificationRequest, CapturePaymentResponse, CreatePaymentRequest, CreatePaymentResponse, ForceApprove, ForceApproveResponse, GetPaymentEventLogResponse, GetPaymentResponse, Problem, RefundModificationRequest, RefundPaymentResponse } from "../types_external.js"; /** * Factory object for creating ePayment API requests. */ export declare const ePaymentRequestFactory: { /** * Creates a new payment. * * @param token - The authentication token. * @param body - The request body containing the payment details. * @returns A `CreatePaymentResponse` or `EPaymentErrorResponse` object. */ create: (token: string, body: CreatePaymentRequest) => RequestData; /** * Retrieves information about a payment. * * @param token - The authentication token. * @param reference - The reference of the payment. * @returns A `GetPaymentResponse` or `Problem` object. */ info: (token: string, reference: string) => RequestData; /** * Retrieves the history for a payment. * * @param token - The authentication token. * @param reference - The reference of the payment. * @returns A `GetPaymentEventLogResponse` or `EPaymentErrorResponse` object. */ history: (token: string, reference: string) => RequestData; /** * Cancels a payment. * * @param token - The authentication token. * @param reference - The reference of the payment to cancel. * @returns A `CancelPaymentResponse` or `Problem` object. */ cancel: (token: string, reference: string) => RequestData; /** * Capture a payment. * * @param token - The authentication token. * @param reference - The reference of the payment. * @param body - The modification request body. * @returns A `CapturePaymentResponse` or `Problem` object. */ capture: (token: string, reference: string, body: CaptureModificationRequest) => RequestData; /** * Refunds a payment. * * @param token - The authentication token. * @param reference - The reference of the payment to be refunded. * @param body - The request body containing the modification details. * @returns A `RefundPaymentResponse` or `Problem` object. */ refund: (token: string, reference: string, body: RefundModificationRequest) => RequestData; /** * Forces the approval of a payment. Only available in the test environment. * * @param token - The authentication token. * @param reference - The reference of the payment. * @param body - The request body containing additional information. * @returns ForceApproveResponse or a `Problem` object. */ forceApprove: (token: string, reference: string, body: ForceApprove) => RequestData; }; //# sourceMappingURL=epayment.d.ts.map