ED-181: add operation_behaviour in LimitConfig (#4)

This commit is contained in:
Boris 2021-06-22 08:39:55 +03:00 committed by GitHub
parent d4b40ead58
commit 33a84b3d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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