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
Boris
bc6446611e
Add client info url logging ( #567 )
2021-08-23 15:34:30 +03:00
Alexey
a3b0bf5074
ED-222: Support for simpler token-keeper metadata format ( #562 )
2021-08-19 11:55: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
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
Yaroslav Rogov
264cf943f8
ED 81/pass rec payment tool id ( #531 )
...
* ED-81:deps: update damsel
* ED-81:deps: update build_utils
* ED-81:feat: Await externalID and use it to generate RecPaymentToolID
* fix: Add missing function
* fix typo
* ED-81:fix: Fix module name
* ED-81/fix: Add customer_binding_id to params
* ED-81/feat: Rewrite capi_bender, fix tests
* ED-81/deps: update swag scheme
* ED-81/fix: Fix signature for make_idempotent_key
* ED-81/fix: Probly fix dialyzer errors
* ED-81/fix: Totally fix dialyzer warnings
* ED-81/fix: Still Dialyzer moment
* ED-81/chore: Trigger jenkins job
* ED-81/chore: Disable dialyzer for those funs 🤷
* ED-81/fix: Finally fix dialyzer error?
* fix complex StartBinding prepare
* fix unnecesary test mock
* fix constant generation for no external_id
* fix features for payment tool token
* fix types for schemas with discriminators (unions)
* remove code duplication
2021-04-02 17:14:25 +03:00
ndiezel0
1a7f95d58e
ED-58: Implement bouncer in search and payout handlers ( #529 )
...
* ED-58: Implement bouncer in search and payout handlers
* ED-58: Add some tests
* ED-58: Fix tests
* ED-58: Add bouncer mocks and refactor tests
* ED-58: Format
* ED-58: Review fix
* ED-58: Review fix
* ED-58: Review fix and format
* ED-58: Return mock bouncer to `operations_by_base_api_token` group
2021-03-31 11:06:43 +03:00
Артем
2444fb598d
ED-54: Added bouncer integration for claims & contracts ( #517 )
...
* refactored claims & contracts
* added review changes
* fixed tests
* added minor fixes
* added another minor fixes
* fixed dialyzer
* fixed format
2021-03-26 13:56:03 +03:00
Артем
ac6d21d956
ED-56: Bouncer integration with inv and inv template ( #522 )
...
* refactored inv and inv template
* fixed tests
* refactored
* fixed test
* fixed format
* refactored wehooks
* fixed test
2021-03-26 11:29:53 +03:00
Andrey Fadeev
cf4da2ecd7
ED-84 Add bank account to invoice details ( #530 )
...
* Update swag to rbkmoney/swag@19890ad1
* Add bank account to invoice details
2021-03-22 12:14:11 +03:00
dinama
78f21e0119
Revert "Revert "ED-71: party *ByID calls ( #523 )"" ( #528 )
2021-03-16 11:11:00 +03:00
dinama
5e4a2772c5
Revert "Revert "ED-55: +geo bouncer +parties bouncer +customer bouncer"" ( #526 )
2021-03-15 18:39:10 +03:00
dinama
c81fa4e291
Revert "ED-55: +geo bouncer +parties bouncer +customer bouncer"
...
This reverts commit de2cfef0d3
.
2021-03-15 11:56:55 +03:00
dinama
ff892abef4
Revert "ED-71: party *ByID calls ( #523 )"
...
This reverts commit d62050f351
.
2021-03-15 11:56:55 +03:00
dinama
d62050f351
ED-71: party *ByID calls ( #523 )
...
* +add *ByID calls
* +bump swag
2021-03-12 18:05:04 +03:00
dinama
de2cfef0d3
ED-55: +geo bouncer +parties bouncer +customer bouncer
2021-03-12 18:05:04 +03:00
Andrew Mayorov
467f0a7e90
Bump to rbkmoney/image-build-erlang@9bedaf5 ( #521 )
...
* Bump to rbkmoney/image-build-erlang@9bedaf5
* Bump to rbkmoney/build_utils@fc6ac0f
* Bump to rbkmoney/image-service-erlang@c0aee9a
2021-03-11 15:08:01 +03:00
Andrew Mayorov
a709fd560f
ED-65: Safeguard bouncer integration ( #516 )
...
* Bump to rbkmoney/bouncer_client_erlang@2c083eb
* Provide sample bouncer_client config
2021-03-04 19:47:37 +03:00
Sergey Yelin
c9befca61b
ED-53: add prototypes ( #515 )
...
* Add prototypes to GetAccountByID
* Add prototypes to capi_handler_shops and capi_handler_categories
* Remove get_prototypes/3
* Rework shops handler
* Optimize some calls
* Rework accounts and categories handlers
* Torned on bouncer in tests for accounts and categories
* Enable bouncer in tests for shops
2021-03-03 21:27:04 +03:00
Andrew Mayorov
eb991049a7
ED-66: Pass bouncer ctx w/ specific access tokens ( #513 )
...
* Bump to rbkmoney/bouncer-proto@584e0ed
Use well-know auth methods instead.
2021-03-02 17:27:19 +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
Alexey
2ae996ac46
CAPI-430: Add transaction_info to GetPayment methods ( #506 )
2020-12-09 18:42:53 +03:00
Sergey Yelin
69861392b0
Add yandexpay ( #505 )
...
* Update to swag with YandexPay
* Update damsel and swag
* Add YandexPay
2020-12-08 20:19:18 +03:00
Alexey
0b618ae9c8
MSPF-622: Update woody, remove random port generation in tests ( #503 )
2020-11-26 11:48:14 +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