public interface UsageRequestBuilder
Modifier and Type | Method and Description |
---|---|
UsageRequest |
build(java.lang.String userIdentity,
java.lang.String requestId,
java.time.ZonedDateTime requestStart,
java.time.ZonedDateTime requestEnd,
int sequenceNumber,
Payload payload)
returns an instance of a UsageRequest which was constructed for session
based operation types.
|
UsageRequest |
build(java.lang.String userIdentity,
java.lang.String requestId,
java.time.ZonedDateTime requestStart,
java.time.ZonedDateTime requestEnd,
int sequenceNumber,
RequestMode requestMode,
Payload payload)
returns an instance of a UsageRequest which was constructed for session
based operation types.
|
Payload |
createPayload(Usage operation)
returns an empty payload that corresponds to RequestSpecification matching the
supplied arguments.
|
java.util.List<NetworkMappingDefinition> |
getGSUNetworkMappingDefinitions()
This method returns only GSU mapping information.
|
java.util.List<NetworkMappingDefinition> |
getNetworkMappingDefinitions(Usage operation)
This method returns mapping information for the supplied operation type.
|
java.util.List<NetworkMappingDefinition> |
getNetworkMappingDefinitions(Usage operation,
java.lang.String type)
This method returns mapping information for the supplied operation type and client type.
|
java.lang.String |
getProductType()
All UsageRequestBuilder are targeted to build requests for a single ProductType.
|
UsageRequest build(java.lang.String userIdentity, java.lang.String requestId, java.time.ZonedDateTime requestStart, java.time.ZonedDateTime requestEnd, int sequenceNumber, Payload payload) throws MessagesUsageException
userIdentity
- identity of the subscriber for whom the UsageRequest applies.requestId
- the id relating to all requests created in this session.requestStart
- the time at which this usage event commences. If this is a session based
charging request, then during an INITIATE request this time will be stored as the session start time.requestEnd
- the time at which this usage event ends. If this is non-session based charging request, then
the request end can be the same as the request start.sequenceNumber
- the sequence number for the request. This can be set to 1 if the request in NOT session based.payload
- the dynamic payload associated with this request.MessagesUsageException
- if RequestSpecification contract was violated in any manner.UsageRequest build(java.lang.String userIdentity, java.lang.String requestId, java.time.ZonedDateTime requestStart, java.time.ZonedDateTime requestEnd, int sequenceNumber, RequestMode requestMode, Payload payload) throws MessagesUsageException
userIdentity
- identity of the subscriber for whom the UsageRequest applies.requestId
- the id relating to all requests created in this session.requestStart
- the time at which this usage event commences. If this is a session based
charging request, then during an INITIATE request this time will be stored as the session start time.requestEnd
- the time at which this usage event ends. If this is non-session based charging request, then
the request end can be the same as the request start.sequenceNumber
- the sequence number for the request. This can be set to 1 if the request in NOT session based.requestMode
- Mode of the usage request. ONLINE|OFFLINEpayload
- the dynamic payload associated with this request.MessagesUsageException
- if RequestSpecification contract was violated in any manner.Payload createPayload(Usage operation)
operation
- the version of the relevant RequestSpecification.java.util.List<NetworkMappingDefinition> getNetworkMappingDefinitions(Usage operation)
operation
- the operation for which the mapping data is required.java.util.List<NetworkMappingDefinition> getNetworkMappingDefinitions(Usage operation, java.lang.String type)
operation
- the operation for which the mapping data is required.type
- the client typejava.util.List<NetworkMappingDefinition> getGSUNetworkMappingDefinitions()
java.lang.String getProductType()