-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathShoppingList.php
More file actions
275 lines (217 loc) · 7.27 KB
/
Copy pathShoppingList.php
File metadata and controls
275 lines (217 loc) · 7.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\ShoppingList;
use Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference;
use Commercetools\Api\Models\Common\BaseResource;
use Commercetools\Api\Models\Common\CreatedBy;
use Commercetools\Api\Models\Common\LastModifiedBy;
use Commercetools\Api\Models\Common\LocalizedString;
use Commercetools\Api\Models\Customer\CustomerReference;
use Commercetools\Api\Models\Store\StoreKeyReference;
use Commercetools\Api\Models\Type\CustomFields;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
use DateTimeImmutable;
interface ShoppingList extends BaseResource
{
public const FIELD_NAME = 'name';
public const FIELD_KEY = 'key';
public const FIELD_CUSTOMER = 'customer';
public const FIELD_SLUG = 'slug';
public const FIELD_DESCRIPTION = 'description';
public const FIELD_LINE_ITEMS = 'lineItems';
public const FIELD_TEXT_LINE_ITEMS = 'textLineItems';
public const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification';
public const FIELD_ANONYMOUS_ID = 'anonymousId';
public const FIELD_STORE = 'store';
public const FIELD_BUSINESS_UNIT = 'businessUnit';
public const FIELD_CUSTOM = 'custom';
public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
public const FIELD_CREATED_BY = 'createdBy';
/**
* <p>Unique identifier of the ShoppingList.</p>
*
* @return null|string
*/
public function getId();
/**
* <p>Current version of the ShoppingList.</p>
*
* @return null|int
*/
public function getVersion();
/**
* <p>Name of the ShoppingList.</p>
*
* @return null|LocalizedString
*/
public function getName();
/**
* <p>User-defined unique identifier of the ShoppingList.</p>
*
* @return null|string
*/
public function getKey();
/**
* <p>Reference to a <a href="ctp:api:type:Customer">Customer</a> associated with the ShoppingList.</p>
*
* @return null|CustomerReference
*/
public function getCustomer();
/**
* <p>Human-readable identifiers usually used as deep-link URL to the related ShoppingList.
* Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages.
* The slug must match the pattern <code>[a-zA-Z0-9_-]{2,256}</code>. For <a href="/predicates/query#performance-considerations">good performance</a>, indexes are provided for the first 15 <code>languages</code> set on the <a href="ctp:api:type:Project">Project</a>.</p>
*
* @return null|LocalizedString
*/
public function getSlug();
/**
* <p>Description of the ShoppingList.</p>
*
* @return null|LocalizedString
*/
public function getDescription();
/**
* <p>Line Items (containing Products) of the ShoppingList.</p>
*
* @return null|ShoppingListLineItemCollection
*/
public function getLineItems();
/**
* <p>Line Items (containing text values) of the ShoppingList.</p>
*
* @return null|TextLineItemCollection
*/
public function getTextLineItems();
/**
* <p>Number of days after the last modification before a ShoppingList is deleted. If not set, the <a href="ctp:api:type:ShoppingListsConfiguration">default value</a> configured in the <a href="ctp:api:type:Project">Project</a> is used.</p>
*
* @return null|int
*/
public function getDeleteDaysAfterLastModification();
/**
* <p>Identifies ShoppingLists belonging to an <a href="ctp:api:type:AnonymousSession">anonymous session</a>.</p>
*
* @return null|string
*/
public function getAnonymousId();
/**
* <p>Store to which the ShoppingList is assigned.</p>
*
* @return null|StoreKeyReference
*/
public function getStore();
/**
* <p><a href="ctp:api:type:Reference">Reference</a> to the Business Unit the Shopping List belongs to. Only available for <a href="/../offering/composable-commerce#composable-commerce-for-b2b">B2B</a>-enabled Projects.</p>
*
* @return null|BusinessUnitKeyReference
*/
public function getBusinessUnit();
/**
* <p>Custom Fields defined for the ShoppingList.</p>
*
* @return null|CustomFields
*/
public function getCustom();
/**
* <p>Date and time (UTC) the ShoppingList was initially created.</p>
*
* @return null|DateTimeImmutable
*/
public function getCreatedAt();
/**
* <p>Date and time (UTC) the ShoppingList was last updated.</p>
*
* @return null|DateTimeImmutable
*/
public function getLastModifiedAt();
/**
* <p>IDs and references that last modified the ShoppingList.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();
/**
* <p>IDs and references that created the ShoppingList.</p>
*
* @return null|CreatedBy
*/
public function getCreatedBy();
/**
* @param ?string $id
*/
public function setId(?string $id): void;
/**
* @param ?int $version
*/
public function setVersion(?int $version): void;
/**
* @param ?LocalizedString $name
*/
public function setName(?LocalizedString $name): void;
/**
* @param ?string $key
*/
public function setKey(?string $key): void;
/**
* @param ?CustomerReference $customer
*/
public function setCustomer(?CustomerReference $customer): void;
/**
* @param ?LocalizedString $slug
*/
public function setSlug(?LocalizedString $slug): void;
/**
* @param ?LocalizedString $description
*/
public function setDescription(?LocalizedString $description): void;
/**
* @param ?ShoppingListLineItemCollection $lineItems
*/
public function setLineItems(?ShoppingListLineItemCollection $lineItems): void;
/**
* @param ?TextLineItemCollection $textLineItems
*/
public function setTextLineItems(?TextLineItemCollection $textLineItems): void;
/**
* @param ?int $deleteDaysAfterLastModification
*/
public function setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification): void;
/**
* @param ?string $anonymousId
*/
public function setAnonymousId(?string $anonymousId): void;
/**
* @param ?StoreKeyReference $store
*/
public function setStore(?StoreKeyReference $store): void;
/**
* @param ?BusinessUnitKeyReference $businessUnit
*/
public function setBusinessUnit(?BusinessUnitKeyReference $businessUnit): void;
/**
* @param ?CustomFields $custom
*/
public function setCustom(?CustomFields $custom): void;
/**
* @param ?DateTimeImmutable $createdAt
*/
public function setCreatedAt(?DateTimeImmutable $createdAt): void;
/**
* @param ?DateTimeImmutable $lastModifiedAt
*/
public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
/**
* @param ?LastModifiedBy $lastModifiedBy
*/
public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
/**
* @param ?CreatedBy $createdBy
*/
public function setCreatedBy(?CreatedBy $createdBy): void;
}