Skip to main content
Skip to main content

update - Fulfillment Module Reference

This documentation provides a reference to the update method. This belongs to the Fulfillment Module.

update(data, sharedContext?): Promise<FulfillmentSetDTO[]>

This method updates existing fulfillment sets.

Example

const fulfillmentSets = await fulfillmentModuleService.update(
[
{
id: "fuset_123",
name: "Shipping",
},
{
id: "fuset_321",
name: "Pickup",
},
]
)

Parameters

The attributes to update in the fulfillment sets.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<FulfillmentSetDTO[]>Required
The updated fulfillment sets.

update(data, sharedContext?): Promise<FulfillmentSetDTO>

This method updates an existing fulfillment set.

Example

const fulfillmentSet = await fulfillmentModuleService.update({
id: "fuset_123",
name: "Shipping",
})

Parameters

The attributes to update in the fulfillment set.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<FulfillmentSetDTO>Required
The updated fulfillment set.
Was this section helpful?