3 declare(strict_types=1);
32 use DateTimeImmutable;
273 if (is_null($this->orderNumber)) {
275 $data = $this->
raw(self::FIELD_ORDER_NUMBER);
276 if (is_null($data)) {
279 $this->orderNumber = (string) $data;
293 if (is_null($this->purchaseOrderNumber)) {
295 $data = $this->
raw(self::FIELD_PURCHASE_ORDER_NUMBER);
296 if (is_null($data)) {
299 $this->purchaseOrderNumber = (string) $data;
313 if (is_null($this->customerId)) {
315 $data = $this->
raw(self::FIELD_CUSTOMER_ID);
316 if (is_null($data)) {
319 $this->customerId = (string) $data;
333 if (is_null($this->customerEmail)) {
335 $data = $this->
raw(self::FIELD_CUSTOMER_EMAIL);
336 if (is_null($data)) {
339 $this->customerEmail = (string) $data;
353 if (is_null($this->customerGroup)) {
355 $data = $this->
raw(self::FIELD_CUSTOMER_GROUP);
356 if (is_null($data)) {
375 if (is_null($this->businessUnit)) {
377 $data = $this->
raw(self::FIELD_BUSINESS_UNIT);
378 if (is_null($data)) {
399 if (is_null($this->store)) {
401 $data = $this->
raw(self::FIELD_STORE);
402 if (is_null($data)) {
421 if (is_null($this->lineItems)) {
423 $data = $this->
raw(self::FIELD_LINE_ITEMS);
424 if (is_null($data)) {
442 if (is_null($this->customLineItems)) {
444 $data = $this->
raw(self::FIELD_CUSTOM_LINE_ITEMS);
445 if (is_null($data)) {
462 if (is_null($this->totalPrice)) {
464 $data = $this->
raw(self::FIELD_TOTAL_PRICE);
465 if (is_null($data)) {
483 if (is_null($this->taxedPrice)) {
485 $data = $this->
raw(self::FIELD_TAXED_PRICE);
486 if (is_null($data)) {
504 if (is_null($this->taxRoundingMode)) {
506 $data = $this->
raw(self::FIELD_TAX_ROUNDING_MODE);
507 if (is_null($data)) {
510 $this->taxRoundingMode = (string) $data;
524 if (is_null($this->taxCalculationMode)) {
526 $data = $this->
raw(self::FIELD_TAX_CALCULATION_MODE);
527 if (is_null($data)) {
530 $this->taxCalculationMode = (string) $data;
544 if (is_null($this->inventoryMode)) {
546 $data = $this->
raw(self::FIELD_INVENTORY_MODE);
547 if (is_null($data)) {
550 $this->inventoryMode = (string) $data;
564 if (is_null($this->billingAddress)) {
566 $data = $this->
raw(self::FIELD_BILLING_ADDRESS);
567 if (is_null($data)) {
585 if (is_null($this->shippingAddress)) {
587 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESS);
588 if (is_null($data)) {
606 if (is_null($this->itemShippingAddresses)) {
608 $data = $this->
raw(self::FIELD_ITEM_SHIPPING_ADDRESSES);
609 if (is_null($data)) {
626 if (is_null($this->shippingInfo)) {
628 $data = $this->
raw(self::FIELD_SHIPPING_INFO);
629 if (is_null($data)) {
647 if (is_null($this->paymentInfo)) {
649 $data = $this->
raw(self::FIELD_PAYMENT_INFO);
650 if (is_null($data)) {
668 if (is_null($this->paymentState)) {
670 $data = $this->
raw(self::FIELD_PAYMENT_STATE);
671 if (is_null($data)) {
674 $this->paymentState = (string) $data;
688 if (is_null($this->shipmentState)) {
690 $data = $this->
raw(self::FIELD_SHIPMENT_STATE);
691 if (is_null($data)) {
694 $this->shipmentState = (string) $data;
708 if (is_null($this->orderState)) {
710 $data = $this->
raw(self::FIELD_ORDER_STATE);
711 if (is_null($data)) {
714 $this->orderState = (string) $data;
728 if (is_null($this->state)) {
730 $data = $this->
raw(self::FIELD_STATE);
731 if (is_null($data)) {
749 if (is_null($this->country)) {
751 $data = $this->
raw(self::FIELD_COUNTRY);
752 if (is_null($data)) {
755 $this->country = (string) $data;
769 if (is_null($this->origin)) {
771 $data = $this->
raw(self::FIELD_ORIGIN);
772 if (is_null($data)) {
775 $this->origin = (string) $data;
789 if (is_null($this->completedAt)) {
791 $data = $this->
raw(self::FIELD_COMPLETED_AT);
792 if (is_null($data)) {
796 if (
false === $data) {
799 $this->completedAt = $data;
813 if (is_null($this->custom)) {
815 $data = $this->
raw(self::FIELD_CUSTOM);
816 if (is_null($data)) {
1044 #[\ReturnTypeWillChange]
1051 return (
object) $data;