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