Commit Graph

332 Commits

Author SHA1 Message Date
Артем
89759bfd18
IMP-250: Remove payout (#48) 2024-07-02 19:08:09 +03:00
Aleksey Kashapov
87d0e29202
OPS-474: Refactors amount randomization for new hellgate invoice mutation capability (#46)
* OPS-474: Refactors amount randomization for new hellgate invoice mutation capability

* Retires 'cartNotSupported' in favour of HG's invalid request exception throw through

* Bumps swag
2024-06-21 11:37:53 +03:00
Aleksey Kashapov
bb7cbb133d
OPS-474: Adds support for amount randomization (#45)
* OPS-474: Adds support for amount randomization

* Update apps/capi/src/capi_handler_invoices.erl

Co-authored-by: Артем <WWW_cool@inbox.ru>

* Changes sign calc

* Fixes error type

* Temporarily disables codecov report upload

---------

Co-authored-by: Артем <WWW_cool@inbox.ru>
2024-05-29 13:18:54 +03:00
ndiezel0
bdcea3648a
INT-973: Add Requested and Completed statuses of UI to WH (#43)
* INT-973: Add Requested and Completed statuses of UI to WH

* Add tests

* Fix test

* a
2024-02-27 20:25:20 +05:00
Артем
14a41f5526
INT-915: Put changed cash to payment cash (#42) 2024-01-16 12:43:36 +03:00
Артем
3401edb1ba
OPS-371: Add new ui (#41)
* added new ui

* bumped swag
2023-11-27 15:11:49 +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
Артем
d5ed8b20f2
changes get user id to get party id instead (#37) 2023-08-25 14:22:14 +07:00
Aleksey Kashapov
d9db173e23
Epic: Organizations (#28)
* TD-502: Enable usage of user_id and party_id from token (#26)

* TD-502: Enable usage of user_id and party_id from token

* Fix tests

* TD-642: debug auth by key

* TD-642: fix typo

* debug off

---------

Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
Co-authored-by: Артем <WWW_cool@inbox.ru>
Co-authored-by: anatoliy.losev <losto@nix>
2023-08-24 16:36:32 +03:00
Артем
d7a05735d1
Remove party match in refund creation (#36) 2023-07-20 18:13:58 +03:00
ndiezel0
d6151187dc
OPS-259: Add ability to get ip address from header (#31)
* OPS-259: Add ability to get ip address from header

* Fix swag_server

* Add test

* Review fix
2023-03-24 12:04:17 +05:00
Aleksey Kashapov
635e0b2f42
OPS-272: Removes party id checks (#30)
* Removes checks in operations `CapturePayment`, `CreateRefund`,
  `GetPayout`, `GetWebhookByID` and `DeleteWebhookByID`
* Adds support for `GetWebhooksForParty` operation with `partyID`
  request parameter
* Removes obosolete test
  `capi_base_api_token_tests_SUITE:get_payout_fail/1`
* Adds test `get_webhooks_for_party/2` and upgrades swag deps
2023-03-15 10:11:44 +03:00
Aleksey Kashapov
dbb2039c30
OPS-272: Adds 'ForParty' operations implementation (#29)
* Adds `getInvoiceByExternalIDForParty` implementations with tests
* Adds `getPaymentInstitutionPayoutMethodsForParty` and `getPaymentInstitutionPayoutSchedulesForParty`
* Adds `getPaymentByExternalIDForParty` and `getRefundByExternalIDForParty`
* Bumps `swag_client` and `swag_server`
2023-03-07 13:20:32 +03:00
Aleksey Kashapov
031d6effbb
Revert "TD-502: Enable usage of user_id and party_id from token (#26)" (#27)
This reverts commit 2de9367561.
2023-02-27 10:46:08 +03:00
ndiezel0
2de9367561
TD-502: Enable usage of user_id and party_id from token (#26)
* TD-502: Enable usage of user_id and party_id from token

* Fix tests
2023-01-27 11:13:52 +05:00
Артем
b408726bab
APM-286: Add new data to trx info (#25)
* added new data to trx info

* refreshed cache
2023-01-19 12:45:07 +03:00
ndiezel0
10d663c349
TD-476: Add restrictions for GetShopsForParty (#24)
* TD-476: Add restrictions for GetShopsForParty

* Update bouncer-proto and filtering

* Add restriction test

* Format

* Update workflow

* Update apps/capi/src/capi_handler_shops.erl

Co-authored-by: Артем <WWW_cool@inbox.ru>

* Implement suggestion

* Fix

* Fix specs

* Add test for non existent restriction iml

Co-authored-by: Артем <WWW_cool@inbox.ru>
2022-12-27 12:33:54 +05:00
Andrew Mayorov
e5b4f7d540
TD-443: Produce InteractionCompleted events @ payments / bindings (#23)
* Bump to valitydev/damsel@6655937
* Bump to valitydev/swag-payments@d71aebc
* Ensure backward compatibility
2022-11-01 18:06:57 +03:00
Артем
4d785873da
TD-385: Fix - default ip if undefined (#22) 2022-10-12 15:21:00 +04:00
Артем
10050fd975
TD-385: Add new ips (#21) 2022-10-11 19:19:03 +04: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
Andrew Mayorov
987bfc9863
TD-367: Stop counting DigitalWallet.token as idemp feature (#19) 2022-08-10 11:26:23 +03:00
Артем
05518a801c
TD-266: Fix - empty invoice id field (#18) 2022-08-03 14:03:54 +03:00
Артем
b8544b7cea
TD-266: Fix - empty invoice id field (#17)
* fixed empty invoice id bug

* fixed

* fixed
2022-07-25 14:11:34 +03:00
Andrew Mayorov
9e3f8eb930
TD-222: Reuse valitydev/action-deploy-docker@v2 (#16)
* Drop merchstat leftovers
* Cut out some unused includes
2022-07-18 19:20:03 +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
Alexey S
cf18b3d955
TD-286: Remove userinfo and update protocols (#12) 2022-05-16 18:13:45 +03:00
Andrew Mayorov
8327dba201
Drop accounter service dependency (#13) 2022-05-16 11:43:32 +03:00
Andrew Mayorov
7f28b21d25
TD-288: Stop responding w/ payment tool tokens (#11)
* Bump to valitydev/swag-payments@c39e50b
* Also drop legacy idemp features handling
* Simplify bender client module
* Increase test coverage
* Disentangle conflict error and `logic_error`
* Deduplicate testcases code
2022-05-16 11:16:36 +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
b0b9ece994
TD-136: Supplement shop with currency in responses (#8) 2022-03-28 19:07:40 +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
4bb86bf94a
APM-44: Handle payment services in digital wallet details (#5)
* Update digital wallet related testcases
2022-02-25 14:50:20 +03:00
Alexey S
ba45f12071
TD-104: Update token-keeper-client (#3) 2022-02-24 12:36:27 +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
4e39a79083
ED-126: +getCustomerPaymentMethods (#583) 2021-10-27 18:08:59 +03:00
dinama
2a8d8ade02
ED-165: split support (#554) 2021-10-26 20:09:23 +03:00
dinama
d0ab2fa4bc
ED-292: +catch merchantID decode errors +migrate to jose_base64url (#581) 2021-10-14 13:59:26 +03:00
dinama
8226a41e05
ED-123 ED-273: +tokenProviderData +gatewayMerchantID as thrift (#542) 2021-10-08 10:33:03 +03:00
Sergey Yelin
b00788b359
Revert "ED-276: Remove claim API (#577)" (#580)
This reverts commit e6991720bf.
2021-10-06 10:48:29 +03:00
Sergey Yelin
e6991720bf
ED-276: Remove claim API (#577)
* ED-276: Update schemes

* ED-276: Remove claim API
2021-10-05 16:48:45 +03:00
Alexey
2bba957b10
ED-208: Bring back lazy party creation for GetMyParty api method (#575) 2021-09-15 17:59:28 +03:00
Alexey
f469f166ae
ED-208: Token issuing with token-keeper (#561) 2021-09-15 12:41:54 +03:00
Alexey
004447553c
IS-1839: Bump build image with new codegen (#574) 2021-09-14 15:10:42 +03:00
Boris
5ac15a5709
del shop url from log (#572) 2021-09-13 13:16:25 +03:00
Yaroslav Rogov
c5df0aa49c
Ed 262/feat/named invoice templates (#573)
* ED-262/feat: Add name and createdAt for InvoiceTemplate

* ED-262/deps: Update damsel and swag
2021-09-10 14:50:13 +03:00
dinama
6b81bbc8e9
+refactor token keeper ct helper (#571) 2021-09-06 15:38:44 +03:00
Yaroslav Rogov
e06aff27d7
ED-103/feat: Add dictionary support (#568)
* ED-103/feat: Add dictionary support

* ED-103/ref: remove leftovers

* ED-103/fmt: Fix results of stale formatter

* ED-103/ref: Fix lint warning

* ED-103/ref: Fix dialyzer warnings

* Update apps/capi/src/capi_domain.erl

Co-authored-by: Sergey Yelin <s.elin@rbkmoney.com>

* ED-103/fix: Return found ref on mismatch

* ED-103/chore: Remove todo comments 🤦

* ED-103/ref: refactor crypto currency encoding

* ED-103/fix: Fix decoder exports

* ED-103/ref: Remove erroneous spec

* ED-103/chore: Remove DISCUSS regarding reverse mapping

Co-authored-by: Sergey Yelin <s.elin@rbkmoney.com>
2021-09-01 16:27:46 +03:00