Skip to main content
Skip to main content

updateRuleTypes - Pricing Module Reference

This documentation provides a reference to the updateRuleTypes method. This belongs to the Pricing Module.

This method is used to update existing rule types with the provided data.

Example

const ruleTypes = await pricingModuleService.updateRuleTypes([
{
id: "rul-typ_123",
name: "Region",
},
{
id: "rul-typ_321",
name: "Customer Group",
},
])

Parameters

dataUpdateRuleTypeDTO[]Required
The rule types to update, each having the attributes that should be updated in a rule type.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<RuleTypeDTO[]>Required
The list of updated rule types.
Was this section helpful?