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