Commit Graph

81 Commits

Author SHA1 Message Date
Trial97
1437cfaff3 Updated SetBalance action 2021-02-25 18:13:01 +01:00
Trial97
83c26e5fd6 Updated actions 2021-02-25 18:13:01 +01:00
porosnicuadrian
e01a4555c6 Renamed Usage with Abstract in accounts 2021-02-24 18:20:29 +01:00
TeoV
812db77bd6 Start adding various integration tests for accounts 2021-02-16 18:17:54 +01:00
TeoV
bf44ef02d1 Cover 100% for libaccounts 2021-02-15 20:28:36 +01:00
Trial97
d2e04360bd Added *sessionChargeable session option. Fixes #1702 2021-02-15 20:26:30 +01:00
DanB
c14a039304 AccountS - only store Account if it's balances were modified 2021-02-13 20:18:16 +01:00
DanB
fea164bd63 AccountS - updating concreteBalance tests to use decimal.Big 2021-02-13 18:28:22 +01:00
DanB
19cb5c6fa7 AccountS - enabling dynamic weights when computing accounts and balance order 2021-02-13 18:13:50 +01:00
DanB
de594b0ef3 Accounts - updating integration tests for multiple accounts in debit 2021-02-13 17:59:11 +01:00
DanB
efb9e463b8 AccountS - debit on multiple accounts with dynamic weights 2021-02-13 17:56:37 +01:00
TeoV
099ee3a454 Coverage 100% for concrete balance 2021-02-12 17:40:01 +01:00
TeoV
05aeadefa2 Add more coverage tests 2021-02-12 17:40:01 +01:00
porosnicuadrian
7c02a8ec14 Removed APIAccountProfileWithCache struct 2021-02-12 17:39:22 +01:00
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