Commit Graph

310 Commits

Author SHA1 Message Date
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
Roman Pushkov
1e3a74c611 HG-530: handle certain errors as fd finishes (#406)
* add handling

* cleanup

* fix

* dialyzer fix

* fix typo

* improve naming

* add safe failures to config

* fix naming

* rename safe to benign

* make fd operations time-independent

* fix compilation errors
2020-01-09 12:26:17 +02:00
Sergey Yelin
0bf030fa5b AAA-54: Upgrade dmt_client (#404) 2019-12-20 18:52:04 +03:00
Sergey Yelin
f1a595f283 Force cache save in CI (#403)
* Force cache save in CI
2019-12-20 17:53:09 +03:00
Sergei Shuvatov
a62a3eeb67 Update machinegun (#402) 2019-12-16 19:57:26 +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
Roman Pushkov
60be383a3e HG-514: provider conversion routing (#367)
* add conversion service type to fd client

* fetch conversion stats in routing

* minor fix

* add deterministic operation id to fd client

* register conversion operations in invoice payment

* update routing

* fd client minor refactor

* add conversion scoring

* cleanup comments

* fix linter errors, export build_operation_id/2

* fix dialyzer error

* refactor

* fix argument naming

* conversion test

* minor naming updates

* move conversion service config to sys.config, minor fixes

* refactoring

* update tests

* update routing types

* fix tests

* update config

* move conversion service calls

* update tests

* explicit config for availability

* update routing

* clean comment

* update tests

* update routing

* update routing in invoice payment

* cleanup debug calls

* refactor fd calls

* fix typo

* add provider conversion to process payment

* cleanup invoice payment

* update routing in recurrent paytool

* update routing

* update tests

* fix fd call, clean ct:print

* refactor proxy provider

* fix wrong return

* missing full stop

* fd client update

* conversion service in invoice payment

* revert forgotten process payment changes

* cleanup

* fix typo

* fix scoring, cleanup

* narrow id() type in fd client

* proxy provider cleanup

* invoice payment fd calls refactoring

* add and improve routing tests

* update config, move start conversion service

* move notify fd, again

* fd notification minor rework

* only register payment processing with target processed

* fix

* fix config
2019-11-25 16:42:48 +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
Alexey
95b6dffc75 Revert "Revert "HG-518: Route change reporting" (#386)" (#388) 2019-11-15 17:17:12 +03:00
Boris
da953a06ef FF-124: P2P upd damsel, LifetimeSelector (#387) 2019-11-07 16:31:24 +03:00
Andrey Fadeev
f1613123b6 Revert "HG-518: Route change reporting" (#386)
This reverts commit db9c73eb0e3f9ac18a361302dc489e08b6e5be7d.
2019-11-06 20:50:48 +02:00
Alexey
fc18e51d40 HG-518: Route change reporting (#373) 2019-11-01 13:55:44 +03:00
Boris
4ef337c521 add P2PServiceTerms: allow, quote_lifetime (#382) 2019-10-29 12:12:03 +03:00
Sergey Yelin
773d29ffb2 Erlang 21.3.8.7 (#381) 2019-10-23 16:44:24 +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
Anton Kuranda
a5c989a11d Let's make it opensource (#364) 2019-09-20 00:09:59 +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
Sergey Yelin
9fa91226cf Allow stop shumway manually (#332) 2019-08-06 13:24:20 +03:00
Andrey Fadeev
56f24b381d Update woody to export more metrics (#343) 2019-07-25 18:26:05 +03:00
Артем
fcbdcbac6f HG-490: Weight to provider choose (#338)
* added some weight to provider choose

* some changes

* added weight tests

* nano

* minor

* nano

* fixed

* fixed

* refactored

* minor
2019-07-23 15:44:34 +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
Sergey Elin
2db9db7b10 Remove logger_logstash_formatter from hellgate deps (#337) 2019-07-10 12:30:07 +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
7f6bf45e5c HG-489: timeout for fault detector to prevent processing errors (#331)
* add timeout to see if tests fail

* update hg_woody_wrapper:call/4 to receive a deadline without options

* use timeout in fd client

* set very low fd timeout to prevent tests from being slow

* update sys.config

* lower fd delay

* set default fd timeout to 4000

* rename get_service/1 to get_service_opts/1, export, minor refactoring

* use hg_woody_wrapper:get_service_opts/1 in fd client
2019-06-08 21:37:22 +03:00
Roman Pushkov
2feee7051f HG-488: Use default woody options in fault detector (#330)
* remove custom options from fd call

* remove timeout option
2019-06-07 11:05:32 +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
Sergey Elin
2f76b08b9a Add crypto currency (#326) 2019-05-24 11:40:32 +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