commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
StandalonePrice
StandalonePrice.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\StandalonePrice
;
10
11
use
Commercetools\Api\Models\Channel\ChannelReference
;
12
use
Commercetools\Api\Models\Common\BaseResource
;
13
use
Commercetools\Api\Models\Common\CreatedBy
;
14
use
Commercetools\Api\Models\Common\DiscountedPrice
;
15
use
Commercetools\Api\Models\Common\LastModifiedBy
;
16
use
Commercetools\Api\Models\Common\PriceTierCollection
;
17
use
Commercetools\Api\Models\Common\TypedMoney
;
18
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
;
19
use
Commercetools\Api\Models\Type\CustomFields
;
20
use
Commercetools\Base\DateTimeImmutableCollection
;
21
use
Commercetools\Base\JsonObject
;
22
use DateTimeImmutable;
23
24
interface
StandalonePrice
extends
BaseResource
25
{
26
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
27
public
const
FIELD_CREATED_BY
=
'createdBy'
;
28
public
const
FIELD_KEY
=
'key'
;
29
public
const
FIELD_SKU
=
'sku'
;
30
public
const
FIELD_VALUE
=
'value'
;
31
public
const
FIELD_COUNTRY
=
'country'
;
32
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
33
public
const
FIELD_CHANNEL
=
'channel'
;
34
public
const
FIELD_VALID_FROM
=
'validFrom'
;
35
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
36
public
const
FIELD_TIERS
=
'tiers'
;
37
public
const
FIELD_DISCOUNTED
=
'discounted'
;
38
public
const
FIELD_CUSTOM
=
'custom'
;
39
public
const
FIELD_STAGED
=
'staged'
;
40
public
const
FIELD_ACTIVE
=
'active'
;
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
getKey
();
97
104
public
function
getSku
();
105
112
public
function
getValue
();
113
120
public
function
getCountry
();
121
128
public
function
getCustomerGroup
();
129
136
public
function
getChannel
();
137
144
public
function
getValidFrom
();
145
152
public
function
getValidUntil
();
153
161
public
function
getTiers
();
162
170
public
function
getDiscounted
();
171
178
public
function
getCustom
();
179
186
public
function
getStaged
();
187
195
public
function
getActive
();
196
200
public
function
setId
(?
string
$id): void;
201
205
public
function
setVersion
(?
int
$version): void;
206
210
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
211
215
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
216
220
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
221
225
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
226
230
public
function
setKey
(?
string
$key): void;
231
235
public
function
setSku
(?
string
$sku): void;
236
240
public
function
setValue
(?
TypedMoney
$value): void;
241
245
public
function
setCountry
(?
string
$country): void;
246
250
public
function
setCustomerGroup
(?
CustomerGroupReference
$customerGroup): void;
251
255
public
function
setChannel
(?
ChannelReference
$channel): void;
256
260
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
261
265
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
266
270
public
function
setTiers
(?
PriceTierCollection
$tiers): void;
271
275
public
function
setDiscounted
(?
DiscountedPrice
$discounted): void;
276
280
public
function
setCustom
(?
CustomFields
$custom): void;
281
285
public
function
setStaged
(?
StagedStandalonePrice
$staged): void;
286
290
public
function
setActive
(?
bool
$active): void;
291
}
Commercetools\Api\Models\Common\PriceTierCollection
Definition:
PriceTierCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Channel\ChannelReference
Definition:
ChannelReference.php:16
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\DiscountedPrice
Definition:
DiscountedPrice.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\TypedMoney
Definition:
TypedMoney.php:15
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
Definition:
CustomerGroupReference.php:16
Commercetools\Api\Models\StandalonePrice\StagedStandalonePrice
Definition:
StagedStandalonePrice.php:17
Commercetools\Api\Models\StandalonePrice\StandalonePrice
Definition:
StandalonePrice.php:25
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_TIERS
const FIELD_TIERS
Definition:
StandalonePrice.php:36
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getCountry
getCountry()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_STAGED
const FIELD_STAGED
Definition:
StandalonePrice.php:39
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
StandalonePrice.php:32
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
StandalonePrice.php:34
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
StandalonePrice.php:26
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setStaged
setStaged(?StagedStandalonePrice $staged)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
StandalonePrice.php:27
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getTiers
getTiers()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setValue
setValue(?TypedMoney $value)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getSku
getSku()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getValue
getValue()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getVersion
getVersion()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getValidFrom
getValidFrom()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_VALUE
const FIELD_VALUE
Definition:
StandalonePrice.php:30
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_DISCOUNTED
const FIELD_DISCOUNTED
Definition:
StandalonePrice.php:37
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getValidUntil
getValidUntil()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getCustom
getCustom()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_CHANNEL
const FIELD_CHANNEL
Definition:
StandalonePrice.php:33
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_COUNTRY
const FIELD_COUNTRY
Definition:
StandalonePrice.php:31
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setCountry
setCountry(?string $country)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setId
setId(?string $id)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getActive
getActive()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getKey
getKey()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
StandalonePrice.php:38
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setDiscounted
setDiscounted(?DiscountedPrice $discounted)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getId
getId()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setTiers
setTiers(?PriceTierCollection $tiers)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getChannel
getChannel()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_KEY
const FIELD_KEY
Definition:
StandalonePrice.php:28
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
StandalonePrice.php:35
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_ACTIVE
const FIELD_ACTIVE
Definition:
StandalonePrice.php:40
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setKey
setKey(?string $key)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\FIELD_SKU
const FIELD_SKU
Definition:
StandalonePrice.php:29
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getDiscounted
getDiscounted()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setCustomerGroup
setCustomerGroup(?CustomerGroupReference $customerGroup)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setVersion
setVersion(?int $version)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setChannel
setChannel(?ChannelReference $channel)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setSku
setSku(?string $sku)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\setActive
setActive(?bool $active)
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\StandalonePrice\StandalonePrice\getStaged
getStaged()
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\StandalonePrice
Definition:
StagedPriceDraft.php:9
Generated by
1.9.1