retrieveRuleType - Pricing Module Reference
This documentation provides a reference to the retrieveRuleType
method. This belongs to the Pricing Module.
This method is used to retrieve a rule type by its ID and and optionally based on the provided configurations.
Example
A simple example that retrieves a rule type by its code:
To specify relations that should be retrieved:
Parameters
id
stringRequiredThe ID of the rule type to retrieve.
config
FindConfig<RuleTypeDTO>The configurations determining how the rule type is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a rule type.
config
FindConfig<RuleTypeDTO>select
or relations
, accept the
attributes or relations associated with a rule type.Returns
The retrieved rule type.
Was this section helpful?