commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
StandalonePriceDraft.php
1<?php
2
3declare(strict_types=1);
10
19use DateTimeImmutable;
20
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}
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)