3 declare(strict_types=1);
23 use DateTimeImmutable;
265 if (is_null($this->key)) {
267 $data = $this->
raw(self::FIELD_KEY);
268 if (is_null($data)) {
271 $this->key = (string) $data;
287 if (is_null($this->customerNumber)) {
289 $data = $this->
raw(self::FIELD_CUSTOMER_NUMBER);
290 if (is_null($data)) {
293 $this->customerNumber = (string) $data;
307 if (is_null($this->externalId)) {
309 $data = $this->
raw(self::FIELD_EXTERNAL_ID);
310 if (is_null($data)) {
313 $this->externalId = (string) $data;
328 if (is_null($this->email)) {
330 $data = $this->
raw(self::FIELD_EMAIL);
331 if (is_null($data)) {
334 $this->email = (string) $data;
349 if (is_null($this->password)) {
351 $data = $this->
raw(self::FIELD_PASSWORD);
352 if (is_null($data)) {
355 $this->password = (string) $data;
369 if (is_null($this->firstName)) {
371 $data = $this->
raw(self::FIELD_FIRST_NAME);
372 if (is_null($data)) {
375 $this->firstName = (string) $data;
389 if (is_null($this->lastName)) {
391 $data = $this->
raw(self::FIELD_LAST_NAME);
392 if (is_null($data)) {
395 $this->lastName = (string) $data;
409 if (is_null($this->middleName)) {
411 $data = $this->
raw(self::FIELD_MIDDLE_NAME);
412 if (is_null($data)) {
415 $this->middleName = (string) $data;
429 if (is_null($this->title)) {
431 $data = $this->
raw(self::FIELD_TITLE);
432 if (is_null($data)) {
435 $this->title = (string) $data;
449 if (is_null($this->anonymousCartId)) {
451 $data = $this->
raw(self::FIELD_ANONYMOUS_CART_ID);
452 if (is_null($data)) {
455 $this->anonymousCartId = (string) $data;
469 if (is_null($this->anonymousCart)) {
471 $data = $this->
raw(self::FIELD_ANONYMOUS_CART);
472 if (is_null($data)) {
490 if (is_null($this->anonymousId)) {
492 $data = $this->
raw(self::FIELD_ANONYMOUS_ID);
493 if (is_null($data)) {
496 $this->anonymousId = (string) $data;
510 if (is_null($this->dateOfBirth)) {
512 $data = $this->
raw(self::FIELD_DATE_OF_BIRTH);
513 if (is_null($data)) {
517 if (
false === $data) {
520 $this->dateOfBirth = $data;
534 if (is_null($this->companyName)) {
536 $data = $this->
raw(self::FIELD_COMPANY_NAME);
537 if (is_null($data)) {
540 $this->companyName = (string) $data;
554 if (is_null($this->vatId)) {
556 $data = $this->
raw(self::FIELD_VAT_ID);
557 if (is_null($data)) {
560 $this->vatId = (string) $data;
574 if (is_null($this->addresses)) {
576 $data = $this->
raw(self::FIELD_ADDRESSES);
577 if (is_null($data)) {
595 if (is_null($this->defaultShippingAddress)) {
597 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS);
598 if (is_null($data)) {
601 $this->defaultShippingAddress = (int) $data;
616 if (is_null($this->shippingAddresses)) {
618 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESSES);
619 if (is_null($data)) {
622 $this->shippingAddresses = $data;
637 if (is_null($this->defaultBillingAddress)) {
639 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS);
640 if (is_null($data)) {
643 $this->defaultBillingAddress = (int) $data;
658 if (is_null($this->billingAddresses)) {
660 $data = $this->
raw(self::FIELD_BILLING_ADDRESSES);
661 if (is_null($data)) {
664 $this->billingAddresses = $data;
679 if (is_null($this->isEmailVerified)) {
681 $data = $this->
raw(self::FIELD_IS_EMAIL_VERIFIED);
682 if (is_null($data)) {
685 $this->isEmailVerified = (bool) $data;
699 if (is_null($this->customerGroup)) {
701 $data = $this->
raw(self::FIELD_CUSTOMER_GROUP);
702 if (is_null($data)) {
720 if (is_null($this->custom)) {
722 $data = $this->
raw(self::FIELD_CUSTOM);
723 if (is_null($data)) {
742 if (is_null($this->locale)) {
744 $data = $this->
raw(self::FIELD_LOCALE);
745 if (is_null($data)) {
748 $this->locale = (string) $data;
762 if (is_null($this->salutation)) {
764 $data = $this->
raw(self::FIELD_SALUTATION);
765 if (is_null($data)) {
768 $this->salutation = (string) $data;
786 if (is_null($this->stores)) {
788 $data = $this->
raw(self::FIELD_STORES);
789 if (is_null($data)) {
809 if (is_null($this->authenticationMode)) {
811 $data = $this->
raw(self::FIELD_AUTHENTICATION_MODE);
812 if (is_null($data)) {
815 $this->authenticationMode = (string) $data;
1039 #[\ReturnTypeWillChange]
1046 return (
object) $data;