mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 01:35:19 +00:00
TD-933: Adds support for deviation direction for amount randomization (#142)
This commit is contained in:
parent
485612481e
commit
e5d3c83a24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user