Commit Graph

247 Commits

Author SHA1 Message Date
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
ndiezel0
ed168bef38
CAPI-395: Bump reporter_proto (#436) 2019-10-29 17:06:51 +03:00
Alexey
0497bb8323
CAPI-389: Get Invoice by ExternalID (#435) 2019-10-23 15:57:13 +03:00
Toporkov Igor
fad3f38c61
CAPI-390: Remove getRefundsByExternalID (#434)
* Bump swag

* Removed getRefundsByExternalID
2019-10-22 15:20:33 +03:00
Toporkov Igor
620bd17447
CAPI-390: Get refunds by externalID (#433)
* wip: implement refund search

* Tests and style fixes

* Handle refund not found exception
2019-10-18 12:24:12 +03:00
Sergey Yelin
ea1b59d43b
Add missing mobile payment method (#432) 2019-10-16 10:40:27 +03:00
Toporkov Igor
df67f55934
Bumped image with codegen (#428) 2019-10-10 18:57:47 +03:00
ndiezel0
2c544098f8
CAPI-385: Update reporter (#425)
* CAPI-385: Update reporter

* CAPI-385: Add GetReport check test, fix dialyzer

* CAPI-385: Add DownloadFile id checks and test for it
2019-10-10 12:15:22 +03:00
Alexey
6085f0a2a7
HG-497: PCIDSS cleanup (#416) 2019-10-04 15:26:18 +03:00
Anton Kuranda
244d6b3429
Let's make it opensource (#424) 2019-09-19 23:41:12 +03:00
Boris
96e5ce3968
Capi 371/ft/mobile commerce (#406) 2019-09-18 18:53:06 +03:00
Toporkov Igor
885c7580a0
CAPI-362: Search refunds by RRN and ACC (#423)
* bump swag

* Added rrn and acc to search

* Removed unnessesary symlink

* Added keys instead of symlink
2019-09-18 17:39:08 +03:00
Boris
c421a7647f
update damsel, rename dmsl to damsel (#421) 2019-09-16 18:54:12 +03:00
Toporkov Igor
2d227c856f
MSPF-456: Business deadlines (#405)
* Updated swag commit

* Bumped and renamed damsel

* De-hardcoded oops body test

* Added payment deadlines

* Added parsing error clause handling

* Added default deadlines

* Bump damsel

* Increased test payment deadline

* Bumped swag

* Actualized damsel

* Added env for processing deadline

* Beautify indentation

* Clarified processing deadline related names

* Respond with an error on invalid processing deadline

* Revert "Respond with an error on invalid processing deadline"

This reverts commit fd964027193c8b15ea7d8b21a5441bbfa10854d8.

* Hide processingDeadlineReached error from client

* bump swag

* Add processing deadline error

* Rename dmsl in new test
2019-09-16 17:49:37 +03:00
Sergey Yelin
fca18020b1
Add gracefull_shutdown_timeout to sys.config (#419)
* Add gracefull_shutdown_timeout to sys.config

* Typo in config option
2019-09-12 14:55:11 +03:00
Sergei Shuvatov
6725db594d CAPI-363: gracefull shutdown (v2) (#417)
* CAPI-363: gracefull shutdown

* Remove extra permissions

* Move draner's spec generation to capi_swagger_server

* Add timeout to capi_gracefull_shutdown_SUITE test

* Use supervisor for running subprocesses

* Rework timeout

* Force drop log lived requests

* Review fixes
2019-09-12 12:50:27 +03:00
Alexey
d9cafafef1
CAPI-366: Offset refund ids (#414) 2019-08-27 14:01:54 +03:00
Alexey
be66e0eae7
CAPI-366: Refund idempotency (#386) 2019-08-26 18:28:12 +03:00
Roman Pushkov
f94257c1c0
CAPI-380: search invoice by rrn (#409)
* add rrn to invoice search

* update swag
2019-08-21 11:55:19 +03:00
Andrew Mayorov
bd1e719ed7
MSPF-499: Bump to rbkmoney/erlang-health@c190cb8 (#407)
Enable healthcheck logging
2019-08-19 11:53:27 +03:00
Andrey Fadeev
a981947b56
Update scoper (#404)
And add scoper to config example
2019-08-09 16:10:32 +03:00
Andrey Fadeev
af2bb80e08
Add scoper to v2 (#403)
* Add scoper
* Add metadata collecting
2019-08-09 13:52:20 +03:00
Andrey Fadeev
f0f6f48058
Remove payment id shift in v2 (#398) 2019-08-07 12:22:07 +03:00
Sergey Yelin
6a3ba4d85d
Fix crash on empty body in cowboy_access_log (#395) 2019-08-06 15:15:46 +03:00
Alexey
febf6ed473
CAPI-368: Cut longer bins to swag spec (#389)
* CAPI-368 Cut longer bins to spec

* CAPI-368: Only cut when there are things to cut
2019-08-05 12:39:11 +03:00
Andrew Mayorov
5421c26276
Make lazy hack to not lose CORS headers on 500s (#394) 2019-07-26 13:44:34 +03:00
Andrey Fadeev
b9e6dff96f
Change v2 dependencies start order (#393) 2019-07-25 20:41:59 +03:00
Andrey Fadeev
f4393d903c
Update woody (#392) 2019-07-25 17:51:40 +03:00
Andrey Fadeev
0b4fe30a99
Add transport options to services settings in v2 (#391) 2019-07-25 16:55:15 +03:00
Kostya
bdf1f1f9fe #CAPI-370 Add fields to payer (#381)
* Add fields to payer

* Update swag

* ft/add-fields-payer

* Refactor

* Fix type

* update swag

* update dummy data

* update invoice tests

* update invoicing decoder

* update search handler

* fix comment

* fix dummy data

* fix formatting, refactor
2019-07-24 16:39:32 +03:00
Andrey Fadeev
02387b7833
CAPI-368 Add processing empty bin for tokenozed cards (#388)
* Add processing empty bin for tokenozed cards
* Add empty bin processing to decoders
2019-07-23 14:25:00 +03:00
Sergey Elin
829a5b54b5
[v2] Fix crash on health check handler (#384) 2019-07-18 22:33:42 +03:00
Alexey
69b6220111
CAPI-368: Update BankCardDetail (#382) 2019-07-18 18:36:28 +03:00
Roman Pushkov
831ad51cb7
CAPI-369: tds interaction (#380)
* add token to digital wallet encoder

* update damsel

* update decoder

* refactor wallet encoder

* add test for qiwi wallet with token

* fix linter: line too long

* build token and session explicitly in test

* formatting
2019-07-17 18:31:48 +03:00
Sergey Elin
915c45dd86
[v2] Fix logging operation_id with new swagger-generator (#376)
* Fix logging operation_id with new swagger-generator

* Move decision logic to swagger-codegen

* Update build image
2019-07-12 16:27:37 +03:00
Alexey
92777abd8f
CAPI-365: Bump hackney (#374) 2019-07-11 14:39:09 +03:00
Roman Pushkov
b6399e3b2c
CAPI-364: update transaction info (#362)
* update damsel

* update handler

* update test

* update swag

* update swag
2019-07-08 16:52:56 +03:00
Alexey
352eb27f8e
CAPI-365: Update build image, set mild validation for responses (#364) 2019-07-08 12:47:25 +03:00
Toporkov Igor
ee6da13f2d
Removed unnecessary meta (#363) 2019-07-05 12:29:01 +03:00
Toporkov Igor
456b9a91e1 Erlang OTP 21 to v2 (#342)
* CAPI-351: Erlang 21 to CAPI V2 (#339)

* First step of migration

* spec fix, changed headers to map

* Bumped back swag commit

* Bumped swag commit

* reverted bump

* Second migration step

* Linter fixes

* Bump build_image_tag

* Update build utils

* Gave up on using deprecated ranch child spec

* Updated plt version

* Bumped service-erlang

* Actually use stream_handlers, bump woody

* removed commeted funnctions

* CAPI-353: OTP 21 logger (#341)

* Initial lager migration

* Added missing comma

* Fix config typos and indentation, bumped formatter

* Fixed oops body responce

* Fixed wrong reply format, refactored oops body retrieval

* Bumped hackney and thrift, fixed inet version

* Renamed and fixed stream handler, fixed wrong handlers order

* Test for oops_body

* Use join to make file path

* MSPF-476: Add operation_id to access log

* Upgrade to Erlang 21.3.8.4

* Refactor access log configuration

* lager -> logger

* Upgrade woody

* Fix default logger config
2019-07-03 11:11:31 +03:00
Roman Pushkov
83543f1aec
CAPI-361: unified card number search (v2) (#357)
* update handler

* update test

* update swag

* comma
2019-06-28 11:52:20 +03:00
Andrey Fadeev
a5831d7f38
Temporary disable jwt expiration check in v2 (#359)
The same as #284
2019-06-21 19:58:28 +03:00
Roman Pushkov
d9e2c2c42c
CAPI-354: add RRN/AAC to payment search (#350)
* add tags to gitignore

* prepare transaction info handler

* prepare test with rrn

* prepare rrn and aac in search

* update dmsl

* uncomment after dmsl update

* update swag

* update handler

* update tests

* comment out rrn

* fix dummy data

* compact map

* added more explicit comments in tests
2019-06-19 19:48:20 +03:00
Andrey Fadeev
fdea3223ea
Update dmt_client in v2 (#355)
Update dmt_client to rbkmoney/dmt_client#27
2019-06-18 19:22:03 +03:00
Toporkov Igor
42505acf31
CAPI-360: Deduplication (#353)
* Implemented deduplication

* Fixed improper typing

* Simplified deduplication

* Moved deduplication to utils
2019-06-18 16:36:53 +03:00
Andrey Fadeev
5cb447d154
Update damsel (#351) 2019-06-18 10:21:11 +03:00
Sergey Elin
e6b02e716c
Add getPaymentByExternalID (#349)
* CAPI-357: Add GetPaymentByExternalID

* CAPI-357: Add tests, reworked code

* CAPI-357: Move test to another suite

* CAPI-357: Type in spec

* CAPI-357: Fix typo in spec

* Update apps/capi/src/capi_bender.erl

Co-Authored-By: Andrew Mayorov <encube.ul@gmail.com>

* CAPI-357: Store invoice_id whitin bender context

* CAPI-357: Simplify code

* CAPI-357: More code cleanup

* CAPI-357: Add test for missing invoice in getPaymentByExternalId

* CAPI-357: Don't mess flow

* CAPI-357: Move helper function to test
2019-06-11 16:36:47 +03:00
Toporkov Igor
dddb3a6e6c
Fixed ip_replacement_allowed value type (#348)
* Fixed ip_replacement_allowed value type

* Stricter match on ip_replacement_allowed value

* Simplified ip replacement

* Use false as default ip_replacenent_allowed value
2019-06-07 11:58:03 +03:00
ndiezel0
f7e799827b
CAPI-355: Add crypto currency (#346)
* CAPI-355: Add crypto currency

* CAPI-355: Fix with existing swag definition

* CAPI-355: Fix payment methods

* CAPI-355: Review fix

* CAPI-355: indentation fix

* CAPI-355: add test

* CAPI-355: update swag version and fix tests
2019-05-31 12:20:37 +03:00
Alexey
99a6487422
[v2] Use operation id as bender prefix (#343)
More at #344 #345
2019-05-29 13:43:37 +03:00