From 06fbf3ffd2ba30afe69a509a681a232bac6d89e7 Mon Sep 17 00:00:00 2001 From: Corey Date: Wed, 31 Jan 2024 23:04:18 -0800 Subject: [PATCH] Add missing receipt_data Transaction property --- src/Entities/Transaction.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Entities/Transaction.php b/src/Entities/Transaction.php index a6fa7f9..9c94ee7 100644 --- a/src/Entities/Transaction.php +++ b/src/Entities/Transaction.php @@ -52,6 +52,7 @@ public function __construct( public \DateTimeInterface $createdAt, public \DateTimeInterface $updatedAt, public \DateTimeInterface|null $billedAt, + public string|null $receiptData, ) { } @@ -80,6 +81,7 @@ public static function from(array $data): self createdAt: DateTime::from($data['created_at']), updatedAt: DateTime::from($data['updated_at']), billedAt: isset($data['billed_at']) ? DateTime::from($data['billed_at']) : null, + receiptData: $data['receipt_data'] ?? null, ); } }