From 81ed6a35fc22c743bed94832b14564b75e479cdf Mon Sep 17 00:00:00 2001 From: Freerk Minnema <41089591+freerkminnema@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:07:22 +0100 Subject: [PATCH] Also map additional GiftcardProgram properties from the StaticMapper --- src/StaticMappers/Giftcards/GiftcardProgramMapper.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/StaticMappers/Giftcards/GiftcardProgramMapper.php b/src/StaticMappers/Giftcards/GiftcardProgramMapper.php index 3ddfcbd..db2317c 100644 --- a/src/StaticMappers/Giftcards/GiftcardProgramMapper.php +++ b/src/StaticMappers/Giftcards/GiftcardProgramMapper.php @@ -12,7 +12,10 @@ public static function map(stdClass $data): GiftcardProgram return new GiftcardProgram( $data->uuid, $data->name, - $data->active ?? true + $data->active ?? true, + $data->max_amount_in_cents ?? null, + $data->calculator_flow ?? null, + $data->expiration_days ?? null ); } }