Commit Graph

296 Commits

Author SHA1 Message Date
Andrey Fadeev
10510c2148
Add dummy payment system (#499)
Bump damsel up to rbkmoney/damsel@3710cab
2020-11-11 15:08:03 +03:00
George Belyakov
2e6e8eace8
MSPF-614: lazy party create cut (#497)
* remove lazy party creation except GetMyParty method, tests failed - need rework tests

* fix

* fix format

* move get_party into capi_handler_parties
2020-11-09 12:26:12 +03:00
Boris
ca86b1741b
Capi-426: add party id (#491) 2020-11-05 13:03:32 +03:00
Toporkov Igor
3b137e7b78
Update Build Image (#498) 2020-11-03 10:20:39 +03:00
dinama
5b20d9bcc6
CAPI-427: PaymentToolToken that may expire (#495)
* bump swag&damsel

* CAPI-427: support PaymentToolToken that may expire

* Fix missing party_id

Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
2020-10-30 18:46:14 +03:00
Toporkov Igor
ef87be9180
MSPF-579: Prometheus metrics (#494)
* Add Prometheus to dependencies

* Update build images

* Add MetricsRoute to config building

* Provide sample config

* Squash health and metrics routes in one argument

* Delete forgotten argument from spec

* Do not include src to release
2020-10-23 16:48:22 +03:00
Andrey Fadeev
ac236aedbc
Fix payment methods decoding when no tokenized cards are configured (#493) 2020-10-22 17:55:21 +03:00
Andrey Fadeev
74ce0cd4a0
Add formatter (#492)
* Add erlfmt
* Apply erlfmt
* Update build-utils
2020-10-14 11:45:53 +03:00
Boris
9f1b092b41
Capi-414: change idempotent checker algorithm create payment (#470) 2020-09-17 17:10:33 +03:00
Sergey Yelin
3ff33850a7
black lists (#490)
* Revert "Revert "CAPI-278: api keys blacklist (#235)" (#237)"

This reverts commit b482abaf0f.

* Add back blacklists
2020-09-15 08:40:30 +03:00
Andrey Fadeev
52eafff834
MSPF-560 Add ELO payment system (#489)
* MSPF-560 Add ELO payment system
* Update swag to rbkmoney/swag@b8d350d
2020-08-01 16:04:55 +03:00
Toporkov Igor
4fec1aeb85
Hide tokenization method from public API (#488) 2020-07-29 19:09:52 +03:00
Toporkov Igor
9b6c33f44d
DC-127: Refactor payment methods (#483)
* DC-127: Refactor payment methods (#479)

* Use corresponidng epic damsel branch

* Make adjasments for new protocol version

* Update dummy data

* Use new dummy data, remove unexisting include

* Upgrade damsel

* Delete redefined macro

* Handle deprecated payment methods

* Use deprecated payment methods in dummy data

* Use master branch of damsel

* Update dependencies

* Add new payment methods to fixture

* Use library function for partitioning
2020-07-25 21:59:37 +03:00
ndiezel0
5ab42aeff7
CAPI-424: Change config (#486) 2020-07-14 16:38:52 +03:00
Roman Pushkov
fb91862e79
MSPF-487: graceful shutdown (#485)
* add drainer dep

* use drainer

* remove drainer tests

* update .app.src
2020-07-14 14:05:49 +03:00
Sergey Yelin
43b30761b4
Switch to Erlang service pipe (#484) 2020-07-07 15:11:05 +03:00
Andrey Fadeev
7032811705
MSPF-561 Bump to rbkmoney/damsel@075185 (#482) 2020-06-30 18:10:35 +03:00
Andrew Mayorov
765a44ff77
Bump to rbkmoney/dmt_client@9148719 (#481)
* Bump to rbkmoney/damsel@d0e949b9
* Bump to rbkmoney/woody_erlang@dd5eaa73
2020-06-29 18:24:20 +03:00
Boris
8b29d2cfe1
MSPF-562: update damsel, add BankCard category, condition (#480) 2020-06-16 10:18:15 +03:00
Alexey
b802023836
FF-183: Upgrade damsel (#478) 2020-06-15 11:05:50 +03:00
Sergey Yelin
68a1a32915
Update build_utils (#477) 2020-05-21 17:09:49 +03:00
Boris
0268dbeba4
impl callback map_error() (#476) 2020-05-13 13:55:24 +03:00
Sergey Yelin
b704db562d
DC-119: Update damsel (#475) 2020-05-09 10:28:26 +03:00
Sergey Yelin
1dd0d045c4
Update uac (#474)
* Update uac

* Fix typo
2020-05-07 09:18:44 +03:00
Sergey Yelin
2d3cd91661
MSPF-532: get rid of rfc3339 (#473)
* MSPF-532: Update image

* MSPF-532: Remove rfc339 from capi

* Upgrade libs

* Update uac

* Refactor auth code

* Fix dialyzer errors
2020-04-27 18:43:54 +03:00
Roman Pushkov
52c9a22706
CAPI-417: hooker limit exceeded (#472)
* update damsel

* add test placeholder

* add handler placeholder

* update swag

* fix mock

* Update capi_base_api_token_tests_SUITE.erl

* fix syntax error

* test fix
2020-04-15 11:38:45 +03:00
Alexey
d020d19792
HG-535: Handle the new invoiceTermsViolated hg error (#471) 2020-04-06 11:04:24 +03:00
Roman Pushkov
bc3237656a
CAPI-375: chargebacks, capi handlers (#387)
* update swag

* bump damsel

* update dummy data

* add tests

* add chargebacks handlers

* add chargeback decoder

* update capi client

* Update capi_client_payments.erl

* update tests

* Update capi_dummy_data.hrl

* Update capi_dummy_data.hrl

* fix tests

* fix typo

* Update capi_base_api_token_tests_SUITE.erl

* refactor decoder

* fix indentation

* fix unused context

* add cb auth

* Revert "update swag"

This reverts commit 6c0e3cadf1c3c9de156678efcab6931e38c04220.

* update swag

* decode reason code
2020-04-02 20:38:41 +03:00
Andrey Fadeev
8781ebe600
Rename branch v2 to master (#469) 2020-03-10 17:47:07 +03:00
Andrey Fadeev
1eb3969697
FF-164 Update damsel (#468)
Add rbkmoney/damsel#546 changes support
2020-03-10 15:20:09 +03:00
Sergey Yelin
3c5705d15f
CAPI-143: Fix crash on incomplete request (#467)
* CAPI-143: Fix crash on incomplete request

* Remove warning
2020-03-04 10:05:22 +03:00
Alexey
94637e4959
CAPI-407: Better email format validation (#466) 2020-03-02 17:15:18 +03:00
Toporkov Igor
72cb6bcbe0
CAPI-412: Choose which claims will be included into InvAccToken (#465)
* Choose which claims will be included into InvAccToken

* Fix function name
2020-02-26 12:05:05 +03:00
Toporkov Igor
3d8bb0e509
CAPI-412: Allow ip replacement in Invoice Access Tokens (#464)
* Add extra properties to invoice access tokens

* Remove redundant binapi auth domain

* Upgrade uac

* Use new uac getters
2020-02-19 19:11:50 +03:00
Boris
e2255c207f
using decrypted token with '.' (#461) 2020-01-31 14:58:31 +03:00
Roman Pushkov
02f85aee92
HG-532: add qps, zotapay (#458) 2020-01-30 16:22:31 +03:00
ndiezel0
5894c84ef4
MSPF-523: Upgrade woody (#459) 2020-01-28 18:38:19 +03:00
Boris
984497405b
Delete jwk password, update lechiffre (#457) 2020-01-23 18:55:30 +03:00
Boris
c6701e58ca
add lechiffre (#448) 2020-01-23 16:17:17 +03:00
Sergey Yelin
5bb711afcf
Force put plt file into cache (#454)
* Force put plt file into cache

* Test

* test

* Fix cache

* Fix

* Fix cache
2019-12-18 19:41:49 +03:00
Sergey Yelin
b0d7cb89c8
Add mobile commerce decoder to search (#453)
* Add mobile commerce decoder to search

* Fix dialyzer errors
2019-12-18 12:23:58 +03:00
Sergey Yelin
ccd4ba3cc3
Add missing crypto currency decoding to search (#452) 2019-12-17 19:36:52 +03:00
Andrey Fadeev
6cc06e8464
Fix CryptoWallet payment method decoding (#449)
* Fix CryptoWallet payment method decoding
* Update swag and fix payment methods deduplication
2019-12-13 16:09:10 +02:00
Roman Pushkov
5b7bd81e35
CAPI-397: QR code & crypto currency user interaction (#443)
* decode user interaction

* fix failing tests: invoice sessions and refunds

* update lockfile

* fix failing tests: event range

* CAPI-398: Fix refunds encoder (#444)

* CAPI-398: Fix refunds encoder

* Typo

* update tests

* add revision to getinvoicepaymentmethods

* add revision to getinvoicepaymentmethodsbytemplateid

* update swag

* explicit decimal points for crypto

* change unwrap to match on ok tuple

* rework crypto interaction decoder

* add unit test for crypto decoder, fix

* formatting fix

* extra test cases

* review updates

* shorten line

* typo fix
2019-11-29 12:27:26 +03:00
Sergey Yelin
9bd2cf3098
Remove optional header (#445) 2019-11-28 15:26:46 +03:00
Артем
c1d3df222c CAPI-297: Cart to payment and refund (#329)
* added cart to payment and refund

* fixed

* review fix

* updated swag

* added requested changes

* nano

* added cart to dummny handler match

* Add missing throw handling

* Fix
2019-11-27 11:01:03 +03:00
Boris
a56643e878
payment method mobile commerce (#441) 2019-11-20 18:24:38 +03:00
Sergey Yelin
0ae3348199
Update Erlang to 21.3.8.7 (#440) 2019-11-07 16:25:05 +03:00
Toporkov Igor
db93757e3c
Add bin-api permissions to InvoiceAccessToken (#439) 2019-11-06 20:01:43 +03:00
Toporkov Igor
f7274d1ad5
CAPI-396: Migrate to uac (#438)
* Migrate to uac

* Deduplicate get_unique_id/0

* Remove redundant logging

* Simplify types in capi_auth

* Use macro for token signee

* Fix indentation

* Log OperationID in case of authorization failure

* Return keyset to the capi config

* Provide dummy snowflake config

* Deduplicate unique_id/0

* Remove from access info from config

* Rework uac configuration
2019-11-06 16:58:46 +03:00