diff --git a/proto/domain.thrift b/proto/domain.thrift index 2f04a22..9851fb8 100644 --- a/proto/domain.thrift +++ b/proto/domain.thrift @@ -382,11 +382,21 @@ union InvoiceAmountMutationParams { struct RandomizationMutationParams { 1: required Amount deviation 2: required i64 precision + /** + * По умолчанию полагается допустимым отклонение в обе стороны + */ + 7: optional DeviationDirection direction 4: optional Amount min_amount_condition 5: optional Amount max_amount_condition 6: optional Amount amount_multiplicity_condition } +enum DeviationDirection { + both = 1 + upward = 2 + downward = 3 +} + union InvoiceTemplateDetails { 1: InvoiceCart cart 2: InvoiceTemplateProduct product