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 Details

    • getBalance

      ExtensionBalance getBalance(String balanceId)
      Gets the balance for the passed balance identifier
      Parameters:
      balanceId - input balance identifier
      Returns:
      returns the balance for the passed product identifier
    • getBillingUnit

      ExtensionBillingUnit getBillingUnit(String billingUnitId)
      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

      ExtensionCustomer getCustomer(String customerId)
      Gets the customer for the passed customer identifier
      Parameters:
      customerId - input customer identifier
      Returns:
      returns the customer for the passed customer identifier
    • getProduct

      ExtensionProduct getProduct(String productId)
      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

      Map<String,String> getSubscriberPreferences(String productId, String customerId)
      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 returned
      customerId - ID of the customer for which the preferences should be fetched
      Returns:
      subscriber preferences