Skip to main content
Skip to main content

updateShippingOptionRules - Fulfillment Module Reference

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

updateShippingOptionRules(data, sharedContext?): Promise<ShippingOptionRuleDTO[]>

This method updates existing shipping option rules.

Example

const shippingOptionRules =
await fulfillmentModuleService.updateShippingOptionRules([
{
id: "sorul_123",
operator: "in",
},
{
id: "sorul_321",
attribute: "customer_group",
value: "cp_vipgroup",
},
])

Parameters

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

Returns

PromisePromise<ShippingOptionRuleDTO[]>Required
The updated shipping option rules.

updateShippingOptionRules(data, sharedContext?): Promise<ShippingOptionRuleDTO>

This method updates an existing shipping option rule.

Example

const shippingOptionRule =
await fulfillmentModuleService.updateShippingOptionRules({
id: "sorul_123",
operator: "in",
})

Parameters

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

Returns

PromisePromise<ShippingOptionRuleDTO>Required
The updated shipping option rule.
Was this section helpful?