3 declare(strict_types=1);
138 ?
string $name =
null,
179 if (is_null($this->key)) {
181 $data = $this->
raw(self::FIELD_KEY);
182 if (is_null($data)) {
185 $this->key = (string) $data;
199 if (is_null($this->status)) {
201 $data = $this->
raw(self::FIELD_STATUS);
202 if (is_null($data)) {
205 $this->status = (string) $data;
222 if (is_null($this->stores)) {
224 $data = $this->
raw(self::FIELD_STORES);
225 if (is_null($data)) {
243 if (is_null($this->storeMode)) {
245 $data = $this->
raw(self::FIELD_STORE_MODE);
246 if (is_null($data)) {
249 $this->storeMode = (string) $data;
263 if (is_null($this->unitType)) {
265 $data = $this->
raw(self::FIELD_UNIT_TYPE);
266 if (is_null($data)) {
269 $this->unitType = (string) $data;
283 if (is_null($this->name)) {
285 $data = $this->
raw(self::FIELD_NAME);
286 if (is_null($data)) {
289 $this->name = (string) $data;
303 if (is_null($this->contactEmail)) {
305 $data = $this->
raw(self::FIELD_CONTACT_EMAIL);
306 if (is_null($data)) {
309 $this->contactEmail = (string) $data;
323 if (is_null($this->associateMode)) {
325 $data = $this->
raw(self::FIELD_ASSOCIATE_MODE);
326 if (is_null($data)) {
329 $this->associateMode = (string) $data;
343 if (is_null($this->associates)) {
345 $data = $this->
raw(self::FIELD_ASSOCIATES);
346 if (is_null($data)) {
363 if (is_null($this->approvalRuleMode)) {
365 $data = $this->
raw(self::FIELD_APPROVAL_RULE_MODE);
366 if (is_null($data)) {
369 $this->approvalRuleMode = (string) $data;
383 if (is_null($this->addresses)) {
385 $data = $this->
raw(self::FIELD_ADDRESSES);
386 if (is_null($data)) {
404 if (is_null($this->shippingAddresses)) {
406 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESSES);
407 if (is_null($data)) {
410 $this->shippingAddresses = $data;
424 if (is_null($this->defaultShippingAddress)) {
426 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS);
427 if (is_null($data)) {
430 $this->defaultShippingAddress = (int) $data;
445 if (is_null($this->billingAddresses)) {
447 $data = $this->
raw(self::FIELD_BILLING_ADDRESSES);
448 if (is_null($data)) {
451 $this->billingAddresses = $data;
465 if (is_null($this->defaultBillingAddress)) {
467 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS);
468 if (is_null($data)) {
471 $this->defaultBillingAddress = (int) $data;
485 if (is_null($this->custom)) {
487 $data = $this->
raw(self::FIELD_CUSTOM);
488 if (is_null($data)) {
506 if (is_null($this->parentUnit)) {
508 $data = $this->
raw(self::FIELD_PARENT_UNIT);
509 if (is_null($data)) {