Adding Parameters
You can add a list of pre-defined parameters to pricing items, such as catalog items, bundles, offers, and price components.
You use parameter definitions to specify the name and data type of a parameter. After creating a definition for a parameter, you can add it to a pricing item. You must specify a default value for the parameter when you add it to a pricing item. You can use parameters assigned to price components in price component rate tables to set rating formula parts, such as the scale coefficient (slope), constant (intercept), and unit factor (multiplier).
- Catalog item parameters — To parameters in the associated offer or bundle
- Bundle parameters — To parameters in the associated offer or price component
- Offer parameters — To parameters in associated price components
When you add a parameter to a price component, offer, or bundle, the Charging Server creates a default parameter binding to a parameter with the same name in the parent pricing item automatically, and adds the parameter to the list of parameters assigned to the parent. You can edit the default parameter binding to select a different parameter, if required. Otherwise, the default value for the default parameter binding is used during rating.
You can modify parameter values for a purchased catalog item any time after a purchase by making a ModifyOffer request. The ModifyOffer API uses the input ParameterArray field to replace the parameter array stored for the purchased catalog item. If the catalog item is purchased with no parameter value, call the ModifyOffer API with an array of parameter values to use the new value. If the catalog item is purchased with parameter values, call the ModifyOffer API with an empty parameter array to use the default value.
The SubMan calls to get the list of catalog items and to get a single catalog item include any default parameter bindings.