public interface BaseRatingExtensionContext extends ExtensionContext
Modifier and Type | Method and Description |
---|---|
ExtensionProduct |
getApplicableProduct(java.lang.String productId,
java.time.ZonedDateTime time) |
ExtensionBalance |
getBalance()
Gets the calling customer's balance
|
ExtensionBillingUnit |
getBillingUnit()
Gets the calling customer's billing unit
|
ExtensionCustomer |
getCustomer()
Gets the calling customer instance
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomRatedEventFields()
API to get a map of custom rated event fields which can be enriched by extensions.
|
PayloadMutator |
getPayloadMutator()
Gets a PayloadMutator object which is used to modify the current values of the UsageRequest's payload.
|
ExtensionProduct |
getProduct()
Returns the current usage request product based on the supplied event time, its type
and its well known identity at the time of event
For example a Telephone number represents an external identity for a Product along
with its type as VOICE.
|
java.util.Map<java.lang.String,UnitValue> |
getQuotaAttributes() |
java.util.Map<java.lang.String,java.util.Collection<oracle.communication.brm.charging.util.misc.Pair<java.lang.String,java.util.Collection<ExtensionRatingProfileValue>>>> |
getSharedProfiles()
Method to get the shared profile list.
|
java.util.Map<java.lang.String,java.lang.String> |
getSubscriberPreferences()
Returns the subscriber preferences.
|
ExtensionCustomer |
getTerminatingCustomer()
API to get the terminating or CALLED_TO customer information.
|
ExtensionProduct |
getTerminatingCustomerProduct()
API to get the terminating or CALLED_TO customer's product information.
|
java.util.Map<java.lang.String,java.util.Collection<ExtensionRatingProfileValue>> |
getTerminatingCustomerRatingProfiles()
Returns an managed Map of RatingProfiles for terminating Customer with each profile
identified by a String name.
|
java.util.Map<java.lang.String,java.util.Collection<ExtensionRatingProfileValue>> |
getTerminatingProductRatingProfiles()
Returns an managed Map of RatingProfiles for terminating customer's Product with each profile
identified by a String name.
|
UsageRequest |
getUsageRequest()
gets the UsageRequest associated with the rating extension context.
|
boolean |
isInConsumedRating()
Normal rating flow this value is {false}.If previously authorized quantity wasn't fully used
by the network then consumed rating is performed and this value is {true} for those cases.
|
boolean |
isMidSessionCdrConditionMet()
{true}.
|
void |
setQuotaAttribute(RatingConstants.QUOTA_ATTRIBUTES timerConfigurationName,
UnitValue timerValue) |
void |
setQuotaHoldingTime(UnitValue quotaHoldingTimeInSeconds) |
void |
setVolumeQuotaThreshold(UnitValue volumeQuotaThreshold) |
getConfigurationBeanRepository, getExtensionsDataRepository, getLogger
UsageRequest getUsageRequest()
ExtensionCustomer getCustomer()
ExtensionProduct getProduct()
ExtensionProduct getApplicableProduct(java.lang.String productId, java.time.ZonedDateTime time)
ExtensionBalance getBalance()
ExtensionBillingUnit getBillingUnit()
java.util.Map<java.lang.String,java.util.Collection<ExtensionRatingProfileValue>> getTerminatingCustomerRatingProfiles()
ExtensionRatingProfileValue
java.util.Map<java.lang.String,java.util.Collection<ExtensionRatingProfileValue>> getTerminatingProductRatingProfiles()
ExtensionRatingProfileValue
java.util.Map<java.lang.String,java.lang.String> getSubscriberPreferences()
boolean isMidSessionCdrConditionMet()
ExtensionCustomer getTerminatingCustomer()
ExtensionProduct getTerminatingCustomerProduct()
java.util.Map<java.lang.String,java.lang.String> getCustomRatedEventFields()
java.util.Map<java.lang.String,UnitValue> getQuotaAttributes()
void setVolumeQuotaThreshold(UnitValue volumeQuotaThreshold)
volumeQuotaThreshold
- void setQuotaHoldingTime(UnitValue quotaHoldingTimeInSeconds)
void setQuotaAttribute(RatingConstants.QUOTA_ATTRIBUTES timerConfigurationName, UnitValue timerValue) throws ExtensionException
ExtensionException
boolean isInConsumedRating()
PayloadMutator getPayloadMutator()
java.util.Map<java.lang.String,java.util.Collection<oracle.communication.brm.charging.util.misc.Pair<java.lang.String,java.util.Collection<ExtensionRatingProfileValue>>>> getSharedProfiles()