Commit Graph

49 Commits

Author SHA1 Message Date
Radu Ioan Fericean
928adcfbf0 no more global rounding method 2014-05-07 15:00:02 +03:00
Radu Ioan Fericean
f45833edeb small fix 2014-04-30 19:19:44 +03:00
Radu Ioan Fericean
95a8e8a217 watch for max rate for unit costs as well 2014-04-29 14:33:28 +03:00
Radu Ioan Fericean
255fb4ea0e cd Tor to TOR 2014-04-26 01:50:08 +03:00
Radu Ioan Fericean
402a1fbc68 Call descriptot Type is now Tor 2014-04-25 21:50:34 +03:00
Radu Ioan Fericean
25cb5be8c0 refactor CallDuration in DurationIndex and TOR in Category 2014-04-25 21:16:21 +03:00
Radu Ioan Fericean
4ffc8555a1 new call descryptor type attribute 2014-04-24 22:42:14 +03:00
Radu Ioan Fericean
d3e5555b5c fix for rating subject shortucts 2014-04-21 12:03:15 +03:00
Radu Ioan Fericean
6dd22fa847 zero cost fix (♥ DigiDaz) 2014-04-07 12:11:09 +03:00
Radu Ioan Fericean
7313e64362 rename RateSubject to RatingSubject 2014-04-06 12:58:21 +03:00
Radu Ioan Fericean
a03b25cc45 cleaned unused fields 2014-04-01 20:49:34 +03:00
Radu Ioan Fericean
e381265ace save dirty balances at the end of debit 2014-03-23 20:21:05 +02:00
Radu Ioan Fericean
22adfb552f debit from shared group empty balances 2014-03-20 17:27:29 +02:00
Radu Ioan Fericean
b0cd66509c fix for shared get max session 2014-03-20 12:53:36 +02:00
Radu Ioan Fericean
a753a55119 fixed connectFee in max debit issue 2014-03-05 14:17:47 +02:00
Radu Ioan Fericean
0b0474fa23 fix for MaxDebit bug
max duration was calculated badly
2014-03-04 22:02:20 +02:00
Radu Ioan Fericean
7d9326965d don't overwrite account on load 2014-02-28 10:47:30 +02:00
Radu Ioan Fericean
39e93e7fb8 fixses and tests for shared balances 2014-02-27 16:54:11 +02:00
Radu Ioan Fericean
8d98436656 rounding after debit 2014-02-26 11:14:13 +02:00
Radu Ioan Fericean
0aa5223f78 Merge branch 'master' into shared_balances
Conflicts:
	engine/account.go
	engine/loader_csv_test.go
	engine/storage_interface.go
	engine/storage_map.go
	engine/storage_redis.go
2014-02-21 16:36:48 +02:00
Radu Ioan Fericean
7831a53797 renamed USerBalance to Account 2014-02-21 14:37:31 +02:00
Radu Ioan Fericean
f701a42948 renamed action's BalanceId to BalanceType
also added a topup test
2014-02-21 13:14:06 +02:00
Radu Ioan Fericean
b784edf5aa Merge branch 'master' into shared_balances
Conflicts:
	engine/balances.go
	utils/consts.go
2014-02-07 22:32:03 +02:00
Radu Ioan Fericean
914fe77117 rating subject can have multiple predefined values
Valid values can start with *zero + any duration 1m, 15m, 1h10m
2014-02-07 22:26:39 +02:00
Radu Ioan Fericean
a9d698e029 Merge branch 'master' into shared_balances
Conflicts:
	engine/balances.go
	engine/userbalance.go
2014-02-07 10:57:29 +02:00
Radu Ioan Fericean
59f650e3f8 small addition last night fix 2014-02-06 10:15:27 +02:00
Radu Ioan Fericean
462152a76d fixed rating with rating subject bug 2014-02-06 01:34:38 +02:00
Radu Ioan Fericean
3bf3f04cc6 removed connect fee as a separte field in call cost 2014-02-06 01:34:38 +02:00
Radu Ioan Fericean
20a0ae4449 removed direction and added destinationid to add_balance console command
th consoled is aimed to be used for simple and quick test actions
2014-02-03 17:34:37 +02:00
Radu Ioan Fericean
d776219013 added user info to balance for shared balances finding 2014-01-13 22:11:51 +02:00
Radu Ioan Fericean
58ddae9b70 Started shared balances logic 2014-01-07 22:34:40 +02:00
Radu Ioan Fericean
a74a201735 seting increment cost to 0 for increments payed using free minutes 2013-12-19 18:44:58 +02:00
Radu Ioan Fericean
950a357127 more fixes and test for credit refounding 2013-12-13 17:26:14 +02:00
Radu Ioan Fericean
c68660367b improved max session duration (used to check initial connect) 2013-12-12 15:45:49 +02:00
Radu Ioan Fericean
d5f4417005 better rate subject monet debit 2013-12-11 14:48:16 +02:00
Radu Ioan Fericean
6ff0d17d5f refactored debit credit method, now modular and better tested 2013-12-10 20:24:06 +02:00
Radu Ioan Fericean
95b6cbbdc8 refactored unit counters 2013-12-04 11:44:48 +02:00
Radu Ioan Fericean
7632a8f14e tests passing on get max session time 2013-10-04 16:18:28 +03:00
Radu Ioan Fericean
c889eafb20 removed special price 2013-10-03 20:14:45 +03:00
Radu Ioan Fericean
7db0919be0 started removing special rates and adding new rate subject 2013-10-02 22:30:42 +03:00
Radu Ioan Fericean
5a6df95133 updated msgpack codec 2013-10-02 22:09:21 +03:00
Radu Ioan Fericean
6cd7edd8a2 refound money 2013-10-02 20:09:42 +03:00
Radu Ioan Fericean
cd98141fbb still working on balance subject debit 2013-09-23 19:26:40 +03:00
Radu Ioan Fericean
e18420ea23 rated seconds slice 2013-09-12 21:09:42 +03:00
Radu Ioan Fericean
f3f9d03c80 before switching to MINUTES+OUTBOUND 2013-09-05 20:17:14 +03:00
Radu Ioan Fericean
931c6efb1a converted minutebucket to balance, compiled but test fail 2013-09-05 19:14:22 +03:00
Radu Ioan Fericean
f82a2c58a8 better balance Equal function 2013-09-05 16:55:06 +03:00
Radu Ioan Fericean
5516c8ff1f started bucket balance merge 2013-09-04 18:18:49 +03:00
Radu Ioan Fericean
8f804b8bc5 refactorings, started groups 2013-08-30 19:02:05 +03:00