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