Commit Graph

264 Commits

Author SHA1 Message Date
ndiezel0
50480643a5
OPS-442: Add shop limits (#121)
* OPS-442: Add shop limits

* Fix tests and specs

* Add tests

* Format

* Add regression test

* Fix

* Update PM image
2024-04-04 01:37:36 +05:00
ndiezel0
55899c876c
IMP-202: Add new pins (#122)
* IMP-202: Add new pins

* Fix

* Fix

* Fix test

* Fix specs and test

* cleanup
2024-03-26 17:37:23 +05:00
Артем
872e076d33
IMP-171: Add route blacklist check (#119)
* added without tests

* fixed

* added tests

* bumped, fixed, added explanation

* fixed explanations

* bumped cache

* fixed explanation

* fixed

* fixed
2024-03-18 12:07:47 +03:00
ndiezel0
01c646e15e
TD-818: Add GetExplanationForChosenRoute method (#113)
* TD-818: Analyze routes of payment

* TD-818: Add GetExplanationForChosenRoute method

* Add varset gathering and explanation for candidates

* Add attempted routes explanation

* Add varset to explanation output

* Fix tests

* Fix test

* Format

* Review fix

* Add test

* Fix

* Bump cache
2024-01-30 20:51:20 +05:00
Aleksey Kashapov
fd2952e781
TD-788: Bumps woody; adds hackney metrics config example (#114) 2024-01-17 18:49:35 +03:00
Aleksey Kashapov
f48b9607b6
TD-788: Bumps woody w/ prometheus collector fix (#109) 2023-12-19 18:05:31 +03:00
Aleksey Kashapov
b189c2fc48
TD-788: Adds woody pool/connections metrics (#107)
* Adds overrides for linter deps
* Bumps woody w/ prometheus collectors
* Bumps woody & scoper
* Raises processing info log messages
* Adds woody event severity mapping example to `sys.config`
2023-12-19 15:59:02 +03:00
Aleksey Kashapov
7305ff03e6
TD-820: Refactors routing to support critical score rejections (#105)
* TD-820: Refactors routing to support critical score rejections

* Moves routing context helpers to appropriate module

* Splits large functions, fixes misconfiguration error bug

* Fixes second fail rates query

* Fixes routes equality check

* Extracts route struct functions

* Extracts routing context into separate module

* Fixes rejected routes ordering consistency

* Fixes funx naming and adds routes equality tests

* Makes rejected routes reasons more explicit in code

* Adds routing ctx pipeline test

* Adds specified routing sub failures

* Updates tests; replaces static errors translation

* Fixes ubiquity of availability status naming

* Updates route reject error codes

* Bumps damsel
2023-12-07 10:30:47 +03:00
Артем
42af922405
OPS-375: Add change body event (#102)
* added draft impl

* added tests

* fixed tests

* added review changes

* moved on damsel master

* fixed

* OPS-378: Implements payment amount adjustment  (#104)

* Adds tracing to invoice tests
* Adds cashflow amount change test

---------

Co-authored-by: Aleksey Kashapov <nanodirijabl@gmail.com>
2023-11-17 09:56:13 +03:00
Aleksey Kashapov
2a869217ac
TD-686: Adds tracing to woody wrapper calls (#94) 2023-10-25 15:23:18 +03:00
ndiezel0
58ddb862f7
TD-763: Add UI Cascade as default (#96)
* TD-763: Add UI Cascade as default

* Fixes

* Add tests

* Fix format

* Bump OTP version

* Be less strict about OTP version

* Refactor cascade decision making

* New get_route_cascade_behaviour function
2023-10-19 17:21:53 +05:00
ndiezel0
b8156b10e2
TD-717: Add global_allow field to routing (#93)
* TD-717: Add global_allow field to routing

* Remove ct:log

* Fix spec

* Bump dialyzer cache
2023-09-19 18:08:23 +05:00
ndiezel0
deccc5a0a1
IMP-76: Add ContactInfo fields (#91)
* IMP-76: Add ContactInfo fields

* Format
2023-09-14 14:44:40 +05:00
Артем
50a7f09c24
OPS-356: Remove invoice adj (#88)
* removed invoice adj

* bumped to valitydev/damsel@c32f50f and valitydev/limiter-proto@e045813
2023-09-05 13:30:45 +03:00
ttt161
cbb500631e
TD-600: add terminal option for override fd logic (#80)
* TD-600: add fd_overrides opts to terminal

* TD-600: bump damsel

* TD-600: resolve conflict

* TD-600: bump damsel

* TD-600: add test

* TD-600: cleanup

---------

Co-authored-by: anatoliy.losev <losto@nix>
2023-05-24 10:16:20 +03:00
ttt161
9d46f1fbd7
TD-572: Get payment routes limit values (#79)
* TD-572. impelementation get_limit

* TD-572: add test for get_limits

* TD-572: fix formatting

* TD-572: add test for exception

* TD-572: change limits output format

* TD-572: fix spec

* TD-572: fix naming, add test

---------

Co-authored-by: anatoliy.losev <losto@nix>
2023-05-19 17:43:59 +03:00
ndiezel0
14518ef276
TD-574: Update damsel (#70) 2023-05-10 13:15:47 +05:00
Aleksey Kashapov
0eae6c2455
TD-578: Adds cascade attempt log messages (#65)
* Fixes failure code for cascade trigger
* Refactors failure checks into payproc_errors notation functions
* Bumps payproc_errors
2023-04-19 14:32:19 +03:00
Aleksey Kashapov
bfccd439a3
TD-550: Limit hold exception to reject route (#64)
* Refactor `hg_routing:to_rejected_route/2`
* Adds new limiter hold exceptions handling
* Adds rejected routes log message on limit overflow
* Adds testcase for limit hold fail with multiple route candidates
2023-04-17 11:30:24 +03:00
Aleksey Kashapov
72aaddd6e3
CM-23: Adds routes attempt_limit support (#61)
* Implements route cascading for payments
* Introduce config option `card_blocked_failure`
* Adds routes cascading testcase group
* Bumps payproc_errors and patches limiter helper for ct
* Bumps erlang-checks cache version
2023-03-24 12:52:13 +03:00
Aleksey Kashapov
c651112753
VEN-10: Support limiter versioned config (#60)
* Upgrade dependencies and docker compose images
* Updates dmt_client ref
* Adds domain revision support as argument in limiter calls
* Reorder dmt configuration calls in suite initialization to ensure fixture documents use setuped limiter configs
2023-03-13 15:26:15 +03:00
Артем
8b2a101523
APM-286: Bump damsel (#58)
* bumped

* bumped to valitydev/damsel@e1d028d
2023-01-16 14:46:48 +03:00
ndiezel0
edfb7be342
OPS-170: Add RegisterInvoicePayment (#49)
* OPS-170: Add RegisterInvoicePayment

* Lots of fixes

* Remove deprecated payment_system_is

* Fix cost

* Fix cost again

* Modify next_event to give exact amount of events

* Fix test

* Fix capture session and add RegisteredOrigin to InvoicePayment

* Add adjustment and refund test for registered payment

* Add limits add commiting of cashflow to register

* Fix commit cashflow

* Add customer register test

* Format

* Move commits to separate timeout

* Use all kinds of payers

* Update damsel

* Remove Prohibited Origin exception

* Export some functions

* Compile fix

* Fix

* Fix

* Fix

* Fix some spec errors

* Fix

* More spec fixes

* More spec fixes

* Increment cache

* Remove payment tool validation

* Reuse cashflow construction and refactor a little

* Fix

* Hide pull change code in invoicing client

* Fix

* Fix

* Fix

* Fix partial capture test change order

* Hide next change default timeout behind define

* Remove kv_storage from invoicing client

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Review fix

* Update damsel

* Fix merge

* Add timeout to pull_change

* Add next_changes to Suite

* Use ?trx_info more

* Fix matching

* Review fixes

* Review fixes

* Fix

* Add test to check limit working

* Try to add extra stage for hold

* Update damsel

* Review fixes

* Try to fix build

* Try to fix build

* Try to fix build

* Try to fix build

* Try something else

* Update erlang-workflows

* Update erlang-workflows

* Move erlang-workflow to release

* Fix

* Move castom merge_change usage to hg_invoice_registered_payment

* Review fix

* Simplify registration

* Review fixes

* Fix

* Fix

* Fix spec

* Format
2022-12-06 12:26:44 +05:00
Артем
c1dc781c44
TD-435: Add payment provision terms allow support (#53)
* added allow support

* changed cache version to 2

* revert cache change

* Revert "revert cache change"

This reverts commit 6a57cc9cdc.

* added tests
2022-11-16 12:26:33 +04:00
Andrew Mayorov
2412b220a0
OPS-220: Emit user interaction completion events (#51)
Bump to valitydev/damsel@6655937
2022-11-01 22:57:23 +03:00
Артем
cad6ad4ef9
TD-385: Bump damsel (#50)
* bumpted to valitydev/damsel@6047497

* removed legacy

* removed
2022-10-12 09:20:17 +04:00
Артем
22aef17707
TD-407: Add route to limit context (#48) 2022-10-02 19:38:17 +04:00
Andrew Mayorov
471bf6c636
Ensure refund limits rolled back properly (#44)
Bump to valitydev/limiter-proto@6158184
2022-08-31 13:20:40 +03:00
ndiezel0
b7295a80f4
TD-341: Update damsel (#42) 2022-08-23 13:13:45 +05:00
ndiezel0
ef8b6b286e
TD-341: Pin Route (#40)
* Start implementation

* wip

* wip

* Format

* Fix

* Fix

* Update damsel

* Fix

* Various fixes

* Format

* Fix test

* Add tests
2022-08-16 13:04:24 +05:00
Andrew Mayorov
4937089107
TD-312: Switch to valitydev/damsel@dac2cb5 (#35)
* Switch to valitydev/damsel@dac2cb5
  * valitydev/dmt-client@899bd71
  * valitydev/dmt-core@7584133
  * valitydev/party-client-erlang@38c7782
  * valitydev/payproc-errors-erlang@a19e716
  * valitydev/thrift v0.14.2.3

* Bump to valitydev/machinegun-proto.git@347c5c4
* Bump to valitydev/bender-client-erlang@4e15070
* Bump to valitydev/limiter-proto@c5dfe39
2022-06-24 19:03:41 +03:00
Артем
46c7c91ccf
TD-306: New limiter context (#34)
* bumped limiter proto valitydev/limiter-proto@ac97053

* changed condition

* changed to payproc context

* bumped limiter valitydev/limiter@2dff7b5

* fixed

* fixed minor
2022-06-22 08:07:35 +03:00
Alexey S
fb0570df68
TD-296: Drop mg tag remains (#30) 2022-06-07 13:38:22 +03:00
Alexey S
83ee553fd0
TD-269: Fix missing bender client dep (#28) 2022-05-18 17:33:36 +03:00
Alexey S
7318303acb
TD-269: Machine tagging via bender (w/ fallback)(#27) 2022-05-18 16:33:54 +03:00
Alexey S
21fc5519c9
TD-259: Update damsel and remove migration code (#25) 2022-04-22 13:10:37 +03:00
Alexey S
0bd0458340
TD-225: Remove UserInfo auth logic (#22)
* Remove auth logic, update party client

* hadolint please
2022-04-15 14:07:54 +03:00
ndiezel0
2350be8b01
TD-263: Move from shumway to accounter (#23)
* TD-263: Move from shumway to accounter

* Fix test

* Fix checks

* Review fix

* Review fix
2022-04-14 13:08:17 +03:00
Andrew Mayorov
c6296baf93
APM-52: Bump to valitydev/damsel@318a7a6 (#15) 2022-03-15 15:29:41 +03:00
Alexey S
79e3d8108c
TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
Andrew Mayorov
93d065b8c4
Bump to valitydev/damsel@dcd92dd (#4) 2022-01-24 16:34:55 +03:00
Andrew Mayorov
451ff8a38d
APM-35: Implement valitydev/damsel@f90de6c (#3)
* Switch to valitydev upstreams
  * valitydev/genlib@82c5ff3
  * valitydev/party_client_erlang@8fc5595
  * valitydev/woody_erlang@6f818c5

* Switch to valitydev/shumaich-proto
2022-01-21 17:19:25 +03:00
Andrew Mayorov
6a071c6d77
Switch to public rbkmoney/limiter-proto endpoint 2022-01-05 17:45:37 +03:00
Andrew Mayorov
209cbcdeaf
Add support for damsel @ b4447c90
With `sum_of` cashflow volumes product.
2022-01-05 15:54:09 +03:00
yuri-bukhalenkov
ae720132a8
updated damsel (#613) 2021-11-15 13:41:16 +03:00
dinama
454939c7f2
ED-126: +CustomerManagement:ComputeTerms (#609) 2021-10-26 19:58:15 +03:00
dinama
e1932c161a
+party management w/o domain cache (#608) 2021-10-25 15:43:44 +03:00
ndiezel0
9c5c65bf04
ED-69: Split implementation (#610)
* BUSINESS-160: Respect allocation terms in terms computations (#576)

* Support reducing allocation terms
* Fix naming as of rbkmoney/damsel@a2509fc

* ED-69: Implement Cashflow (#586)

* Revert "Revert "ED-69: Implement new cashflow (#577)" (#585)"

This reverts commit a76f6ee905.

* ED-69: Fix migration from master to epic/split

* ED-69: Add allocations (#587)

* ED-69: Add allocations

* ED-69: Add validation

* ED-69: Update damsel

* ED-69: Fix compile

* ED-69: Add allocation refund

* ED-69: Compact transactions

* Update apps/hellgate/src/hg_allocations.erl

Co-authored-by: Артем <WWW_cool@inbox.ru>

* ED-69: Rename Params -> Data

* ED-69: Some changes to allocation work

* ED-69: Add non-working eunit test

* ED-69: Fix bugs and make test work

* ED-69: Fix bugs and make more tests

* ED-69: Fix some specs

* ED-69: Fix dialyzer and format

* ED-69: Redo allocation refund into subtraction

* ED-69: Integrate allocation subtraction to refund

* ED-69: Add headers, return tests to working conditions and update damsel

* ED-69: Review fix

* ED-69: Review fix

* ED-69: Review fix

* ED-69: Review fix

* ED-69: Fix tests

* ED-69: Add validation for aggegator clash

* ED-69: Review fix

* ED-69: Review fixes

* ED-69: Add cashflow usage

* ED-69: Fix cashflow

* ED-69: Format

* ED-69: Review fixes

* ED-69: Fix collect_refund_cashflow/10

* ED-69: Review fix

* ED-69: Various fixes

* ED-69: Fix tests

* ED-69: Format

* ED-69: Fix lint

* ED-69: Add list of shops to multiple_payment_institutions error

* ED-69: Fix specs

* ED-69: Review fixes

* ED-69: Review fix

* ED-69: Review fix

* ED-69: Review fixes

* ED-69: Review fixes

* ED-69: Fix compile

* ED-69: Review fixes

* ED-69: Review fixes

* Update apps/hellgate/src/hg_allocation.erl

Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>

* ED-69: Review fixes

* ED-69: Review fixes

* ED-69: Fix test

* ED-69: Add tests

* ED-69: Format

* ED-69: Fix tests

* ED-69: Review fixes

* ED-69: Review fix

* ED-69: Review fix

* ED-69: Move allocation tests to test/*

* ED-69: Format

* ED-69: Fix lint

* ED-69: Fix spec

Co-authored-by: Артем <WWW_cool@inbox.ru>
Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>

* ED-69: Fix merge

* ED-69: Update damsel to master

Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>
Co-authored-by: Артем <WWW_cool@inbox.ru>
2021-10-22 16:02:13 +03:00
Sergey Yelin
33dcecd233
drop p2p (#611) 2021-10-20 14:19:41 +03:00
Sergey Yelin
6ade0aace9
Remove legacy repair mechanism since HG and MG switched to new one (#602) 2021-09-17 14:06:37 +03:00