Commit Graph

21 Commits

Author SHA1 Message Date
Aleksey Kashapov
553e18d59b
Adds support for prometheus woody metrics (#32)
Some checks are pending
Build and publish Docker image / build-push (push) Waiting to run
Erlang CI Checks / Load .env (push) Waiting to run
Erlang CI Checks / Run checks (push) Blocked by required conditions
* Adds support for prometheus woody metrics

* Bumps CI wf

* Ignore accidental god-module `lim_turnover_SUITE`
2024-10-31 13:47:43 +03:00
Aleksey Kashapov
0fc3b48a18
EMP-74: Adds scope support for withdrawal's destination field, e.g. phone number (#31)
* Adds scope support for withdrawal's destination phone number

* Implements destination_field limit scope

* Adds hold and commit testcases for destination_field scope

* Moves field path into hashed value

* Adds destination_field support for domain object

* Bumps stable deps
2024-10-29 17:54:11 +03:00
Aleksey Kashapov
9c1ee9fb00
CP-4: Adds support for 'sender' and 'receiver' scopes for withdrawal context (#29)
* CP-4: Adds support for 'sender' and 'receiver' scopes for withdrawal context

* Adds tests for sender and receiver scopes

* Bumps damsel and limiter_proto
2024-06-04 12:27:55 +03:00
Aleksey Kashapov
bcff0b78f6
CP-12: Adds support for 'currency_conversion' config option (#28)
* CP-12: Adds support for 'currency_conversin' config option

* Fixes eunit tests

* Updates testcases in suites

* Fixes struct type in marshaling and temporarily disables codecov report upload

* Bumps damsel and limiter-proto

* Removes global 'currency_conversion' flag
2024-05-29 12:46:08 +03:00
Aleksey Kashapov
920d6ac31e
TD-686: Adopts opentelemetry API (#27) 2023-10-24 14:50:19 +03:00
Артем
e9e5e630d1
OPS-356: Remove inv adj (#26)
* removed

* bumped to valitydev/damsel@c32f50f and valitydev/limiter-proto@e045813
2023-09-04 15:33:15 +03:00
Артем
32484dbd2f
bumped to valitydev/damsel@52dbefd (#23) 2023-05-21 14:08:40 +03:00
Aleksey Kashapov
2b8723b0d1
TD-550: Adds business exceptions for rollback (#22)
* Bumps limiter-proto
2023-04-14 10:21:26 +03:00
Aleksey Kashapov
5af0cc663a
TD-550: Adds new exceptions support for hold operation (#21)
* Adds new exceptions support for hold operation: `InvalidOperationCurrency`, `OperationContextNotSupported` and `PaymentToolNotSupported`.
* Adds testcases for new exceptions
2023-04-06 11:00:38 +03:00
Aleksey Kashapov
3eff7ddf1e
VEN-9: Adds support for versioned limit config object (#20)
* Adds explicit damsel dependency

* Bump dominant docker compose image (sha-e0afa44)

* Adds dominant-sourced config unmarshalling

* Adds operation `Limiter:GetVersioned/4`

* Refactor test suite and add testcase group with dominant-sourced config object use
2023-03-01 18:33:36 +03:00
Артем
edbdccb67d
TD-407: Add provider, terminal, wallet, identity, email scopes (#15)
* added new scopes

* added identity and wallet scope tests

* switched to proto master

* fixed

* added multu scope test

* added prefix

* added commands

* finished with new scope ordering system

* added requested changes

* applied patch
2022-10-02 19:37:04 +04:00
Andrew Mayorov
618a751712
TD-329: Add withdrawal context support (#12)
* Bump to valitydev/machinery-erlang@62c3243
* Bump to valitydev/machinegun-proto@347c5c4
* Drop top-level `damsel` dependency
* Drop `get_rate` testcase as meaningless
* Drop testcases which became duplicate
* Support new context type @ config
* Delegate context accessors to specific modules
* Support rollbacks @ valitydev/limiter-proto@6158184
2022-07-06 18:32:32 +03:00
Артем
2dff7b518d
TD-305: Add new payproc context and payment tool scope implementetion (#9)
* updated limiter proto

* added payproc context

* fixed linter

* bumped proto

* added base tests

* added payment tool tests

* added minor test

* fixed dialyzer

* fixed
2022-06-20 15:53:54 +03:00
Andrew Mayorov
d36b97f44a
TD-304: Handle amount limit body type (#8)
* Bump to valitydev/limiter-proto@6723e86.
* Introduce _noncurrency_ concept instead of default currency which is kinda misleading.
* Rename `lim_p_transfer` → `lim_posting`.
* (Minor API break) Respond w/ 0 balance on uninitialized limit ranges.
2022-06-10 12:56:13 +03:00
Andrew Mayorov
b1cd093ffb
TD-303: Add multiscope support (#7)
As of valitydev/limiter-proto@d390910.

Co-authored-by: Артем <WWW_cool@inbox.ru>
2022-06-03 11:41:44 +03:00
Andrew Mayorov
f577d1292a
TD-275: Add CI through GH Actions (#1)
* Switch to valitydev upstreams
* valitydev/thrift_erlang@c280ff2
* valitydev/scoper@7f3183d
* valitydev/genlib@82c5ff3
* valitydev/erlang-health@5958e2f
* valitydev/damsel@1d60b20
* Drop how_are_you
2022-04-18 11:00:48 +03:00
Артем
689aea6943
ED-297: New create method (#7)
* added new create method

* added party day config
2021-10-20 13:42:03 +03:00
0x42
fb6c6bc65e
upd proto, param op_behaviour set from api 2021-06-22 15:12:03 +03:00
0x42
4beba47b5c
add subtraction behaviour in limit amount computation 2021-06-21 13:04:50 +03:00
Артем
9bf3e29636
P2C-14: Limiter (#1)
* draft

* added format

* added backend stuff

* added requested changes except batch in range machine

* added error sort in handler, add lim_body and its validation

* added start time and shard size, implemented shard id generation and time range calculation

* fixed xref

* fixed format

* added unit tests

* refactored errors

* updated to new proto

* added config marshaling

* fixed format

* added base tests

* added exchange tests

* fixed linter

* added requested changes

* updated proto ref
2021-05-17 13:34:16 +03:00
WWW_cool
bdaca98e1a
added rebar lock 2021-02-17 12:49:36 +03:00