Commit Graph

306 Commits

Author SHA1 Message Date
Yuri Bukhalenkov
9d0e765920 moved party_management to a separated microservice 2021-05-24 14:30:10 +03:00
Boris
d6322238d4 Fix del legacy routing detection (#559) 2021-05-21 19:43:36 +03:00
Boris
db678139e8 ED-145: Handle exception ProvisionTermSetUndefined (#565) 2021-05-13 16:02:22 +03:00
Andrew Mayorov
c41cdc6e85 ED-142: Store and pass PayerSessionInfo where needed (#563)
* Bump to rbkmoney/damsel@66b9ae4
2021-04-30 12:19:26 +03:00
ndiezel0
57323946e2 HG-452: Add ComputeGlobals and ComputePaymentRoutingRuleset (#474)
* HG-452: Add compute payment institution to hellgate

* HG-452: Fix marshalling

* HG-452: Add ComputePaymentInstitution implementation

* HG-452: Fix payment_institution tests

* HG-452: Fix lint

* HG-452: Fix marshalling error

* HG-452: Add compute_contract_terms use

* HG-452: Add compute_contract_terms more use

* HG-452: Fix dialyzer

* HG-452: Update Provider

* HG-452: Remove compute p2p and withdrawal provider methods

* HG-452: Update party client

* HG-452: Add eunit test to selector

* HG-452: Add ComputeGlobals

* HG-452: Fix compile

* HG-452: Fix specs

* HG-452: Add ComputePaymentRoutingRuleset

* HG-452: Fix lint

* HG-452: Review fix

* HG-452: Fix tests

* HG-452: Remove migration remains

* HG-452: Add `PaymentRoutingCandidate` validation

* compute_globals: removed extra parameter GlobalsRef

Co-authored-by: Yuri Bukhalenkov <y.buhalenkov@rbk.money>
Co-authored-by: yuri-bukhalenkov <78025148+yuri-bukhalenkov@users.noreply.github.com>
2021-04-29 16:05:45 +03:00
George Belyakov
277a436440 ED-101: party management terms calculation (#561)
* add reduce_if_defined to reduce_provider in pm_provider

* check provider terminal terms reducing for both provider/terminal are undefined

* dialyzer

* format

* test try (throw instead of error)

* add test to undefined provider-terminal terms fix

* rework try/catch+assertMatch in compute_terminal_terms test

Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
2021-04-28 14:53:01 +03:00
yuri-bukhalenkov
9f2e3a36e4 ED-135: removed global_ref param from pm_party_client:compute_globals (#562)
* updated damsel

* removed global_ref param from pm_party_client:compute_globals

* fixed review issue
2021-04-28 11:19:35 +03:00
Yaroslav Rogov
f84329d470 ED 81/pass rec payment tool id (#554)
* refactor: Fix typo

* ED-81:deps: Update damsel

* ED-81:deps: Update build_utils

* ED-81:feat: Accept RecPaymentToolID

* Revert "ED-81:deps: Update build_utils"

This reverts commit 5ee03f47af7a19a1d8a3f506d4cde7383f0eaea4.

* ED-81:test:Fix start_two_bindings_w_tds test case

* ED-81:refactor:Fix rebar.lock indentation

* ED-81/fix: Add customer_binding_id from params

* ED-81/test: Fix tests with two bindings

* refactor: Add FIXME for uid
2021-04-26 11:02:43 +03:00
Sergey Yelin
cf737ec445 ED-102: Update damsel (#558)
* ED-102: Update damsel

* Fix lint errors

* ED-102: Add new CryptoCurrency

* Remove unused create_from_method/1

* Remove unused test_condition/3
2021-04-06 15:14:02 +03:00
dinama
8dcc98a58b ED-86: +hg_customer dynamic poll timeout (#552) 2021-03-23 00:03:47 +03:00
Boris
10d5ad74bc merge PaymentsProvisionTerms.turnover_limits (#553) 2021-03-19 13:04:05 +03:00
Andrey Fadeev
19f1b56ab5 Update damsel to rbkmoney/damsel@ca2b3ad (#551) 2021-03-16 20:23:15 +03:00
Sergey Yelin
79a1cfca55 ED-75: Update image (#550) 2021-03-11 13:33:30 +03:00
Andrey Fadeev
e6c9cd9769 Allow to build service without the private registry (#548) 2021-03-05 18:37:04 +03:00
Boris
9884edce70 MSPF-628: Add proto limiter integration (#534) 2021-03-02 22:34:19 +03:00
yuri-bukhalenkov
8f24ec5890 ED-43: Добавить поддержку RBS (#546)
* updated rebar.lock

* updated rebar.lock; removed legacy_domain_revision

* +scenario mandatory

Co-authored-by: dinama <dinama@users.noreply.github.com>
2021-03-02 17:19:00 +03:00
yuri-bukhalenkov
70ad2abc34 Hg-568: added a new field "trusted_client" for an antifraud system (#539)
* added trusted_client field to an InvoiceParams(payment_processing) and forwarded it to an Invoice(domain)

* pushed field trusted_client to a proxy_inspector

* HG-568: moved field trusted_client to an extra structure InvoiceClientInfo and renamed it to is_trusted

* update rebar.lock
2021-02-09 13:20:50 +03:00
Sergey Yelin
5b6b8e2caa Add uzcard as payment system (#538) 2021-02-02 15:56:23 +03:00
dinama
8847162ef8 +fix health_check demo config (#537) 2021-02-01 19:07:24 +03:00
dinama
f6fef9983c upgrade: +image +deps +endpoints (#535) 2021-01-31 17:39:04 +03:00
dinama
b79f6ea8b3 pass make_recurrent to inspector (#532) 2020-12-24 14:10:19 +03:00
dinama
108f39c88d +upgrade all +fix after upgrade (#531) 2020-12-24 12:12:05 +03:00
Sergey Yelin
9cc3ff7f95 Fix leaked containers on CI (#529) 2020-12-17 21:20:33 +03:00
dinama
6caab9468f update build env (#525) 2020-12-09 17:36:14 +03:00
Alexey
3816242608 CAPI-430: Add last_transaction_info to payproc_InvoicePayment (#522) 2020-12-09 14:54:16 +03:00
Andrew Mayorov
a64217d9b3 Avoid warnings spam w/ incompatible cash ranges (#516)
Prefer to return well-specified error tuple instead.
Also Bump invoice lifetimes up in customer tests.
2020-12-04 17:27:30 +03:00
Sergey Yelin
2b52307fde Cleanup release env (#518)
* Cleanup release env

* Fix formatter version

* Fix formatter url
2020-12-02 13:55:34 +03:00
Sergey Yelin
7752578689 Revert "Cleanup release env"
This reverts commit 128d99f9658694468e580b7ab3e7a9bde6717499.
2020-12-02 11:57:12 +03:00
Sergey Yelin
c7fb216e64 Cleanup release env 2020-12-02 11:46:25 +03:00
Sergey Yelin
f5a0978518 Update image (#511) 2020-11-27 16:48:54 +03:00
George Belyakov
aabb57ab14 hitch up all routing rules damsel changes (#507) 2020-11-16 10:55:56 +03:00
Toporkov Igor
241c870fd0 HG-555: Refactor PM ComputeShopTerms (#498)
* Hadle varset that might be sent in future

* Leave a comment about the migration process

* Update damsel & party_client

* Use party_client to call PM, add Varset to ComputeShopTerms args

* Add Varset to pm_client and tests

* Use Varset in party management
2020-11-15 22:45:09 +03:00
Sergey Yelin
044076c404 Add risk coverage to provider (#505)
* Add risk_coverage handling

* Pass RiskScore to provider acceptor

* Make risk coverage selector optional

* Remove dead code

* Add tests for routing

* Routing tests cleanup

* Fix dialyzer

* Localize varset/0 type

* Formatting

* Remove comment

* Add tests to rule sets

* Make provider cover operation with lower risk score

* Rewrite risk compirision logic

* Formatting

* Update dominant
2020-11-12 17:29:09 +03:00
Roman Pushkov
3ba836ffb5 HG-560: routing with pm (#495)
* add collect routes handler

* add compute provider handling

* remove collect routes handler

* add faulty config test

* return undefined cash range check result

* fix logger call

* run fmt
2020-11-12 11:18:16 +03:00
Andrey Fadeev
41e865971d Add dummy payment system (#506)
Bump damsel up to rbkmoney/damsel@3710cab
2020-11-11 14:45:46 +03:00
Toporkov Igor
adfe44a84b Revert "Revert "HG-555: update ComputeShopTerms clients (#497)" (#503)" (#504)
This reverts commit 72f6fd5c3d9800b2e1bda1bf5e273edac8d7e72c.
2020-11-09 13:50:16 +03:00
Toporkov Igor
1b113aa752 Revert "HG-555: update ComputeShopTerms clients (#497)" (#503)
This reverts commit 9a8ad47008752b8af573ce8bcaa784377650e082.
2020-11-05 12:09:36 +03:00
Toporkov Igor
147e1e1694 Rollback to an old image (#502) 2020-11-05 11:30:07 +03:00
Sergey Yelin
786548945f Update service erlang image (#501) 2020-11-03 10:09:21 +03:00
Toporkov Igor
0ba6ce3736 HG-555: update ComputeShopTerms clients (#497)
* Hadle varset that might be sent in future

* Leave a comment about the migration process

* Update damsel & party_client

* Use party_client to call PM, add Varset to ComputeShopTerms args

* Add Varset to pm_client and tests
2020-10-30 14:54:58 +03:00
Toporkov Igor
8469a2995d HG-555: Handle Varset in ComputeShopTerms (#496)
* Hadle varset that might be sent in future

* Leave a comment about the migration process
2020-10-30 11:58:59 +03:00
Sergey Yelin
57ca9a8bd5 Add prometeus (#494) 2020-10-24 09:01:20 +03:00
ndiezel0
5af3baedd1 HG-452: Add PartyManagement usage to hellgate (#485)
* HG-452: Add PartyManagement usage to hellgate

* HG-452: Review fix

* HG-452: Save some lines

* HG-452: Review fix

* HG-452: Get rid of extra fields in Varset

* HG-452: Fix lint

* HG-452: Review fix

* HG-452: Fix

* HG-452: Review fix

* HG-452: Review fix

* HG-452: Format

* HG-557: Fix merge

* HG-557: Add comment

* HG-452: Update build_utils

* HG-452: Rollback hg_routing Varset changes

* HG-452: Fix spec
2020-10-20 18:16:05 +03:00
ndiezel0
9849c12150 HG-557: Add logging of cache hit/miss (#489) 2020-10-19 16:11:16 +03:00
ndiezel0
e9893dcc43 HG-452: Add caching for Checkout Party (#487)
* HG-452: Add caching for Checkout Party

* HG-452: Fix dialyzer

* HG-452: Format

* HG-452: Make cache work

* HG-452: Review fix

* HG-452: Fix specs

* HG-452: Review fix

* HG-452: Fix

* HG-452: Review fix

* HG-452: Format
2020-10-16 13:41:47 +03:00
Toporkov Igor
5eed85e519 HG-547: Validate cash register claims (#484)
* Assert cash registry-assosiated shop exists in party or could claimed to be created

* Filter out cash register shopIDs

* Test new validation

* Fix typo in test case name, fix missing space

* Always check cash register claims

* Fix cash register spelling

* Format code using erlfmt

* Use sets instead of lists

* Move cash_register claims validation to pm_claim_committer
2020-10-13 14:31:57 +03:00
ndiezel0
351b790873 HG-452: Fixed party_management (#483)
* HG-452: Fixed party_management

* HG-452: Add pm_varset and encode_decode test

* HG-452: Fix merge

* HG-452: Formatter
2020-09-28 12:37:41 +03:00
Andrey Fadeev
8093d04623 Try erlfmt (#479)
Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-09-25 18:14:03 +03:00
Sergey Yelin
52967bd114 Update woody (#482)
* Revert "Update woody and fix backward clock error (#478)"

This reverts commit 7ee4679b1ec5954962a00b4eb84108d2274dd0ba.

* Update woody and fix backward clock error (#478)

* Fully embrace new woody args-are-tuples convention (#480)

* Remove HG-542 revert artefact

Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>
2020-09-18 19:18:59 +03:00
Sergey Yelin
6588cefb0f Revert HG-452 (#481)
* Revert "Fully embrace new woody args-are-tuples convention (#480)"

This reverts commit d95579a0d7817e2bbb93797ee6567a80063978e1.

* Revert "HG-452: Fix pm_ruleset (#477)"

This reverts commit 6f4433bdc789b2e65590621ed8af69f331b1fd95.

* Revert "Update woody and fix backward clock error (#478)"

This reverts commit 7ee4679b1ec5954962a00b4eb84108d2274dd0ba.

* Revert "HG-452: Add pm methods usage (#443)"

This reverts commit 3a9142df3ba8b43433e099655a6b5a3ec4c9fd82.
2020-09-18 16:57:01 +03:00