commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CannotUpdateReservationWarningBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $message;
28
33 private $lineItemId;
34
39 private $requestedQuantity;
40
45 private $reservedQuantity;
46
51 private $productId;
52
57 private $sku;
58
63 private $supplyChannel;
64
71 public function getMessage()
72 {
73 return $this->message;
74 }
75
82 public function getLineItemId()
83 {
84 return $this->lineItemId;
85 }
86
93 public function getRequestedQuantity()
94 {
95 return $this->requestedQuantity;
96 }
97
104 public function getReservedQuantity()
105 {
106 return $this->reservedQuantity;
107 }
108
115 public function getProductId()
116 {
117 return $this->productId;
118 }
119
126 public function getSku()
127 {
128 return $this->sku;
129 }
130
137 public function getSupplyChannel()
138 {
139 return $this->supplyChannel;
140 }
141
146 public function withMessage(?string $message)
147 {
148 $this->message = $message;
149
150 return $this;
151 }
152
157 public function withLineItemId(?string $lineItemId)
158 {
159 $this->lineItemId = $lineItemId;
160
161 return $this;
162 }
163
168 public function withRequestedQuantity(?float $requestedQuantity)
169 {
170 $this->requestedQuantity = $requestedQuantity;
171
172 return $this;
173 }
174
179 public function withReservedQuantity(?float $reservedQuantity)
180 {
181 $this->reservedQuantity = $reservedQuantity;
182
183 return $this;
184 }
185
190 public function withProductId(?string $productId)
191 {
192 $this->productId = $productId;
193
194 return $this;
195 }
196
201 public function withSku(?string $sku)
202 {
203 $this->sku = $sku;
204
205 return $this;
206 }
207
212 public function withSupplyChannel(?string $supplyChannel)
213 {
214 $this->supplyChannel = $supplyChannel;
215
216 return $this;
217 }
218
219
221 {
223 $this->message,
224 $this->lineItemId,
225 $this->requestedQuantity,
226 $this->reservedQuantity,
227 $this->productId,
228 $this->sku,
229 $this->supplyChannel
230 );
231 }
232
234 {
235 return new self();
236 }
237}