commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CartDiscount
CartDiscount.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
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\Common\ReferenceCollection
;
16
use
Commercetools\Api\Models\Store\StoreKeyReferenceCollection
;
17
use
Commercetools\Api\Models\Type\CustomFields
;
18
use
Commercetools\Base\DateTimeImmutableCollection
;
19
use
Commercetools\Base\JsonObject
;
20
use DateTimeImmutable;
21
22
interface
CartDiscount
extends
BaseResource
23
{
24
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
25
public
const
FIELD_CREATED_BY
=
'createdBy'
;
26
public
const
FIELD_NAME
=
'name'
;
27
public
const
FIELD_KEY
=
'key'
;
28
public
const
FIELD_DESCRIPTION
=
'description'
;
29
public
const
FIELD_VALUE
=
'value'
;
30
public
const
FIELD_CART_PREDICATE
=
'cartPredicate'
;
31
public
const
FIELD_TARGET
=
'target'
;
32
public
const
FIELD_SORT_ORDER
=
'sortOrder'
;
33
public
const
FIELD_STORES
=
'stores'
;
34
public
const
FIELD_IS_ACTIVE
=
'isActive'
;
35
public
const
FIELD_VALID_FROM
=
'validFrom'
;
36
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
37
public
const
FIELD_REQUIRES_DISCOUNT_CODE
=
'requiresDiscountCode'
;
38
public
const
FIELD_REFERENCES
=
'references'
;
39
public
const
FIELD_STACKING_MODE
=
'stackingMode'
;
40
public
const
FIELD_CUSTOM
=
'custom'
;
41
48
public
function
getId
();
49
56
public
function
getVersion
();
57
64
public
function
getCreatedAt
();
65
72
public
function
getLastModifiedAt
();
73
80
public
function
getLastModifiedBy
();
81
88
public
function
getCreatedBy
();
89
96
public
function
getName
();
97
104
public
function
getKey
();
105
112
public
function
getDescription
();
113
120
public
function
getValue
();
121
128
public
function
getCartPredicate
();
129
137
public
function
getTarget
();
138
148
public
function
getSortOrder
();
149
159
public
function
getStores
();
160
167
public
function
getIsActive
();
168
175
public
function
getValidFrom
();
176
183
public
function
getValidUntil
();
184
191
public
function
getRequiresDiscountCode
();
192
200
public
function
getReferences
();
201
208
public
function
getStackingMode
();
209
216
public
function
getCustom
();
217
221
public
function
setId
(?
string
$id): void;
222
226
public
function
setVersion
(?
int
$version): void;
227
231
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
232
236
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
237
241
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
242
246
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
247
251
public
function
setName
(?
LocalizedString
$name): void;
252
256
public
function
setKey
(?
string
$key): void;
257
261
public
function
setDescription
(?
LocalizedString
$description): void;
262
266
public
function
setValue
(?
CartDiscountValue
$value): void;
267
271
public
function
setCartPredicate
(?
string
$cartPredicate): void;
272
276
public
function
setTarget
(?
CartDiscountTarget
$target): void;
277
281
public
function
setSortOrder
(?
string
$sortOrder): void;
282
286
public
function
setStores
(?
StoreKeyReferenceCollection
$stores): void;
287
291
public
function
setIsActive
(?
bool
$isActive): void;
292
296
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
297
301
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
302
306
public
function
setRequiresDiscountCode
(?
bool
$requiresDiscountCode): void;
307
311
public
function
setReferences
(?
ReferenceCollection
$references): void;
312
316
public
function
setStackingMode
(?
string
$stackingMode): void;
317
321
public
function
setCustom
(?
CustomFields
$custom): void;
322
}
Commercetools\Api\Models\Common\ReferenceCollection
Definition:
ReferenceCollection.php:26
Commercetools\Api\Models\Store\StoreKeyReferenceCollection
Definition:
StoreKeyReferenceCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\CartDiscount\CartDiscount
Definition:
CartDiscount.php:23
Commercetools\Api\Models\CartDiscount\CartDiscount\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_TARGET
const FIELD_TARGET
Definition:
CartDiscount.php:31
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_VALUE
const FIELD_VALUE
Definition:
CartDiscount.php:29
Commercetools\Api\Models\CartDiscount\CartDiscount\getStores
getStores()
Commercetools\Api\Models\CartDiscount\CartDiscount\getTarget
getTarget()
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
CartDiscount.php:24
Commercetools\Api\Models\CartDiscount\CartDiscount\setRequiresDiscountCode
setRequiresDiscountCode(?bool $requiresDiscountCode)
Commercetools\Api\Models\CartDiscount\CartDiscount\setVersion
setVersion(?int $version)
Commercetools\Api\Models\CartDiscount\CartDiscount\getRequiresDiscountCode
getRequiresDiscountCode()
Commercetools\Api\Models\CartDiscount\CartDiscount\setSortOrder
setSortOrder(?string $sortOrder)
Commercetools\Api\Models\CartDiscount\CartDiscount\setTarget
setTarget(?CartDiscountTarget $target)
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_SORT_ORDER
const FIELD_SORT_ORDER
Definition:
CartDiscount.php:32
Commercetools\Api\Models\CartDiscount\CartDiscount\getCustom
getCustom()
Commercetools\Api\Models\CartDiscount\CartDiscount\getValidUntil
getValidUntil()
Commercetools\Api\Models\CartDiscount\CartDiscount\getSortOrder
getSortOrder()
Commercetools\Api\Models\CartDiscount\CartDiscount\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_KEY
const FIELD_KEY
Definition:
CartDiscount.php:27
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
CartDiscount.php:28
Commercetools\Api\Models\CartDiscount\CartDiscount\setReferences
setReferences(?ReferenceCollection $references)
Commercetools\Api\Models\CartDiscount\CartDiscount\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\CartDiscount\CartDiscount\setKey
setKey(?string $key)
Commercetools\Api\Models\CartDiscount\CartDiscount\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_STORES
const FIELD_STORES
Definition:
CartDiscount.php:33
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_NAME
const FIELD_NAME
Definition:
CartDiscount.php:26
Commercetools\Api\Models\CartDiscount\CartDiscount\getStackingMode
getStackingMode()
Commercetools\Api\Models\CartDiscount\CartDiscount\getIsActive
getIsActive()
Commercetools\Api\Models\CartDiscount\CartDiscount\getValidFrom
getValidFrom()
Commercetools\Api\Models\CartDiscount\CartDiscount\getCartPredicate
getCartPredicate()
Commercetools\Api\Models\CartDiscount\CartDiscount\setValue
setValue(?CartDiscountValue $value)
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_IS_ACTIVE
const FIELD_IS_ACTIVE
Definition:
CartDiscount.php:34
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_CART_PREDICATE
const FIELD_CART_PREDICATE
Definition:
CartDiscount.php:30
Commercetools\Api\Models\CartDiscount\CartDiscount\getDescription
getDescription()
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_REFERENCES
const FIELD_REFERENCES
Definition:
CartDiscount.php:38
Commercetools\Api\Models\CartDiscount\CartDiscount\getValue
getValue()
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartDiscount.php:40
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
CartDiscount.php:25
Commercetools\Api\Models\CartDiscount\CartDiscount\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\CartDiscount\CartDiscount\setIsActive
setIsActive(?bool $isActive)
Commercetools\Api\Models\CartDiscount\CartDiscount\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
CartDiscount.php:35
Commercetools\Api\Models\CartDiscount\CartDiscount\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\CartDiscount\CartDiscount\getVersion
getVersion()
Commercetools\Api\Models\CartDiscount\CartDiscount\setStackingMode
setStackingMode(?string $stackingMode)
Commercetools\Api\Models\CartDiscount\CartDiscount\setId
setId(?string $id)
Commercetools\Api\Models\CartDiscount\CartDiscount\getName
getName()
Commercetools\Api\Models\CartDiscount\CartDiscount\setStores
setStores(?StoreKeyReferenceCollection $stores)
Commercetools\Api\Models\CartDiscount\CartDiscount\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\CartDiscount\CartDiscount\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\CartDiscount\CartDiscount\getId
getId()
Commercetools\Api\Models\CartDiscount\CartDiscount\setCartPredicate
setCartPredicate(?string $cartPredicate)
Commercetools\Api\Models\CartDiscount\CartDiscount\getReferences
getReferences()
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
CartDiscount.php:36
Commercetools\Api\Models\CartDiscount\CartDiscount\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\CartDiscount\CartDiscount\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_STACKING_MODE
const FIELD_STACKING_MODE
Definition:
CartDiscount.php:39
Commercetools\Api\Models\CartDiscount\CartDiscount\FIELD_REQUIRES_DISCOUNT_CODE
const FIELD_REQUIRES_DISCOUNT_CODE
Definition:
CartDiscount.php:37
Commercetools\Api\Models\CartDiscount\CartDiscount\getKey
getKey()
Commercetools\Api\Models\CartDiscount\CartDiscount\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\CartDiscount\CartDiscount\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\CartDiscount\CartDiscountTarget
Definition:
CartDiscountTarget.php:15
Commercetools\Api\Models\CartDiscount\CartDiscountValue
Definition:
CartDiscountValue.php:15
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\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\CartDiscount
Definition:
CartDiscount.php:9
Generated by
1.9.1