Class: module:models/Order

module:models/Order()

new module:models/Order()

Constructs a new Order. Document representing an order.

Source:

Members

(readonly) ChannelTypeEnum :String

Allowed values for the channel_type property.

Type:
  • String
Source:

(readonly) ConfirmationStatusEnum :String

Allowed values for the confirmation_status property.

Type:
  • String
Source:

(readonly) ExportStatusEnum :String

Allowed values for the export_status property.

Type:
  • String
Source:

(readonly) PaymentStatusEnum :String

Allowed values for the payment_status property.

Type:
  • String
Source:

(readonly) ShippingStatusEnum :String

Allowed values for the shipping_status property.

Type:
  • String
Source:

(readonly) StatusEnum :String

Allowed values for the status property.

Type:
  • String
Source:

(readonly) TaxationEnum :String

Allowed values for the taxation property.

Type:
  • String
Source:

(inner) adjusted_merchandize_total_tax :Number

The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added.

Type:
  • Number
Source:

(inner) adjusted_shipping_total_tax :Number

The tax of all shipping line items of the line item container after shipping adjustments have been applied.

Type:
  • Number
Source:

(inner) billing_address :module:models/OrderAddress

The billing address. This property is part of basket checkout information only.

Type:
Source:

(inner) bonus_discount_line_items :Array.<module:models/BonusDiscountLineItem>

The bonus discount line items of the line item container.

Type:
Source:

(inner, constant) callcenter

value: "callcenter"

Source:

(inner, constant) cancelled

value: "cancelled"

Source:

(inner) channel_type :module:models/Order.ChannelTypeEnum

The sales channel for the order.

Type:
  • module:models/Order.ChannelTypeEnum
Source:

(inner, constant) completed

value: "completed"

Source:

(inner) confirmation_status :module:models/Order.ConfirmationStatusEnum

The confirmation status of the order.

Type:
  • module:models/Order.ConfirmationStatusEnum
Source:

(inner, constant) confirmed

value: "confirmed"

Source:

(inner) coupon_items :Array.<module:models/CouponItem>

The sorted array of coupon items. This array can be empty.

Type:
Source:

(inner, constant) created

value: "created"

Source:

(inner) created_by :String

The name of the user who created the order.

Type:
  • String
Source:

(inner) creation_date :Date

Returns the value of attribute 'creationDate'.

Type:
  • Date
Source:

(inner) currency :String

The ISO 4217 mnemonic code of the currency.

Type:
  • String
Source:

(inner) customer_info :module:models/CustomerInfo

The customer information for logged in customers. This property is part of basket checkout information only.

Type:
Source:

(inner) customer_name :String

The name of the customer associated with this order.

Type:
  • String
Source:

(inner, constant) customerservicecenter

value: "customerservicecenter"

Source:

(inner, constant) dss

value: "dss"

Source:

(inner) export_status :module:models/Order.ExportStatusEnum

The export status of the order.

Type:
  • module:models/Order.ExportStatusEnum
Source:

(inner, constant) exported

value: "exported"

Source:

(inner) external_order_status :String

The external status of the order.

Type:
  • String
Source:

(inner, constant) facebookads

value: "facebookads"

Source:

(inner, constant) failed

value: "failed"

Source:

(inner, constant) failed

value: "failed"

Source:

(inner) gift_certificate_items :Array.<module:models/GiftCertificateItem>

The sorted array of gift certificate line items. This array can be empty.

Type:
Source:

(inner) global_party_id :String

globalPartyId is managed by Customer 360. Its value can be changed.

Type:
  • String
Source:

(inner, constant) gross

value: "gross"

Source:

(inner, constant) instagramcommerce

value: "instagramcommerce"

Source:

(inner) last_modified :Date

Returns the value of attribute 'lastModified'.

Type:
  • Date
Source:

(inner, constant) marketplace

value: "marketplace"

Source:

(inner) merchandize_total_tax :Number

The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added.

Type:
  • Number
Source:

(inner, constant) net

value: "net"

Source:

(inner, constant) new

value: "new"

Source:

(inner, constant) not_confirmed

value: "not_confirmed"

Source:

(inner, constant) not_exported

value: "not_exported"

Source:

(inner, constant) not_paid

value: "not_paid"

Source:

(inner, constant) not_shipped

value: "not_shipped"

Source:

(inner) notes :module:models/SimpleLink

The notes for the line item container.

Type:
Source:

(inner, constant) onlinereservation

value: "onlinereservation"

Source:

(inner, constant) open

value: "open"

Source:

(inner) order_no :String

The order number of the order.

Type:
  • String
Source:

(inner) order_price_adjustments :Array.<module:models/PriceAdjustment>

The array of order level price adjustments. This array can be empty.

Type:
Source:

(inner) order_token :String

The order token used to secure the lookup of an order on base of the plain order number. The order token contains only URL safe characters.

Type:
  • String
Source:

(inner) order_total :Number

The total price of the order, including products, shipping and tax. This property is part of basket checkout information only.

Type:
  • Number
Source:

(inner, constant) paid

value: "paid"

Source:

(inner, constant) part_paid

value: "part_paid"

Source:

(inner, constant) part_shipped

value: "part_shipped"

Source:

(inner) payment_instruments :Array.<module:models/OrderPaymentInstrument>

The payment instruments list for the order.

Type:
Source:

(inner) payment_status :module:models/Order.PaymentStatusEnum

The payment status of the order.

Type:
  • module:models/Order.PaymentStatusEnum
Source:

(inner, constant) pinterest

value: "pinterest"

Source:

(inner) product_items :Array.<module:models/ProductItem>

The sorted array of product items (up to a maximum of 50 items). This array can be empty.

Type:
Source:

(inner) product_sub_total :Number

The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross.

Type:
  • Number
Source:

(inner) product_total :Number

The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross.

Type:
  • Number
Source:

(inner, constant) ready

value: "ready"

Source:

(inner, constant) replaced

value: "replaced"

Source:

(inner) shipments :Array.<module:models/Shipment>

The array of shipments. This property is part of basket checkout information only.

Type:
Source:

(inner, constant) shipped

value: "shipped"

Source:

(inner) shipping_items :Array.<module:models/ShippingItem>

The sorted array of shipping items. This array can be empty.

Type:
Source:

(inner) shipping_status :module:models/Order.ShippingStatusEnum

The shipping status of the order.

Type:
  • module:models/Order.ShippingStatusEnum
Source:

(inner) shipping_total :Number

The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only.

Type:
  • Number
Source:

(inner) shipping_total_tax :Number

The tax of all shipping line items of the line item container before shipping adjustments have been applied.

Type:
  • Number
Source:

(inner) site_id :String

The site where the order resides.

Type:
  • String
Source:

(inner) source_code :String

Gets the source code assigned to this basket.

Type:
  • String
Source:

(inner) status :module:models/Order.StatusEnum

The status of the order.

Type:
  • module:models/Order.StatusEnum
Source:

(inner, constant) store

value: "store"

Source:

(inner, constant) storefront

value: "storefront"

Source:

(inner, constant) subscriptions

value: "subscriptions"

Source:

(inner) tax_total :Number

The total tax amount of the order. This property is part of basket checkout information only.

Type:
  • Number
Source:

(inner) taxation :module:models/Order.TaxationEnum

The taxation the line item container is based on.

Type:
  • module:models/Order.TaxationEnum
Source:

(inner, constant) twitter

value: "twitter"

Source:

Methods

(static) constructFromObject(data, obj) → {module:models/Order}

Constructs a Order from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/Order

Optional instance to populate.

Source:
Returns:

The populated Order instance.

Type
module:models/Order