Commit Graph

167 Commits

Author SHA1 Message Date
DanB
ce49256a4d AccountS - Balance ordering based on dynamic weight, CGREvent.AsDatProvider() 2021-02-11 20:16:43 +01:00
TeoV
14c5861ebe Cover 100% for accounts/abstractbalance.go 2021-02-11 17:21:47 +01:00
TeoV
537331be00 Fix merge problems 2021-02-11 17:21:47 +01:00
TeoV
c2e814a681 Add test for abstract balance with cost 2021-02-11 17:21:47 +01:00
porosnicuadrian
6d4e968b68 Coverage tests in accounts 2021-02-11 10:27:39 +01:00
TeoV
adaad39c3b Add more cases for accounts 2021-02-10 20:20:49 +01:00
TeoV
b62039f57f Active commented tests in accounts 2021-02-10 20:20:49 +01:00
TeoV
971bd77198 Add more test cases for new accounts 2021-02-10 20:20:49 +01:00
DanB
c276eef350 Rename accountProcessEvent to accountDebitUsage 2021-02-10 11:55:50 +01:00
DanB
d4f6dfc993 AccountS - Usage in EventCharges as utils.Decimal, zero cost not charged in ConcreteBalances 2021-02-09 19:31:04 +01:00
TeoV
b5397e61de Add simple cases tests for abstract and concrete balance 2021-02-09 19:29:29 +01:00
Trial97
167f7c0a4a Updated Accounts 2021-02-09 15:16:20 +01:00
DanB
7465f25ba0 RateS - return ErrNotFound in case of no profile matched, AccountS - testAccountSv1MaxUsage 2021-02-08 17:10:46 +01:00
DanB
fe52cc5ebd AccountS - enable TestABDebitUsageFromConcretes 2021-02-05 14:32:59 +01:00
DanB
825eea9907 AccountS - integration test for AccountSv1AccountProfileForEvent API 2021-02-03 20:13:03 +01:00
DanB
b86fbf3fb4 AccountS - V1AccountProfileForEvent and V1DebitUsage implementation 2021-02-02 20:19:12 +01:00
DanB
89aac43d25 AccountS debitUsage returning usage within EventCharges 2021-02-02 20:00:33 +01:00
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