mirror of
https://github.com/valitydev/limiter-proto.git
synced 2024-11-06 00:35:18 +00:00
EMP-74: Introduces destination_field
scope (#47)
* Introduces `destination_field` scope * Locks compatible rebar version
This commit is contained in:
parent
10328404f1
commit
2483f600d6
2
.github/workflows/erlang-pr.yml
vendored
2
.github/workflows/erlang-pr.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user