import Stripe from 'stripe'; import { BigNumberInput } from '@medusajs/framework/types'; import { PayoutWebhookAction } from './events'; export type ProcessPayoutInput = { amount: BigNumberInput; currency: string; account_reference_id: string; transaction_id: string; source_transaction: string; }; export type ReversePayoutInput = { transfer_id: string; amount: BigNumberInput; currency: string; }; export type ProcessPayoutResponse = { data: Record; }; export type CreatePayoutAccountInput = { context: Record; account_id: string; }; export type CreatePayoutAccountResponse = { data: Record; id: string; }; export type PayoutWebhookActionPayload = { data: Record; rawData: string | Buffer; headers: Record; }; export type PayoutWebhookActionAndDataResponse = { action: PayoutWebhookAction; data: { account_id: string; }; }; export type InitializeOnboardingResponse = { data: Record; }; export interface IPayoutProvider { createPayout(input: ProcessPayoutInput): Promise; createPayoutAccount(input: CreatePayoutAccountInput): Promise; reversePayout(input: ReversePayoutInput): Promise; /** * Initialize the onboarding process for a payout account. */ initializeOnboarding(accountId: string, context: Record): Promise; getAccount(accountId: string): Promise; getWebhookActionAndData(payload: PayoutWebhookActionPayload): Promise; } //# sourceMappingURL=provider.d.ts.map