Commit Graph

425 Commits

Author SHA1 Message Date
Andrew Mayorov
4862a0832c
Expose SERVICE_NAME as env so CMD expands properly (#4) 2022-02-10 17:16:29 +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
Sergey Yelin
bf17c53853
Fix p2p error (#582) 2021-10-20 17:15: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
ee0698e551
IS-1839: Bump swag (#576) 2021-09-28 11:26:39 +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
76f80fe251
ED-103/deps: Update swag (#569) 2021-09-02 09:08:56 +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
Boris
bc6446611e
Add client info url logging (#567) 2021-08-23 15:34:30 +03:00
dinama
3a0034f8a7
ED-242: rbkmoney/image-build-erlang@aaa79c2d (#566) 2021-08-20 14:40:56 +03:00
dinama
1a2d71d55f
ED-242: rbkmoney/image-build-erlang@fa504f6 (#565) 2021-08-19 19:06:53 +03:00
Alexey
a3b0bf5074
ED-222: Support for simpler token-keeper metadata format (#562) 2021-08-19 11:55:47 +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
5f349be375
ED-192: +payout_manager_proto app start +bump payout_manager_proto +fix build_payout_ctx (#560) 2021-08-02 22:39:23 +03:00
Andrew Mayorov
2aa76e2a8b
ED-206: Mask forbidden as nonexistent invoice in read-only ops (#558)
* Explain reasoning behind masking in a comment
* Simplify `capi_auth` a bit
* Remove outdated TODOs
2021-07-30 11:00:20 +03:00
dinama
96da4b830b
ED-193: +PaymentInstitution payout +payout_manager_proto (#556) 2021-07-29 15:38:56 +03:00
Andrew Mayorov
a1ff9cd1ca
ED-206: Drop testgroup relevant for legacy auth (#559)
* Simplify token issuing and contexts in tests
* No need for an ACL abstraction anymore
* `ExtraProperties` in contexts was never used anyway
* Make test client more flexible wrt deadlines
* Drop unused module
* Drop auth tests which became effectively useless
2021-07-27 17:17:01 +03:00
Sergey Yelin
b2194a0b2f
ED-195: Remove blacklists from capi (#555)
* ED-195: Remove blacklists from capi

* Remove config example

* Fix dialyzer
2021-07-15 23:45:18 +03:00
Sergey Yelin
aa081138dc
ED-201: Fix crash while getting refund with external id (#557)
* ED-201: Fix crash while getting refund with external id

* Fix dialyzer
2021-07-15 22:44:39 +03:00
Sergey Yelin
d042dd8518
ED-172: Switch to bouncer (#553)
* ED-172: Switch to bouncer

* Return error in case of token keeper auth failed

* Remove unused

* auth_data must present here in any case

* Do not rewrite ports for existing services

* Add missing bouncer policies in invoice access token tests

* Remove legacy auth for operation authorization

* Add permission for GetPaymentByExternalID into tests

* Add new permissions where missing

* Fixe GetReport

* Remove unused variables

* Review fixes

* Rewview fixes 2

* More fixes
2021-07-09 19:55:42 +03:00
Yaroslav Rogov
2fc4f66070
deps: Update dmt_client (#550)
* deps: Update dmt_client

* fix: Fix opts passing

* fix: Fix capi_domain

* test: Fix tests for new ordering

* refactor: Fix get_objects_by_type signature

* refactor: Fix copypaste
2021-07-05 16:54:21 +03:00
dinama
0f7a5f92a8
HG-568: pass clientInfo to backend (#552) 2021-07-04 20:07:47 +03:00
Sergey Yelin
2204ee2223
ED-172: Add missing data in context for authorization (#551)
* ED-172: Add missing data in context for authorization

* Review fixes
2021-07-01 17:41:48 +03:00
Alexey
5436a5fbab
Revert "Revert "ED-184: migrate to party_client"" (#548) 2021-06-30 13:28:15 +03:00
Alexey
001ba85da0
ED-119: Correctly use legacy claims when lazily creating parties (#549) 2021-06-29 16:48:59 +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
Yaroslav Rogov
507b460727
Ed 154/feat/economic area api (#543)
* feat: Add API for countries and economic zones

* deps: update swag

* fix: Handle optional trade_blocs set

* fix: Fix returning field names

* Apply suggestions from code review

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

* test: Fix domain integrity and add not found cases

* deps: remove unnecessary meck

Co-authored-by: Sergey Yelin <s.elin@rbkmoney.com>
2021-06-16 17:03:53 +03:00
Yaroslav Rogov
5ba3e97d27
ED-95/feat: Switch proto defs to required ids (#540) 2021-05-20 11:31:07 +03:00
Sergey Yelin
e7d3b37820
Update damsel to latest (#539) 2021-05-19 10:13:00 +03:00
Andrew Mayorov
d3a64bb0f1
ED-143: Support passing payer.sessionInfo around (#538)
* Bump to rbkmoney/swag@1dbc8c5d
* Bump to rbkmoney/damsel@3baeeaf
2021-04-30 18:45:27 +03:00
Boris
56137dfba0
ED-57: payment handler bouncer integration (#527) 2021-04-30 12:26:47 +03:00
yuri-bukhalenkov
c533defaf1
ED-111: fixed wetkitty mocha tests (#537)
* fixed wetkitty mocha tests (added tests and both *_deprecated and actual payment methods handlers)

* format
2021-04-28 11:58:26 +03:00
Yaroslav Rogov
fa5c33280e
ED 94/feat/pass customer id (#533)
* ED-94/feat: Generate and pass CustomerID on customer creation

* Update apps/capi/src/capi_handler_customers.erl

Co-authored-by: Boris <bpozdnyakov@gmail.com>

* refactor: fix formatting

* test: remove unnecessary asserts

Co-authored-by: Boris <bpozdnyakov@gmail.com>
2021-04-26 11:01:28 +03:00
yuri-bukhalenkov
438d0a6034
fixed: replaced old fields with a proper ones (#536)
* fixed: replaced old fields with a proper ones

* fixed: replaced old fields with a proper ones

* format
2021-04-21 11:35:04 +03:00
Yaroslav Rogov
5f2b240e25
ED 92/feat/pass invoice template id (#532)
* ED-81/refactor: pass OperationID for id gen

* deps: update damsel

* ED-92/feat: Add idempotency for invoice templates

* ED-92/fix: Fox feature indexing

* ED-92/refactor: merge single_line in common schema

* refactor: put capi_bender:make_idempotent_key to private

* refactor: rename invoice_template_create_params

* refactor: remove unused features

* fix customer_binding schema naming

* refactor: remove unlim id

* tests: add unused features check to create_invoice_template_ok_test

* refactor: remove unused id

* fix(capi_idemp_features): Fix list_all_fields algorithm

There was a bug in capi_idemp_features:list_all_fields: during zipfold, it return an incorrect accumulator with RevPath
that accumulated paths of ALL map nodes traversed so far.

It showed up in customer_binding schema I'm currently writing Unit tests for:
```
expected: [<<"paymentResource.paymentTool.exp_date">>,
<<"paymentResource.paymentSession">>]
got: [<<"paymentResource.paymentTool.exp_date">>,
<<"paymentResource.paymentTool.paymentSession">>]
```

It didn't show up in existing tests at all: bad luck I guess 🤷

* refactor: fix typo

* tests: add unit tests for customer_binding

* refactor+test: Refactor feature tests and add invoice_template tests

* fix: Add invoiceTemplateID to invoice schema

* fix: capi_bender types

* test: fix idemp unit test for templates

* test: Add missing ignored keys

* test: Add invoice_with_template_creation idemp test

* test: fix idemp unit test for templates

* refactor: remove unnecessary get_external_id clause
2021-04-16 09:30:27 +03:00
Yaroslav Rogov
35763f907d
ED-81/fix: Fix id generation (#535) 2021-04-08 12:15:32 +03:00