Commit Graph

154 Commits

Author SHA1 Message Date
Andrey Fadeev
2270d57cf9 PROX-386 Add shop to RecurrentTokenInfo in ProviderProxy.GenerateToken (#417) 2020-01-30 08:37:12 +03:00
Sergei Shuvatov
826ac4afff HG-533: actualize claim management protocol (#415) 2020-01-28 20:37:36 +03:00
Артем
588bbbb220 Revert "HG-469: Validate recurrent route (#410)" (#416)
This reverts commit 3460f019f079187557d8dee65a8f744efe40a9fb.
2020-01-28 18:54:02 +03:00
Артем
0cc4e66917 HG-469: Validate recurrent route (#410)
* validate recurrent route

* added fixes and test

* added requested changes

* fixed test

* added requested changes

* Update apps/hellgate/src/hg_invoice_payment.erl

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* added requested changes

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
2020-01-22 14:45:32 +03:00
Sergey Yelin
1e06fd2519 Upgrade woody (#411) 2020-01-17 13:29:22 +03:00
Sergey Yelin
4a3aac068b AAA-54: Fix typo in config param (#409)
* AAA-54: Upgrade dmt_client

* Upgrade how_are_you

* Upgrade woody

* Fix typo in config
2020-01-09 17:48:57 +03:00
Sergey Yelin
df97a7aac0 AAA-54: Improve formatter (#408)
* AAA-54: Upgrade dmt_client

* Upgrade how_are_you

* Upgrade woody
2020-01-09 15:25:31 +03:00
Sergey Yelin
0bf030fa5b AAA-54: Upgrade dmt_client (#404) 2019-12-20 18:52:04 +03:00
Sergey Yelin
302a04b8d6 Aaa 54 remove spaces (#401)
* AAA-54: Remove spaces in messages

* Update dmt_client and config
2019-12-13 18:36:31 +03:00
Sergey Yelin
606e74287b AAA-54: Remove spaces in messages (#399) 2019-12-13 13:06:16 +03:00
Sergey Yelin
96b6cecd5b Update woody (#395)
* Update woody

* More optimisations
2019-12-12 11:09:55 +03:00
Sergey Yelin
80ff9e5774 BJ-703: Add wechat and alipay to payment tool (#396)
* BJ-703: Add wechat and alipay to payment tool

* Fix tests
2019-12-12 07:15:17 +03:00
Sergey Yelin
5021fff28f Switch to new woody with log formatter (#394)
* Switch to new woody with log formatter

* event_handler_opts -> scoper_event_handler_opts

* Fix lint

* Add limit to tests

* Fix formater option passing

* Fix woody params passing

* Update woody
2019-12-09 18:03:05 +03:00
Roman Pushkov
85dcddc400 HG-527: recurrent paytool eventsink sequence (#391)
* update damsel

* update recurrent paytool client

* update eventsink client

* update event provider

* update recurrent paytool

* more recurrent paytool client updates

* revert event sink client changes

* finalise event sink test

* dialyzer fix

* review fixes

* review updates

* improve recurrent paytool eventsink test

* fix linter error
2019-12-05 14:18:38 +03:00
Sergey Yelin
50471c0ffa HG-524: add info to invoice payment (#389)
* Update damsel

* Add route and cacheflow

* get_refunds() -> get_legacy_refunds()

* Add sessions and refunds(without session yet)

* Fix session conversion

* Rename

* Simplify sort

* session -> sessions for list of session

* Replace legacy_refunds with new refunds

* Fixes

* Remove get_legacy_refund/1

* Check refunds instead of legacy_refunds

* Use list of sessions for every target

* Simplify sessions mapping
2019-11-19 19:13:54 +03:00
Boris
da953a06ef FF-124: P2P upd damsel, LifetimeSelector (#387) 2019-11-07 16:31:24 +03:00
Boris
4ef337c521 add P2PServiceTerms: allow, quote_lifetime (#382) 2019-10-29 12:12:03 +03:00
Boris
0ae274de35 add P2PServiceTerms (#369) 2019-10-17 17:33:16 +03:00
Артем
1e80f845d6 HG-520: Added party revision (#378) 2019-10-17 13:23:45 +03:00
Артем
7218b27db5 HG-517: Get invoice state with range (#372)
* added get with range

* updated proto

* minor

* minor
2019-10-15 16:02:48 +03:00
Sergey Yelin
6f69fe59ca HG-500: Switch to shumpune-proto (#353)
* HG-500: Switch to shumpune-proto

* Added shumpune

* Switch to shumpune

* Fix call to get_balance

* Upgrade to fixed shumpune

* Add shumpune to sys.config

* AffectedAccounts -> Clocks

* Cleanup

* Add missing shumpune_proto to hellgate

* More cleanup

* Fix spec fot commit/rollback

* Remove shumoune service and switch accounter to shumpune

* Split plan/2 to plan/2 and hold/2.

* Remove shumway (free resources)

* More API cleanup

* More cleanup

* Change plan/2 according protocol

* Update shumpune

* Switch to shumway

* Switch to shumway

* Fix test config

* Revert "Revert "HG-516: pass transport_opts in hg_client_api (#371)" (#375)"

This reverts commit 1f96b4a0d3ff3f6ddcb3d70a33f4073e895c7744.
2019-10-15 13:17:42 +03:00
Andrey Fadeev
859ccbb6f6 FF-77 Add party and domain revision to ComputeContractTerms (#370) 2019-10-04 11:49:18 +03:00
Sergei Shuvatov
619c65981a HG-513: add minimal_payment_cost field to RecurrentPaymentTool (#366) 2019-09-26 12:53:41 +03:00
Sergey Yelin
32e85554dc HG-503: Add GetStatus API call for PartyManagement (#361)
* HG-503: Add GetStatus API call for PartyManagement

* Typo
2019-09-10 15:41:44 +03:00
Sergei Shuvatov
6310904721 HG-494: add claim committer (#357)
* HG-494: add claim committer

* HG-494: review fixes

* Replace boilerplate with macroses

* More macros

* More macroses

* More macroces - 2

* More macroses - 3

* More macroses - 4

* More macroses - 5

* More macroses - 6

* Rename funcions

* Remove contractor_identity_documents_modification (will be removed from
proto)

* More fixes

* Remove identity docs from claimant management proto
2019-09-09 18:10:55 +03:00
Sergey Yelin
7bde8e753a Revert "AAA-54: Upgrade woody (#354)" (#355)
This reverts commit 74c5fc50c5a2da84de9546705abce8eb4cfe87dd.
2019-08-26 15:48:52 +03:00
Sergey Yelin
969262afdf AAA-54: Upgrade woody (#354) 2019-08-26 13:28:46 +03:00
Boris
5864fb9e19 add mobile_commerce; add tests; suspend timeout behaviour (#340) 2019-08-19 17:16:16 +03:00
Toporkov Igor
ce684ee8a1 MSPF-475: Replaced sequences with bender (#345)
* Replaced sequnces with bender

* Nested bender generation call

* Added bender url to config

* Removed unnecessary lines

* Construct refund id without bender

* Implemented proper id construction

* Operator whitespace fix

* Refactored test

* Codestyle fix

* Removed bender

* Simplified max id search

* Renamed dmsl
2019-08-09 13:54:11 +03:00
Alexey
dbb42b2249 HG-496: Upgrade damsel (#349) 2019-08-08 15:28:49 +03:00
Andrew Mayorov
b008006eed Enable healthcheck logging (#350)
* rbkmoney/logger_logstash_formatter@b53af86
* rbkmoney/woody_erlang_user_identity@6eca18a
* rbkmoney/erlang-health@c190cb8
2019-08-08 14:59:08 +03:00
Andrey Fadeev
56f24b381d Update woody to export more metrics (#343) 2019-07-25 18:26:05 +03:00
Roman Pushkov
bcef5fd6f0 CAPI-369: tds interaction (#339)
* update damsel

* add wallet with token to tests

* update tests

* remove redundant test
2019-07-18 00:06:55 +03:00
Alexey
8295a6040f HG-458: Move refund and adjustment accounter interactions to processor (#333) 2019-07-04 17:40:18 +03:00
Sergei Shuvatov
da2cc7fa7a HG-472: add terminal priority (#318) 2019-06-24 18:51:50 +03:00
Sergey Elin
8635a3769e Switch to logger (#335)
* Revert "HG-478 Revert update to Erlang 21 (#320)"

This reverts commit 7179e82258e6d8a779448640e2ebe4d5ed79a35b.

* MSFP-433: Erlang 21 with lager

* Fix comments

* HG-479: Switch to logger

* HG-479: Add memory limit for test container

* HG-479: Fix missing

* Fix logger config

* HG-479: Fix for logger formatter

* HG-479: lager -> logger
2019-06-21 21:48:37 +03:00
Sergey Elin
fbddb4f2d3 MSPF-467: Update erlang and deps (#334)
* MSPF-467: Update erlang and deps

* MSPF-467: Update service-erlang
2019-06-21 18:26:10 +03:00
Andrey Fadeev
1a772ef49a HG-484 Encode MG calls with thrift (#329) 2019-06-17 15:55:36 +03:00
Roman Pushkov
f72bbab569 HG-477: Allow provider fee selection by terminal (#314)
* update gitignore

* add terminal_is condition test to hg_condition

* add terminal to varset

* use terminal in routing varset

* update tests to use terminal_is condition

* update dmsl and dominant

* fix dialyzer

* revert, use optional fields in payment terms

* add support for optional fields in terminal terms

* update damsel, dominant

* add custom fee to a terminal in tests

* update dominant

* revert terminal_is check in hg_condition

* more explicit naming

* add cashflow override test

* terminal holds and refunds override provider
2019-05-31 12:03:58 +03:00
Roman Pushkov
0fc4198197 HG-466: Use fault detector in hellgate routing (#302)
* add fault-detector dep

* fix typo

* update rebar.lock

* update fault detector version

* init fault detector client

* add fault detector base

* add fault-detector url placeholder

* get fault-detector url from env

* fix woody client call

* fix formatting, update gitignore

* update fd client, add fd init placeholder after routing

* add fault_detector_proto to app.src

* fix register_operation in fault detector

* update register operation template after choosing route

* update fd client

* add fault detector to hg_proto

* add placeholder for fd scoring in routing

* add fault detector template to sys.config

* update fault detector client

* add GetStatistics call to routing

* update fault detector client

* update get statistics call in routing

* doc tweak

* fix typing

* fix type

* add init service after routing

* update fd client

* add fd notifiers on success and failure

* clean comments

* add fd dummy to tests

* update routing

* temporarily disable sending operations to fd

* add fd routing test case

* remove retry strategy from fd client

* minor tweak

* add fd routing test

* update tests

* update fd client

* update fd client

* refactoring, update test

* formatting fix

* minor refactoring

* more refactoring

* more refactoring

* fix formatting errors

* minor

* space fix

* fix typo

* remove whitespace

* fix whitespace

* Update hg_direct_recurrent_tests_SUITE.erl

* Update hg_invoice_tests_SUITE.erl

* formatting fixes

* separate routing tests

* update config

* update routing

* update fd client

* clean up comments, update fault detector calls

* fix errors

* fix line length

* fix commas

* fd refactoring

* improve fd formatting

* formatting

* refactoring

* add fail rate scoring test base

* split route selection into multiple functions, refactoring

* fix line length

* update fd config, move fd notification to hg_proxy_provider

* config update

* fd client refactoring

* new route selection + tests

* fix trailing comma

* update config

* update fd client with new config

* rework route selection algorithm

* fix error handling in hg_proxy_provider

* merge, update tests, fix types

* move to logger in fd client

* build_utils update

* fix build utils

* remove lager, update fd child spec

* minor refactoring

* revert to lager in fd

* revert to lager in routing tests

* add match on terminate child in tests

* remove unnecessary include
2019-05-27 11:06:38 +03:00
Andrew Mayorov
40e7c28533 Allow to turn transition validation off w/ repairs (#325)
* Add final test ensuring balances are consistent
* Bump to rbkmoney/damsel@ce5f697
* HG-482: Fix crash in new damsel
2019-05-23 17:56:47 +03:00
Sergey Elin
17c9a5dc41 Upgrade to Erlang 21 (with lager) (#322)
* MSFP-433: Erlang 21 with lager
2019-05-20 14:59:29 +03:00
Andrey Fadeev
45045eef0a HG-478 Revert update to Erlang 21 (#320)
* Revert "MSFP-433: Fix badmatch in woody (#316)"

This reverts commit c9174907a2fd80b7e2d1968a8a850549ce043f62.

* Revert "Upgrade woody (#315)"

This reverts commit e1ed1624971f30142da7a82653bd2ece7616be9d.

* Revert "HG-433: Upgrade to Erlang 21 (#313)"

This reverts commit faf7d595dd6e5a04a882a09514ee29d84ae4d582.
2019-05-17 11:52:11 +03:00
Sergey Elin
2926668a89 MSFP-433: Fix badmatch in woody (#316) 2019-05-15 17:54:22 +03:00
Sergey Elin
201b3d1e37 Upgrade woody (#315) 2019-05-15 12:48:08 +03:00
Sergey Elin
c482e862bb HG-433: Upgrade to Erlang 21 (#313)
* HG-433: Upgrade build_utils
* HG-433: Upgrade base erlang image and build image
* HG-433: Upgrade machinegun
* HG-433: Upgrade libraries
* HG-433: Switch to cowboy 2.x
* HG-433: Update dmt_client
* HG-433: Switch to logger
2019-05-08 15:17:59 +03:00
Sergei Shuvatov
443f638b47 HG-473: bump dmt_client (#312) 2019-05-06 17:08:33 +03:00
Andrew Mayorov
5fa7b66362 Implement payment context storing (#311)
* Bump to rbkmoney/damsel@3883e6a
2019-04-30 20:38:31 +03:00
Sergey Elin
d0334c7318 HG-471: Added risk_score_is_too_high to no_route_found (#308)
* Added risk_score_is_too_high to no_route_found
* Update damsel
* Fix logger level for new status
2019-04-26 11:48:07 +03:00
Sergei
56a648f44f HG-473: optimize memory consuption by dmt_client (#309) 2019-04-25 16:20:12 +03:00