Functions
create
- create(cartId: string, cartVersion: number, orderNumber: string | null, token: string): Promise<Order>
-
Parameters
-
cartId: string
-
cartVersion: number
-
orderNumber: string | null
-
token: string
Returns Promise<Order>
fetchAll
- fetchAll(token: string, isAdmin?: boolean, options?: QueryOptions): Promise<PaginatedOrderResult>
-
Parameters
-
token: string
-
Default value isAdmin: boolean = false
-
Default value options: QueryOptions = {}
Returns Promise<PaginatedOrderResult>
findById
- findById(orderId: string, token: string, isAdmin?: boolean): Promise<Order>
-
Parameters
-
orderId: string
-
token: string
-
Default value isAdmin: boolean = false
Returns Promise<Order>
remove
- remove(orderId: string, orderVersion: number, token: string): Promise<Order>
-
Parameters
-
orderId: string
-
orderVersion: number
-
token: string
Returns Promise<Order>
update
- update(orderId: string, orderVersion: number, actions: UpdateAction[], token: string): Promise<Order>
-
Parameters
-
orderId: string
-
orderVersion: number
-
actions: UpdateAction[]
-
token: string
Returns Promise<Order>