@acceleratxr/core_sdk / Order
Class: Order#
A detailed list of products and services that a customer wishes to or has purchased.
REQUIRES: Purchasing Services
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
-
↳ Order
Index#
Constructors#
Properties#
Accessors#
Constructors#
constructor#
+ new Order(other?: any): Order
Overrides EntityBase.constructor
Defined in src/models/Order.ts:72
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Order
Properties#
dateCreated#
• dateCreated: Date = new Date()
Inherited from EntityBase.dateCreated
Defined in src/EntityBase.ts:18
The date and time that the object was created.
dateModified#
• dateModified: Date = new Date()
Inherited from EntityBase.dateModified
Defined in src/EntityBase.ts:23
The date and time that the object was last modified.
id#
• id: number = 0
Defined in src/models/Order.ts:32
The unique order number.
items#
• items: Array<OrderItem> = []
Defined in src/models/Order.ts:37
The list of all items of products and services included.
promoCode#
• Optional promoCode: undefined | string = undefined
Defined in src/models/Order.ts:42
The unique identifier of the promotional code to apply to this order.
referral#
• referral: string = “”
Defined in src/models/Order.ts:47
The unique identifier of the third party that referred this subscription sale.
status#
• status: OrderStatus = OrderStatus.CREATED
Defined in src/models/Order.ts:67
The current processing status of the order.
subtotal#
• subtotal: number = 0
Defined in src/models/Order.ts:52
The sum amount of all items listed in the order.
tax#
• tax: number = 0
Defined in src/models/Order.ts:57
The tax to apply, if applicable, expressed as a percent.
total#
• total: number = 0
Defined in src/models/Order.ts:62
The total amount to be paid.
uid#
• uid: string = uuid.v4()
Inherited from EntityBase.uid
Defined in src/EntityBase.ts:13
The universally unique identifier of the object.
version#
• version: number = 0
Inherited from EntityBase.version
Defined in src/EntityBase.ts:28
The optimistic locking version of the object.
walletUid#
• walletUid: string = “”
Defined in src/models/Order.ts:72
The unique identifier of the wallet that wants to purchase the order.
Accessors#
ClassName#
• Staticget ClassName(): string
Defined in src/models/Order.ts:27
Returns: string