Przejdź do głównej zawartości

Interface: CreateCartRecoveryRunnerOptions

Properties

cartClient

cartClient: CartClient


cookieMaxAge?

optional cookieMaxAge?: number

Cookie maxAge propagated to all cookieStore.set calls.


cookieStore

cookieStore: CartCookieStore


ensureCart?

optional ensureCart?: () => Promise<{ cart: CartFragment; secret?: string | null; }>

Initial-create payload override (default: empty cart). Must return the created cart together with its one-time secret so the runner persists the composite cookie.

Returns

Promise<{ cart: CartFragment; secret?: string | null; }>


initialCartId?

optional initialCartId?: string | null

Server-known cart-id seed — see ExecuteWithCartRecoveryOptions.initialCartId. Applied to every execute and getCart call on this runner instance.