1 /**
2 * @schema AdminCreatePromotionRule
3 * type: object
4 * description: The promotion rule's details.
5 * x-schemaName: AdminCreatePromotionRule
6 * required:
7 * - operator
8 * - attribute
9 * - values
10 * properties:
11 * operator:
12 * type: string
13 * description: The operator used to check whether the buy rule applies on a cart. For example, `eq` means that the cart's value for the specified attribute must match the specified value.
14 * enum:
15 * - gte
16 * - lte
17 * - gt
18 * - lt
19 * - eq
20 * - ne
21 * - in
22 * description:
23 * type: string
24 * title: description
25 * description: The rule's description.
26 * attribute:
27 * type: string
28 * title: attribute
29 * description: The attribute to compare against when checking whether a promotion can be applied on a cart.
30 * example: items.product.id
31 * values:
32 * oneOf:
33 * - type: string
34 * title: values
35 * description: The attribute's value.
36 * example: prod_123
37 * - type: array
38 * description: The allowed attribute values.
39 * items:
40 * type: string
41 * title: values
42 * description: An attribute value.
43 * example: prod_123
44 *
45 */
46