mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 01:35:19 +00:00
EMP-74: Introduces destination_field
scope (#154)
This commit is contained in:
parent
ad715bd647
commit
7ed2112a65
@ -118,10 +118,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
|
||||
}
|
||||
|
||||
struct OperationLimitBehaviour {
|
||||
1: optional OperationBehaviour invoice_payment_refund
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user