Commit Graph

470 Commits

Author SHA1 Message Date
Alexey
f7c9e65c5b
FF-226: Withdrawal session finish notification (1 part) (#337) 2020-11-16 12:36:00 +03:00
Toporkov Igor
01fb6d846d
fix: Revert everything & add erts (#335)
* Revert everything back to prometheus_metrics

* Include erts
2020-11-12 17:36:13 +03:00
dinama
a64579afc3
+fix p2p_session service url (#333)
* fix service url

* fix authData on Sender thrift

* drop get_default_termset on wapi_thift_SUITE

* rename service w2w_transfer to fistful_w2w_transfer

* rename service p2p_transfer to fistful_p2p_transfer

* rename service p2p_session to fistful_p2p_session

* sys.config service url examples
2020-11-09 16:06:36 +03:00
Toporkov Igor
bfc88dcb37
MSPG-615: Remove lazy party creation (#326)
* Disable lazy party creation

* Add new return type to function spec

* Upgrade fistful_proto

* Throw PartyNotFound error if nessesary

* Test that lazy party creation doesn't work anymore

* Uncomment tests

* Pass Context directly
2020-11-06 11:26:20 +03:00
Alexey
2eb9e597fe
FF-226: Withdrawal session finish notification (3rd part) (#332) 2020-11-05 16:11:07 +03:00
Alexey
f98db2bd7d
FF-226: Withdrawal session finish notification (2nd part) (#331) 2020-11-05 15:43:10 +03:00
Alexey
4a413ceec7
FF-226: Withdrawal session finish notification (1 part) (#330) 2020-11-05 12:15:22 +03:00
George Belyakov
d2336c26b2
FF-236: ff_transfer instrument disassemble (#324)
* first compilable version, not work, xref failed, need to rework ff_instrument externak calls into ff_source/ff_destination_calls

* fix source/destination external calls

* fix remaining source/dest external calls, fix ff_server child specs constructor, fix format etc

* fix

* fixes

* fix todo-comments

* fixes

* fix migration to version_1

* fixes

Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-11-03 20:05:47 +03:00
Alexey
f696ac73db
Revert "FF-226: Withdrawal session finish notification (#314)" (#329)
This reverts commit 96186224de.
2020-11-03 13:51:40 +03:00
dinama
a059b48612
FF-219: wapi getP2PTransferEvents via thrift backend (#322)
* bump fistful_proto
* p2psession GetEvents support
* meck
2020-11-02 18:22:03 +03:00
Alexey
96186224de
FF-226: Withdrawal session finish notification (#314) 2020-11-02 15:47:45 +03:00
Toporkov Igor
57fe94e621
MSPF-579: Prometheus metrics (#325)
* Add prometheus to deps, update lockfile

* Update build images

* Add metrics route

* Provide sample prometheus config

* Update build_utils

* Inmplement map_error from new codegen

* Revert "Inmplement map_error from new codegen"

This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b.

* Revert "Update build images"

This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f.

* Revert "Update build_utils"

This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c.
2020-10-26 17:08:29 +03:00
dinama
304b14275c
FF-207: transaction_bound event on withdrawal session (#315) 2020-10-20 23:07:04 +03:00
George Belyakov
932f202762
add tests, fix backend/handler (#323)
y.beliakov <y.beliakov@rbkmoney.com>
2020-10-20 13:59:39 +03:00
George Belyakov
88808e3867
FF-233: wapi w2w test (#321)
* add test, only one test works, save commit

* add tests, some tests doesn't works, save commit

* rest of tests done, fix w2w backend/thrift_handler

* add test helpers to reduce code size

* fix

Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com>
2020-10-16 16:40:12 +03:00
Sergey Yelin
3ff1bbd383
Update bender (#320) 2020-10-15 20:49:05 +03:00
George Belyakov
f5beeaf7d8
FF-229: wapi destination tests (#319)
* add a few tests

* add tests

* add helper functions to reduce code size

* delete useless copy-paste test functions

* rework tests

Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com>
2020-10-15 18:08:28 +03:00
Артем
7d05ea93bd
FF-225: Refactor provider api (#316)
* added provider backend

* added provider service

* refactored wapi, added tests

* fixed
2020-10-13 18:41:29 +03:00
George Belyakov
74da4fa18a
+ wapi identity common test (#310)
* + wapi identity common test

* fix lint

* fix lint

* add test helper functions

* fix context issue (return ct_helper_cfg call to call_api call)

* fix function name

Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com>
2020-10-12 23:12:14 +03:00
George Belyakov
996b100671
FF-231: wapi wallet test (#318)
* add test functions, fix wapi wallet backend

* add helper functions to reduce code size

Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com>
2020-10-12 13:50:36 +03:00
George Belyakov
bddc46c631
FF-234: wapi withdrawal tests (#317)
* add tests, 3 tests not works, it's save commit

* not work, save commit

* add tests, fix wapi_withdrawal_backend/wapi_wallet_thrift_handler missing exceptions

* fixes

* fix specs

* add functions-helpers to reduce code size

Co-authored-by: y.beliakov <y.beliakov@rbkmoney.com>
2020-10-12 12:50:31 +03:00
dinama
2d0c2776f8
FF-220: +p2p template quote&transfer via thrift backend (#308)
* FF-223: ff_p2p_template_handler quote&transfer methods
* FF-220: wapi_p2p_transfer_backend quote&transfer methods
* FF-230: 404 on quoteP2PTransferWithTemplate
* +fix p2p_transfer metadata serialization
2020-10-06 15:24:28 +03:00
Roman Pushkov
ebdd7e9a25
FF-218: p2p transfer via thrift (#301)
* update wapi access backend

* add p2p transfer service

* add p2p transfer dummy

* update test data

* fix typo

* add p2p transfer thrift handling

* add p2p transfer thrift test

* minor fix

* copy error handling

* add fixme

* type fixes

* macro refactor

* rename p2p transfer module, update errors

* update handler

* type fixes

* update dummy date

* add p2p transfer tests

* DRY

* update marshalling

* remove redundant test permissions

* rename errors

* update tests

* fix quote type

* add quote tests to p2p transfer

* add token errors to thrift handler

* add p2p transfer quote handling

* fix p2p transfer marshalling bug

* import do/unwrap

* add quote to test

* fix merge

* fix contract not found bug

* fix thrift test

* refactor p2p transfer backend

* fix whitespace

* add p2p quote dummy data

* update create p2p transfer tests, add quote test

* add p2p quote handler

* update p2p quote

* add p2p quote to backend

* use thrift in wapi p2p quote

* rework tests to use thrift quote

* rework ff backend to use thrift quote

* rework p2p transfer to use thrift quote

* fix codec

* minor fixes

* update ct payment system
2020-10-06 11:43:28 +03:00
Alexey
1766e90261
FF-222: Enable version 2 for identity marshalling (#312) 2020-09-29 13:47:33 +03:00
Sergey Yelin
8c7f4a290c
Make ACTUAL_FORMAT_VERSION match real version (#313) 2020-09-29 11:02:13 +03:00
Alexey
c337f745b5
MG-183: Modernizer support (#311) 2020-09-25 18:52:51 +03:00
Артем
b07d9cd906
FF-216: Refactor reports (#306)
* started to refactor reports

* refactored

* fixed dialyzer
2020-09-24 16:03:29 +03:00
Артем
3412cb95ab
FF-227: Identity blocking bug (#309) 2020-09-24 09:26:48 +03:00
Toporkov Igor
ad2dd3aca2
FF-217: Fix webhook marshaling (#307)
* Get WalletID from Scope, not WebhookBody

* Do not check wallet if it is undefined

* Unmarshal walletID to scope

* Test fixed marshaling/unmarshaling
2020-09-22 19:14:39 +03:00
madskillz
06df8bc941
Merge pull request #304 from rbkmoney/FF-112/ft/instrument_create_tests
FF-112: Source & Destination tests
2020-09-22 12:51:44 +03:00
y.beliakov
90167f01fc fix common test helper functions 2020-09-22 11:55:24 +03:00
y.beliakov
0bae611323 Merge remote-tracking branch 'origin/master' into FF-112/ft/instrument_create_tests
# Conflicts:
#	apps/ff_transfer/src/ff_instrument.erl
2020-09-22 10:20:09 +03:00
y.beliakov
352056befa fix common test 2020-09-20 21:32:13 +03:00
y.beliakov
5f2776fbf9 instrument get common test 2020-09-18 18:08:00 +03:00
Артем
b667a13b14
FF-224: Migrate instrument names (#305)
* migrated instrument names

* minor fix
2020-09-18 12:04:44 +03:00
y.beliakov
6f91b39270 fix format 2020-09-17 14:29:39 +03:00
dinama
f8af450e6d
FF-211: +p2ptemplate wapi implement via thrift backend (#297) 2020-09-17 11:18:26 +03:00
y.beliakov
ed3e9ef20b fix lint 2020-09-16 18:41:58 +03:00
y.beliakov
93b7abaf53 add instrument create tests 2020-09-16 17:34:34 +03:00
Артем
cf76aaa8db
FF-215: Withdrawal adv api (#294)
* wip

* added create quote api

* added get events

* added event tests

* refactored

* added requested changes

* fixed

* minor

* fixed

* changed to thrift in tests

* fixed linter
2020-09-16 10:55:20 +03:00
Andrey Fadeev
4c21a2db43
Fix withdrawal adapter options merging order (#303) 2020-09-15 17:24:28 +03:00
Toporkov Igor
6196658ee3
FF-217: Refactor webhook api (#299)
* wip: Crete separate module for webhook operations

* Rename from/to_swag -> (un)marshal

* Check resources via thrft

* Introduce types, delete original code

* Remove todo because I won't do it

* Small dialyzer/linter fixes

* Apply review suggestions, refactor marshaling/unmarshaling

* Do not throw notfound error

* Return early if wallet is inaccessible

* Split marshaling into more specific functions

* Rename Context -> HandlerContext

* Copy-paste handling to thrift handler

* Remove trailing whitespace

* Fix wrong error being thrown on incorrect webhookID

* Refactor last bits of old [un]marshaling

* Create separate functions to handle thrift API call results
2020-09-15 12:22:46 +03:00
Alexey
911d4d39da
FF-222: Identity name via thrift (#295) 2020-09-15 11:04:05 +03:00
Alexey
fec3991bcf
FF-206: Fix identity stat provider being an integer (#302) 2020-09-11 15:49:21 +03:00
dinama
339af623fa
Merge pull request #300 from rbkmoney/fix/parental_advisory
Fix/parental advisory
2020-09-10 11:30:40 +03:00
dinama
d7e623c61a +parental advisory 2020-09-09 20:20:56 +03:00
dinama
074cab9fb7 +update build-utils 2020-09-09 20:20:56 +03:00
Sergey Yelin
0af1868fa7
Fix withdrawal ids broken by P4C issue (#298)
* Fix withdrawal id broken by P4C issue

* Add test and fix errors
2020-09-08 19:43:28 +03:00
Alexey
1d94dd0ff6
FF-210: W2W via Thrift (#286) 2020-09-03 19:13:58 +03:00
Alexey
6e93682e1b
FF-206: List Identities/Destinations handles (#287) 2020-09-03 18:30:09 +03:00