Raw
1 type: object
2 description: The details of the shipping option rule.
3 x-schemaName: AdminCreateShippingOptionRule
4 required:
5 - operator
6 - attribute
7 - value
8 properties:
9 operator:
10 type: string
11 description: The operator used to check whether a rule applies.
12 enum:
13 - gt
14 - lt
15 - eq
16 - ne
17 - in
18 - lte
19 - gte
20 - nin
21 attribute:
22 type: string
23 title: attribute
24 description: The name of a property or table that the rule applies to.
25 example: customer_group
26 value:
27 oneOf:
28 - type: string
29 title: value
30 description: A value of the attribute that enables this rule.
31 example: cusgroup_123
32 - type: array
33 description: Values of the attribute that enable this rule.
34 items:
35 type: string
36 title: value
37 description: A value of the attribute that enables this rule.
38 example: cusgroup_123