Typescript SDK Type Docs
    Preparing search index...

    Interface OrderImport

    Represents the data used to import an Order. Once imported, this data is persisted as an Order in the Project.

    An OrderImport is a snapshot of an order at the time it was imported.
    
    Index

    Properties

    billingAddress?: Address

    Maps to Order.billingAddress.

    completedAt?: string

    Maps to Order.completedAt.

    country?: string

    Maps to Order.country.

    custom?: Custom

    Maps to Order.custom.

    key of the Customer that the Order belongs to. If the referenced Customer does not exist, the state of the ImportOperation will be set to unresolved until the referenced Customer is created.

    customerEmail?: string

    Maps to Order.customerEmail.

    Maps to Order.customerGroup. If the referenced CustomerGroup does not exist, the state of the ImportOperation will be set to unresolved until the referenced CustomerGroup is created.

    customLineItems?: CustomLineItemDraft[]

    Maps to Order.customLineItems

    inventoryMode?: InventoryMode

    Maps to Order.inventoryMode.

    itemShippingAddresses?: Address[]

    Maps to Order.itemShippingAddresses.

    lineItems?: LineItemImportDraft[]

    Maps to Order.lineItems.

    orderNumber: string

    Maps to Order.orderNumber, String that uniquely identifies an order. It should be unique across a project. Once it's set it cannot be changed.

    orderState?: OrderState

    Maps to Order.orderState.

    origin?: CartOrigin

    Maps to Order.origin.

    paymentState?: PaymentState

    Maps to Order.paymentState.

    shipmentState?: ShipmentState

    Maps to Order.shipmentState.

    shippingAddress?: Address

    Maps to Order.shippingAddress.

    Maps to Order.shippingInfo.

    Maps to Order.state. If the referenced State does not exist, the state of the ImportOperation will be set to unresolved until the referenced State is created.

    Maps to Order.store. If the referenced Store does not exist, the state of the ImportOperation will be set to unresolved until the referenced Store is created.

    taxCalculationMode?: TaxCalculationMode

    Maps to Order.taxCalculationMode.

    taxedPrice?: TaxedPrice

    Maps to Order.taxedPrice.

    taxRoundingMode?: RoundingMode

    Maps to Order.taxRoundingMode.

    totalPrice: TypedMoney

    Maps to Order.totalPrice.