Commit Graph

223 Commits

Author SHA1 Message Date
Alexey S
33534906fb
TD-260: Update damsel and remove migration code (#16) 2022-04-21 11:21:14 +03:00
ndiezel0
f757b7905b
TD-262: Move from shumpune to accounter (#15)
* TD-262: Move from shumpune to accounter

* Fix spec

* Add test

* Fix
2022-04-08 01:32:50 +03:00
Alexey S
76058e0aa8
TD-226: Remove UserInfo-based auth (#13) 2022-04-05 14:51:12 +03:00
Andrew Mayorov
0d6ab9407d
OPS-53: Implement ComputeProviderTerminal (#8)
* Bump to valitydev/damsel@8016313a
* Make testclient more flexible yet explicit
* Isolate exception throwing in handler module
2022-03-04 19:15:50 +03:00
ndiezel0
d86fcbf5b5
APM-55: Add GenericPaymentSystem support (#4)
* APM-55: Add GenericPaymentSystem support

* Update dominant

* Fix test fixture

* Add generic payment-service

* Add test

* Replace ct test with unit test

* Format and fix spec

* Review fix
2022-02-08 21:53:38 +03:00
ndiezel0
a405fce864
TD-128: Add CI, Makefile, Dockerfile and docker-compose.yaml (#2)
* TD-128: Add CI, Makefile, Dockerfile and docker-compose.yaml

* Fix format and lint

* Use compose test

* Update erlang workflow version

* Add covertool

* Move to valitydev repos

* Add prometheus clarification

* Use compose spec instead of docker compose spec

* Update .github/workflows/build-image.yaml

Co-authored-by: Alexey S. <kehitt@users.noreply.github.com>

* Add healthchecks to dominant and machinegun in compose file

* Fix Dockerfile SERVICE arg

* Try to solve mystery of alias

* fix

* fix

* fix

* Only check shumway to be healthy

* Insert daemon socket

* Find container

* Inspect last container

* Try different method to print inspect

* One last try

* Fix

* Remove hostname from docker-compose.yaml

* Check `$SERVICENAME` availability

* cat envfile

* Test theory

* Change service name

* Revert experiments

* Fix healthcheck

* Disable wait for health on dominant

Co-authored-by: Alexey S. <kehitt@users.noreply.github.com>
2022-02-07 11:17:17 +03:00
Andrew Mayorov
3b9cd7b610
Add support for damsel @ b4447c90
With `sum_of` cashflow volumes product.
2021-12-08 19:35:57 +03:00
yuri-bukhalenkov
c756e131b7
ED-293/update damsel (#28)
* updated damsel
2021-11-23 10:22:49 +03:00
dinama
63c7b92c75
+disable latest_version caching in sys.config (#25) 2021-10-22 11:19:44 +03:00
Sergey Yelin
0930df3367
ED-253: Fix P2P disaster (#24) 2021-10-20 11:33:18 +03:00
Sergey Yelin
0a85c58f78
ED-253: Remove P2P (#23) 2021-10-19 10:27:20 +03:00
dinama
4d4e678627
ED-126: +extend ShopContract (#21) 2021-10-12 13:55:42 +03:00
dinama
9dea357e33
ED-272: +aggregate shop data (#17) 2021-09-30 13:24:56 +03:00
dinama
a2dddbbc4a
ED-281: +support new InvalidChangeset (#18) 2021-09-29 16:34:42 +03:00
Yaroslav Rogov
4021e74c3f
ED-268/deps: Update mg_proto to use ProcessRepair (#15)
* ED-268/deps: Update mg_proto to use ProcessRepair

* ED-268/ref: Fix typespecs
2021-09-29 11:00:19 +03:00
Sergey Yelin
f55197723b
ED-242: Upgrade Erlang 24 (#13) 2021-09-14 12:54:42 +03:00
Yaroslav Rogov
20904d867d
refactor: Rewrite pm_party reduce and merge in a generic fashion (#8)
* refactor: Rewrite pm_party reduce and merge in a generic fashion

* fix: Fix Selector struct checking

* refactor: Refactor generic code

* fix: Fix typos

* fix: Fix selector

* fix: Fix is_selector

* refactor: redo generic struct checking to case variant

* fix: Fix typo

* fix: Switch to more type-safe is_terms

* refactor: Move spec to appropriate place

* refactor: Switch to thrift reflection for is_predicate

* refactor: Add commect regarding is_terms impl

* refactor: remix merge_terms clauses

* refactor: Use new genlib_range

* fmt: Fix formatting

* ref: Refactor to type-driven generic implementation

* fix: Fix selector check

* fmt: Fix formatting

* Update apps/party_management/src/pm_party.erl

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

* ref: Remove leftover

Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>
2021-09-07 15:52:20 +03:00
Yaroslav Rogov
1431cc385e
ED-190/deps: Update dmt_client (#4)
* ED-190/deps: Update dmt_client

* ED-190/deps: Update dmt_client

* ED-190/fix: remove explicit dmt_client_cache update

* ED-190/deps: update dmt_client

* ED-190/fix: leftovers

* ED-190/fix: Fix commit ops and tests

* ED-190/refactor: fix formatting

* ED-190/refactor: fix formatting
2021-08-25 14:13:31 +03:00
yuri-bukhalenkov
9a8cd55d2d
updated damsel (#10) 2021-08-20 14:26:12 +03:00
Yaroslav Rogov
1496493835
feat: Add dictionaries and BinData support (#7)
* feat: Add dictionaries and BinData support

* ED-207/refactor(ternary): Remove with_defined, add docs and tests

* ED-207/fix: Return ternary_while for correct behaviour

* ED-207/deps: Update damsel for BinData

* ED-207/fix: Add reverse-compatibility to crypto-currency

* ED-207/test: Fix dialyzer error

* ED-207/fix: Fix varset decoding

* ED-207/refactor: minor refactoring

* ED-207/deps: Update wdeps deps

* ED-207/test: Add tests for dictionary payment methods

* ED-207/refactor: Fix dialyzer warnings

* Revert "ED-207/fix: Add reverse-compatibility to crypto-currency"

This reverts commit 56db16b9f5443e59e002a770df48c00467e067ea.

* ED-207/fix: Add clause for crypto cond version mismatch

* ED-207/refactor: Fix formatting
2021-08-19 13:49:12 +03:00
yuri-bukhalenkov
eb22d73b27
updated damsel (#2) 2021-06-21 15:25:49 +03:00
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
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
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
Andrey Fadeev
19f1b56ab5 Update damsel to rbkmoney/damsel@ca2b3ad (#551) 2021-03-16 20:23:15 +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
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
Alexey
3816242608 CAPI-430: Add last_transaction_info to payproc_InvoicePayment (#522) 2020-12-09 14:54:16 +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
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
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
Sergey Yelin
57ca9a8bd5 Add prometeus (#494) 2020-10-24 09:01:20 +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
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
ndiezel0
02b39461c4 Update woody and fix backward clock error (#478) 2020-09-10 17:58:12 +03:00
ndiezel0
470a39a76d HG-452: Add pm methods usage (#443)
* 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: Fix tests

* 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: Fix tests

* HG-452: Review fix

* HG-452: Review fix

* Update apps/hellgate/src/hg_invoice_payment.erl

Co-authored-by: Andrey Fadeev <me@ciiol.net>

* HG-452: Review fix

* HG-452: Remove CreatedAt

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-09-07 16:16:34 +03:00
Roman Pushkov
13979efa94 HG-545: register status change timestamps (#473)
* add occurred in invoice handlers

* store latest change in payment

* remove unused function

* update merge_change

* minor fixes

* one more fix

* store ts in payment opts

* update opts handling

* cleanup

* minor cleanup

* timestamps for invoice adjustments

* update damsel

* unify adjustment timestamps

* fix exports
2020-09-04 14:32:38 +03:00
ndiezel0
118ff48698 HG-452: Implement ComputeGlobals and ComputePaymentRoutingRuleset (#466)
* HG-452: Update Varset

* HG-452: Add ComputeGlobals and ComputePaymentRoutingRuleset implementation

* HG-452: Fix tests

* HG-452: Fix test

* HG-452: Fix dominant config in party test

* HG-452: Fix lint

* HG-452: Fix xref and tests

* Update apps/party_management/src/pm_party_handler.erl

Co-authored-by: Andrey Fadeev <me@ciiol.net>

* HG-452: Review fix

* HG-452: Update damsel

* Update apps/party_management/test/pm_party_tests_SUITE.erl

Co-authored-by: Andrey Fadeev <me@ciiol.net>

* HG-452: Add WRONG_DMT_OBJ_ID macro to pm tests

* HG-452: Add tests

* HG-452: Fix order

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-08-07 16:02:02 +03:00