@gradientedge/commercetools-utils
    Preparing search index...

    Interface OrderImportDraft

    A snapshot of an Order at the time it was imported.

    Index

    Properties

    billingAddress?: _BaseAddress

    Billing address associated with the Order.

    ResourceIdentifier to the Business Unit the Order should belong to. When the customerId of the Order is also set, the Customer must be an Associate of the Business Unit. Only available for B2B-enabled Projects.

    completedAt?: string

    User-defined date and time for the Order. This value does not influence the createdAt or lastModifiedAt values of the Order created by the Order Import.

    country?: string

    Include a value to associate a country with the Order.

    Custom Fields for the Order.

    customerEmail?: string

    The Email address of the Customer the Order belongs to. Can be used instead of customerId when no check against existing Customers is required.

    The Customer Group of the Customer the Order belongs to.

    customerId?: string

    The id of the Customer the Order belongs to.

    customLineItems?: CustomLineItemImportDraft[]

    Custom Line Items to add to the Cart.

    If not specified, `lineItems` must not be empty.
    
    inventoryMode?: InventoryMode

    Determines how stock quantities are tracked for Line Items in the Cart.

    itemShippingAddresses?: BaseAddress[]

    Addresses for Orders with multiple shipping addresses. Addresses must include a value for key.

    lineItems?: LineItemImportDraft[]

    Line Items to add to the Order.

    If not specified, `customLineItems` must not be empty.
    
    orderNumber?: string

    User-defined identifier of the Order. Must be unique across a Project. Once set, the value cannot be changed.

    orderState?: OrderState

    Current status of the Order.

    origin?: CartOrigin

    Indicates the origin of the Order.

    paymentInfo?: PaymentInfo

    Payment information associated with the Order.

    paymentState?: PaymentState

    Payment status of the Order.

    priceRoundingMode?: RoundingMode

    Determines how the total prices on LineItems and CustomLineItems are rounded when calculated.

    purchaseOrderNumber?: string

    User-defined identifier for a purchase Order.

    shipmentState?: ShipmentState

    Shipment status of the Order.

    shippingAddress?: _BaseAddress

    Shipping address associated with the Order.

    Shipping-related information of the Order.

    State of the Order in a custom workflow.

    The Store the Order belongs to. Used for filtering.

    If a [LineItemImportDraft](ctp:api:type:LineItemImportDraft) or a [CustomLineItemImportDraft](ctp:api:type:CustomLineItemImportDraft) specifies a `distributionChannel` or a `supplyChannel` that is not defined for the referenced Store, the Order Import gets rejected.
    The same applies when the provided `country` is not defined for the referenced Store.
    
    taxCalculationMode?: TaxCalculationMode

    Determines how taxes are calculated for taxedPrice.

    taxedPrice?: TaxedPriceDraft

    Include TaxedPrice information for the Order. If not included, and if you have Tax Rates set for Line Items and Custom Line Items, the Order total will not be recalculated.

    taxRoundingMode?: RoundingMode

    Determines how monetary values are rounded when calculating taxes for taxedPrice.

    totalPrice: _Money

    The total Price of the Order. The amount can be negative.