Function bookingVoucherAllocation
-
bookingVoucherAllocation(
seatPrices: readonly number[],
orderedCodes: readonly string[],
checks: Readonly<Record<string, VoucherCheck>>,
): {
amountToPay: number;
deductions: { amount: number; code: string }[];
pending: boolean;
}Parameters
- seatPrices: readonly number[]
Per-seat prices in integer cents.
- orderedCodes: readonly string[]
Voucher codes in submission order.
- checks: Readonly<Record<string, VoucherCheck>>
Public lookup results keyed by voucher code.
Returns {
amountToPay: number;
deductions: { amount: number; code: string }[];
pending: boolean;
}-
amountToPay: number
Amount to pay returned by bookingVoucherAllocation.
-
deductions: { amount: number; code: string }[]
Deductions returned by bookingVoucherAllocation.
-
pending: boolean
Whether booking submission is in progress.
- seatPrices: readonly number[]
Apply checked event vouchers to assigned seats, then value vouchers in submission order. Backend totals remain authoritative.