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