import { IIndexedDeclination } from '../Cart'; import { IExpeditionInfo } from '../Customer'; import { IFilledDimensionUnits } from '../Declination'; export declare enum BookingTypeEnum { ACCESSOIRES = "accessoires", BETON = "beton" } export default interface IBooking { readonly id?: string; readonly by_user: any; readonly shipping_info?: IExpeditionInfo; readonly shipping_date?: Date; readonly billing_info?: IExpeditionInfo; readonly to_client?: any; readonly order?: any; readonly status: BookingStatusEnum; readonly created_at: Date; readonly items: IBookingItem[]; readonly notes?: string; readonly palettes_qty: number; readonly is_pickup: boolean; readonly preparation_date: Date; readonly is_paillis: boolean; readonly is_from_web: boolean; readonly shipping_price: number; readonly shipping_discount?: { percent?: number | null; amount?: number | null; authorisation?: string; } | null; readonly discount_price?: number; readonly discount_percent?: number; readonly project_identifiant?: string; readonly pickup_id?: string; readonly pickup_date?: Date; readonly isBookingOutOfZone?: boolean; readonly extra_zone_fee?: boolean; readonly extra_fee_if_after_date?: boolean; readonly contact_firstname?: string; readonly contact_name?: string; readonly contact_email?: string; readonly contact_phone?: string; readonly type?: BookingTypeEnum; readonly payment_on_reception?: boolean; readonly payment_on_reception_percent?: number; readonly delivery_on_site?: boolean; } export interface IBookingItem { item_name: string; parent_slug: string; item_sku: string; item_price: number; item_reg_price?: number; item_discount: number; item_client_discount?: number; qty: number; units?: IFilledDimensionUnits[]; custom_id?: string; } export declare enum BookingStatusEnum { BOOKING = 0, APPROVING = 1, APPROVED = 2, REFUSED = 3, CANCELLED = 4, DONE = 5 } export interface IBookingFees { pallet?: IIndexedDeclination | undefined; extraFeeOutOfZone?: IIndexedDeclination | undefined; shippingProd?: IIndexedDeclination | undefined; preparationFee?: IIndexedDeclination | undefined; extraFeeAfterDate?: IIndexedDeclination | undefined; }