Commit Graph

11155 Commits

Author SHA1 Message Date
andronache
ea796ec9f9 Fixed integration test in engine and general_tests 2021-01-11 10:57:44 +01:00
porosnicuadrian
a01afde795 Added an integration test for ActionTriggers in apier 2021-01-08 17:55:12 +01:00
porosnicuadrian
17c8a46263 Changed the Unit value in Decimal type 2021-01-08 17:55:12 +01:00
porosnicuadrian
8cc4c629e1 Coverage tests for loaders 2021-01-08 17:55:12 +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
andronache
4ff3b9242d Consts in utils 2021-01-07 18:15:35 +01:00
andronache
1470267727 Modified consts in utils 2021-01-07 18:15:35 +01:00
andronache
dbb9216b6e Modified consts in utils 2021-01-07 18:15:35 +01:00
andronache
570356b459 Changed consts in utils and repaired account profiles it testin apier/v1 2021-01-07 18:15:35 +01:00
andronache
4883754cf0 Changed consts in utils 2021-01-07 18:15:35 +01:00
andronache
8bcbd789e6 Added tests for Get/Set/Remove Account profile in z_onstor_it_test.go 2021-01-07 18:15:35 +01:00
porosnicuadrian
3b230e084f Coverage tests in laoders + finished mocking error cases 2021-01-07 18:14:42 +01:00
TeoV
029f84e5f2 Encode and Decode decimal.Big structure as slice of bytes in mongo 2021-01-07 18:14:06 +01:00
TeoV
abb6507006 Add comments to methods 2021-01-07 15:34:41 +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
porosnicuadrian
ebbcbb10a3 Removed a test from loaders 2021-01-06 17:08:22 +01:00
porosnicuadrian
43b8400e25 Mocked DataDB for coverage + tests 2021-01-06 17:08:22 +01:00
TeoV
1ff5adfa9d Rename from BalanceValue to BalanceUnits for AccountProfile 2021-01-06 15:50:23 +01:00
TeoV
6980a3f322 Update integration test 2021-01-06 13:56:03 +01:00
TeoV
6887863ed1 Update encoding for Get/Set AccountProfile for DataManager 2021-01-06 13:56:03 +01:00
TeoV
806d932fe0 Update TPAccountProfile struct 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
porosnicuadrian
56dced241a Coverage tests in loaders 2021-01-05 17:44:29 +01:00
porosnicuadrian
32e9a44273 Changed by adding account profiles 2021-01-05 17:44:29 +01:00
andronache
9f39d1240d Fixed minor issue 2021-01-05 17:42:44 +01:00
andronache
88a87ffeb8 Modified consts in utils 2021-01-05 17:42:44 +01:00
andronache
da91b07eb7 Started replacing snake_case with camelCase in utils/consts.go 2021-01-05 17:42:44 +01:00
andronache
5607db3c50 Added tpaccountprofiles.go and integration tests in APIer 2021-01-05 17:42:44 +01:00
DanB
0aa85c5da6 AccountS - concrete debitUnits with unlimited balance 2021-01-05 12:34:30 +01:00
andronache
3096e85763 Fixed Conflict 2021-01-04 17:47:26 +01:00
andronache
40baa5caec Resolved Conflict 2021-01-04 17:47:26 +01:00
andronache
5e8c34d118 Added method for ReplicatorSv1 for AccountProfile in dispatchesr 2021-01-04 17:47:26 +01:00
root
d52f5636ad Added AttributeSConns and RateSConns to AccountSCfg 2021-01-04 17:47:26 +01:00
porosnicuadrian
ed0e47773f Cover tests in loaders package 2021-01-04 17:09:09 +01:00
porosnicuadrian
7ae311de6a Clone function in accountprofile + tests 2021-01-04 17:09:09 +01:00
TeoV
d316df7ae3 Remove Account2 2021-01-04 17:07:24 +01:00
DanB
de5834219b AccountS - centralized costIncrement, unitFactor, balanceLimit in concreteBalance 2021-01-04 15:44:28 +01:00
TeoV
dc5ecf9956 Add in storage tp_account_profile schema fixes #2573 2021-01-04 09:46:39 +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