commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Common
PriceDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Common
;
10
11
use
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
;
12
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use DateTimeImmutable;
17
18
interface
PriceDraft
extends
JsonObject
19
{
20
public
const
FIELD_KEY
=
'key'
;
21
public
const
FIELD_VALUE
=
'value'
;
22
public
const
FIELD_COUNTRY
=
'country'
;
23
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
24
public
const
FIELD_CHANNEL
=
'channel'
;
25
public
const
FIELD_VALID_FROM
=
'validFrom'
;
26
public
const
FIELD_VALID_UNTIL
=
'validUntil'
;
27
public
const
FIELD_DISCOUNTED
=
'discounted'
;
28
public
const
FIELD_TIERS
=
'tiers'
;
29
public
const
FIELD_CUSTOM
=
'custom'
;
30
37
public
function
getKey
();
38
45
public
function
getValue
();
46
53
public
function
getCountry
();
54
61
public
function
getCustomerGroup
();
62
69
public
function
getChannel
();
70
77
public
function
getValidFrom
();
78
85
public
function
getValidUntil
();
86
100
public
function
getDiscounted
();
101
109
public
function
getTiers
();
110
117
public
function
getCustom
();
118
122
public
function
setKey
(?
string
$key): void;
123
127
public
function
setValue
(?
Money
$value): void;
128
132
public
function
setCountry
(?
string
$country): void;
133
137
public
function
setCustomerGroup
(?
CustomerGroupResourceIdentifier
$customerGroup): void;
138
142
public
function
setChannel
(?
ChannelResourceIdentifier
$channel): void;
143
147
public
function
setValidFrom
(?DateTimeImmutable $validFrom): void;
148
152
public
function
setValidUntil
(?DateTimeImmutable $validUntil): void;
153
157
public
function
setDiscounted
(?
DiscountedPriceDraft
$discounted): void;
158
162
public
function
setTiers
(?
PriceTierDraftCollection
$tiers): void;
163
167
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
168
}
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\Common\PriceDraft
Definition:
PriceDraft.php:19
Commercetools\Api\Models\Common\PriceDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
PriceDraft.php:29
Commercetools\Api\Models\Common\PriceDraft\FIELD_DISCOUNTED
const FIELD_DISCOUNTED
Definition:
PriceDraft.php:27
Commercetools\Api\Models\Common\PriceDraft\getKey
getKey()
Commercetools\Api\Models\Common\PriceDraft\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\Common\PriceDraft\FIELD_CHANNEL
const FIELD_CHANNEL
Definition:
PriceDraft.php:24
Commercetools\Api\Models\Common\PriceDraft\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
PriceDraft.php:25
Commercetools\Api\Models\Common\PriceDraft\setCustomerGroup
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
Commercetools\Api\Models\Common\PriceDraft\FIELD_COUNTRY
const FIELD_COUNTRY
Definition:
PriceDraft.php:22
Commercetools\Api\Models\Common\PriceDraft\getChannel
getChannel()
Commercetools\Api\Models\Common\PriceDraft\getCountry
getCountry()
Commercetools\Api\Models\Common\PriceDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Common\PriceDraft\setValue
setValue(?Money $value)
Commercetools\Api\Models\Common\PriceDraft\setCountry
setCountry(?string $country)
Commercetools\Api\Models\Common\PriceDraft\getValue
getValue()
Commercetools\Api\Models\Common\PriceDraft\FIELD_VALUE
const FIELD_VALUE
Definition:
PriceDraft.php:21
Commercetools\Api\Models\Common\PriceDraft\FIELD_TIERS
const FIELD_TIERS
Definition:
PriceDraft.php:28
Commercetools\Api\Models\Common\PriceDraft\getCustom
getCustom()
Commercetools\Api\Models\Common\PriceDraft\setDiscounted
setDiscounted(?DiscountedPriceDraft $discounted)
Commercetools\Api\Models\Common\PriceDraft\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\Common\PriceDraft\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\Common\PriceDraft\getValidFrom
getValidFrom()
Commercetools\Api\Models\Common\PriceDraft\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
PriceDraft.php:26
Commercetools\Api\Models\Common\PriceDraft\getTiers
getTiers()
Commercetools\Api\Models\Common\PriceDraft\getValidUntil
getValidUntil()
Commercetools\Api\Models\Common\PriceDraft\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
PriceDraft.php:23
Commercetools\Api\Models\Common\PriceDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Common\PriceDraft\getDiscounted
getDiscounted()
Commercetools\Api\Models\Common\PriceDraft\setChannel
setChannel(?ChannelResourceIdentifier $channel)
Commercetools\Api\Models\Common\PriceDraft\setTiers
setTiers(?PriceTierDraftCollection $tiers)
Commercetools\Api\Models\Common\PriceDraft\FIELD_KEY
const FIELD_KEY
Definition:
PriceDraft.php:20
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
Definition:
CustomerGroupResourceIdentifier.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Common
Definition:
Address.php:9
Generated by
1.9.1