import { AbstractPaymentProcessor, Logger, PaymentProcessorContext, PaymentProcessorError, PaymentProcessorSessionResponse, PaymentSessionStatus } from "@medusajs/medusa"; import buildApi from "../utils/api"; import { InitiatePaymentResponse } from "../types"; declare abstract class AutopayBase extends AbstractPaymentProcessor { static identifier: string; protected readonly logger: Logger; protected readonly $api: ReturnType; private readonly settings_; constructor(container: any, settings: any); capturePayment(paymentSessionData: Record): Promise | PaymentProcessorError>; authorizePayment(paymentSessionData: Record, context: Record): Promise; }>; cancelPayment(paymentSessionData: Record): Promise | PaymentProcessorError>; private generateAutopayParameters; verifyWebhookHash({ cartId, hash, currency, total, gatewayId, }: { cartId: string; hash: string; total: number; currency: string; gatewayId?: number; }): boolean; listGateway(currency: string): Promise<[{ gatewayID: number; gatewayName: string; gatewayType: string; bankName: string; iconURL: string; state: string; stateDate: string; gatewayDescription: string; /** * Required Autopay options: * { * general_key: "", * service_id: "", * autopay_url: "", * } */ inBalanceAllowed: boolean; currencyList: { currency: string; }[]; }]>; sendInitialPaymentData({ cartId, gatewayId, total, currency, }: { cartId: string; total: number; gatewayId?: number; currency: string; }): Promise; initiatePayment(context: PaymentProcessorContext): Promise; buildConfirmationXml({ cartId, confirmed, }: { cartId: string; confirmed: boolean; }): string; getPaymentStatus(sessionData: Record): Promise; deletePayment(paymentSessionData: Record): Promise | PaymentProcessorError>; refundPayment(paymentSessionData: Record, refundAmount: number): Promise | PaymentProcessorError>; retrievePayment(paymentSessionData: Record): Promise | PaymentProcessorError>; updatePayment(context: PaymentProcessorContext): Promise; updatePaymentData(sessionId: string, data: Record): Promise | PaymentProcessorError>; } export default AutopayBase;