Consumption

Note: Spartacus 2.x is no longer maintained. Please upgrade to the latest version.

Note: This feature is introduced with version 1.1 of the TUA Spartacus libraries.

Contents

Overview

Customers can view their current consumption for their subscribed offerings based on the frequency of the current contract term (that is, monthly consumption). By understanding usage, the customers can manage their subscriptions with proper authorization. Entries for the usage consumption are created and updated from backend systems by average service usage for subscribed product.

Business Use Cases

Viewing Consumption Information

From subscriptions, customers can drill down on subscribed offerings to view consumption data as a pie chart, a table format, or both.

Usage Consumption

If enabled, consumption information for each subscribed product can be viewed in either grid format, pie chart format, or both.

Frontend and Backend Dependencies

Dependency Detail
Recipe b2c_telco_spa
Minimum version of backend TUA TUA Release 2003 (latest patch is required)
Minimum version of core commerce backend SAP Commerce release 1905 (latest patch is recommended)

Components

The following components must be enabled in the TUA backoffice to appear on the Spartacus TUA storefront:

Component Name Status Description
UsageConsumptionGridComponent New Displays usage consumption for subscriptionBase Ids in a grid format
UsageConsumptionPieChartComponent New Displays usage consumption for subscriptionBase Ids in a Pie chart format with usage in percentage is also displayed.
UsageConsumptionHeaderComponent New Displays usage consumption heading and navigation button to navigate to the subscription list page from subscription details page

TM Forum APIs

Entity Exposed for CPI TUA API Description
TmaSubscriptionBase GET /subscriptionBase Shows a list of of subscription base in the Subscription Details screen
TmaSubscribedProduct GET/product/{productId} Shows a list of subscription products in the Subscription Details screen
TmaSubscriptionAccess GET /subscriptionbase/{subscriptionBaseId} Shows details of subscription base
TmaSubscriptionUsage GET/usageConsumptionReport Shows the usage consumption for a subscriptionBase Id

For more information, see TM Forum APIs.

Further Reading