Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AMOUNT_NAME |
static java.lang.String |
BALANCE_ELEMENT_ID_NAME |
static java.lang.String |
CO_RELATION_IDENTIFIER_NAME |
static java.lang.String |
IMPACT_AMOUNT_BLOCK_NAME |
static java.lang.String |
REQUESTED_UNITS |
static java.lang.String |
TARIFF_CHANGE_USAGE |
static int |
TARIFF_CHANGE_USAGE_AFTER_TTC |
static int |
TARIFF_CHANGE_USAGE_BEFORE_TTC |
static java.lang.String |
USED_UNITS_BLOCK |
Modifier and Type | Method and Description |
---|---|
UsageRequest |
convertToTerminate(Usage requestType)
Method to create a TERMINATE Usage Request from the current original UsageRequest.
|
UsageRequest |
convertToTerminate(Usage requestType,
java.time.ZonedDateTime requestStartTime,
java.time.ZonedDateTime requestEnd,
boolean isMultipleUSU,
boolean isBeforeTTC,
java.lang.String sessionIdOverridenForLifeCycleUpdate)
Method to create a TERMINATE Usage Request from the current original UsageRequest.
|
UsageRequest |
convertToTerminateZeroUsedUnit(Usage requestType,
java.time.ZonedDateTime requestStartTime,
java.time.ZonedDateTime requestEnd,
boolean isMultipleUSU,
boolean isBeforeTTC,
java.lang.String sessionIdOverridenForLifeCycleUpdate) |
java.lang.String |
getDurationAttributeName()
Gets the name of the USU field that tracks DURATION usage for session based charging.
|
java.lang.String |
getEventType()
get the event type associated with the usageRequest.
|
java.lang.String |
getProductType()
get the product type associated with the usageRequest.
|
java.lang.Long |
getQtyPropBasedOnCreditBreach(BigDecimalFraction proportion,
boolean isDurationRumPresent,
long configuredValidity,
long tariffSwitchTime,
long unratedDuration,
boolean ifWorstCostImpacted,
long ratedDurationInMillis,
boolean isQuotaAttributePresent,
int randomizationInterval)
Get the expiration date and time in case of
reverse rating (ONLY)
|
java.lang.Boolean |
getRatingConditionChange() |
java.lang.String |
getReportingReason()
get the requestId associated with the UsageRequest.
|
java.lang.String |
getRequestId()
get the requestId associated with the UsageRequest.
|
RequestMode |
getRequestMode()
Getter
|
int |
getSequenceNumber()
get the sequence number for this usage request.
|
boolean |
getTraced()
get the subscriber trace flag
|
UnitReportingMode |
getUnitReportingMode() |
java.lang.String |
getVersion()
Get the version of the usage request
|
void |
resolve(UsageRequest oldUsageRequest,
UsageRequest newUsageRequest,
boolean isInternalOverride)
Conflict logic to resolve between 2 usage request across clusters.
|
void |
setReportingReason(java.lang.String reportingReason)
sets the Reporting-Reason
|
void |
setTraced(boolean traced)
Set the subscriber trace flag
|
UsageRequest |
withDateTimes(java.time.ZonedDateTime requestStart,
java.time.ZonedDateTime requestEnd)
Method to create a new UsageRequest from the current request using the supplied payload.
|
UsageRequest |
withRequestId(java.lang.String newRequestId)
New UsageRequest with specified newRequestId.
|
getOperation, getPayload, getStatus
static final java.lang.String IMPACT_AMOUNT_BLOCK_NAME
static final java.lang.String BALANCE_ELEMENT_ID_NAME
static final java.lang.String AMOUNT_NAME
static final java.lang.String CO_RELATION_IDENTIFIER_NAME
static final java.lang.String REQUESTED_UNITS
static final java.lang.String USED_UNITS_BLOCK
static final java.lang.String TARIFF_CHANGE_USAGE
static final int TARIFF_CHANGE_USAGE_BEFORE_TTC
static final int TARIFF_CHANGE_USAGE_AFTER_TTC
java.lang.String getRequestId()
java.lang.String getReportingReason()
void setReportingReason(java.lang.String reportingReason)
java.lang.String getProductType()
java.lang.String getEventType()
void setTraced(boolean traced)
boolean getTraced()
int getSequenceNumber()
java.lang.Boolean getRatingConditionChange()
UnitReportingMode getUnitReportingMode()
UsageRequest withDateTimes(java.time.ZonedDateTime requestStart, java.time.ZonedDateTime requestEnd)
requestStart
- session start timerequestEnd
- request end timejava.lang.String getVersion()
java.lang.String getDurationAttributeName()
java.lang.Long getQtyPropBasedOnCreditBreach(BigDecimalFraction proportion, boolean isDurationRumPresent, long configuredValidity, long tariffSwitchTime, long unratedDuration, boolean ifWorstCostImpacted, long ratedDurationInMillis, boolean isQuotaAttributePresent, int randomizationInterval)
UsageRequest withRequestId(java.lang.String newRequestId)
newRequestId
- newRequestIdUsageRequest convertToTerminate(Usage requestType)
requestType
- request typevoid resolve(UsageRequest oldUsageRequest, UsageRequest newUsageRequest, boolean isInternalOverride)
oldUsageRequest
- newUsageRequest
- RequestMode getRequestMode()
UsageRequest convertToTerminate(Usage requestType, java.time.ZonedDateTime requestStartTime, java.time.ZonedDateTime requestEnd, boolean isMultipleUSU, boolean isBeforeTTC, java.lang.String sessionIdOverridenForLifeCycleUpdate)
requestType
- request typesessionIdOverridenForLifeCycleUpdate
- UsageRequest convertToTerminateZeroUsedUnit(Usage requestType, java.time.ZonedDateTime requestStartTime, java.time.ZonedDateTime requestEnd, boolean isMultipleUSU, boolean isBeforeTTC, java.lang.String sessionIdOverridenForLifeCycleUpdate)
requestType
- requestStartTime
- requestEnd
- isMultipleUSU
- isBeforeTTC
- sessionIdOverridenForLifeCycleUpdate
-