ionutboangiu
8443af3a89
Relicense from GPLv3 to AGPLv3
2025-10-29 19:42:40 +01:00
ionutboangiu
9c004b069d
Ignore factors equal to 1 when creating EventCost
2024-04-01 20:48:57 +03:00
ionutboangiu
6db11e87bc
Rename Factor to BalanceFactor inside Accounting
2024-04-01 20:48:57 +03:00
ionutboangiu
50d0103c7b
Move BalanceFactor value from Increments to Accounting
...
Retrieve the Accounting BalanceCharge inside a new variable and reuse
that instead of repeatedly indexing the map. It is always assumed that
the BalanceCharge exists in the map and is non-nil. A comment was
added as a reminder.
TotalCost cannot be calculated anymore from ChargingIncrement alone.
The function is not used, so it will not be causing any issues for
now.
BalanceCharge clone function now handles the case where it is nil
to avoid any possible nil pointer dereference.
2024-04-01 20:48:57 +03:00
ionutboangiu
a7ca167039
Add BalanceFactor value to Increments
...
For both the Increment and ChargingIncrement types.
2024-04-01 20:48:57 +03:00
gezimbll
c2dacc42c1
Removed warnings from go staticcheck
2023-11-08 17:10:13 +01:00
ionutboangiu
6c16ff320f
Replace interface{} with any
2023-05-31 10:23:12 +02:00
DanB
751bcc7b2f
SecureMapStorage as cache for EventCost
2022-11-30 19:41:38 +01:00
Trial97
6f4e0775ef
Revert "Updated EventCost rounding increment handling.Fixes #3018 "
...
This reverts commit 4fabf8731b .
2021-08-26 16:45:37 +02:00
Trial97
307337b6bc
Updated EventCost rounding increment handling.Fixes #3018
2021-08-26 16:45:37 +02:00
Trial97
9047fab68c
Updated EventCost FieldAsInterface function. Fixes #2743
2021-03-19 18:30:48 +01:00
Trial97
f2c9ca3530
Fixed typo in license header
2021-03-10 16:22:37 +01:00
Trial97
d2e04360bd
Added *sessionChargeable session option. Fixes #1702
2021-02-15 20:26:30 +01:00
Trial97
a2688b9536
Added NewFreeEventCost function
2021-02-15 20:26:30 +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
adragusin
8acc2e4738
Updated tests in engine
2020-02-12 17:58:42 +01:00
Trial97
ff5f5f2d21
Added FieldAsInterface for EventCost
2020-02-05 16:00:32 +01:00
adragusin
aff4d16e84
Updated Clone functions
2019-12-13 02:40:30 -05:00
DanB
360a9cc00b
SessionS - processEvent function with sync actions
2019-11-22 19:54:16 +01:00
DanB
18999bcbbd
CDRs refundCDR method implementation
2019-11-22 19:54:16 +01:00
DanB
4bf4560ef1
EventCost AsRefundIncrements method
2019-11-22 19:54:16 +01:00
Tripon Alexandru-Ionut
b2cd78af5d
Updated tests with dispatcher hosts
2019-03-26 19:46:42 +01:00
Tripon Alexandru-Ionut
be06504663
Updated tests after API rename
2019-03-25 19:11:44 +01:00
DanB
4a1ceb0a3d
Transport the CostDetails over string so we can properly unmarshall them in CDRs
2019-03-24 14:26:23 +01:00
DanB
c9a6d158d5
EventCost compressing at ChargingIncrement level during Merge
2018-11-01 18:12:26 +01:00
TeoV
cad0d1b4f7
Update supplier_it_test with different statistics and add logs for session
2018-08-02 19:05:11 +02:00
edwardro22
b651b06826
Removed copyright from go doc
2017-09-10 15:02:46 +00:00
DanB
a98bf56562
Radius radReqAsSMGEvent, handler for *usage_difference, tests
2017-06-11 10:48:42 +02:00
DanB
93ede51d06
EventCost UUIDs -> IDs
2017-05-29 17:23:42 +02:00
DanB
a1f207dd00
EventCost BalanceChargeUUID -> AccountingUUID
2017-05-29 16:31:22 +02:00
DanB
4592523e46
EventCost.Merge tests
2017-05-26 20:02:51 +02:00
DanB
8421d74d85
EventCost.Trim in middle with tests, libeventcost
2017-05-25 19:16:15 +02:00