Commit Graph

59 Commits

Author SHA1 Message Date
Aleksey Kashapov
00038f8f1b
IMP-293: Retires payouts methods (#53)
* IMP-293: Retires payouts methods

* Bumps CI cache version

* Bumps woody and setups its metrics

* Reverts removed fields

* Bumps damsel

* Bumps damsel
2024-09-03 12:52:51 +03:00
Aleksey Kashapov
2bed81a844
TD-686: Instruments OTEL tracing (#39)
* TD-686: Instruments OTEL tracing

* Adds missing application deps

* Wraps swagger operation handler call

* Bumps logger_logstash_formatter

* Refactors single process span ctx relations

* Refactors span relations in-process state

* Bumps woody to use generic event handler for otel

* Adds scoper meta as span attributes

* Bumps deps

* Clean up .app.src

* Bumps genlib

* Migrates back to scoper' woody event handler

* Bumps scoper

* Removes obsolete meta sync

* Adds OTEL propagation handling upon JSON API request
2023-10-26 13:34:48 +03:00
Артем
d3f6860085
IMP-76: Add new fields in contact info (#38)
* added new fields in contact info

* fixed test

* bumped damsel, swag server/client

* fixed
2023-09-11 20:08:40 +07:00
Andrew Mayorov
dec70d64d4
TD-367: Drop retired APIs as of valitydev/swag-payments@37e6f46 (#20)
* Steamline test fixtures
* Drop unused utility functions
* Resurrect SearchInvoices / SearchRefunds
2022-09-05 13:22:16 +03:00
Артем
289a0e9903
TD-266: Change merch stat to magista proto (#14)
* added magista proto

* changed to magista proto

* bumped magista proto

* fixed

* added error test case

* tried to feat cover

* added some error cases

* fixed

* added tests

* added tests

* bumped all

* added filters

* added requested changes
2022-07-18 15:48:02 +03:00
Артем
d4fe7e16bd
TD-195: Remove old payment methods (#9)
* removed legacy

* fixed format

* fixed

* added some tests, refactored for more coverage

* added requested changes

* fixed dep

* fixed

* fixed

* fixed
2022-04-20 15:07:35 +03:00
Andrew Mayorov
7d6a034f1c
Bump to valitydev/swag-payments@a925a97 (#7)
* Drop account-related handlers as per valitydev/swag-payments@777d37a
* Bump to valitydev/bouncer-client-erlang@b6c7be0
* Drop unnecessary exception handling
* Drop unused utility functions
2022-03-26 17:40:19 +03:00
Andrew Mayorov
14369d48f4
TD-124: Setup CI/CD with GH Actions (#1)
* Drop proprietary CI stuff
* Stop including default secret in release
* Fix io encoding w/ iosetopts
* Bump to valitydev/damsel@dcd92dd
* Implement and test `GetServiceProviderByID` op
* Depend on valitydev/swag-payments@a639270
* Drop geo api handler and tests
* Switch to valitydev upstream
  * valitydev/cowboy_access_log@04da359
  * valitydev/damsel@b25d336
  * valitydev/dmt_client@e9b1961
  * valitydev/dmt_core@910e20e
  * valitydev/party_client_erlang@8fc5595
  * valitydev/woody_erlang@0c2e16d
  * valitydev/woody_api_hay@4c39134
* Drop client url logging
* Setup CI/CD with GH Actions
* Drop dead links

Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
2022-02-04 19:28:33 +03:00
Jarosław Rogov
8381da653a
ED-282/deps: Migrate to feat for idempotency feats (#578)
* ED-282/deps: Migrate to feat for idempotency feats

* ED-282/ref: Fix dialyzer warning

* ED-282/ref: Fix dialyzer warnings

* ED-282/fix: Remove leftover

* ED-282/ref: Fix legacy module naming

* ED-282/ref: Fix headers module naming

* ED-282/fix: Fix v2 legacy fallback

* ED-282/fix: Fix v2 compativility code

* ED-282/ref: Fix dialyzer and linter warnings

* ED-282/fix: Fix bug and dialyzer warnings

* ED-282/test: Return create_invoice_legacy_fail

* ED-282/ref: Rewrite feat CT reader

Make it simpler and more explicit

* ED-282/ref: Fix formatting

* ED-282/fix: Remove debug leftovers

* ED-282/fix: Fix CT feat reader

* ED-282/test: Fix unused fields

* ED-282/ref: Refactor capi_bender

* ED-282/ref: Refactor arg naming in capi_bender

* ED-282/fix: Fix capi_bender list_diff for legacy

* ED-282/test: Add success test and fix impl

* ED-282/fix: Fix types for consistency

* ED-282/ref: Tweak elvis to ignore idemp tests

* ED-282/ref: Simplify capi_bender API

* ED-282/deps: Switch capi_bender to bender_client

* ED-282/ref: Remove direct bender call leftovers

* ED-282/fix: Return spec for get_context_data

* ED-282/ref: Rename bender capi namespace const

* ED-282/ref: Remove leftover

* ED-282/ref: Remove read_schema redundant clauses

* ED-282/ref: Rename bender namespace var

* ED-282/ref: Remove leftovers and fix formatting
2021-11-02 15:24:00 +03:00
dinama
2a8d8ade02
ED-165: split support (#554) 2021-10-26 20:09:23 +03:00
dinama
8226a41e05
ED-123 ED-273: +tokenProviderData +gatewayMerchantID as thrift (#542) 2021-10-08 10:33:03 +03:00
Alexey
f469f166ae
ED-208: Token issuing with token-keeper (#561) 2021-09-15 12:41:54 +03:00
dinama
794ede73e5
+woody_api_hay depend (#564) 2021-08-18 19:49:22 +03:00
dinama
7c2fb757ec
ED-242: erlang 24 (#544) 2021-08-18 10:39:47 +03:00
dinama
96da4b830b
ED-193: +PaymentInstitution payout +payout_manager_proto (#556) 2021-07-29 15:38:56 +03:00
Alexey
5436a5fbab
Revert "Revert "ED-184: migrate to party_client"" (#548) 2021-06-30 13:28:15 +03:00
Alexey
4aab3c8de3
Revert "ED-184: migrate to party_client (#546)" (#547)
This reverts commit a1151e3ca3.
2021-06-29 14:35:03 +03:00
dinama
a1151e3ca3
ED-184: migrate to party_client (#546) 2021-06-28 18:43:17 +03:00
Alexey
af3819613e
ED-119: Token Keeper integration (#545) 2021-06-28 17:20:00 +03:00
Артем
fc93cda066
MSPF-601: Bouncer integration and webhooks (#510)
* bouncer integration WIP

* added preprocess

* added minor fixes

* remixed handler api

* fixed some tests

# Conflicts:
#	apps/capi/src/capi_auth.erl

* fixed

* fixed

* fixed test hack + format

* added empty impl bypass

* remixed

* refactored

* minor

* fixed dialyzer

* added requested changes

* fixed
2021-02-19 14:22:46 +03:00
dinama
92619bb9cd
upgrade world (#507) 2021-01-31 22:09:20 +03:00
Sergey Yelin
2ef82c8c34
Cleanup release (#504)
* Cleanup release

* Revert formater changes
2020-12-07 13:12:44 +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
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
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
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
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
Boris
c6701e58ca
add lechiffre (#448) 2020-01-23 16:17:17 +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
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
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
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
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
Boris
e018c2170f
CAPI-345 Invoice idempotency (#327) 2019-04-16 16:38:14 +03:00
Andrey Fadeev
996338bac4
CAPI-327 Add VM metrics to v2 (#312)
Add `how_are_you` library usage
2019-01-15 00:37:48 +03:00
Alexey
df64102174
CAPI-304: Use BinBase when creating payment resources (#269)
* raw version of binbase integration

* upgrades from v2

* moved binbase lookup to a more suitable place

* some catches and renamings

* save metadata, save everything to token

* make metadata encoding/decoding more futureproof

* fix linter

* fix linter but better

* use actual msgpack marshalling

* accept metadata from other sources

* use mapmap instead of mapfold
2018-10-03 18:08:11 +03:00
Evgeny Levenets
29d1418564
add woody deadlines on service level (#231)
* add woody deadlines on service level
* don't overwrite incoming deadline
2018-07-06 10:50:08 +03:00
Andrew Mayorov
a9019e34c1
Employ dmt_client here (#216) 2018-05-17 14:10:30 +03:00
Petr Kozorezov
f7ef72654d
add "health" handle (#187)
* add "health" handle

* apply review comments
2018-04-13 15:35:02 +03:00
Petr Kozorezov
74c28089e5
Capi 253/epic/error mapping (#183)
* add token consumer

* refactor a little; add error mapping for payment + tests

* update client payment error mapping

* apply review fix

* apply review comments

* update payment client mapping

* move to master branches; fix magista payments errors
2018-04-02 13:33:10 +03:00
Andrew Mayorov
f653e420a0
CAPI-231: Put the notion of digital wallets into this shithole (#145)
* CAPI-231: Proudly employ cowboy_access_log

* BA-52: Bump to master rbkmoney/swag@13e66dd

* BA-52: Bump to master rbkmoney/damsel@620cca5
2018-01-24 17:16:39 +03:00
Natalia Pulina
247689c5ce
CAPI-192: new tests, real_SUITE fixed with mocked services (#111) 2017-10-31 13:15:56 +03:00
Andrew Mayorov
5fc7edf37b HG-182: Switch damsel to master (#116) 2017-10-23 17:53:18 +03:00
Evgeny Levenets
b80382247c HG-278: subscriptions support (#113)
* HG-278: subscriptions support (#110)

* HG-182: Bump to rbkmoney/swag@a880e4d

* HG-182: Bump to rbkmoney/hellgate@80f2474
2017-10-23 17:01:01 +03:00
Anton Belyaev
18a52c4a21 Add payouts statistics search (#85) (#107)
* CAPI-170: support payouts stats search
* CAPI-198: fix access scopes for refunds API (#108)
* Replace cp_proto and damsel submodule with dmsl rebar dep
* Fix (temporary) docker-compose conf to use for both CI and OS X
2017-10-11 00:02:17 +03:00
Anton Belyaev
7842fa6ef9 Refactor work with api_client (#79)
* use one pg container for all the dbs in docker-compose;
* get rid of pimp in docker compose;
* merge api_client into capi as one of apps.
2017-07-31 16:59:37 +03:00
Artem Ocheredko
0510e5507f CAPI-96: Add user identity extension (#50)
* CAPI-96 Add user identity extension

* CAPI-96 Hardcode user identity realm
2017-05-15 17:34:32 +04:00