Skip to main content
Skip to main content

updateServiceZones - Fulfillment Module Reference

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

updateServiceZones(id, data, sharedContext?): Promise<ServiceZoneDTO>

This method updates an existing service zone.

Example

const serviceZone =
await fulfillmentModuleService.updateServiceZones(
"serzo_123",
{
name: "US",
}
)

Parameters

idstringRequired
The ID of the service zone.
The attributes to update in the service zone.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ServiceZoneDTO>Required
The updated service zone.

updateServiceZones(selector, data, sharedContext?): Promise<ServiceZoneDTO[]>

This method updates existing service zones matching the specified filters.

Example

const serviceZones =
await fulfillmentModuleService.updateServiceZones(
{
id: ["serzo_123", "serzo_321"],
},
{
name: "US",
}
)

Parameters

The filters specifying which service zones to update.
The attributes to update in the service zone.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ServiceZoneDTO[]>Required
The updated service zones.
Was this section helpful?