commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
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
60
public
function
getValue
();
61
68
public
function
getCountry
();
69
76
public
function
getCustomerGroup
();
77
84
public
function
getChannel
();
85
92
public
function
getValidFrom
();
93
100
public
function
getValidUntil
();
101
109
public
function
getTiers
();
110
117
public
function
getDiscounted
();
118
125
public
function
getCustom
();
126
133
public
function
getStaged
();
134
141
public
function
getActive
();
142
146
public
function
setKey
(?
string
$key): void;
147
151
public
function
setSku
(?
string
$sku): void;
152
156
public
function
setValue
(?
Money
$value): void;
157
161
public
function
setCountry
(?
string
$country): void;
162
166
public
function
setCustomerGroup
(?
CustomerGroupResourceIdentifier
$customerGroup): void;
167
171
public
function
setChannel
(?
ChannelResourceIdentifier
$channel): void;
172
176
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
177
181
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
182
186
public
function
setTiers
(?
PriceTierDraftCollection
$tiers): void;
187
191
public
function
setDiscounted
(?
DiscountedPriceDraft
$discounted): void;
192
196
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
197
201
public
function
setStaged
(?
StagedPriceDraft
$staged): void;
202
206
public
function
setActive
(?
bool
$active): void;
207
}
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.1