mirror of
https://github.com/valitydev/limiter-proto.git
synced 2024-11-06 00:35:18 +00:00
ED-181: add operation_behaviour in LimitConfig (#4)
This commit is contained in:
parent
d4b40ead58
commit
33a84b3d10
@ -27,8 +27,21 @@ struct LimitConfig {
|
||||
8: optional LimitType type
|
||||
9: optional LimitScope scope
|
||||
10: optional string description
|
||||
12: optional OperationLimitBehaviour op_behaviour
|
||||
}
|
||||
|
||||
struct OperationLimitBehaviour {
|
||||
1: optional OperationBehaviour invoice_payment_refund
|
||||
}
|
||||
|
||||
union OperationBehaviour {
|
||||
1: Subtraction subtraction
|
||||
2: Addition addition
|
||||
}
|
||||
|
||||
struct Subtraction {}
|
||||
struct Addition {}
|
||||
|
||||
union LimitBodyType {
|
||||
1: LimitBodyTypeAmount amount
|
||||
2: LimitBodyTypeCash cash
|
||||
|
Loading…
Reference in New Issue
Block a user