commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
StandalonePrice
StandalonePriceDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\StandalonePrice
;
10
11
use
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
;
12
use
Commercetools\Api\Models\Common\DiscountedPriceDraft
;
13
use
Commercetools\Api\Models\Common\Money
;
14
use
Commercetools\Api\Models\Common\PriceTierDraftCollection
;
15
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
;
16
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
17
use
Commercetools\Base\DateTimeImmutableCollection
;
18
use
Commercetools\Base\JsonObject
;
19
use DateTimeImmutable;
20
21
interface
StandalonePriceDraft
extends
JsonObject
22
{
23
public
const
FIELD_KEY
=
'key'
;
24
public
const
FIELD_SKU
=
'sku'
;
25
public
const
FIELD_VALUE
=
'value'
;
26
public
const
FIELD_COUNTRY
=
'country'
;
27
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
28
public
const
FIELD_CHANNEL
=
'channel'
;
29
public
const
FIELD_VALID_FROM
=
'validFrom'
;
30
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
31
public
const
FIELD_TIERS
=
'tiers'
;
32
public
const
FIELD_DISCOUNTED
=
'discounted'
;
33
public
const
FIELD_CUSTOM
=
'custom'
;
34
public
const
FIELD_STAGED
=
'staged'
;
35
public
const
FIELD_ACTIVE
=
'active'
;
36
43
public
function
getKey
();
44
52
public
function
getSku
();
53
61
public
function
getValue
();
62
69
public
function
getCountry
();
70
77
public
function
getCustomerGroup
();
78
85
public
function
getChannel
();
86
93
public
function
getValidFrom
();
94
101
public
function
getValidUntil
();
102
110
public
function
getTiers
();
111
118
public
function
getDiscounted
();
119
126
public
function
getCustom
();
127
134
public
function
getStaged
();
135
142
public
function
getActive
();
143
147
public
function
setKey
(?
string
$key): void;
148
152
public
function
setSku
(?
string
$sku): void;
153
157
public
function
setValue
(?
Money
$value): void;
158
162
public
function
setCountry
(?
string
$country): void;
163
167
public
function
setCustomerGroup
(?
CustomerGroupResourceIdentifier
$customerGroup): void;
168
172
public
function
setChannel
(?
ChannelResourceIdentifier
$channel): void;
173
177
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
178
182
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
183
187
public
function
setTiers
(?
PriceTierDraftCollection
$tiers): void;
188
192
public
function
setDiscounted
(?
DiscountedPriceDraft
$discounted): void;
193
197
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
198
202
public
function
setStaged
(?
StagedPriceDraft
$staged): void;
203
207
public
function
setActive
(?
bool
$active): void;
208
}
Commercetools\Api\Models\Common\PriceTierDraftCollection
Definition
PriceTierDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
Definition
ChannelResourceIdentifier.php:16
Commercetools\Api\Models\Common\DiscountedPriceDraft
Definition
DiscountedPriceDraft.php:16
Commercetools\Api\Models\Common\Money
Definition
Money.php:15
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
Definition
CustomerGroupResourceIdentifier.php:16
Commercetools\Api\Models\StandalonePrice\StagedPriceDraft
Definition
StagedPriceDraft.php:16
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft
Definition
StandalonePriceDraft.php:22
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_KEY
const FIELD_KEY
Definition
StandalonePriceDraft.php:23
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getValidFrom
getValidFrom()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_VALUE
const FIELD_VALUE
Definition
StandalonePriceDraft.php:25
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_CHANNEL
const FIELD_CHANNEL
Definition
StandalonePriceDraft.php:28
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition
StandalonePriceDraft.php:33
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_STAGED
const FIELD_STAGED
Definition
StandalonePriceDraft.php:34
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setCustomerGroup
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getValidUntil
getValidUntil()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_COUNTRY
const FIELD_COUNTRY
Definition
StandalonePriceDraft.php:26
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getChannel
getChannel()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setStaged
setStaged(?StagedPriceDraft $staged)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_DISCOUNTED
const FIELD_DISCOUNTED
Definition
StandalonePriceDraft.php:32
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setActive
setActive(?bool $active)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_SKU
const FIELD_SKU
Definition
StandalonePriceDraft.php:24
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setTiers
setTiers(?PriceTierDraftCollection $tiers)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setCountry
setCountry(?string $country)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getKey
getKey()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getActive
getActive()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_ACTIVE
const FIELD_ACTIVE
Definition
StandalonePriceDraft.php:35
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getSku
getSku()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition
StandalonePriceDraft.php:29
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition
StandalonePriceDraft.php:27
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getValue
getValue()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getTiers
getTiers()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getCustom
getCustom()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getStaged
getStaged()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setChannel
setChannel(?ChannelResourceIdentifier $channel)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getCountry
getCountry()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_TIERS
const FIELD_TIERS
Definition
StandalonePriceDraft.php:31
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition
StandalonePriceDraft.php:30
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setDiscounted
setDiscounted(?DiscountedPriceDraft $discounted)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\getDiscounted
getDiscounted()
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setValue
setValue(?Money $value)
Commercetools\Api\Models\StandalonePrice\StandalonePriceDraft\setSku
setSku(?string $sku)
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\StandalonePrice
Definition
StagedPriceDraft.php:9
Generated by
1.9.8