- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderLineItems - Order Module Reference
This documentation provides a reference to the updateOrderLineItems
method. This belongs to the Order Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
updateOrderLineItems(data, sharedContext?): Promise<OrderLineItemDTO[]>#
This method updates existing line items. The line item to update is specified by the selector
property of the first parameter.
Example#
Parameters#
The attributes to update in the order line item with selector.
Returns#
Promise
Promise<OrderLineItemDTO[]>The updated line items.
Promise
Promise<OrderLineItemDTO[]>updateOrderLineItems(selector, data, sharedContext?): Promise<OrderLineItemDTO[]>#
This method updates existing line items matching the specified filters.
Example#
Parameters#
selector
Partial<FilterableOrderLineItemProps>The filters specifying which line items to update.
selector
Partial<FilterableOrderLineItemProps>data
Partial<UpdateOrderLineItemDTO>The data to update in the line items.
data
Partial<UpdateOrderLineItemDTO>Returns#
Promise
Promise<OrderLineItemDTO[]>The updated line items.
Promise
Promise<OrderLineItemDTO[]>updateOrderLineItems(lineId, data, sharedContext?): Promise<OrderLineItemDTO>#
This method updates an existing line item.
Example#
Parameters#
lineId
stringThe line items's ID.
data
Partial<UpdateOrderLineItemDTO>The data to update in the line item.
data
Partial<UpdateOrderLineItemDTO>Returns#
Promise
Promise<OrderLineItemDTO>The updated line item.
Promise
Promise<OrderLineItemDTO>Was this page helpful?