import { IAddressesDoc, IAssigneeDoc, IBillToDoc, ICustomAttribute, ICustomerInvoiceIdDoc, ICustomerOrderIdDoc, IDueDateDoc, IEmailAddressesDoc, IEntity, IModuleAssociationsDoc, IModuleLink, IMultitoolActionItemsDoc, INextActionDateDoc, IOption, IOrderTypeDoc, IPhoneNumbersDoc, IShippingCarrierDoc, ITagsDoc, ModuleProperty, UUID, WithoutId } from '../../../core'; import { IOrderItem } from '../OrderItem'; export declare const OrderModuleProperties: ModuleProperty[]; /** @document */ export interface IOrder extends IEntity, IAddressesDoc, IAssigneeDoc, IBillToDoc, ICustomerInvoiceIdDoc, ICustomerOrderIdDoc, IDueDateDoc, IEmailAddressesDoc, IModuleAssociationsDoc, IMultitoolActionItemsDoc, INextActionDateDoc, IOrderTypeDoc, IPhoneNumbersDoc, IShippingCarrierDoc, ITagsDoc { } export interface IOrderAggregate extends IOrder { order_items: IOrderItem[]; } export interface IAddOrderItemDTO { /** * the id of the Order that the Order Item will belong to */ order_id: UUID; /** * this will be used as the module association for the Order Item */ item_link: IModuleLink; /** * the quantity for the Order Items */ quantity: number; /** * the title for the Order Item */ title: string; /** * optionally, override the options to use for the Order Item */ options?: Array>; /** * if the item_link is for a Product, pricing_key can be used to choose a dynamic price from the Product */ pricing_key?: string; /** * add custom attributes to a new order item */ custom_attributes?: Array>; } export interface ICloneOrderItemsDTO { source_order_id: UUID; destination_order_id: UUID; } export interface IOrderItemAddedDTO extends IOrderItem { } export interface IOrderItemsClonedDTO { source_order_id: UUID; destination_order_id: UUID; cloned_order_item_ids: UUID[]; }