import { PaymentProvider } from "@classytic/revenue"; import { CreateIntentParams, PaymentIntent, PaymentResult, ProviderCapabilities, RefundResult, WebhookEvent } from "@classytic/primitives/payment-gateway"; //#region src/index.d.ts /** * Configuration options for ManualProvider */ interface ManualProviderConfig { [key: string]: unknown; } /** * Refund options for manual refunds */ interface ManualRefundOptions { currency?: string; reason?: string; metadata?: Record; } /** * Manual Payment Provider * Reference implementation for building payment providers * Perfect for: Cash, bank transfers, mobile money without API */ declare class ManualProvider extends PaymentProvider { readonly name: string; constructor(config?: ManualProviderConfig); /** * Create manual payment intent * Returns instructions for manual payment */ createIntent(params: CreateIntentParams): Promise; /** * Verify manual payment * For manual provider, verification is done by admin approval * When admin calls revenue.payments.verify(), this confirms the payment */ verifyPayment(intentId: string): Promise; /** * Get payment status */ getStatus(intentId: string): Promise; /** * Refund manual payment */ refund(_paymentId: string, amount?: number | null, options?: ManualRefundOptions): Promise; /** * Manual provider doesn't support webhooks */ handleWebhook(_payload: unknown, _headers?: Record): Promise; /** * Get provider capabilities */ getCapabilities(): ProviderCapabilities; /** * Generate payment instructions for customer * @private */ private _getPaymentInstructions; } //#endregion export { ManualProvider, ManualProvider as default, ManualProviderConfig, ManualRefundOptions }; //# sourceMappingURL=index.d.mts.map