Macro Function

Note: You can use these components in a price plan or in a refill plan (refill logic) but not in a charging plan.

The Macro Function component allows you to use an existing pricing macro to calculate a final amount. Because a pricing macro cannot be inserted in a decision tree, you must use a Macro Function:

The Macro Function uses the properties of the plan to provide the values to the pricing macro.

Use

You use the Macro Function to integrate an existing pricing macro at the end of a decision tree branch. The amount calculated in the pricing macro is the final amount of the branch.

Example

In a chargeable item package called “Communication”, you charge the customer according to the type of communication. The pricing rule is described in a unique Pricing Macro that completely calculates the final price. You can use the Macro Function component to integrate this Pricing Macro into each price plan that relates to the “Communication” chargeable item package.

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

Pricing Macro: Provides the list of available pricing macros. Select a pricing macro.

Mapping of Rating Context: Displays the rating context properties of the pricing macro and allows you to assign a property of the plan to each rating context property. The pricing macro runs with the values of the plan properties.