Skip to content
Docs
Reference

Interface: CartHolderPlan

Interface: CartHolderPlan in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / CartHolderPlan

Defined in: core/liveClient.ts:125

The cart's holder names and add-on placements (P8, TKT-544): PUT /sales/carts/{cartId}/holders. It replaces what was there: a unit left out of holders stays "Guest N", and an add-on left out of addOns is placed automatically when that is unambiguous (one holder, or one each), else left for later. An add-on's holder is a unit of this cart that makes one, one of the buyer's holder slots from an earlier booking (slotId), or null to leave it unassigned on purpose (undoing "one each").

Properties#

addOns?#

optional addOns?: {
  cartItemId: string;
  holder:   | {
     cartItemId: string;
     unitIndex: number;
   }
     | {
     slotId: string;
   }
     | null;
  unitIndex: number;
}[];

Defined in: core/liveClient.ts:127

cartItemId#

cartItemId: string;

holder#

holder: 
  | {
  cartItemId: string;
  unitIndex: number;
}
  | {
  slotId: string;
}
  | null;

unitIndex#

unitIndex: number;

holders?#

optional holders?: {
  cartItemId: string;
  email?: string | null;
  name?: string | null;
  unitIndex: number;
}[];

Defined in: core/liveClient.ts:126

cartItemId#

cartItemId: string;

email?#

optional email?: string | null;

name?#

optional name?: string | null;

unitIndex#

unitIndex: number;