commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
PriceDraft.php
1<?php
2
3declare(strict_types=1);
10
16use DateTimeImmutable;
17
18interface 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
46 public function getValue();
47
54 public function getCountry();
55
62 public function getCustomerGroup();
63
70 public function getChannel();
71
78 public function getValidFrom();
79
86 public function getValidUntil();
87
101 public function getDiscounted();
102
110 public function getTiers();
111
118 public function getCustom();
119
123 public function setKey(?string $key): void;
124
128 public function setValue(?Money $value): void;
129
133 public function setCountry(?string $country): void;
134
138 public function setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup): void;
139
143 public function setChannel(?ChannelResourceIdentifier $channel): void;
144
148 public function setValidFrom(?DateTimeImmutable $validFrom): void;
149
153 public function setValidUntil(?DateTimeImmutable $validUntil): void;
154
158 public function setDiscounted(?DiscountedPriceDraft $discounted): void;
159
163 public function setTiers(?PriceTierDraftCollection $tiers): void;
164
168 public function setCustom(?CustomFieldsDraft $custom): void;
169}
setValidFrom(?DateTimeImmutable $validFrom)
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
setDiscounted(?DiscountedPriceDraft $discounted)
setValidUntil(?DateTimeImmutable $validUntil)
setCustom(?CustomFieldsDraft $custom)
setChannel(?ChannelResourceIdentifier $channel)
setTiers(?PriceTierDraftCollection $tiers)