import { CreateAmount } from './Amount.ts'; import { PaymentMethod } from './Payment.ts'; import { Customer } from './Customer.ts'; import { PostalAddress } from './Address.ts'; import { ResponseProduct } from './Product.ts'; import { Stats } from '../shared/index.ts'; export type OrderCreateOptions = { serviceId: string; description?: string; reference?: string; expire?: Date; returnUrl?: string; exchangeUrl?: string; amount: CreateAmount; paymentMethod?: PaymentMethod; integration?: { test?: boolean; pointOfInteraction?: string; }; optimize?: Optimize; customer?: Customer; order?: { countryCode?: string; deliveryDate?: Date; invoiceDate?: Date; deliveryAddress?: PostalAddress; invoiceAddress?: PostalAddress; products?: ResponseProduct[]; }; notification?: { type?: 'push' | 'email'; recipient?: string; }; stats?: Stats; transferData?: Record; }; type Optimize = { flow?: 'fastCheckout'; shippingAddress?: boolean; billingAddress?: boolean; contactDetails?: boolean; mcc?: string; collectorAccount?: { method: string; iban: { iban: string; bic: string; owner: string; }; }; collectorCompany?: { id: string; name: string; countryCode: string; }; }; export {};