Interface PostChargingExtensionContext
- All Superinterfaces:
BaseRatingExtensionContext,ExtensionContext,PostRatingChargingExtensionContext,SharingExtensionContext
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 Summary
Modifier and TypeMethodDescriptionvoidaddCustomDataToResponse(Map<String, String> customDataMap) Adds custom name value pair to be passed in the response.voidaddExtendedRedirectAddress(String redirectAddress) To add Extended redirection information i.e. redirectAddress in customDataMapvoidaddExtendedRedirectType(String redirectType) To add Extended redirection information i.e. redirectType in customDataMapvoidaddExtendedRedirectValidity(Long redirectValidity) To add Extended redirection information i.e. redirectValidity in customDataMapGets the customer's BalancesGets the customer's billing unitTo get the extension service contextMap<String, Map<Integer, oracle.communication.brm.charging.servicecontext.internal.OverageDetailsImpl>> Gets the overage data in the response for this request.Get owner balances.Gets the customer's productsGets the custom data appended in the response for this request.Get shared products.voidIf invoked this request will be rejected with Failure status in OnlineResponse.voidsendCustomBrmOpCodeEventNotification(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 extensionvoidsendCustomEventNotification(Map<String, String> customEventNotificationDataMap) Send custom data map via "CUSTOM_EVENT" through JMS similar to any other external notification.voidsendGenericRarNotification(boolean flag) Send a "RAR_NOTIFICATION_EVENT" notification through JMS.voidsendRarForSharedBalancesNotification(boolean flag) voidsendRarNotification(boolean flag) Send a "RAR_NOTIFICATION_EVENT" notification through JMS.Methods inherited from interface oracle.communication.brm.charging.extensions.client.BaseRatingExtensionContext
getAbortSessionRequestSessionId, getApplicableProduct, getBalance, getBillingUnit, getCustomer, getCustomRatedEventFields, getEventZone, getPayloadMutator, getProduct, getQuotaAttributes, getSharedProfiles, getSubscriberPreferences, getTerminatingCustomer, getTerminatingCustomerProduct, getTerminatingCustomerRatingProfiles, getTerminatingProductRatingProfiles, getUsageRequest, isInConsumedRating, isMidSessionCdrConditionMet, setQuotaAttribute, setQuotaHoldingTime, setVolumeQuotaThreshold, triggerAbortSessionRequestMethods inherited from interface oracle.communication.brm.charging.extensions.framework.ExtensionContext
getConfigurationBeanRepository, getExtensionsDataRepository, getLogger, getRequestOperationsListMethods inherited from interface oracle.communication.brm.charging.extensions.client.PostRatingChargingExtensionContext
getBalance, getBalanceElementRepository, getCustomer, getImpactedBalance, getProduct, getRatedQuantityPerRum, getRatingPeriods, getSharingCustomerIds, getSharingProductIds, getSubscriberPreferences, getTaxSupplierId, isARPEnabled, setARPEnabledMethods inherited from interface oracle.communication.brm.charging.extensions.client.SharingExtensionContext
getBillingUnit, getSharingBalanceIds, getSharingBillingUnitIds
-
Method Details
-
addCustomDataToResponse
Adds custom name value pair to be passed in the response.- Parameters:
customDataMap- custom name value pair to be passed in the response
-
getResponseCustomData
Gets the custom data appended in the response for this request.- Returns:
- the custom data appended in the response for this request.
-
sendCustomEventNotification
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
To add Extended redirection information i.e. redirectType in customDataMap- Parameters:
redirectType- Type of redirection address (viz. URL, IPV4 or IPV6 address)
-
addExtendedRedirectAddress
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:
sendRarNotificationin interfacePostRatingChargingExtensionContext
-
sendGenericRarNotification
void sendGenericRarNotification(boolean flag) Send a "RAR_NOTIFICATION_EVENT" notification through JMS.- Specified by:
sendGenericRarNotificationin interfacePostRatingChargingExtensionContext
-
addExtendedRedirectValidity
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 extensionopCode- Op Code which needs to be calledexternalReference- externalReference
-
getOverageDetailsMap
Map<String,Map<Integer, getOverageDetailsMap()oracle.communication.brm.charging.servicecontext.internal.OverageDetailsImpl>> 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.
-