Commit Graph

434 Commits

Author SHA1 Message Date
ionutboangiu
373df2329c Revise CDR rerating
If the reRate parameter is set to true, also set the refund to true.

The rerate parameter is now no longer hardcoded to true for the RateCDRs API.If
required, the "*rerate" flag must be provided by the caller.

In case CostDetails is not populated, retrieve it from StorDB if possible
and add it to the CGREvent before converting to CDRs.

Now that the refund happens before the debit, revise the expected values for
the testV1CDRsProcessEventWithRefund subtest within the
apier/v1/cdrs_it_test.go file.
2023-04-20 20:06:16 +02:00
gezimbll
b221a385e4 changed internal db type to *internal 2023-03-08 19:15:23 +01:00
ionutboangiu
7771de5e07 Apply go fmt project wide 2022-11-11 13:43:51 +01:00
adi
9c3da4aa21 Integrated CallCache opts for dispatcher 2022-10-10 18:22:03 +02:00
Trial97
8e2fdd239f Updated unit tests 2021-10-21 14:30:20 +03:00
Trial97
291a959ec8 Updated internal dataDB 2021-10-21 14:30:20 +03:00
Trial97
880dd7f1b1 Updated Action Filters field 2021-10-12 16:49:01 +03:00
Trial97
a4a914a3bb Updated build tags 2021-08-26 16:45:37 +02:00
Trial97
cd0964dfea Finished implementing all the exporters 2021-08-18 16:33:28 +02:00
Trial97
c385224171 Updated Cache Reload API 2021-07-29 08:43:49 +02:00
nickolasdaniel
4aaa2311ee Added flag for tenant in cgr-loader 2021-07-25 12:08:40 +02:00
Trial97
4555789d53 Updated guardian 2021-07-19 15:37:19 +02:00
Trial97
46fc4c7294 Updated actionplan cache tests 2021-06-08 12:03:21 +02:00
Trial97
6e9664f503 Updated AcionPlans 2021-06-08 12:03:21 +02:00
Trial97
aaae648ef3 Added test for set account with action plan 2021-06-08 12:03:21 +02:00
ionutboangiu
9daba04d77 Add & to utils.AttrReloadCacheWithAPIOpts 2021-05-28 12:41:49 +03:00
Trial97
33ac878115 Updated datamanager methods 2021-05-26 20:08:15 +02:00
andronache
0d36b0cecf Changed Opts in structs in apier to APIOpts 2021-03-23 14:35:11 +01:00
andronache
806c8295be Finished changing Opts to APIOpts for structs used in api_interfaces 2021-03-23 14:35:11 +01:00
andronache
38b02c642c Changed Opts to APIOpts in multiple structs used in apier/ 2021-03-23 14:35:11 +01:00
andronache
804cc12c9e Changed in multiple structs the field Opts to APIOpts 2021-03-18 16:48:54 +01:00
andronache
a6f41adaf9 Replaced TenantIDWithOpts with TenantIDWithAPIOpts 2021-03-18 13:04:28 +01:00
andronache
22f207441e Replaced cache with opts in several structs 2021-03-17 13:46:33 +01:00
andronache
83d9c67a77 Removed cache from multiple structs and replaced it with opts 2021-03-17 13:46:33 +01:00
andronache
635bdd88b8 Replaced ResourceWithCache with ResourceProfileWithOpts in apier 2021-03-17 13:46:33 +01:00
andronache98
c771a4f173 Started removing cache from structs 2021-03-17 13:46:33 +01:00
Trial97
5f0150b639 Updated dataDB config structure 2021-03-09 17:37:59 +01:00
Trial97
1437cfaff3 Updated SetBalance action 2021-02-25 18:13:01 +01:00
TeoV
7fd5bd9e22 Update integration test for apier/v2 2021-01-15 09:53:55 +01:00
porosnicuadrian
594f7bb557 Change name from ExternalAttributeProfile to APIAttributeProfile 2021-01-13 15:50:32 +01:00
andronache
3e51f58d8c Changed consts in utils 2021-01-11 10:57:44 +01:00
andronache
1d0a814e42 Changed consts in utils 2021-01-11 10:57:44 +01:00
andronache
36da1a6309 Consts in utils 2021-01-11 10:57:44 +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
4883754cf0 Changed consts in utils 2021-01-07 18:15:35 +01:00
andronache
da91b07eb7 Started replacing snake_case with camelCase in utils/consts.go 2021-01-05 17:42:44 +01:00
TeoV
5775d09c7b Add infrastructure for AccountS in DataManager 2020-12-21 10:19:59 +01:00
Trial97
1b7f48678a Updated ApierSv1 replication test 2020-12-10 17:50:04 +01:00
Trial97
06e4fd13c3 Updated integration tests 2020-12-09 17:00:04 +01:00
Trial97
114e8e9504 Started moving Destinations caching in datamanager 2020-12-04 18:44:27 +01:00
Trial97
3849dd325c Added reset threshold API. Fixes #1573 2020-11-09 09:47:24 +01:00
Trial97
5da4cf6d1c Updated account action plans integration tests for cache 2020-10-31 20:52:09 +01:00
porosnicuadrian
d8045e4e0c Updated apiers for triggers by adding tenatn default value in v1 2020-10-20 19:56:09 +02:00
porosnicuadrian
f15d983334 Updated apiers and tests in accounts v1/v2 by adding tenant default value 2020-10-20 19:56:09 +02:00
porosnicuadrian
d67a3892c9 Updated tests for attributes in apier/v2 with tenant default value 2020-10-20 19:56:09 +02:00
TeoV
462dc17aaa Update integration test for apier/v2 2020-10-20 11:07:26 +02:00
porosnicuadrian
5baaeba5a8 Updated apiers by adding tenant default value in apier/v2 2020-10-15 18:34:53 +02:00
Trial97
b0b9ddf328 Updated integration tests 2020-10-15 12:41:04 +02:00
Trial97
cd14ab0a2b Added automatic cache reload for filter indexes 2020-09-01 15:52:08 +02:00