|
1
|
/** |
|
2
|
* @schema AdminCampaign |
|
3
|
* type: object |
|
4
|
* description: The campaign's details. |
|
5
|
* x-schemaName: AdminCampaign |
|
6
|
* required: |
|
7
|
* - id |
|
8
|
* - name |
|
9
|
* - description |
|
10
|
* - currency |
|
11
|
* - campaign_identifier |
|
12
|
* - starts_at |
|
13
|
* - ends_at |
|
14
|
* - budget |
|
15
|
* - created_at |
|
16
|
* - updated_at |
|
17
|
* - deleted_at |
|
18
|
* properties: |
|
19
|
* id: |
|
20
|
* type: string |
|
21
|
* title: id |
|
22
|
* description: The campaign's ID. |
|
23
|
* name: |
|
24
|
* type: string |
|
25
|
* title: name |
|
26
|
* description: The campaign's name. |
|
27
|
* description: |
|
28
|
* type: string |
|
29
|
* title: description |
|
30
|
* description: The campaign's description. |
|
31
|
* currency: |
|
32
|
* type: string |
|
33
|
* title: currency |
|
34
|
* description: The campaign's currency. |
|
35
|
* campaign_identifier: |
|
36
|
* type: string |
|
37
|
* title: campaign_identifier |
|
38
|
* description: The campaign's identifier. |
|
39
|
* starts_at: |
|
40
|
* type: string |
|
41
|
* title: starts_at |
|
42
|
* description: The date and time that the campaign starts. |
|
43
|
* ends_at: |
|
44
|
* type: string |
|
45
|
* title: ends_at |
|
46
|
* description: The date and time that the campaign ends. |
|
47
|
* budget: |
|
48
|
* type: object |
|
49
|
* description: The campaign's budget. |
|
50
|
* required: |
|
51
|
* - id |
|
52
|
* - type |
|
53
|
* - currency_code |
|
54
|
* - limit |
|
55
|
* - used |
|
56
|
* - attribute |
|
57
|
* properties: |
|
58
|
* id: |
|
59
|
* type: string |
|
60
|
* title: id |
|
61
|
* description: The budget's ID. |
|
62
|
* type: |
|
63
|
* type: string |
|
64
|
* description: | |
|
65
|
* The budget's type. `spend` means the limit is set on the total amount discounted by the campaign's promotions; `usage` means the limit is set on the total number of times the campaign's promotions can be used. |
|
66
|
* enum: |
|
67
|
* - spend |
|
68
|
* - usage |
|
69
|
* currency_code: |
|
70
|
* type: string |
|
71
|
* title: currency_code |
|
72
|
* description: The budget's currency code. |
|
73
|
* limit: |
|
74
|
* type: number |
|
75
|
* title: limit |
|
76
|
* description: The budget's limit. |
|
77
|
* used: |
|
78
|
* type: number |
|
79
|
* title: used |
|
80
|
* description: | |
|
81
|
* How much of the budget has been used. If the limit is `spend`, this property holds the total amount discounted so far. If the limit is `usage`, it holds the number of times the campaign's promotions have been used so far. |
|
82
|
* attribute: |
|
83
|
* type: string |
|
84
|
* title: attribute |
|
85
|
* description: The cart attribute to limit the budget by. |
|
86
|
* externalDocs: |
|
87
|
* url: https://docs.medusajs.com/resources/commerce-modules/promotion/campaign#attribute-based-budgets |
|
88
|
* created_at: |
|
89
|
* type: string |
|
90
|
* format: date-time |
|
91
|
* title: created_at |
|
92
|
* description: The date the campaign was created. |
|
93
|
* updated_at: |
|
94
|
* type: string |
|
95
|
* format: date-time |
|
96
|
* title: updated_at |
|
97
|
* description: The date the campaign was updated. |
|
98
|
* deleted_at: |
|
99
|
* type: string |
|
100
|
* format: date-time |
|
101
|
* title: deleted_at |
|
102
|
* description: The date the campaign was deleted. |
|
103
|
* |
|
104
|
*/ |
|
105
|
|