import { ResponseAmount } from './Amount.ts'; import { Payment } from './Payment.ts'; import { NewAddress } from './Address.ts'; import { Company } from './Customer.ts'; import { Stats } from '../shared/index.ts'; import { SplitPayment } from './SplitPayment.ts'; export type Order = { id: string; type: string; serviceId: string; description: string | null; reference: string | null; manualTransferCode: string; orderId: string; uuid: string; customerKey: string | null; status: { code: number | null; action: string | null; }; receipt: string | null; integration: { pointOfInteraction: string | null; test: boolean; }; splitPayments: SplitPayment[]; stats: Stats; transferData: Record; amount: ResponseAmount; authorizedAmount: ResponseAmount; capturedAmount: ResponseAmount; checkoutData: null | { customer: { email: string | null; firstName: string | null; lastName: string | null; dateOfBirth: string | null; gender: string | null; phone: string | null; locale: string | null; ipAddress: string | null; reference: string | null; company: Company; }; billingAddress: NewAddress; shippingAddress: NewAddress; }; payments: Payment[]; createdAt: string; createdBy: string | null; modifiedAt: string; modifiedBy: string | null; expiresAt: string; completedAt: string | null; links: Links; }; type Links = { status: string; abort: string; approve?: string; decline?: string; void?: string; capture?: string; captureAmount?: string; captureProducts?: string; debug?: string; checkout?: string; redirect: string; }; export {};