Interface SharingExtensionContext
- All Known Subinterfaces:
PostChargingExtensionContext
,PostRatingChargingExtensionContext
,PostRatingExtensionContext
,RatingExtensionContext
public interface SharingExtensionContext
Common methods related to sharing to be exposed in rating, post rating and post charging extensions
-
Method Summary
Modifier and TypeMethodDescriptiongetBalance
(String balanceId) Gets the balance for the passed balance identifiergetBillingUnit
(String billingUnitId) Gets the billing Unit for the passed billing Unit identifiergetCustomer
(String customerId) Gets the customer for the passed customer identifiergetProduct
(String productId) Gets the product for the passed product identifierMethod to return the sharing balance IdsMethod to return the sharing billing unit IdsMethod to return the sharing customer IdsMethod to return the sharing product IdsgetSubscriberPreferences
(String productId, String customerId) Returns the subscriber preferences for sharing customer/product.
-
Method Details
-
getBalance
Gets the balance for the passed balance identifier- Parameters:
balanceId
- input balance identifier- Returns:
- returns the balance for the passed product identifier
-
getBillingUnit
Gets the billing Unit for the passed billing Unit identifier- Parameters:
billingUnitId
- input billing Unit identifier- Returns:
- returns the billing Unit for the passed billing Unit identifier
-
getCustomer
Gets the customer for the passed customer identifier- Parameters:
customerId
- input customer identifier- Returns:
- returns the customer for the passed customer identifier
-
getProduct
Gets the product for the passed product identifier- Parameters:
productId
- input product identifier- Returns:
- returns the product for the passed product identifier
-
getSharingCustomerIds
Collection<String> getSharingCustomerIds()Method to return the sharing customer Ids- Returns:
- the sharing customer Ids, empty is there are no sharing customers
-
getSharingProductIds
Collection<String> getSharingProductIds()Method to return the sharing product Ids- Returns:
- the sharing product Ids, empty is there are no sharing products
-
getSharingBalanceIds
Collection<String> getSharingBalanceIds()Method to return the sharing balance Ids- Returns:
- the sharing balance Ids, empty is there are no sharing balances
-
getSharingBillingUnitIds
Collection<String> getSharingBillingUnitIds()Method to return the sharing billing unit Ids- Returns:
- the sharing billing unit Ids, empty is there are no sharing billing units
-
getSubscriberPreferences
Returns the subscriber preferences for sharing customer/product. If the product ID is provided, the product level subscriber preferences take precedence over the customer level preferences- Parameters:
productId
- ID of the product for which the preferences should be fetched. If not provided, only the customer level preferences will be returnedcustomerId
- ID of the customer for which the preferences should be fetched- Returns:
- subscriber preferences
-