commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CartDiscount
CartDiscountDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\Store\StoreResourceIdentifierCollection
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use DateTimeImmutable;
17
18
interface
CartDiscountDraft
extends
JsonObject
19
{
20
public
const
FIELD_NAME
=
'name'
;
21
public
const
FIELD_KEY
=
'key'
;
22
public
const
FIELD_DESCRIPTION
=
'description'
;
23
public
const
FIELD_VALUE
=
'value'
;
24
public
const
FIELD_CART_PREDICATE
=
'cartPredicate'
;
25
public
const
FIELD_TARGET
=
'target'
;
26
public
const
FIELD_SORT_ORDER
=
'sortOrder'
;
27
public
const
FIELD_STORES
=
'stores'
;
28
public
const
FIELD_IS_ACTIVE
=
'isActive'
;
29
public
const
FIELD_VALID_FROM
=
'validFrom'
;
30
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
31
public
const
FIELD_REQUIRES_DISCOUNT_CODE
=
'requiresDiscountCode'
;
32
public
const
FIELD_STACKING_MODE
=
'stackingMode'
;
33
public
const
FIELD_CUSTOM
=
'custom'
;
34
41
public
function
getName
();
42
49
public
function
getKey
();
50
57
public
function
getDescription
();
58
65
public
function
getValue
();
66
73
public
function
getCartPredicate
();
74
82
public
function
getTarget
();
83
92
public
function
getSortOrder
();
93
105
public
function
getStores
();
106
114
public
function
getIsActive
();
115
122
public
function
getValidFrom
();
123
130
public
function
getValidUntil
();
131
138
public
function
getRequiresDiscountCode
();
139
146
public
function
getStackingMode
();
147
154
public
function
getCustom
();
155
159
public
function
setName
(?
LocalizedString
$name): void;
160
164
public
function
setKey
(?
string
$key): void;
165
169
public
function
setDescription
(?
LocalizedString
$description): void;
170
174
public
function
setValue
(?
CartDiscountValueDraft
$value): void;
175
179
public
function
setCartPredicate
(?
string
$cartPredicate): void;
180
184
public
function
setTarget
(?
CartDiscountTarget
$target): void;
185
189
public
function
setSortOrder
(?
string
$sortOrder): void;
190
194
public
function
setStores
(?
StoreResourceIdentifierCollection
$stores): void;
195
199
public
function
setIsActive
(?
bool
$isActive): void;
200
204
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
205
209
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
210
214
public
function
setRequiresDiscountCode
(?
bool
$requiresDiscountCode): void;
215
219
public
function
setStackingMode
(?
string
$stackingMode): void;
220
224
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
225
}
Commercetools\Api\Models\Store\StoreResourceIdentifierCollection
Definition:
StoreResourceIdentifierCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\CartDiscount\CartDiscountDraft
Definition:
CartDiscountDraft.php:19
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
CartDiscountDraft.php:30
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setTarget
setTarget(?CartDiscountTarget $target)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setSortOrder
setSortOrder(?string $sortOrder)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getCustom
getCustom()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getTarget
getTarget()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_STACKING_MODE
const FIELD_STACKING_MODE
Definition:
CartDiscountDraft.php:32
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_CART_PREDICATE
const FIELD_CART_PREDICATE
Definition:
CartDiscountDraft.php:24
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getValidUntil
getValidUntil()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getStackingMode
getStackingMode()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getStores
getStores()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getKey
getKey()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_NAME
const FIELD_NAME
Definition:
CartDiscountDraft.php:20
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setCartPredicate
setCartPredicate(?string $cartPredicate)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_KEY
const FIELD_KEY
Definition:
CartDiscountDraft.php:21
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getIsActive
getIsActive()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setRequiresDiscountCode
setRequiresDiscountCode(?bool $requiresDiscountCode)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getName
getName()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getValidFrom
getValidFrom()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_STORES
const FIELD_STORES
Definition:
CartDiscountDraft.php:27
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setStackingMode
setStackingMode(?string $stackingMode)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setIsActive
setIsActive(?bool $isActive)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getValue
getValue()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartDiscountDraft.php:33
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
CartDiscountDraft.php:22
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getSortOrder
getSortOrder()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_VALUE
const FIELD_VALUE
Definition:
CartDiscountDraft.php:23
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setValue
setValue(?CartDiscountValueDraft $value)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_REQUIRES_DISCOUNT_CODE
const FIELD_REQUIRES_DISCOUNT_CODE
Definition:
CartDiscountDraft.php:31
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setStores
setStores(?StoreResourceIdentifierCollection $stores)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_TARGET
const FIELD_TARGET
Definition:
CartDiscountDraft.php:25
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_SORT_ORDER
const FIELD_SORT_ORDER
Definition:
CartDiscountDraft.php:26
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getRequiresDiscountCode
getRequiresDiscountCode()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_IS_ACTIVE
const FIELD_IS_ACTIVE
Definition:
CartDiscountDraft.php:28
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getDescription
getDescription()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\getCartPredicate
getCartPredicate()
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\CartDiscount\CartDiscountDraft\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
CartDiscountDraft.php:29
Commercetools\Api\Models\CartDiscount\CartDiscountTarget
Definition:
CartDiscountTarget.php:15
Commercetools\Api\Models\CartDiscount\CartDiscountValueDraft
Definition:
CartDiscountValueDraft.php:15
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\CartDiscount
Definition:
CartDiscount.php:9
Generated by
1.9.1