3declare(strict_types=1);
189 if (is_null($this->
id)) {
191 $data = $this->
raw(self::FIELD_ID);
192 if (is_null($data)) {
195 $this->
id = (string) $data;
209 if (is_null($this->version)) {
211 $data = $this->
raw(self::FIELD_VERSION);
212 if (is_null($data)) {
215 $this->version = (int) $data;
229 if (is_null($this->createdAt)) {
231 $data = $this->
raw(self::FIELD_CREATED_AT);
232 if (is_null($data)) {
235 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
236 if (
false === $data) {
239 $this->createdAt = $data;
253 if (is_null($this->lastModifiedAt)) {
255 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
256 if (is_null($data)) {
259 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
260 if (
false === $data) {
263 $this->lastModifiedAt = $data;
277 if (is_null($this->key)) {
279 $data = $this->
raw(self::FIELD_KEY);
280 if (is_null($data)) {
283 $this->key = (string) $data;
297 if (is_null($this->name)) {
299 $data = $this->
raw(self::FIELD_NAME);
300 if (is_null($data)) {
304 $this->name = LocalizedStringModel::of($data);
319 if (is_null($this->customer)) {
321 $data = $this->
raw(self::FIELD_CUSTOMER);
322 if (is_null($data)) {
326 $this->customer = CustomerReferenceModel::of($data);
341 if (is_null($this->businessUnit)) {
343 $data = $this->
raw(self::FIELD_BUSINESS_UNIT);
344 if (is_null($data)) {
348 $this->businessUnit = BusinessUnitKeyReferenceModel::of($data);
362 if (is_null($this->method)) {
364 $data = $this->
raw(self::FIELD_METHOD);
365 if (is_null($data)) {
368 $this->method = (string) $data;
382 if (is_null($this->paymentInterface)) {
384 $data = $this->
raw(self::FIELD_PAYMENT_INTERFACE);
385 if (is_null($data)) {
388 $this->paymentInterface = (string) $data;
402 if (is_null($this->interfaceAccount)) {
404 $data = $this->
raw(self::FIELD_INTERFACE_ACCOUNT);
405 if (is_null($data)) {
408 $this->interfaceAccount = (string) $data;
422 if (is_null($this->token)) {
424 $data = $this->
raw(self::FIELD_TOKEN);
425 if (is_null($data)) {
443 if (is_null($this->paymentMethodStatus)) {
445 $data = $this->
raw(self::FIELD_PAYMENT_METHOD_STATUS);
446 if (is_null($data)) {
449 $this->paymentMethodStatus = (string) $data;
464 if (is_null($this->
default)) {
466 $data = $this->
raw(self::FIELD_DEFAULT);
467 if (is_null($data)) {
470 $this->
default = (bool) $data;
484 if (is_null($this->custom)) {
486 $data = $this->
raw(self::FIELD_CUSTOM);
487 if (is_null($data)) {
491 $this->custom = CustomFieldsModel::of($data);
505 if (is_null($this->lastModifiedBy)) {
507 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
508 if (is_null($data)) {
512 $this->lastModifiedBy = LastModifiedByModel::of($data);
526 if (is_null($this->createdBy)) {
528 $data = $this->
raw(self::FIELD_CREATED_BY);
529 if (is_null($data)) {
533 $this->createdBy = CreatedByModel::of($data);
677 #[\ReturnTypeWillChange]
688 return (
object) $data;