commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ProductDiscount
ProductDiscountDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ProductDiscount
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use DateTimeImmutable;
15
16
interface
ProductDiscountDraft
extends
JsonObject
17
{
18
public
const
FIELD_NAME
=
'name'
;
19
public
const
FIELD_KEY
=
'key'
;
20
public
const
FIELD_DESCRIPTION
=
'description'
;
21
public
const
FIELD_VALUE
=
'value'
;
22
public
const
FIELD_PREDICATE
=
'predicate'
;
23
public
const
FIELD_SORT_ORDER
=
'sortOrder'
;
24
public
const
FIELD_IS_ACTIVE
=
'isActive'
;
25
public
const
FIELD_VALID_FROM
=
'validFrom'
;
26
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
27
34
public
function
getName
();
35
42
public
function
getKey
();
43
50
public
function
getDescription
();
51
58
public
function
getValue
();
59
66
public
function
getPredicate
();
67
75
public
function
getSortOrder
();
76
83
public
function
getIsActive
();
84
92
public
function
getValidFrom
();
93
101
public
function
getValidUntil
();
102
106
public
function
setName
(?
LocalizedString
$name): void;
107
111
public
function
setKey
(?
string
$key): void;
112
116
public
function
setDescription
(?
LocalizedString
$description): void;
117
121
public
function
setValue
(?
ProductDiscountValueDraft
$value): void;
122
126
public
function
setPredicate
(?
string
$predicate): void;
127
131
public
function
setSortOrder
(?
string
$sortOrder): void;
132
136
public
function
setIsActive
(?
bool
$isActive): void;
137
141
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
142
146
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
147
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft
Definition:
ProductDiscountDraft.php:17
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
ProductDiscountDraft.php:25
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ProductDiscountDraft.php:20
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getSortOrder
getSortOrder()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_NAME
const FIELD_NAME
Definition:
ProductDiscountDraft.php:18
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setPredicate
setPredicate(?string $predicate)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_PREDICATE
const FIELD_PREDICATE
Definition:
ProductDiscountDraft.php:22
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getIsActive
getIsActive()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getPredicate
getPredicate()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getValue
getValue()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getValidFrom
getValidFrom()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_IS_ACTIVE
const FIELD_IS_ACTIVE
Definition:
ProductDiscountDraft.php:24
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setValue
setValue(?ProductDiscountValueDraft $value)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setIsActive
setIsActive(?bool $isActive)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getKey
getKey()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getName
getName()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_SORT_ORDER
const FIELD_SORT_ORDER
Definition:
ProductDiscountDraft.php:23
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_VALUE
const FIELD_VALUE
Definition:
ProductDiscountDraft.php:21
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setSortOrder
setSortOrder(?string $sortOrder)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getValidUntil
getValidUntil()
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
ProductDiscountDraft.php:26
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\FIELD_KEY
const FIELD_KEY
Definition:
ProductDiscountDraft.php:19
Commercetools\Api\Models\ProductDiscount\ProductDiscountDraft\getDescription
getDescription()
Commercetools\Api\Models\ProductDiscount\ProductDiscountValueDraft
Definition:
ProductDiscountValueDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ProductDiscount
Definition:
ProductDiscount.php:9
Generated by
1.9.1