commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ShoppingList.php
1 <?php
2 
3 declare(strict_types=1);
10 
20 use DateTimeImmutable;
21 
22 interface ShoppingList extends BaseResource
23 {
24  public const FIELD_NAME = 'name';
25  public const FIELD_KEY = 'key';
26  public const FIELD_CUSTOMER = 'customer';
27  public const FIELD_SLUG = 'slug';
28  public const FIELD_DESCRIPTION = 'description';
29  public const FIELD_LINE_ITEMS = 'lineItems';
30  public const FIELD_TEXT_LINE_ITEMS = 'textLineItems';
31  public const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification';
32  public const FIELD_ANONYMOUS_ID = 'anonymousId';
33  public const FIELD_STORE = 'store';
34  public const FIELD_CUSTOM = 'custom';
35  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
36  public const FIELD_CREATED_BY = 'createdBy';
37 
44  public function getId();
45 
52  public function getVersion();
53 
60  public function getName();
61 
68  public function getKey();
69 
76  public function getCustomer();
77 
86  public function getSlug();
87 
94  public function getDescription();
95 
102  public function getLineItems();
103 
110  public function getTextLineItems();
111 
119 
126  public function getAnonymousId();
127 
134  public function getStore();
135 
142  public function getCustom();
143 
150  public function getCreatedAt();
151 
158  public function getLastModifiedAt();
159 
166  public function getLastModifiedBy();
167 
174  public function getCreatedBy();
175 
179  public function setId(?string $id): void;
180 
184  public function setVersion(?int $version): void;
185 
189  public function setName(?LocalizedString $name): void;
190 
194  public function setKey(?string $key): void;
195 
199  public function setCustomer(?CustomerReference $customer): void;
200 
204  public function setSlug(?LocalizedString $slug): void;
205 
209  public function setDescription(?LocalizedString $description): void;
210 
214  public function setLineItems(?ShoppingListLineItemCollection $lineItems): void;
215 
219  public function setTextLineItems(?TextLineItemCollection $textLineItems): void;
220 
224  public function setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification): void;
225 
229  public function setAnonymousId(?string $anonymousId): void;
230 
234  public function setStore(?StoreKeyReference $store): void;
235 
239  public function setCustom(?CustomFields $custom): void;
240 
244  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
245 
249  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
250 
254  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
255 
259  public function setCreatedBy(?CreatedBy $createdBy): void;
260 }
setCreatedAt(?DateTimeImmutable $createdAt)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setTextLineItems(?TextLineItemCollection $textLineItems)
setLineItems(?ShoppingListLineItemCollection $lineItems)
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
setDescription(?LocalizedString $description)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)