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