commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
LineItemPrice.php
1 <?php
2 
3 declare(strict_types=1);
10 
19 use DateTimeImmutable;
20 
21 interface LineItemPrice extends JsonObject
22 {
23  public const FIELD_VALUE = 'value';
24  public const FIELD_COUNTRY = 'country';
25  public const FIELD_VALID_FROM = 'validFrom';
26  public const FIELD_VALID_UNTIL = 'validUntil';
27  public const FIELD_CUSTOMER_GROUP = 'customerGroup';
28  public const FIELD_CHANNEL = 'channel';
29  public const FIELD_DISCOUNTED = 'discounted';
30  public const FIELD_TIERS = 'tiers';
31  public const FIELD_CUSTOM = 'custom';
32 
39  public function getValue();
40 
47  public function getCountry();
48 
55  public function getValidFrom();
56 
63  public function getValidUntil();
64 
71  public function getCustomerGroup();
72 
79  public function getChannel();
80 
87  public function getDiscounted();
88 
95  public function getTiers();
96 
103  public function getCustom();
104 
108  public function setValue(?TypedMoney $value): void;
109 
113  public function setCountry(?string $country): void;
114 
118  public function setValidFrom(?DateTimeImmutable $validFrom): void;
119 
123  public function setValidUntil(?DateTimeImmutable $validUntil): void;
124 
128  public function setCustomerGroup(?CustomerGroupKeyReference $customerGroup): void;
129 
133  public function setChannel(?ChannelKeyReference $channel): void;
134 
138  public function setDiscounted(?DiscountedPrice $discounted): void;
139 
143  public function setTiers(?PriceTierCollection $tiers): void;
144 
148  public function setCustom(?Custom $custom): void;
149 }
setValidFrom(?DateTimeImmutable $validFrom)
setValidUntil(?DateTimeImmutable $validUntil)
setChannel(?ChannelKeyReference $channel)
setCustomerGroup(?CustomerGroupKeyReference $customerGroup)
setDiscounted(?DiscountedPrice $discounted)