|
1
|
type: object |
|
2
|
description: The promotion's details. |
|
3
|
x-schemaName: AdminPromotion |
|
4
|
required: |
|
5
|
- id |
|
6
|
- created_at |
|
7
|
- updated_at |
|
8
|
- deleted_at |
|
9
|
properties: |
|
10
|
application_method: |
|
11
|
$ref: ./AdminApplicationMethod.yaml |
|
12
|
rules: |
|
13
|
type: array |
|
14
|
description: The promotion's rules. |
|
15
|
items: |
|
16
|
$ref: ./AdminPromotionRule.yaml |
|
17
|
id: |
|
18
|
type: string |
|
19
|
title: id |
|
20
|
description: The promotion's ID. |
|
21
|
code: |
|
22
|
type: string |
|
23
|
title: code |
|
24
|
description: The promotion's code. |
|
25
|
example: OFF50 |
|
26
|
type: |
|
27
|
type: string |
|
28
|
description: The promotion's type. |
|
29
|
enum: |
|
30
|
- standard |
|
31
|
- buyget |
|
32
|
is_automatic: |
|
33
|
type: boolean |
|
34
|
title: is_automatic |
|
35
|
description: >- |
|
36
|
Whether the promotion is applied on a cart automatically if it matches the |
|
37
|
promotion's rules. |
|
38
|
campaign_id: |
|
39
|
type: string |
|
40
|
title: campaign_id |
|
41
|
description: The ID of the campaign this promotion belongs to. |
|
42
|
campaign: |
|
43
|
$ref: ./AdminCampaign.yaml |
|
44
|
created_at: |
|
45
|
type: string |
|
46
|
format: date-time |
|
47
|
title: created_at |
|
48
|
description: The date the promotion was created. |
|
49
|
updated_at: |
|
50
|
type: string |
|
51
|
format: date-time |
|
52
|
title: updated_at |
|
53
|
description: The date the promotion was updated. |
|
54
|
deleted_at: |
|
55
|
type: string |
|
56
|
format: date-time |
|
57
|
title: deleted_at |
|
58
|
description: The date the promotion was deleted. |
|
59
|
status: |
|
60
|
type: string |
|
61
|
description: The promotion's status. |
|
62
|
enum: |
|
63
|
- draft |
|
64
|
- active |
|
65
|
- inactive |
|
66
|
is_tax_inclusive: |
|
67
|
type: boolean |
|
68
|
title: is_tax_inclusive |
|
69
|
description: >- |
|
70
|
Whether the promotion is tax inclusive. If enabled, the promotion is |
|
71
|
applied after tax is calculated. |
|
72
|
limit: |
|
73
|
type: number |
|
74
|
title: limit |
|
75
|
description: The limit of times the promotion can be used. |
|
76
|
used: |
|
77
|
type: number |
|
78
|
title: used |
|
79
|
description: The number of times the promotion has been used. |
|
80
|
metadata: |
|
81
|
type: object |
|
82
|
description: Custom key-value pairs for the promotion. |