Commit Graph

584 Commits

Author SHA1 Message Date
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
ndiezel0
84945e0378
TD-793: Refactor cascade tests (#103)
* Refactor cascade tests

* Fix spec

* Fix tests
2023-11-15 22:57:37 +05:00
ndiezel0
30e14fec09
Fix allocations (#101) 2023-10-26 11:36:41 +05: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
Артем
fe5ed51e11
Fix: Invoice get (#95) 2023-10-02 12:37:26 +03:00
Артем
8fa2d2a382
OPS-358: Split hg invoice (#90)
* refactored hg invoice

* fixed

* removed unnecessary adj creation

* removed for regular adj
2023-09-27 11:57:42 +03: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
db39bf920d
TD-291: test refactoring/split suite (#82)
* TD-291: test refactoring/split suite

* TD-291: fix format/dialyzer checks

* TD-291: update style config

* TD-291: fix typo

---------

Co-authored-by: anatoliy.losev <losto@nix>
2023-09-04 10:19:30 +03:00
Aleksey Kashapov
37f8ed7057
TD-675: Fixes currency ref in limit change log metadata (#87) 2023-08-03 12:40:29 +03:00
Aleksey Kashapov
afcb01738a
TD-675: Adds limit change log notice (#86) 2023-08-03 11:01:29 +03:00
Aleksey Kashapov
2698128ac0
OPS-268: Adds default logger permissions (#85) 2023-07-13 15:29:49 +03:00
Aleksey Kashapov
199015fcfb
OPS-268: Setups user in Dockerfile (#84) 2023-07-06 12:33:37 +03:00
Aleksey Kashapov
a71441e9e6
TD-656: Adds route candidates condition (#83)
* Removes obsolete testcase `payment_cascade_no_route`
* Makes fault detector mock suite-wise
2023-07-05 12:54:23 +03:00
ttt161
79bd2312fc
TD-564: refactor fail preprocessing repair scenarios (#81)
* TD-564: refactor fail preprocessing repair scenarios

* TD-564: add deps

* TD-564: fix dialyzer checks

* TD-564: cleanup

---------

Co-authored-by: anatoliy.losev <losto@nix>
2023-06-09 11:18:23 +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
Артем
2bf8307189
TD-482: Cashflow refactoring (#57)
* Merge branch 'TD-326/ft/refund' into TD-482/ft/cashflow_refactoring

* moved cashflow code to utils

* finished first version

* fixed after merge
2023-05-23 12:32:41 +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
Aleksey Kashapov
e87b1e2ccf
TD-597: Updates invoice payments testcases to support provider failure results with transaction (#75) 2023-05-15 15:40:11 +03:00
Артем
6a51744e9c
TD-326: Refund refactor (#46)
* Merge remote-tracking branch 'origin/TD-326/ft/new_staff' into TD-326/ft/refund

* changed gproc to process dictionary

* added refund

* added new refund integration

* fixed

* refactored container

* fixed

* fixed cover

* added container asserts

* Revert "changed gproc to process dictionary"

This reverts commit a27bd8f298.

# Conflicts:
#	apps/hellgate/src/hg_container.erl
#	apps/hellgate/src/hg_context.erl

* fixed after merge

* fixed tests

* refactored payment status change

* added requested changes

* added requested changes

* added refund callback test, fixed callback

* reseted cache

* fixed after merge

* fixed
2023-05-15 11:01:59 +03:00
Aleksey Kashapov
cbb33d6782
TD-597: Makes dummy provider implementations to use different trx id (#74) 2023-05-12 19:37:34 +03:00
Aleksey Kashapov
f70f7cc392
TD-596: Fixes attempted routes filtering (#73) 2023-05-11 13:23:32 +03:00
Aleksey Kashapov
6d3bb0053e
TD-592: Refactors transient errors list for cascade (#72) 2023-05-10 17:15:26 +03:00
Aleksey Kashapov
c95fa0367b
TD-586: Adds cascade testcase for refund (#69) 2023-05-10 17:02:53 +03:00
ndiezel0
14518ef276
TD-574: Update damsel (#70) 2023-05-10 13:15:47 +05:00
Aleksey Kashapov
4cc8e5d30d
TD-586: Move cascade hook to processing_failure activity handling (#68)
* Refactors merge_change for payment status change and cascade
context log message.
* Adds payment success testcase with multiple failing routes
2023-05-03 10:31:31 +03:00
Aleksey Kashapov
36f3b27ec0
TD-584: Allows to continue with processing failure (#67)
* Refactors merge_change for payment status change and cascade
context log message.
* Prevents rollbacked cash flow to get in the way.
* Updates test cases to complete till invoice' final status.
2023-04-25 17:13:35 +03:00
Aleksey Kashapov
e255a8e9a3
TD-568: Adds failure reason form no_route_found dynamic error (#66)
* Adds rejected routes failure reason when route not_found on limit overflow checks
* Modifies testcases to verify failure's reason
2023-04-24 10:33:08 +03: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
de0c01cfe4
CM-25: Adds limit changes queue for id BC (#63) 2023-03-28 13:59:47 +03:00
Aleksey Kashapov
d128e196be
CM-25: Adds crutch for serving legacy plan ids (#62)
`commit_payment_cashflow` and `rollback_payment_cashflow` will try
legacy plan id construction if normal not found.
2023-03-28 12:21:12 +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
renovate[bot]
fe4313ad40
Update valitydev/erlang-workflows action to v1.0.10 (#54)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-24 17:08:45 +05:00
renovate[bot]
6ad4663c16
Add renovate.json (#1)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pavel Popov <tolkonepiu@users.noreply.github.com>
Co-authored-by: Alexey S <kehitt@users.noreply.github.com>
Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
2022-11-24 16:31:12 +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
9a25ce678e
OPS-220: Ensure backward compatibility @ session events (#52) 2022-11-02 13:52:22 +03: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
Alexey S
f1f4d8a8fd
TD-352: Single stage adjustments (#45) 2022-10-27 09:35:56 +00:00
Артем
cc4ad884ee
TD-326: Add session module (#41)
* added session module

* added hg session integration, fixed

* fixed

* fixed

* added trx undefined check

* Revert "Auxiliary commit to revert individual files from 1000aa50dfe327a5ac11c6b461045a58182e110f"

This reverts commit 7061b5558ba0853c32a1bcac0061ba7854c7b734.

* added set trx function

* fixed

* fixed minors

* refactored event wrap

* fixed

* refactored fd

* fixed minor
2022-10-18 21:00:01 +04: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
bf6e9b13d4
Fix limit comparison w/ upper boundary (#47) 2022-09-07 18:24:39 +03: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