EMP-74: Introduces destination_field scope (#47)
Some checks are pending
Frontend: Publish / configured (push) Waiting to run
Frontend: Publish / Publish (push) Blocked by required conditions
Java deploy / deploy (push) Waiting to run

* Introduces `destination_field` scope

* Locks compatible rebar version
This commit is contained in:
Aleksey Kashapov 2024-10-29 13:57:38 +03:00 committed by GitHub
parent 10328404f1
commit 2483f600d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -10,7 +10,7 @@ jobs:
uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1
with:
otp-version: 24
rebar-version: 3
rebar-version: 3.23
use-thrift: true
thrift-version: 0.14.2.3
run-eunit: false

View File

@ -149,10 +149,24 @@ union LimitScopeType {
*/
9: LimitScopeEmptyDetails sender
10: LimitScopeEmptyDetails receiver
/**
* Scope for operations with destination's generic resource fields.
* See damsel's "base.Content" https://github.com/valitydev/damsel/blob/ad715bd647bc5cfa822e2b09b1329dab6a2bf295/proto/base.thrift#L20-L25
* and it's example with generic payment tool https://github.com/valitydev/damsel/blob/ad715bd647bc5cfa822e2b09b1329dab6a2bf295/proto/domain.thrift#L1816-L1836
*/
11: LimitScopeDestinationFieldDetails destination_field
}
struct LimitScopeEmptyDetails {}
/**
* TODO Support universal context-based field selector
*/
struct LimitScopeDestinationFieldDetails {
1: required list<string> field_path
}
union LimitContextType {
1: LimitContextTypePaymentProcessing payment_processing
2: LimitContextTypeWithdrawalProcessing withdrawal_processing