import { PaymentMethod } from './PaymentMethod.type'; import { PaymentResult } from './PaymentResult.type'; export interface Payment { createdAt: string; updatedAt: string; id: string; status: 'succeeded' | string; amount: number; cart: Cart; currency: string; amountReversed: number; amountCaptured: number; isCaptured: boolean; isRedirectRequired: boolean; isReversed: boolean; isFullyReversed: boolean; isChargebacked: boolean; chargebackRecordedAt?: string; processingOptions: ProcessingOptions; initiator: 'customer' | string; captureMethod: 'manual' | string; captureDelay: number; customer: string; externalId: string; statementDescriptor: string; paymentMethod: PaymentMethod; latestMessage?: string; latestTransaction: Transaction; action: Action; checkoutKey: string; transactions: Transaction[]; } interface Cart { createdAt: string; updatedAt: string; id: string; currency: string; items: LineItem[]; } interface LineItem { createdAt: string; updatedAt: string; id: string; currency: string; amount: number; lineAmount: number; quantity: number; isSubscriptionPending?: boolean; price: Price; } interface Price { createdAt: string; updatedAt: string; id: string; type: 'recurring' | string; name: string; amount: number; currency: string; product: Product; } interface Product { createdAt: string; updatedAt: string; id: string; name: string; description: string; } interface ProcessingOptions { mode: 'cascade' | string; gatewayProfile: GatewayProfile; cascade: Cascade; } interface Cascade { createdAt: string; updatedAt: string; id: string; name: string; description: string; status: 'active' | string; algorithm: 'weightedRoundRobin' | string; } interface GatewayProfile { createdAt: string; updatedAt: string; id: string; title: string; isEnabled: boolean; integration: string; } interface Transaction { createdAt: string; updatedAt: string; id: string; status: PaymentResult; amount: number; amountReversed: number; amountCaptured: number; isReversed: boolean; isFullyReversed: boolean; isCaptureFailed?: boolean; isCaptured: boolean; isChargebacked?: boolean; chargebackRecordedAt?: string; currency: string; processor: string; processorId: string; outcome: TransactionOutcome; gatewayProfile: GatewayProfile; customer: string; paymentMethod: string; } interface TransactionOutcome { status: string; errorCode?: string; errorMessage?: string; safeErrorMessage?: string; specialCode?: string; processorCode?: string; processorMessage?: string; } interface Action { redirectUrl: string; redirectData?: Record; } export {}; //# sourceMappingURL=Payment.type.d.ts.map