export interface Data { [key: string]: any; } export interface OrderData { any: any; } export interface File { id: string | number; name: string; size: number; extension: string; mime_type: string; ttl: number; disk: string; } export interface Good { id: string | number; name: string; type: string; files?: File[]; } export interface Delivery { id: string | number; good_id: string | number; good_revision_id: string | number; order_id: string | number; product_id: string | number; good: Good; product: any; } export interface Order { id: string | number; cart_id: string | number; payment_method_id: string | number; amount: Money; pricing: CartPricing; status: string; customer: any; } export interface Clearing { id: string | number; event: string; origin_type: string; created_at: string; bookings: ReadonlyArray; } export interface Booking { id: string | number; account: string; amount: Money; bookable_type: string; side: string; created_at: string; } export interface Configuration { any: any; } export interface CartPricing { price_type: string; net_shipping: Money; gross_shipping: Money; original_price: Money; net_price: Money; vat_amount: Money; gross_price: Money; discount: Money; shippable: boolean; vat_groups: ReadonlyArray; } export interface Cart { id: number | string; } export interface Coupon { item: any; id: number | string; hashed_id: string; code: string; type: string; scope: 'single' | 'multi' | 'cart'; amount: number; } export interface Money { amount: number; currency: string; } export interface Pricing { price_type: 'gross' | 'net'; product_type: string; net_price: Money; gross_price: Money; net_shipping: Money; gross_shipping: Money; vat_id: number | string; vat_country: string; vat_value: any; vat_amount: Money; vat_category_id: number | string; vat_category_type: string; net_total: Money; gross_total: Money; discount: Money; subscription_cycle?: any; net_subscription_cycle?: any; net_subscription_price?: Money; gross_subscription_price?: Money; net_recurring_price?: Money; gross_recurring_price?: Money; recurring_vat_amount?: Money; net_recurring_total?: Money; gross_recurring_total?: Money; } export interface Product { item: any; id: number | string; hashed_id: string; name: string; image: string; count: number | string; pricing: Pricing; coupon: Coupon; } export interface VatGroup { products: ReadonlyArray; amount: Money; value: number | string; } export interface SessionOptions { endpoint: string; locale: string; username?: string; password?: string; apiKey?: string; }