uStoreProvider services orders - XMPieLab/uStore-NG GitHub Wiki
- Orders
-
Represent the orders logic and API in the system
-
CartIndicatorModel :
Object -
Provides information about the cart items count.
-
UserOrdersSummaryModel :
Object -
Provides a user's summary of orders.
Represent the orders logic and API in the system
Kind: global class
orders.loadUserOrdersSummary() ⇒ UserOrdersSummaryModel | null
Set state.userOrdersSummary with the summary of the orders of the currently logged in user.
Kind: instance method of Orders
Returns: UserOrdersSummaryModel | null - - if the store require order approval then the summary else null
orders.loadCartItemsCount() ⇒ CartIndicatorModel
Set state.cartItemsCount information about the cart items count.
Kind: instance method of Orders
Returns: CartIndicatorModel - Returns the cart items count.
Provides information about the cart items count.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| ItemsCount | number |
The total number of items in the cart. |
Provides a user's summary of orders.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| RejectedOrderCount | number |
The number of rejected orders of the user. |
| PendingApprovalOrderCount | number |
The number of orders pending for approval by the user. |