Class SampleDebitRefundSession
java.lang.Object
oracle.communication.brm.charging.sdk.AbstractSampleProgram
oracle.communication.brm.charging.sdk.usage.SampleDebitRefundSession
A class to implement the creation of the payload which can carry a list of
debit and refund amounts for the charging requests
-
Nested Class Summary
Nested classes/interfaces inherited from class oracle.communication.brm.charging.sdk.AbstractSampleProgram
AbstractSampleProgram.SampleResponseConsumer<T extends Response<?>>
-
Constructor Summary
ConstructorsConstructorDescriptionSampleDebitRefundSession
(String userId, Usage typeOfRequest, String productType, String eventType, List<oracle.communication.brm.charging.sdk.usage.ImpactAmount> impactAmounts, List<oracle.communication.brm.charging.sdk.usage.ImpactUnit> impactUnits, String correlationId) Constructor for the sample program of Debit Refund Session -
Method Summary
Methods inherited from class oracle.communication.brm.charging.sdk.AbstractSampleProgram
createDefaultPayLoad, getBatchRequestService, getContext, getExternalTopUpUpdateRequestBuilderFactory, getLogger, getManagementRequestBuilderFactory, getNResponsesReceived, getPolicyRequestBuilderFactory, getQueryRequestBuilderFactory, getResponsesReceived, getServiceSpecRepository, getStackTrace, getStateManager, getUpdateRequestBuilderFactory, getUsageRequestBuilderFactory, resetResponsesReceived, run, sendAsynchronousRequest, sendRequest, sendRequests, sendUpdateRequest, sendUpdateRequests, waitForResponses
-
Constructor Details
-
SampleDebitRefundSession
public SampleDebitRefundSession(String userId, Usage typeOfRequest, String productType, String eventType, List<oracle.communication.brm.charging.sdk.usage.ImpactAmount> impactAmounts, List<oracle.communication.brm.charging.sdk.usage.ImpactUnit> impactUnits, String correlationId) Constructor for the sample program of Debit Refund Session- Parameters:
userId
- - the public user identitytypeOfRequest
- - the type of request - DEBIT_AMOUNT, REFUND_AMOUNT, DEBIT_UNIT, REFUND_UNITproductType
- - type of the producteventType
- - type of the eventimpactAmounts
- - the amount to be impactedimpactUnits
- - the unit of the amountcorrelationId
- - correlation ID
-
-
Method Details
-
runSample
public void runSample() throws MessagesException, SystemHealthException, InterruptedException, ExecutionException, TimeoutException, UserNotFoundExceptionStart method.- Specified by:
runSample
in classAbstractSampleProgram
- Throws:
MessagesException
SystemHealthException
InterruptedException
ExecutionException
TimeoutException
UserNotFoundException
-
main
-