3 declare(strict_types=1);
21 use DateTimeImmutable;
172 if (is_null($this->action)) {
174 $data = $this->
raw(self::FIELD_ACTION);
175 if (is_null($data)) {
178 $this->action = (string) $data;
192 if (is_null($this->key)) {
194 $data = $this->
raw(self::FIELD_KEY);
195 if (is_null($data)) {
198 $this->key = (string) $data;
213 if (is_null($this->productId)) {
215 $data = $this->
raw(self::FIELD_PRODUCT_ID);
216 if (is_null($data)) {
219 $this->productId = (string) $data;
235 if (is_null($this->variantId)) {
237 $data = $this->
raw(self::FIELD_VARIANT_ID);
238 if (is_null($data)) {
241 $this->variantId = (int) $data;
256 if (is_null($this->sku)) {
258 $data = $this->
raw(self::FIELD_SKU);
259 if (is_null($data)) {
262 $this->sku = (string) $data;
276 if (is_null($this->quantity)) {
278 $data = $this->
raw(self::FIELD_QUANTITY);
279 if (is_null($data)) {
282 $this->quantity = (int) $data;
298 if (is_null($this->addedAt)) {
300 $data = $this->
raw(self::FIELD_ADDED_AT);
301 if (is_null($data)) {
305 if (
false === $data) {
308 $this->addedAt = $data;
324 if (is_null($this->distributionChannel)) {
326 $data = $this->
raw(self::FIELD_DISTRIBUTION_CHANNEL);
327 if (is_null($data)) {
346 if (is_null($this->supplyChannel)) {
348 $data = $this->
raw(self::FIELD_SUPPLY_CHANNEL);
349 if (is_null($data)) {
367 if (is_null($this->externalPrice)) {
369 $data = $this->
raw(self::FIELD_EXTERNAL_PRICE);
370 if (is_null($data)) {
388 if (is_null($this->externalTotalPrice)) {
390 $data = $this->
raw(self::FIELD_EXTERNAL_TOTAL_PRICE);
391 if (is_null($data)) {
409 if (is_null($this->externalTaxRate)) {
411 $data = $this->
raw(self::FIELD_EXTERNAL_TAX_RATE);
412 if (is_null($data)) {
430 if (is_null($this->perMethodExternalTaxRate)) {
432 $data = $this->
raw(self::FIELD_PER_METHOD_EXTERNAL_TAX_RATE);
433 if (is_null($data)) {
451 if (is_null($this->inventoryMode)) {
453 $data = $this->
raw(self::FIELD_INVENTORY_MODE);
454 if (is_null($data)) {
457 $this->inventoryMode = (string) $data;
471 if (is_null($this->shippingDetails)) {
473 $data = $this->
raw(self::FIELD_SHIPPING_DETAILS);
474 if (is_null($data)) {
492 if (is_null($this->custom)) {
494 $data = $this->
raw(self::FIELD_CUSTOM);
495 if (is_null($data)) {
627 #[\ReturnTypeWillChange]
634 return (
object) $data;