3 declare(strict_types=1);
30 use DateTimeImmutable;
246 if (is_null($this->orderNumber)) {
248 $data = $this->
raw(self::FIELD_ORDER_NUMBER);
249 if (is_null($data)) {
252 $this->orderNumber = (string) $data;
264 if (is_null($this->customer)) {
266 $data = $this->
raw(self::FIELD_CUSTOMER);
267 if (is_null($data)) {
285 if (is_null($this->customerEmail)) {
287 $data = $this->
raw(self::FIELD_CUSTOMER_EMAIL);
288 if (is_null($data)) {
291 $this->customerEmail = (string) $data;
305 if (is_null($this->lineItems)) {
307 $data = $this->
raw(self::FIELD_LINE_ITEMS);
308 if (is_null($data)) {
325 if (is_null($this->customLineItems)) {
327 $data = $this->
raw(self::FIELD_CUSTOM_LINE_ITEMS);
328 if (is_null($data)) {
345 if (is_null($this->totalPrice)) {
347 $data = $this->
raw(self::FIELD_TOTAL_PRICE);
348 if (is_null($data)) {
352 $this->totalPrice = $className::of($data);
366 if (is_null($this->taxedPrice)) {
368 $data = $this->
raw(self::FIELD_TAXED_PRICE);
369 if (is_null($data)) {
387 if (is_null($this->shippingAddress)) {
389 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESS);
390 if (is_null($data)) {
408 if (is_null($this->billingAddress)) {
410 $data = $this->
raw(self::FIELD_BILLING_ADDRESS);
411 if (is_null($data)) {
429 if (is_null($this->customerGroup)) {
431 $data = $this->
raw(self::FIELD_CUSTOMER_GROUP);
432 if (is_null($data)) {
450 if (is_null($this->country)) {
452 $data = $this->
raw(self::FIELD_COUNTRY);
453 if (is_null($data)) {
456 $this->country = (string) $data;
470 if (is_null($this->orderState)) {
472 $data = $this->
raw(self::FIELD_ORDER_STATE);
473 if (is_null($data)) {
476 $this->orderState = (string) $data;
490 if (is_null($this->shipmentState)) {
492 $data = $this->
raw(self::FIELD_SHIPMENT_STATE);
493 if (is_null($data)) {
496 $this->shipmentState = (string) $data;
510 if (is_null($this->paymentState)) {
512 $data = $this->
raw(self::FIELD_PAYMENT_STATE);
513 if (is_null($data)) {
516 $this->paymentState = (string) $data;
530 if (is_null($this->shippingInfo)) {
532 $data = $this->
raw(self::FIELD_SHIPPING_INFO);
533 if (is_null($data)) {
551 if (is_null($this->completedAt)) {
553 $data = $this->
raw(self::FIELD_COMPLETED_AT);
554 if (is_null($data)) {
558 if (
false === $data) {
561 $this->completedAt = $data;
575 if (is_null($this->custom)) {
577 $data = $this->
raw(self::FIELD_CUSTOM);
578 if (is_null($data)) {
596 if (is_null($this->inventoryMode)) {
598 $data = $this->
raw(self::FIELD_INVENTORY_MODE);
599 if (is_null($data)) {
602 $this->inventoryMode = (string) $data;
616 if (is_null($this->taxRoundingMode)) {
618 $data = $this->
raw(self::FIELD_TAX_ROUNDING_MODE);
619 if (is_null($data)) {
622 $this->taxRoundingMode = (string) $data;
636 if (is_null($this->taxCalculationMode)) {
638 $data = $this->
raw(self::FIELD_TAX_CALCULATION_MODE);
639 if (is_null($data)) {
642 $this->taxCalculationMode = (string) $data;
656 if (is_null($this->origin)) {
658 $data = $this->
raw(self::FIELD_ORIGIN);
659 if (is_null($data)) {
662 $this->origin = (string) $data;
676 if (is_null($this->itemShippingAddresses)) {
678 $data = $this->
raw(self::FIELD_ITEM_SHIPPING_ADDRESSES);
679 if (is_null($data)) {
696 if (is_null($this->store)) {
698 $data = $this->
raw(self::FIELD_STORE);
699 if (is_null($data)) {
717 if (is_null($this->state)) {
719 $data = $this->
raw(self::FIELD_STATE);
720 if (is_null($data)) {
924 #[\ReturnTypeWillChange]
931 return (
object) $data;