listRuleTypes - Pricing Module Reference
This documentation provides a reference to the listRuleTypes
method. This belongs to the Pricing Module.
This method is used to retrieve a paginated list of rule types based on optional filters and configuration.
Example
To retrieve a list of rule types using their IDs:
To specify relations that should be retrieved:
By default, only the first 15
records are retrieved. You can control pagination by specifying the skip
and take
properties of the config
parameter:
Parameters
filters
FilterableRuleTypePropsThe filters to apply on the retrieved rule types.
filters
FilterableRuleTypePropsconfig
FindConfig<RuleTypeDTO>The configurations determining how the rule types are 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 list of rule types.
Was this section helpful?