commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ScopedPrice.php
1<?php
2
3declare(strict_types=1);
10
16use DateTimeImmutable;
17
18interface ScopedPrice extends JsonObject
19{
20 public const FIELD_ID = 'id';
21 public const FIELD_VALUE = 'value';
22 public const FIELD_CURRENT_VALUE = 'currentValue';
23 public const FIELD_COUNTRY = 'country';
24 public const FIELD_CUSTOMER_GROUP = 'customerGroup';
25 public const FIELD_CHANNEL = 'channel';
26 public const FIELD_VALID_FROM = 'validFrom';
27 public const FIELD_VALID_UNTIL = 'validUntil';
28 public const FIELD_DISCOUNTED = 'discounted';
29 public const FIELD_CUSTOM = 'custom';
30
37 public function getId();
38
45 public function getValue();
46
53 public function getCurrentValue();
54
61 public function getCountry();
62
69 public function getCustomerGroup();
70
77 public function getChannel();
78
85 public function getValidFrom();
86
93 public function getValidUntil();
94
102 public function getDiscounted();
103
110 public function getCustom();
111
115 public function setId(?string $id): void;
116
120 public function setValue(?TypedMoney $value): void;
121
125 public function setCurrentValue(?TypedMoney $currentValue): void;
126
130 public function setCountry(?string $country): void;
131
135 public function setCustomerGroup(?CustomerGroupReference $customerGroup): void;
136
140 public function setChannel(?ChannelReference $channel): void;
141
145 public function setValidFrom(?DateTimeImmutable $validFrom): void;
146
150 public function setValidUntil(?DateTimeImmutable $validUntil): void;
151
155 public function setDiscounted(?DiscountedPrice $discounted): void;
156
160 public function setCustom(?CustomFields $custom): void;
161}
setCustomerGroup(?CustomerGroupReference $customerGroup)
setChannel(?ChannelReference $channel)
setValidUntil(?DateTimeImmutable $validUntil)
setCurrentValue(?TypedMoney $currentValue)
setDiscounted(?DiscountedPrice $discounted)
setValidFrom(?DateTimeImmutable $validFrom)