Wiki Markup |
---|
{table-plus:width=665|enableSorting=false}
{table-plus} |
RateAndForwardBundle
Code | RATE-FORWARD |
---|---|
Description | Rates using Rating uses two different number plans, and adds the results are added up. |
Business scenario | Two different prices have to be added up in order to reach a final price, and one of the prices is actually already defined on another number plan. This bundle is made in order to be able to reuse some prices, instead of defining them again. |
Applies to | All kinds of usage |
Core info | 8.11 and later |
...
The RateAndForward Bundle sends a billing record twice through the rating process: once using the rating code and rating key set on the billing record, and one once using the rating code and rating key set on the bundle, if present (at least one of the parameters RATINGCODE and RATINGKEY have to be set). The results of those two rating processes are addedaccumulated, and will represent the rated value of the billing record.
It is a prerequisite that the two rating processes each return only return one invoice detail line, else otherwise the RateAndForward Bundle cannot be used (a BundleConfigurationException with message "Configuration problem" will be thrown in this case). This means a.o. that the parameter RATING.PARAMETERS.SEPERATE_INITIAL_LINE should be set to NO.
No entries will be found in the SUBSCRIPTION_BUNDLE table for RateAndForward Bundles. Since As the RateAndForward Bundle doesn't use columns does not use column value1 to value4, it there is not needed no need to save the current values for a given subscription.
...
At least one of the parameters RATINGCODE and RATINGKEY have to be set.
Example
If e.g. For example, the number plans for HOME-INT-VOICE-ORIG and ROAM-INT-VOICE-ORIG use standardRating with the following charges:
- international: initial charge of 0,5 and a recurrent charge of 0,13 (units per minute)
- roaming: initial charge of 0,9
If a CDR having with a duration of 70 seconds is rated using the RateAndForwardBundle, the bundle will receive two invoice detail lines:
...