Skip to main content
Skip to main content

updateGeoZones - Fulfillment Module Reference

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

updateGeoZones(data, sharedContext?): Promise<GeoZoneDTO[]>

This method updates existing geo zones.

Example

const geoZones =
await fulfillmentModuleService.updateGeoZones([
{
id: "fgz_123",
type: "country",
country_code: "us",
},
{
id: "fgz_321",
type: "city",
province_code: "VT",
},
])

Parameters

dataUpdateGeoZoneDTO[]Required
The attributes to update in the geo zones.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<GeoZoneDTO[]>Required
The updated geo zones.

updateGeoZones(data, sharedContext?): Promise<GeoZoneDTO>

This method updates an existing fulfillment.

Example

const geoZones =
await fulfillmentModuleService.updateGeoZones({
id: "fgz_123",
type: "country",
country_code: "us",
})

Parameters

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

Returns

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