...
Code | AMOUNT-SPLIT |
---|---|
Description | This bundle has the capacity of discounting all invoice detail lines or subscription fee lines (that apply to the bundle), until the limit defined in VALUE1 is reached. It includes a few different ways to discount as well. |
Business scenario | See examples |
Applies to | No limitations |
Core info | Available only in the Rator-bundles project (from the very first version). |
...
Main strategy | Key | Description |
---|---|---|
Discounting | DISCOUNT_STRATEGY | Defines how a discount should be processed |
Calculate Remaining Units | REMAINING_UNITS_STRATEGY | Defines how a bundle's remaining units should be calculated |
Billing group retrieval | BG_RETRIEVAL_STRATEGY | Defines how the bundle should find and retrieve an external billing group |
...
Main strategy | Strategy name | Code Name | Default | Description |
---|---|---|---|---|
Discounting | Zero rate discount line | DECREASE_AMOUNT | Yes | Discounts the detail line by decreasing the total value of the detail line. If the entire detail line is inside the bundle the detail line will be zero rated. |
Discounting | Create negated discount lines line | CREATE_NEGATED_LINE |
| Discounts by creating a copy of the discounted detail line with an opposite sign and adding it to the rating result. |
Discounting | Create customized negated discount line | WorkflowEnabledNegateDiscountLineStrategy | Discounts by creating a customized detail line, where amount to be discounted is set. The customized detail line is returned from workflow invoked by the hookpoint having static key "BUNDLE.STRATEGY.DISCOUNT.NEGATE". | |
Calculate Remaining Units | Get current subscription bundle value | GET_CURRENT_VALUE | Yes | Subtracts the maximum value (usually VALUE1) with the current units (usually VALUE2). |
Calculate Remaining Units | Compare with BillingGroup balance | COMPARE_BILLING_GROUP_BALANCE |
| Executes the logic in "GET_CURRENT_VALUE"-strategy and compares it with the current BillingGroup's balance in the BillingContext. The smaller of the two will be used. |
Billing group retrieval | Get BillingGroup from billing context | BILLING_CONTEXT | Yes | As the billing context is generated using the current subscription/service's billing group using this strategy is the same as not forwarding the detail lines to an external billing group |
Billing group retrieval | Get BillingGroup from subscription campaign parameter | SUBSCRIPTION_CAMPAIGN_PARAMETER |
| Use this strategy if the bundle should bill everything inside the bundle to a different billing group. The billing group's ID should be set on a subscription campaign parameter named SPLIT_BILLING_BG_ID |
Parameters
The parameters available for the Amount Split Bundle are described in the Strategies section.
...
- Subscription campaign parameters: SPLIT_BILLING_BG_ID=[the ID of the company's billing group]
Discount Bundle
Scenario: A bundle is required that discounts all detail lines inside the bundle, until DKK 100 is reached. It discounts by zero-rating the usage inside the bundle and decreases the total value of the splitting detail line.
...