diff --git a/src/Entities/Notification/NotificationDiscount.php b/src/Entities/Notification/NotificationDiscount.php index 496cff0..3f58545 100644 --- a/src/Entities/Notification/NotificationDiscount.php +++ b/src/Entities/Notification/NotificationDiscount.php @@ -38,8 +38,8 @@ protected function __construct( public int|null $usageLimit, public array|null $restrictTo, public CustomData|null $customData, - public \DateTimeInterface|null $expiresAt, public ImportMeta|null $importMeta, + public \DateTimeInterface|null $expiresAt, public \DateTimeInterface $createdAt, public \DateTimeInterface $updatedAt, ) { @@ -61,8 +61,8 @@ public static function from(array $data): self usageLimit: $data['usage_limit'] ?? null, restrictTo: $data['restrict_to'] ?? null, customData: isset($data['custom_data']) ? new CustomData($data['custom_data']) : null, - expiresAt: isset($data['expires_at']) ? DateTime::from($data['expires_at']) : null, importMeta: isset($data['import_meta']) ? ImportMeta::from($data['import_meta']) : null, + expiresAt: isset($data['expires_at']) ? DateTime::from($data['expires_at']) : null, createdAt: DateTime::from($data['created_at']), updatedAt: DateTime::from($data['updated_at']), );