feat: promotional and purchase vouchers
This commit is contained in:
@@ -33,6 +33,8 @@ class ParticipantDto
|
||||
'licensePlate',
|
||||
'bulkInsuranceBooking',
|
||||
'insurance',
|
||||
'purchaseVoucherCode',
|
||||
'promoVoucherCode',
|
||||
];
|
||||
|
||||
public ?int $index = null;
|
||||
@@ -111,6 +113,34 @@ class ParticipantDto
|
||||
// Bulk insurance booking flag (applicant only: when checked, assigns same insurance type to all participants)
|
||||
public bool $bulkInsuranceBooking = false;
|
||||
|
||||
/**
|
||||
* Purchase voucher redemption code.
|
||||
* Collected from all participants and aggregated into single <gutscheine> collection in booking payload.
|
||||
*/
|
||||
#[Assert\Length(
|
||||
max: 50,
|
||||
maxMessage: 'Der Gutscheincode darf maximal {{ limit }} Zeichen lang sein'
|
||||
)]
|
||||
#[Assert\Regex(
|
||||
pattern: '/^[A-Za-z0-9\-]+$/',
|
||||
message: 'Der Gutscheincode darf nur Buchstaben, Zahlen und Bindestriche enthalten'
|
||||
)]
|
||||
public ?string $purchaseVoucherCode = null;
|
||||
|
||||
/**
|
||||
* Promo voucher code.
|
||||
* Applied per participant in booking payload as <aktionscode>.
|
||||
*/
|
||||
#[Assert\Length(
|
||||
max: 50,
|
||||
maxMessage: 'Der Aktionscode darf maximal {{ limit }} Zeichen lang sein'
|
||||
)]
|
||||
#[Assert\Regex(
|
||||
pattern: '/^[A-Za-z0-9\-]+$/',
|
||||
message: 'Der Aktionscode darf nur Buchstaben, Zahlen und Bindestriche enthalten'
|
||||
)]
|
||||
public ?string $promoVoucherCode = null;
|
||||
|
||||
/**
|
||||
* @var array<array{type: string, message: string}> Notification messages for user feedback
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user