- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateReturns - Order Module Reference
This documentation provides a reference to the updateReturns
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.
updateReturns(data, sharedContext?): Promise<ReturnDTO[]>#
This method updates existing returns.
Example#
Parameters#
The filters specifying which returns to update,
and the data to update in them.
Returns#
Promise
Promise<ReturnDTO[]>The updated returns.
Promise
Promise<ReturnDTO[]>updateReturns(selector, data, sharedContext?): Promise<ReturnDTO[]>#
This method updates existing returns matching the specified filters.
Example#
Parameters#
selector
Partial<FilterableReturnProps>The filters specifying which returns to update.
selector
Partial<FilterableReturnProps>data
Partial<UpdateReturnDTO>The data to update in the returns.
data
Partial<UpdateReturnDTO>Returns#
Promise
Promise<ReturnDTO[]>The updated returns.
Promise
Promise<ReturnDTO[]>updateReturns(id, data, sharedContext?): Promise<ReturnDTO>#
This method updates an existing return.
Example#
Parameters#
id
stringThe ID of the return.
data
Partial<UpdateReturnDTO>The data to update.
data
Partial<UpdateReturnDTO>Returns#
Promise
Promise<ReturnDTO>The updated return.
Promise
Promise<ReturnDTO>Was this page helpful?