From e5d3c83a240ba716348c6fbd816ea8e4d864472f Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Mon, 1 Jul 2024 18:25:07 +0300 Subject: [PATCH] TD-933: Adds support for deviation direction for amount randomization (#142) --- proto/domain.thrift | 10 ++++++++++ 1 file changed, 10 insertions(+) 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