Interface PostChargingExtensionContext

All Superinterfaces:
BaseRatingExtensionContext, ExtensionContext, PostRatingChargingExtensionContext, SharingExtensionContext

public interface PostChargingExtensionContext extends PostRatingChargingExtensionContext
Post charging extension hook invoked as a part of charging flow to execute the post charging custom extension code.
Since:
11.2.0.6
  • Method Details

    • addCustomDataToResponse

      void addCustomDataToResponse(Map<String,String> customDataMap)
      Adds custom name value pair to be passed in the response.
      Parameters:
      customDataMap - custom name value pair to be passed in the response
    • getResponseCustomData

      Map<String,String> getResponseCustomData()
      Gets the custom data appended in the response for this request.
      Returns:
      the custom data appended in the response for this request.
    • sendCustomEventNotification

      void sendCustomEventNotification(Map<String,String> customEventNotificationDataMap)
      Send custom data map via "CUSTOM_EVENT" through JMS similar to any other external notification. NOTE: If all request needs the custom data to be enriched then it preferable to add it directly to response instead of sending it via notification. Sending "CUSTOM_EVENT" data asynchronously is limited to scalability external notification framework.
      Parameters:
      customEventNotificationDataMap - data that will be sent asynchronously via external notification
    • markAsRejectResponse

      void markAsRejectResponse()
      If invoked this request will be rejected with Failure status in OnlineResponse.
    • getExtensionServiceContext

      ExtensionServiceContext getExtensionServiceContext()
      To get the extension service context
    • addExtendedRedirectType

      void addExtendedRedirectType(String redirectType)
      To add Extended redirection information i.e. redirectType in customDataMap
      Parameters:
      redirectType - Type of redirection address (viz. URL, IPV4 or IPV6 address)
    • addExtendedRedirectAddress

      void addExtendedRedirectAddress(String redirectAddress)
      To add Extended redirection information i.e. redirectAddress in customDataMap
      Parameters:
      redirectAddress - Redirect address which operator will provide (viz."http://vha.com.au/redirect/1", "http://orange.fr/redirect/1" etc)
    • sendRarNotification

      void sendRarNotification(boolean flag)
      Send a "RAR_NOTIFICATION_EVENT" notification through JMS.
      Specified by:
      sendRarNotification in interface PostRatingChargingExtensionContext
    • sendGenericRarNotification

      void sendGenericRarNotification(boolean flag)
      Send a "RAR_NOTIFICATION_EVENT" notification through JMS.
      Specified by:
      sendGenericRarNotification in interface PostRatingChargingExtensionContext
    • sendRarForSharedBalancesNotification

      void sendRarForSharedBalancesNotification(boolean flag)
      Specified by:
      sendRarForSharedBalancesNotification in interface PostRatingChargingExtensionContext
    • addExtendedRedirectValidity

      void addExtendedRedirectValidity(Long redirectValidity)
      To add Extended redirection information i.e. redirectValidity in customDataMap
      Parameters:
      redirectValidity - When the redirect occurs this needs to be set - it should be a configurable attribute
    • getProducts

      Map<String,ExtensionProduct> getProducts()
      Gets the customer's products
      Returns:
      products keyed on product Id
    • getBalances

      Map<String,ExtensionBalance> getBalances()
      Gets the customer's Balances
      Returns:
      balances keyed on balance Id
    • getBillingUnits

      Map<String,ExtensionBillingUnit> getBillingUnits()
      Gets the customer's billing unit
      Returns:
      billing unit keyed on billing unit id
    • sendCustomBrmOpCodeEventNotification

      void sendCustomBrmOpCodeEventNotification(Map<String,String> customEventNotificationDataMap, String opCode, String externalReference)
      Method to set the custom data along with the opcode by the custom extension code to invoke the Custom Flist from the BRM gateway extension
      Parameters:
      customEventNotificationDataMap - Map that holds the custom data from the extension
      opCode - Op Code which needs to be called
      externalReference - externalReference
    • getOverageDetailsMap

      Map<String,Map<Integer,oracle.communication.brm.charging.servicecontext.internal.OverageDetailsImpl>> getOverageDetailsMap()
      Gets the overage data in the response for this request.
      Returns:
      the overage data in the response for this request.
    • getOwnerBalances

      List<ExtensionBalance> getOwnerBalances()
      Get owner balances.
      Returns:
      the owner balances.
    • getSharedProducts

      List<ExtensionProduct> getSharedProducts()
      Get shared products.
      Returns:
      the shared products.