3 declare(strict_types=1);
17 use DateTimeImmutable;
122 ?
string $name =
null,
161 if (is_null($this->version)) {
163 $data = $this->
raw(self::FIELD_VERSION);
164 if (is_null($data)) {
167 $this->version = (int) $data;
181 if (is_null($this->key)) {
183 $data = $this->
raw(self::FIELD_KEY);
184 if (is_null($data)) {
187 $this->key = (string) $data;
201 if (is_null($this->name)) {
203 $data = $this->
raw(self::FIELD_NAME);
204 if (is_null($data)) {
207 $this->name = (string) $data;
221 if (is_null($this->countries)) {
223 $data = $this->
raw(self::FIELD_COUNTRIES);
224 if (is_null($data)) {
227 $this->countries = $data;
241 if (is_null($this->currencies)) {
243 $data = $this->
raw(self::FIELD_CURRENCIES);
244 if (is_null($data)) {
247 $this->currencies = $data;
261 if (is_null($this->languages)) {
263 $data = $this->
raw(self::FIELD_LANGUAGES);
264 if (is_null($data)) {
267 $this->languages = $data;
281 if (is_null($this->createdAt)) {
283 $data = $this->
raw(self::FIELD_CREATED_AT);
284 if (is_null($data)) {
288 if (
false === $data) {
291 $this->createdAt = $data;
305 if (is_null($this->trialUntil)) {
307 $data = $this->
raw(self::FIELD_TRIAL_UNTIL);
308 if (is_null($data)) {
311 $this->trialUntil = (string) $data;
325 if (is_null($this->messages)) {
327 $data = $this->
raw(self::FIELD_MESSAGES);
328 if (is_null($data)) {
346 if (is_null($this->carts)) {
348 $data = $this->
raw(self::FIELD_CARTS);
349 if (is_null($data)) {
367 if (is_null($this->shoppingLists)) {
369 $data = $this->
raw(self::FIELD_SHOPPING_LISTS);
370 if (is_null($data)) {
388 if (is_null($this->shippingRateInputType)) {
390 $data = $this->
raw(self::FIELD_SHIPPING_RATE_INPUT_TYPE);
391 if (is_null($data)) {
395 $this->shippingRateInputType = $className::of($data);
409 if (is_null($this->externalOAuth)) {
411 $data = $this->
raw(self::FIELD_EXTERNAL_O_AUTH);
412 if (is_null($data)) {
430 if (is_null($this->searchIndexing)) {
432 $data = $this->
raw(self::FIELD_SEARCH_INDEXING);
433 if (is_null($data)) {
451 if (is_null($this->businessUnits)) {
453 $data = $this->
raw(self::FIELD_BUSINESS_UNITS);
454 if (is_null($data)) {
586 #[\ReturnTypeWillChange]
593 return (
object) $data;