commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ShoppingList
ShoppingList.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ShoppingList
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CreatedBy
;
13
use
Commercetools\Api\Models\Common\LastModifiedBy
;
14
use
Commercetools\Api\Models\Common\LocalizedString
;
15
use
Commercetools\Api\Models\Customer\CustomerReference
;
16
use
Commercetools\Api\Models\Store\StoreKeyReference
;
17
use
Commercetools\Api\Models\Type\CustomFields
;
18
use
Commercetools\Base\DateTimeImmutableCollection
;
19
use
Commercetools\Base\JsonObject
;
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
118
public
function
getDeleteDaysAfterLastModification
();
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
}
Commercetools\Api\Models\ShoppingList\ShoppingListLineItemCollection
Definition:
ShoppingListLineItemCollection.php:22
Commercetools\Api\Models\ShoppingList\TextLineItemCollection
Definition:
TextLineItemCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Customer\CustomerReference
Definition:
CustomerReference.php:16
Commercetools\Api\Models\ShoppingList\ShoppingList
Definition:
ShoppingList.php:23
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ShoppingList.php:34
Commercetools\Api\Models\ShoppingList\ShoppingList\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\ShoppingList\ShoppingList\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\ShoppingList\ShoppingList\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\ShoppingList\ShoppingList\getId
getId()
Commercetools\Api\Models\ShoppingList\ShoppingList\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\ShoppingList\ShoppingList\getAnonymousId
getAnonymousId()
Commercetools\Api\Models\ShoppingList\ShoppingList\setTextLineItems
setTextLineItems(?TextLineItemCollection $textLineItems)
Commercetools\Api\Models\ShoppingList\ShoppingList\getLineItems
getLineItems()
Commercetools\Api\Models\ShoppingList\ShoppingList\setId
setId(?string $id)
Commercetools\Api\Models\ShoppingList\ShoppingList\setVersion
setVersion(?int $version)
Commercetools\Api\Models\ShoppingList\ShoppingList\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\ShoppingList\ShoppingList\setLineItems
setLineItems(?ShoppingListLineItemCollection $lineItems)
Commercetools\Api\Models\ShoppingList\ShoppingList\getKey
getKey()
Commercetools\Api\Models\ShoppingList\ShoppingList\getCustom
getCustom()
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
ShoppingList.php:35
Commercetools\Api\Models\ShoppingList\ShoppingList\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_KEY
const FIELD_KEY
Definition:
ShoppingList.php:25
Commercetools\Api\Models\ShoppingList\ShoppingList\setDeleteDaysAfterLastModification
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
Commercetools\Api\Models\ShoppingList\ShoppingList\getDescription
getDescription()
Commercetools\Api\Models\ShoppingList\ShoppingList\setStore
setStore(?StoreKeyReference $store)
Commercetools\Api\Models\ShoppingList\ShoppingList\setKey
setKey(?string $key)
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ShoppingList.php:28
Commercetools\Api\Models\ShoppingList\ShoppingList\getTextLineItems
getTextLineItems()
Commercetools\Api\Models\ShoppingList\ShoppingList\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\ShoppingList\ShoppingList\setCustomer
setCustomer(?CustomerReference $customer)
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_TEXT_LINE_ITEMS
const FIELD_TEXT_LINE_ITEMS
Definition:
ShoppingList.php:30
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_NAME
const FIELD_NAME
Definition:
ShoppingList.php:24
Commercetools\Api\Models\ShoppingList\ShoppingList\getStore
getStore()
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_LINE_ITEMS
const FIELD_LINE_ITEMS
Definition:
ShoppingList.php:29
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_STORE
const FIELD_STORE
Definition:
ShoppingList.php:33
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_SLUG
const FIELD_SLUG
Definition:
ShoppingList.php:27
Commercetools\Api\Models\ShoppingList\ShoppingList\setAnonymousId
setAnonymousId(?string $anonymousId)
Commercetools\Api\Models\ShoppingList\ShoppingList\getSlug
getSlug()
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_ANONYMOUS_ID
const FIELD_ANONYMOUS_ID
Definition:
ShoppingList.php:32
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
ShoppingList.php:26
Commercetools\Api\Models\ShoppingList\ShoppingList\getVersion
getVersion()
Commercetools\Api\Models\ShoppingList\ShoppingList\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\ShoppingList\ShoppingList\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
ShoppingList.php:36
Commercetools\Api\Models\ShoppingList\ShoppingList\getCustomer
getCustomer()
Commercetools\Api\Models\ShoppingList\ShoppingList\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\ShoppingList\ShoppingList\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\ShoppingList\ShoppingList\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\ShoppingList\ShoppingList\getDeleteDaysAfterLastModification
getDeleteDaysAfterLastModification()
Commercetools\Api\Models\ShoppingList\ShoppingList\getName
getName()
Commercetools\Api\Models\ShoppingList\ShoppingList\FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
Definition:
ShoppingList.php:31
Commercetools\Api\Models\Store\StoreKeyReference
Definition:
StoreKeyReference.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ShoppingList
Definition:
ShoppingList.php:9
Generated by
1.9.1