Commit Graph

50 Commits

Author SHA1 Message Date
DanB
e78c336e2f AccountS - initial accountProcessEvent 2021-02-01 21:06:59 +01:00
DanB
d8ca23e0c6 AccountS - newAccountBalanceOperators implementation 2021-02-01 21:06:59 +01:00
DanB
dfac210f17 AccountS - concreteBalance should not have concretes inside 2021-02-01 21:06:59 +01:00
porosnicuadrian
88eeea97b5 New field in accounts Max_iterations + tests 2021-02-01 21:06:47 +01:00
DanB
cebc725821 AccountS - concreteBalance.debitUsage implementation 2021-01-31 17:11:42 +01:00
DanB
858ea7918c AccountS - maxDebitUsageFromConcretes as generic function 2021-01-31 16:53:31 +01:00
DanB
e64a80eadf AccountS - unifying unitFactor, balanceLimit, costIncrement logic 2021-01-31 14:53:53 +01:00
DanB
ab378e7707 AccountS - debitUsageFromConcrete 2021-01-29 20:22:03 +01:00
DanB
7b208bd10c AccountS - debitUsage without startTime, standalone processAttributes method 2021-01-29 18:38:42 +01:00
DanB
5de8480abc AccountS - return debited units count in debitUsage method 2021-01-29 14:08:32 +01:00
DanB
9eeff28c0b AccountS - abstractBalance with debitUsage 2021-01-28 20:32:26 +01:00
DanB
0b372aab6e AccountS - TestABDebitUsage 2021-01-25 19:44:36 +01:00
DanB
f7b6471b13 AccountS - skel of abstractBalance.debitUsage 2021-01-25 18:17:40 +01:00
DanB
05ff2ee014 AccountS - debitUsageFromConcrete using concrete balances from aB struct 2021-01-25 18:17:40 +01:00
DanB
317560d7f2 AccountS - restore concrete balances on errors 2021-01-24 18:43:08 +01:00
DanB
7d084398e7 AccountS - debitUsageFromConcrete implementation with tests 2021-01-24 15:36:05 +01:00
porosnicuadrian
6f52361ab7 Changed from AddBig to SumBig 2021-01-20 17:38:10 +01:00
TeoV
34d17d0307 Add RateProfileIDs to Balance struct and rename from CostAttributes to AttributeIDs ( same as from ChargerProfile ) 2021-01-19 13:12:52 +01:00
DanB
b5d93894d8 AccountS - ratesCostForEvent within abstractBalance 2021-01-17 20:26:04 +01:00
DanB
44eedd634b AccountS - concreteBalance.debitUnits taking DataProvider 2021-01-15 19:54:18 +01:00
DanB
24c412f2bd AccountS - adding connectionManager and AttributeSConns to balances, processAttributeS inside AbstractBalance 2021-01-15 19:35:49 +01:00
TeoV
ae146640f4 Start merging CGREventWithOpts with CGREvent 2021-01-14 10:30:35 +01:00
porosnicuadrian
5a3d48a9ea Removed error from decimal convert func + tests in utils 2021-01-12 12:49:31 +01:00
TeoV
fd3d0fd8c2 Update on AccountProfile from []*Balance to map[string]*Balance 2021-01-08 17:53:59 +01:00
DanB
e285568cbe Migrating ConcreteBalance to utils.Decimal 2021-01-07 18:16:07 +01:00
DanB
59c35393c5 Converting AbstractBalance to use utils.Decimal instead of decimal.Big 2021-01-07 18:16:07 +01:00
TeoV
f1c3ff0113 Use Cmp to compare decimal.Big 2021-01-07 15:34:41 +01:00
TeoV
aa343ce50c Update merge problems 2021-01-07 14:25:01 +01:00
TeoV
9c32b2310a Add APIAccountProfile struct + commands in cgr-console 2021-01-07 14:25:01 +01:00
DanB
d7d7a4f914 AccountS - fine tuning unitFactor for ConcreteBalance 2021-01-06 19:55:38 +01:00
TeoV
1ff5adfa9d Rename from BalanceValue to BalanceUnits for AccountProfile 2021-01-06 15:50:23 +01:00
TeoV
6887863ed1 Update encoding for Get/Set AccountProfile for DataManager 2021-01-06 13:56:03 +01:00
DanB
f80f3b90c7 AccountS - change decimal rounding closer to 0 so we don't debit too much in case of limits 2021-01-05 17:44:41 +01:00
DanB
0aa85c5da6 AccountS - concrete debitUnits with unlimited balance 2021-01-05 12:34:30 +01:00
DanB
de5834219b AccountS - centralized costIncrement, unitFactor, balanceLimit in concreteBalance 2021-01-04 15:44:28 +01:00
DanB
5a632207ac AccountS - abstractBalance with costIncrement, unitFactor, balanceLimit and partial debitUsage implementation 2021-01-03 19:47:26 +01:00
DanB
9df5ec3092 AccountS - concrete balances with support for chained debitUnit 2021-01-02 20:32:54 +01:00
DanB
325d0f0131 AccountS - concreteBalance.debitUnits implementation with tests 2021-01-02 18:54:48 +01:00
DanB
cccf2a7b17 AccountS UsageFactor - UnitFactor 2021-01-02 14:41:26 +01:00
DanB
77677b3019 AccountS - debitUnits for concreteBalance, Balance SetDecimalValue and DecimalValue export methods 2020-12-30 20:54:16 +01:00
DanB
56fbc84bea Adding Cache to CGREventWithOpts 2020-12-30 17:02:36 +01:00
DanB
11d6d9be42 AccountS - usage and usageFactor as decimal.Big 2020-12-30 16:17:56 +01:00
DanB
575259628a AccountS - usageFactor implementation 2020-12-29 20:41:48 +01:00
DanB
6936749916 AccountS - reorganizing balance types 2020-12-29 18:54:09 +01:00
DanB
2dfb503981 AccountS - renaming balanceProcessor to balanceOperator 2020-12-29 18:31:08 +01:00
DanB
c3616b96dc AccountS - concrete and abstract balance processors 2020-12-29 17:14:13 +01:00
DanB
f712785f78 AccountS - newAccountBalances, utils.EventCharges 2020-12-28 19:55:01 +01:00
DanB
fd090f5b36 AccountS - matchingAccountForEvent implementation 2020-12-24 18:34:30 +01:00
TeoV
382a970782 Add AccountS in services and cmd/cgr-engine 2020-12-23 13:31:41 +01:00
DanB
07353f8724 AccountS service skel 2020-12-20 11:51:07 +01:00