Skip to content

Commit

Permalink
Also map additional GiftcardProgram properties from the StaticMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
freerkminnema authored Nov 7, 2024
1 parent bb7fcd8 commit 81ed6a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/StaticMappers/Giftcards/GiftcardProgramMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

0 comments on commit 81ed6a3

Please sign in to comment.