Commit Graph

522 Commits

Author SHA1 Message Date
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
Sergey Yelin
6d4e1e3106
P2C-7: Add priority (#253)
* P2C-7: Add priority

* ff_ct_fail2_provider -> ff_ct_unknown_failure_provider

* Rename
2020-07-13 22:16:37 +03:00
Alexey
829b65e881
FF-183: Withdrawal terminals (new) (#249)
* WIP terminals

* Review fixes

* Fix errors

* Add missing param

Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-07-10 17:05:21 +03:00
Toporkov Igor
87162b52db
FF-192: Identity Thrift Support (#239)
* Create schema for identity

* Use macro for current format version

* Fix some marshaling + use new schema in tests

* Upgrade fistful proto

* Remove debug ct:log calls

* Fix marshaling, add some decoding tests

* Add missing operator spaces

* Remove redundant call to ff_identity:maybe_migrate

* Fix wrong types

* Review fixes, tests unification

* Review fixes #2
2020-07-09 00:33:26 +03:00
Andrey Fadeev
2da9b8a120
MSPF-561 Fix encoding and clean sessions (#252)
* Add legacy provider field writting to new operations
* Remove temporary session init code
2020-07-08 18:06:34 +03:00
Артем
9a3fe46fea
FF-199: W2W schema (#251) 2020-07-08 14:42:45 +03:00
Sergey Yelin
776cbd62a9
Switch to Erlang service pipe (#250)
* Switch to Erlang service pipe

* Fix build-utils path
2020-07-07 19:55:45 +03:00
ndiezel0
e2c1299472
FF-187: Deposit schema (#234)
* FF-187: Add required deposit structures for kafka event sink

* FF-187: Add deposit schema

* FF-187: Add context to schema

* FF-187: Fix spec

* FF-187: Add tests

* FF-187: Add deposit codec tests

* FF-187: Add deposit revert codec test

* FF-187: Fix deposit version

* FF-187: Add tests

* FF-187: Fix spec

* FF-187: Change current version to `undefined`

* FF-187: Fix tests

* Update apps/ff_server/src/ff_deposit_machinery_schema.erl

Co-authored-by: Andrey Fadeev <me@ciiol.net>

* Update apps/ff_server/src/ff_deposit_machinery_schema.erl

Co-authored-by: Andrey Fadeev <me@ciiol.net>

* FF-187: Review fix

* FF-187: Change source of state to deposit

* FF-187: Add aux_state ctx to context

* FF-187: Fix in case aux_state is binary

* FF-187: Remove guard

* FF-187: Remove adding context during marshal

* FF-187: Fix eunit test

* FF-187: Review fix

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-07-07 17:08:20 +03:00
Артем
f8bcf3ad08
FF-197: P2P session schema (#245)
* added p2p session schema

* removed adapter from session

* wip -- need new route for providers

* fixed

* fixed
2020-07-07 16:17:11 +03:00
Andrey Fadeev
57f5eedad9
MSPF-561 Add Provider usage for p2p and withdrawal (#246) 2020-07-06 10:02:12 +03:00
Andrey Fadeev
99fbdb964a
MSPF-561 Bump to rbkmoney/damsel@075185 (#247) 2020-07-02 15:40:33 +03:00