commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ProductDiscount
ProductDiscount.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ProductDiscount
;
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\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
use DateTimeImmutable;
19
20
interface
ProductDiscount
extends
BaseResource
21
{
22
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
23
public
const
FIELD_CREATED_BY
=
'createdBy'
;
24
public
const
FIELD_NAME
=
'name'
;
25
public
const
FIELD_KEY
=
'key'
;
26
public
const
FIELD_DESCRIPTION
=
'description'
;
27
public
const
FIELD_VALUE
=
'value'
;
28
public
const
FIELD_PREDICATE
=
'predicate'
;
29
public
const
FIELD_SORT_ORDER
=
'sortOrder'
;
30
public
const
FIELD_IS_ACTIVE
=
'isActive'
;
31
public
const
FIELD_REFERENCES
=
'references'
;
32
public
const
FIELD_VALID_FROM
=
'validFrom'
;
33
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
34
41
public
function
getId
();
42
49
public
function
getVersion
();
50
57
public
function
getCreatedAt
();
58
65
public
function
getLastModifiedAt
();
66
73
public
function
getLastModifiedBy
();
74
81
public
function
getCreatedBy
();
82
89
public
function
getName
();
90
97
public
function
getKey
();
98
105
public
function
getDescription
();
106
113
public
function
getValue
();
114
121
public
function
getPredicate
();
122
130
public
function
getSortOrder
();
131
138
public
function
getIsActive
();
139
146
public
function
getReferences
();
147
155
public
function
getValidFrom
();
156
164
public
function
getValidUntil
();
165
169
public
function
setId
(?
string
$id): void;
170
174
public
function
setVersion
(?
int
$version): void;
175
179
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
180
184
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
185
189
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
190
194
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
195
199
public
function
setName
(?
LocalizedString
$name): void;
200
204
public
function
setKey
(?
string
$key): void;
205
209
public
function
setDescription
(?
LocalizedString
$description): void;
210
214
public
function
setValue
(?
ProductDiscountValue
$value): void;
215
219
public
function
setPredicate
(?
string
$predicate): void;
220
224
public
function
setSortOrder
(?
string
$sortOrder): void;
225
229
public
function
setIsActive
(?
bool
$isActive): void;
230
234
public
function
setReferences
(?
ReferenceCollection
$references): void;
235
239
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
240
244
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
245
}
Commercetools\Api\Models\Common\ReferenceCollection
Definition:
ReferenceCollection.php:26
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\ProductDiscount\ProductDiscount
Definition:
ProductDiscount.php:21
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getReferences
getReferences()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_VALUE
const FIELD_VALUE
Definition:
ProductDiscount.php:27
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setId
setId(?string $id)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_PREDICATE
const FIELD_PREDICATE
Definition:
ProductDiscount.php:28
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getName
getName()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getValue
getValue()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getKey
getKey()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setReferences
setReferences(?ReferenceCollection $references)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setIsActive
setIsActive(?bool $isActive)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setPredicate
setPredicate(?string $predicate)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getSortOrder
getSortOrder()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getIsActive
getIsActive()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setVersion
setVersion(?int $version)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_REFERENCES
const FIELD_REFERENCES
Definition:
ProductDiscount.php:31
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setSortOrder
setSortOrder(?string $sortOrder)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_IS_ACTIVE
const FIELD_IS_ACTIVE
Definition:
ProductDiscount.php:30
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getVersion
getVersion()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
ProductDiscount.php:23
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getDescription
getDescription()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setKey
setKey(?string $key)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setValue
setValue(?ProductDiscountValue $value)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
ProductDiscount.php:22
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_KEY
const FIELD_KEY
Definition:
ProductDiscount.php:25
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
ProductDiscount.php:32
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ProductDiscount.php:26
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getId
getId()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getPredicate
getPredicate()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getValidUntil
getValidUntil()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_SORT_ORDER
const FIELD_SORT_ORDER
Definition:
ProductDiscount.php:29
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_NAME
const FIELD_NAME
Definition:
ProductDiscount.php:24
Commercetools\Api\Models\ProductDiscount\ProductDiscount\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\ProductDiscount\ProductDiscount\getValidFrom
getValidFrom()
Commercetools\Api\Models\ProductDiscount\ProductDiscount\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
ProductDiscount.php:33
Commercetools\Api\Models\ProductDiscount\ProductDiscountValue
Definition:
ProductDiscountValue.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ProductDiscount
Definition:
ProductDiscount.php:9
Generated by
1.9.1