Commit Graph

499 Commits

Author SHA1 Message Date
Boris
44194bd209
add to p2p_tool in Varset (#379) 2019-10-23 12:01:19 +03:00
Boris
d10c319129
add P2PServiceTerms (#369) 2019-10-17 17:33:16 +03:00
Alexey
a2f45678f7
Migrate to new customer and capture flow (#377) 2019-10-17 14:55:26 +03:00
Артем
d3cacaec9b HG-520: Added party revision (#378) 2019-10-17 13:23:45 +03:00
Артем
40ca65612b
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
befb5ad398
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 1f96b4a0d3.
2019-10-15 13:17:42 +03:00
Alexey
90e68890ef
Revert "Revert "HG-516: pass transport_opts in hg_client_api (#371)" (#375)" (#376)
This reverts commit 1f96b4a0d3.
2019-10-15 11:02:04 +03:00
Alexey
d31b0b1c9b
HG-496: Downgrade for compatibility (#374) 2019-10-14 18:22:57 +03:00
Alexey
1f96b4a0d3
Revert "HG-516: pass transport_opts in hg_client_api (#371)" (#375)
This reverts commit 952fc984f5.
2019-10-14 17:24:47 +03:00
Sergei Shuvatov
952fc984f5
HG-516: pass transport_opts in hg_client_api (#371) 2019-10-09 18:23:27 +03:00
Alexey
06aafab126
HG 496-497: Partial capture & customer binding desyncs (#356) 2019-10-04 15:25:59 +03:00
Andrey Fadeev
104ffd64c1
FF-77 Add party and domain revision to ComputeContractTerms (#370) 2019-10-04 11:49:18 +03:00
Sergei Shuvatov
c9b23a53cf
HG-515: generate uniqie tags in hg_dummy_provider (#368) 2019-10-02 15:49:13 +03:00
Sergei Shuvatov
efd0519bd2
HG-513: add minimal_payment_cost field to RecurrentPaymentTool (#366) 2019-09-26 12:53:41 +03:00
Anton Kuranda
f4780c6b59
Let's make it opensource (#364) 2019-09-20 00:09:59 +03:00
Toporkov Igor
137ceb9e66
MSPF-456: Processing deadline (#352)
* Added payment deadlines

* Actualized code to match damsel, added deadline check

* Rewrote deadline check, added env deadline support

* Removed deadline creation

* Moved and renamed processing deadline validation

* Removed extra clause

* Codestyle fixes

* Handle payment_deadline_reached failure

* Added processing deadline test

* Added tests for different flows

* Uncommented tests

* Removed unnecessary sleeps from tests

* Check target type in validate_processing_deadline

* Stop session processing after deadline validation

* Fix test

* Review fixes

* Fixed a bunch of tests
2019-09-16 17:49:20 +03:00
Sergey Yelin
83925e1856
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
4420f93174 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
Boris
d6c6cfdf3c
HG-502 fix bug(suspend to sleep) (#360)
add suspend timeout behaviour; 
tests
2019-09-06 16:01:10 +03:00
Roman Pushkov
05ea941b15
HG-501: handle uncomputable provider terms (#359)
* add uncomputable terms test

* catch misconfiguration errors

* clean comments

* fix copypasta

* add logging for misconfigured termsets

* clean up comments

* fix types

* update logging

* warn -> warning

* fix unbounds

* refactor logging

* fix dialyzer

* fix tests

* renames
2019-09-06 12:53:59 +03:00
Alexey
4423214a7f
CAPI-366: Refund idempotency (#341) 2019-08-26 18:28:04 +03:00
Sergey Yelin
1dc83e2a4a
Revert "AAA-54: Upgrade woody (#354)" (#355)
This reverts commit 74c5fc50c5.
2019-08-26 15:48:52 +03:00
Sergey Yelin
74c5fc50c5
AAA-54: Upgrade woody (#354) 2019-08-26 13:28:46 +03:00
Boris
a748639f14
add mobile_commerce; add tests; suspend timeout behaviour (#340) 2019-08-19 17:16:16 +03:00
Toporkov Igor
c9440fd0bf
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
8b8bf58c00
HG-496: Upgrade damsel (#349) 2019-08-08 15:28:49 +03:00
Andrew Mayorov
703119c515
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
7d1dfc7081
Allow stop shumway manually (#332) 2019-08-06 13:24:20 +03:00
Andrey Fadeev
335cd3c311
Allow to work with unexpected session finish in repaired invoice (#347) 2019-07-30 17:42:51 +03:00
Andrey Fadeev
1013a02b68
Change hellgate dependencies start order (#344) 2019-07-25 20:41:15 +03:00
Andrey Fadeev
0c97e0e161
Update woody to export more metrics (#343) 2019-07-25 18:26:05 +03:00
Артем
0967906b78 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
3f8338dc2a
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
cf21615aeb
Remove logger_logstash_formatter from hellgate deps (#337) 2019-07-10 12:30:07 +03:00
Alexey
dc10d43ad9
HG-458: Move refund and adjustment accounter interactions to processor (#333) 2019-07-04 17:40:18 +03:00
Sergei Shuvatov
9270f44a28
HG-472: add terminal priority (#318) 2019-06-24 18:51:50 +03:00
Sergey Elin
e0aebb7dbd
Switch to logger (#335)
* Revert "HG-478 Revert update to Erlang 21 (#320)"

This reverts commit 7179e82258.

* 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
514e76a6f9
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
d3fcf20510
HG-484 Encode MG calls with thrift (#329) 2019-06-17 15:55:36 +03:00
Roman Pushkov
8640eabfe1
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
641a5f441d
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
Артем
f27862233a HG-474: Cart to partial refund and capture (#323)
* updated dmsl, fixed

* fixed tests

* added cart validate to refund creation

* added requested changes

* added requested changes

* minors

* added requested changes

* added requested changes 2

* fix

* minor
2019-06-03 16:30:10 +03:00
Roman Pushkov
35c64b9202
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
Andrey Fadeev
93c0c08017
HG-485 Reorder main supervisor child according to dependencies (#328) 2019-05-28 11:23:52 +03:00
Sergey Elin
061001bb3e
HG-482: Improve test for crypto currency (#327) 2019-05-27 18:31:27 +03:00
Roman Pushkov
9d51ea2f46
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
4b9804fade
Add crypto currency (#326) 2019-05-24 11:40:32 +03:00
Andrew Mayorov
f349201add
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
Andrew Mayorov
4214093437
Allow to treat invalid state transitions as warnings (#317)
* Make part of refunds testcases run in parallel
* Add final test ensuring balances are consistent
* Drop HG-418-related specifics
2019-05-20 18:13:57 +03:00
Sergei Shuvatov
6b15455875
HG-480: add additional_info test (#324) 2019-05-20 15:46:29 +03:00