Introduce New Service Plans
Introducing new Service Plans also affects a9s Billing, as each Service Plan requires pricing information in order to be exported to an invoicing system.
When introducing new Service Plans, a decision must be made between assigning specific prices or configuring a default price.
Prerequisites
A running instance of cf_billing and values for the following properties:
| Parameter | Type | Default Value | Description |
|---|---|---|---|
cf_billing.autogenerate_service_plans | boolean | false | Enables the permission to generate automatic default prices for uncovered Service Plans. |
cf_billing.autogenerate_service_plans_default_price | float | 35.7 | Represents the default monthly price for a Service Plan's autogenerated price. |
cf_billing.settle_service_plans_coverage_at | string | 08:00 | Time of day at which the cf_billing_worker checks for uncovered Service Plans as part of the daily processing chain. |
The autogenerate_service_plans_default_price parameter applies uniformly to every uncovered Service Plan. Setting
it enables billing to proceed automatically for new Service Plans; however, the assigned price may not reflect the
intended pricing for specific Service Plans. For more information on how to review and correct auto-generated prices,see
Manage Price Plans.
Autogenerate a Configured Default Price for Service Plans
If auto-generation is enabled, the errand cf_billing_autogenerate_service_plans can be used to generate the configured
default price for new Service Plans.
A corresponding Ops file to add the errand to the a9s-billing deployment is available at ops/cf-billing-autogenerate-service-plans.yml.
Verify Billing Coverage for New Service Plans
After introducing new Service Plans, it must be verifed if the current Target Plan covers the new ones.
bundle exec rake cf_billing:marketplace:uncovered
If the command reports uncovered Service Plans, pricing for these Service Plans must be defined as described in the Manage Price Plans page.
The cf_billing_worker also performs this coverage check automatically once per day, at the time configured in
cf_billing.settle_service_plans_coverage_at.
Uncovered Service Plans block the affected Service Instance entries from being exported as Efforts until pricing is added.