How can we consume from Currency bucket in ECE while doing Prepaid Usage.
Hi,
We are trying to do prepaid usage in ECE using Diameter Gateway. Our basic scenario is as follows:
- We are creating prepaid account having two event configurations, 1) OTC charge : Granting 100 INR intially 2) Usage : Chargin INR 1.0/Min
- When account is created in ECE we can see a balance bucket created for INR with -100 as Balance as below.
####################### Balance Begin #######################
[BalanceImpl
BalanceId = 170249188}
externalRevision = 2}
OwnerId = 170241492}
BillingUnitId = 170239956}
BillingUnit = null}
balanceItemSpecs ={INR=BalanceItemSpecImpl{beCode='INR', unit=Money{cur=INR}, creditProfile=CreditProfile{creditFloor=-9223372036854775808, creditCeiling=9223372036854775807, id='0', percentageCreditThresholds=[], fixedCreditThresholds=[]}, consumptionRule=NONE, lastBalanceItemIndex=2}}}
ActiveReservationMap ={}}
BalanceItems =
([BalanceItemImpl balanceItemId = 2} , currentBalance = -100} , balanceItemSpec = BalanceItemSpecImpl{beCode='INR', unit=Money{cur=INR}, creditProfile=CreditProfile{creditFloor=-9223372036854775808, creditCeiling=9223372036854775807, id='0', percentageCreditThresholds=[], fixedCreditThresholds=[]}, consumptionRule=NONE, lastBalanceItemIndex=2} , validity = [2015-12-18T20:52:52.000+05:30,292278994-08-17T07:12:55.807Z]} , validityRule = null} , firstUsageCreatedTime = null} , granter = GranterImpl{granterId='170246292'