Shopvento UI - v0.2.0
    Preparing search index...

    Function bookingVoucherAllocation

    • Apply checked event vouchers to assigned seats, then value vouchers in submission order. Backend totals remain authoritative.

      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.