Skip to content

Commit

Permalink
Merge pull request #42 from freerkminnema/patch-2
Browse files Browse the repository at this point in the history
Also map additional GiftcardProgram properties from the StaticMapper
  • Loading branch information
iDiegoNL authored Nov 8, 2024
2 parents bb7fcd8 + 81ed6a3 commit 7f800b6
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 7f800b6

Please sign in to comment.