1 type: object
2 description: The promotion rule's details.
3 x-schemaName: AdminPromotionRule
4 required:
5 - id
6 - values
7 properties:
8 id:
9 type: string
10 title: id
11 description: The promotion rule's ID.
12 description:
13 type: string
14 title: description
15 description: The promotion rule's description.
16 attribute:
17 type: string
18 title: attribute
19 description: The promotion rule's attribute.
20 example: customer_group_id
21 operator:
22 type: string
23 description: The rule's operator.
24 enum:
25 - gt
26 - lt
27 - eq
28 - ne
29 - in
30 - lte
31 - gte
32 values:
33 type: array
34 description: The rule's values.
35 example:
36 - cusgroup_123
37 items:
38 $ref: ./BasePromotionRuleValue.yaml