import { BaseResource } from './BaseResource.js'; import type { RequestOptions, TagadaList } from '../types/common.js'; import type { Payment, PaymentListParams, PaymentProcessParams, PaymentRefundParams, PaymentVoidParams, PaymentDisputeParams } from '../types/payments.js'; export declare class Payments extends BaseResource { /** * List payments with their transactions. Supports cursor-based and * offset-based pagination, filtering by store, status, card, customer, etc. */ list(params?: PaymentListParams, opts?: RequestOptions): Promise>; /** * Retrieve a single payment by its ID, including all transactions. */ retrieve(paymentId: string, opts?: RequestOptions): Promise; /** * Process a new payment. Tagada routes it through your configured payment * flows, cascading across processors automatically — PSP-agnostic. */ process(params: PaymentProcessParams, opts?: RequestOptions): Promise<{ payment: Payment; }>; /** * Continue a paused payment after a client-side action (3DS challenge, * Radar fingerprint, redirect return). Pair with `@tagadapay/core-js` * `PaymentsClient.continuePayment()` on the browser side. */ continue(paymentId: string, opts?: RequestOptions): Promise<{ payment: Payment; }>; /** * Refund one or more payments. Supports partial refunds and dispute metadata. */ refund(params: PaymentRefundParams, opts?: RequestOptions): Promise; /** * Void an authorized payment before capture. */ void(params: PaymentVoidParams, opts?: RequestOptions): Promise; /** * Mark a payment as disputed (chargeback, inquiry, etc.). */ markDisputed(params: PaymentDisputeParams, opts?: RequestOptions): Promise; /** * Update the dispute status on a payment. */ updateDispute(params: PaymentDisputeParams, opts?: RequestOptions): Promise; /** * Get all currencies that have been used in payments for this account. */ currencies(opts?: RequestOptions): Promise<{ currencies: string[]; }>; /** * Get the list of processors available for processing payments. */ processors(opts?: RequestOptions): Promise<{ processors: Array<{ id: string; name: string; type: string; }>; }>; } //# sourceMappingURL=Payments.d.ts.map