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
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