Commit Graph

582 Commits

Author SHA1 Message Date
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
Toporkov Igor
1d39c7d45f
FF-221: Accessibility thrift errors (#292)
* Upgrade fistful_proto

* Throw new exceptions
2020-09-03 12:18:42 +03:00
Артем
701d666063
FF-156: Withdrawal base api again (#293)
* Revert "Revert "FF-156: Base withdrawal api (#284)" (#290)"

This reverts commit 728df19215.

* fixed

* minor
2020-09-02 22:24:58 +03:00
Артем
728df19215
Revert "FF-156: Base withdrawal api (#284)" (#290)
This reverts commit 87072db6dc.
2020-09-01 16:53:08 +03:00
Toporkov Igor
bb668eb378
FF-212: Validate accessibility for create operations (#289)
* Check wallet accessibility upon creting withdrawals and p2p transfers

* Check identity accessibility for other creations

* Use existing party in test because now it's being checked

* Rename type tranfer_wallet() -> wallet_class()
2020-09-01 14:12:28 +03:00
Артем
87072db6dc
FF-156: Base withdrawal api (#284)
* wip

* fixed dialyzer

* added base

* fixed

* fixed

* added requested changes
2020-08-31 21:53:54 +03:00
Toporkov Igor
8a942cc64e
FF-208: Implement GetAccountBalance operation (#285)
* Implement GetAccountBalance

* Fix wrong currency_ref marshaling

* Get all events

* Test getting account balance

* Move getting account balance from handler, introduce relevant types

* Get wallet from machine in handler

* Remove redundant return type
2020-08-28 14:54:19 +03:00
Andrey Fadeev
83208382e7
Fix undefined residence decoding in ff_bin_data (#288) 2020-08-28 13:49:18 +03:00
Toporkov Igor
eb127a812f
FF-203: Check cards on p2p transfer creation (#279)
* Validate that sender/receiver are the same as in quote

* Handle errors raised by p2p transfer checks

* Fix double do() wrapping, that creates {ok, {error, Thrown}} tuples

* Test wrong token mismatch

* Add different_resource error to thrift handler

* Pass error tuples untouched in do()

* Reintroduce do to createFuns and add new type to errors

* Revert "Pass error tuples untouched in do()"

This reverts commit 098bd928b09b9277bc3133fbe2f05f2efe267a95.

* unwrap function that return error tuple

* do & unwrap in CreateFun

* Remove one do/unwrap combo
2020-08-26 14:04:39 +03:00
Toporkov Igor
02c99564b2
FF-134: Validate identity providers on withdrawal creation (#283)
* Validate providers on start of withrawal

* Test provider_mismatch error

* Draft provider_mismath thrift error

* Add error drafts to CreateQuote

* Upgrade fistful_proto

* Throw thrift error

* Test identity proviers mismatch HTTP API error

* Specify that we are talking about identity providers, fix typo

* Add new error spec

* Apply suggestions from review

* Reword provider_mismatch error description

* Fix lines being too long

* Reword error description
2020-08-26 12:23:31 +03:00
Артем
400cbb19a4
FF-208: Update wallet thrift api (#281)
* added get wallet by external id and get account API methods

* fixed

* refactored mock

* fixed

* fixed bender mock

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-08-24 19:11:26 +03:00
Артем
1d2bcc8d9b
FF-209: Refactor stat API (#282)
* added stat module

* refactored

* fixed name

* added tests

* nano

* minor
2020-08-21 18:00:06 +03:00
Toporkov Igor
ca01722c40
MSPF-567: update bender client lib (#280)
* Upgrade bender

* Update bender_client

* Update bender_client

* Handle bender returning both binary and integer ID

* Resolve missed  merge conflict

* Configure url for generator

* Fix pattern matching in externalID tests

* Fix wrong order of operands on external_id_conflict

* Hide IntegerId from fistful

* Fix wrong error matching
2020-08-18 18:37:11 +03:00
Артем
fe88fa424e
FF-202: New states 2 (#262)
* added states types

* changed to state types

* fixed tests

* added withdrawal session handler

* added p2p session handler

* added p2p transfer handler

* fixed

* fixed

* added p2p_transfer tests

* added p2p session tests

* fixed

* added w2w handler and tests

* wip

* fixed to fit proto

* fixed

* fixed

* fixed

* added source handler

* added tests for source handler

* refactored withdrawal session status

* fixed

* updated proto
2020-08-18 11:57:16 +03:00
Andrey Fadeev
280324f9b1
MSPF-560 Switch to thrift format for events (#278)
* MSPF-560 Switch to thrift format for events
* Fix p2p_session codec
* Use only id fields in rote comparations
2020-08-11 12:16:27 +03:00
Toporkov Igor
5baf8e3040
FF-184: Error mapping (#261)
* Error mapping draft

* Compact errors

* Bump swag-wallets

* Encode errors directly to swag

* Recurcive errors for challenge status

* Map p2p & w2w errors

* Return status field to p2p & w2w

* Fix wrong Request being matched in IssueP2PTransferTicket

* Rename map_internal_error->map_withdrawal_error

* Bump swag

* Remove domain_failure and failure clauses

* Unify all new error mappings

* Match on subError
2020-08-10 15:19:40 +03:00
Andrey Fadeev
c46ec19927
MSPF-560 Fix legacy failure decoding (#277)
Fixes unexists atom `inconsistent_data` decoding
2020-08-06 11:00:10 +03:00
Andrey Fadeev
0d6d68d5ff
MSPF-560 Fix withdrawal session migration (#276)
* MSPF-560 Fix withdrawa session migration
Fix typo in full resource getter

* Fix woody_retry_test
2020-08-05 17:01:07 +03:00
Andrey Fadeev
2c72ac3449
MSPF-560 Allow to migrate destinations with unsupported cards (#275) 2020-08-05 11:34:53 +03:00
Toporkov Igor
dcc388ba2b
DC-127: Refactor Payment Methods (#248)
* DC-127: Refactor Payment Methods (#241)

* Use corresponfing branches for deps

* Use epic version of hg

* Provide config for hellgate's party_management

* Use new BankCardPaymentMethod

* Upgrade deps

* Replace has_cvv with is_cvv_empty

* Fix payment method creation in ct_domain

* Define is_cvv_empty where it can be undefined

* Use _deprecated pm's

* Switch to master

* Use https url to dmt_client in lockfile
2020-08-04 22:53:18 +03:00
Andrey Fadeev
4ecf981095
MSPF-560 Add EBT (#274)
* Update proto to rbkmoney/fistful-proto@d0c502b
* Add EBT decoding
2020-08-04 14:58:19 +03:00
Артем
af976cd87f
FF-205: Fix - party inaccessible error in destination thrift handler (#273) 2020-08-04 12:50:17 +03:00
Andrey Fadeev
2a882cb5ae
MSPF-560 Add RuPay payment system (#272)
* Bump to rbkmoney/fistful-proto@82df93
* Bump to rbkmoney/swag-wallets@2f9ebc0a
* Add RuPay decoding
2020-08-03 17:44:16 +03:00
Andrey Fadeev
f109ae3d5b
MSPF-560 Fix china union pay decoding (#271) 2020-08-03 13:34:06 +03:00
Andrey Fadeev
8ab97167d9
MSPF-560 Add ELO payment system (#270)
* Update swag to rbkmoney/swag-wallets@d592bc8
* Add ELO payment system decoding
* Update proto to rbkmoney/fistful-proto@367d828
* Apply rbkmoney/swag-wallets#74 changes
2020-08-01 16:04:34 +03:00
Andrey Fadeev
b49c1b751f
FF-204 Fix callback finish intention prococessing (#269) 2020-07-31 14:49:18 +03:00
Andrey Fadeev
941c39afc4
MSPF-560 Add withdrawal sessions aux_state migration (#268) 2020-07-31 08:04:54 +03:00
Andrey Fadeev
94bc46813f
MSPF-560 Fix legacy withdrawal and p2p events processing (#267) 2020-07-30 19:05:38 +03:00
Andrey Fadeev
d7b6297193
MSPF-560 Update quotes processing according to new proto (#264) 2020-07-29 16:41:58 +03:00
Andrey Fadeev
d7354c6567
Update woody to rbkmoney/woody_erlang@b563bbb (#266)
* Update woody to rbkmoney/woody_erlang@b563bbb
* Update test deps
* Update cds usage in tests
2020-07-28 18:52:05 +03:00
Артем
98aa692c55
FF-196: Fix quote data marshal (#265)
* fixed quote data marshal

* minor

* Revert "minor"

This reverts commit 77c1dcc978e04e4c39ed50c74bad06b88d950e13.

* Revert "fixed quote data marshal"

This reverts commit 8d3f02e6da475f2c55c7d97a4b6f5b209da89771.

* fixed
2020-07-27 15:48:48 +03:00
Alexey
942dc2a640
FF-200: Withdrawal callback (#257) 2020-07-22 11:26:53 +03:00
Andrey Fadeev
a4aeeb60b4
MSPF-560 Fix legacy withdrawal events decoding (#260)
* Fix legacy withdrawal events decoding
* Fix legacy withdrawal session events processing
2020-07-21 13:03:30 +03:00
Артем
1ec414382c
FF-196: Add withdrawal session schema (#256)
* added withdrawal schema

* fixed

* minor

* nano

* nano

* fixed

* fixed

* fixed
2020-07-19 19:17:21 +03:00
Andrey Fadeev
cd0fee7317
Disable parallel CI steps running (#259) 2020-07-17 11:06:59 +03:00
Alexey
31e8e92258
P2C-9: Error mapping (#242) 2020-07-16 16:45:18 +03:00
Toporkov Igor
036e2a8dcb
FF-186: Withdrawal thrift support (#254)
* Test schema

* Add whitespaces after commas, remove debug print

* Fix the mess caused by search & replace

* Delete redundant code from ff_withdrawal, handle session_finished

* Delete ct:log

* Remove commented export

* Specify withdrawal version in ff_withdrawal:gen

* Fix formating in tests

* Fix some weird migrations, add binary test

* Fix route thrift struct marshaling

* Clean up

* Masrshal quotes, minor fixes
2020-07-16 12:24:33 +03:00
Артем
f58c4fdc82
FF-201: Refactor identity in withdrawal session (#258)
* refactored

* minor

* fixed

* fixed
2020-07-15 21:14:26 +03:00
ndiezel0
e8584b1f71
CAPI-424: Change config (#255) 2020-07-14 16:38:48 +03:00