* 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
* 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()
* 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
* 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
* 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
* 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>
* 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