CallbackData
interface CallbackData {
cartLines: EnrichedCartLine[];
cartTotals: Pick<CartState, 'subtotal' | 'total' | 'hasDiscounts' | 'totalDiscount' | 'totalDiscountPercentage' | 'shippingMethod'>;
campaignData: Campaign | null;
vouchers: string[];
}Source: global.ts:1756
The snapshot passed to a lifecycle callback (CallbackType) — the current cart lines, totals, campaign data, and applied vouchers at the moment the hook fires.
Properties
cartLines: EnrichedCartLine[]
Display-ready cart lines at the time the hook fires.
cartTotals: Pick<CartState, 'subtotal' | 'total' | 'hasDiscounts' | 'totalDiscount' | 'totalDiscountPercentage' | 'shippingMethod'>
The totals slice of CartState.