@bowlos/reservations 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/HEADLESS.md +48 -0
  2. package/README.md +10 -0
  3. package/dist/{account-B9tDfXke.d.ts → account-5oZrwcaq.d.ts} +1 -1
  4. package/dist/{account-C9SvfE3q.d.cts → account-nHac98qx.d.cts} +1 -1
  5. package/dist/{catalog-BPh01sfG.d.ts → catalog-BMdk6ZSC.d.ts} +9 -1
  6. package/dist/{catalog-I7Lpar3V.d.cts → catalog-Ca7eN9CP.d.cts} +9 -1
  7. package/dist/{chunk-S5T4OCBY.js → chunk-5JWJBLPE.js} +2 -2
  8. package/dist/{chunk-S5T4OCBY.js.map → chunk-5JWJBLPE.js.map} +1 -1
  9. package/dist/{chunk-CRETIPLS.js → chunk-7OHHK65Q.js} +11 -4
  10. package/dist/chunk-7OHHK65Q.js.map +1 -0
  11. package/dist/components.cjs +40 -0
  12. package/dist/components.cjs.map +1 -1
  13. package/dist/components.d.cts +17 -5
  14. package/dist/components.d.ts +17 -5
  15. package/dist/components.js +37 -5
  16. package/dist/components.js.map +1 -1
  17. package/dist/{data-BKlgn8Ln.d.cts → data-CVq9zXz7.d.cts} +34 -0
  18. package/dist/{data-BKlgn8Ln.d.ts → data-CVq9zXz7.d.ts} +34 -0
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +4 -4
  21. package/dist/index.d.ts +4 -4
  22. package/dist/index.js +2 -2
  23. package/dist/index.js.map +1 -1
  24. package/dist/payments.cjs +4 -2
  25. package/dist/payments.cjs.map +1 -1
  26. package/dist/payments.d.cts +11 -3
  27. package/dist/payments.d.ts +11 -3
  28. package/dist/payments.js +4 -2
  29. package/dist/payments.js.map +1 -1
  30. package/dist/{react--584Q9zx.d.cts → react-Bhpzhr01.d.cts} +2 -2
  31. package/dist/{react-C0c5k3Tt.d.ts → react-C9bUP9LB.d.ts} +2 -2
  32. package/dist/react.cjs +8 -0
  33. package/dist/react.cjs.map +1 -1
  34. package/dist/react.d.cts +18 -6
  35. package/dist/react.d.ts +18 -6
  36. package/dist/react.js +3 -3
  37. package/package.json +2 -2
  38. package/templates/center-site/package.json +1 -1
  39. package/dist/chunk-CRETIPLS.js.map +0 -1
@@ -305,6 +305,12 @@ interface PaymentIntentInfo {
305
305
  ephemeralKey: string;
306
306
  customerSessionClientSecret: string;
307
307
  connectedAccountId: string;
308
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
309
+ * created in. Load Stripe.js with the matching publishable key
310
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
311
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
312
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
313
+ stripeMode?: "test" | "live";
308
314
  }
309
315
  /** The minimal shape `<BowlosPaymentForm>` needs to confirm a payment on the
310
316
  * operator's connected account. `PaymentIntentInfo` (booking) and the buy-flow
@@ -314,6 +320,10 @@ interface ConnectedPaymentInput {
314
320
  clientSecret: string;
315
321
  connectedAccountId: string;
316
322
  customerSessionClientSecret?: string;
323
+ /** Full Test Mode (2026-06-23): the PI's Stripe environment. `<BowlosPaymentForm>`
324
+ * loads the matching publishable key (test vs live) when `testPublishableKey`
325
+ * is supplied. Absent → "live". */
326
+ stripeMode?: "test" | "live";
317
327
  }
318
328
  /** Inputs for a game-pass purchase. The SDK generates an idempotency key if omitted. */
319
329
  type GameCardPurchaseArgs = {
@@ -332,6 +342,12 @@ interface GameCardPurchaseIntent {
332
342
  cardId: string;
333
343
  customerSessionClientSecret: string;
334
344
  connectedAccountId: string;
345
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
346
+ * created in. Load Stripe.js with the matching publishable key
347
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
348
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
349
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
350
+ stripeMode?: "test" | "live";
335
351
  }
336
352
  /** Buy a game pass — mints the connected-account PaymentIntent (requires a
337
353
  * signed-in customer; the charge lands on the operator's connected account). */
@@ -415,6 +431,12 @@ interface EventTicketPurchaseIntent {
415
431
  orderId: string;
416
432
  customerSessionClientSecret: string;
417
433
  connectedAccountId: string;
434
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
435
+ * created in. Load Stripe.js with the matching publishable key
436
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
437
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
438
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
439
+ stripeMode?: "test" | "live";
418
440
  }
419
441
  /** Buy tickets for a ticket-mode event offer — mints the connected-account
420
442
  * PaymentIntent. Requires a signed-in customer so taxes and account ownership
@@ -562,6 +584,12 @@ interface MembershipPurchaseIntent {
562
584
  refToken: string | null;
563
585
  customerSessionClientSecret: string;
564
586
  connectedAccountId: string;
587
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
588
+ * created in. Load Stripe.js with the matching publishable key
589
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
590
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
591
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
592
+ stripeMode?: "test" | "live";
565
593
  }
566
594
  /** Buy a one-time membership — mints the connected-account PaymentIntent
567
595
  * (requires a signed-in customer; the charge lands on the operator's connected
@@ -607,6 +635,12 @@ interface MembershipSubscriptionIntent {
607
635
  amountCents: number;
608
636
  customerSessionClientSecret: string;
609
637
  connectedAccountId: string;
638
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
639
+ * created in. Load Stripe.js with the matching publishable key
640
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
641
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
642
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
643
+ stripeMode?: "test" | "live";
610
644
  }
611
645
  /** Start a recurring membership subscription — mints the subscription + its
612
646
  * first-invoice PaymentIntent on the operator's connected account (requires a
@@ -305,6 +305,12 @@ interface PaymentIntentInfo {
305
305
  ephemeralKey: string;
306
306
  customerSessionClientSecret: string;
307
307
  connectedAccountId: string;
308
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
309
+ * created in. Load Stripe.js with the matching publishable key
310
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
311
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
312
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
313
+ stripeMode?: "test" | "live";
308
314
  }
309
315
  /** The minimal shape `<BowlosPaymentForm>` needs to confirm a payment on the
310
316
  * operator's connected account. `PaymentIntentInfo` (booking) and the buy-flow
@@ -314,6 +320,10 @@ interface ConnectedPaymentInput {
314
320
  clientSecret: string;
315
321
  connectedAccountId: string;
316
322
  customerSessionClientSecret?: string;
323
+ /** Full Test Mode (2026-06-23): the PI's Stripe environment. `<BowlosPaymentForm>`
324
+ * loads the matching publishable key (test vs live) when `testPublishableKey`
325
+ * is supplied. Absent → "live". */
326
+ stripeMode?: "test" | "live";
317
327
  }
318
328
  /** Inputs for a game-pass purchase. The SDK generates an idempotency key if omitted. */
319
329
  type GameCardPurchaseArgs = {
@@ -332,6 +342,12 @@ interface GameCardPurchaseIntent {
332
342
  cardId: string;
333
343
  customerSessionClientSecret: string;
334
344
  connectedAccountId: string;
345
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
346
+ * created in. Load Stripe.js with the matching publishable key
347
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
348
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
349
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
350
+ stripeMode?: "test" | "live";
335
351
  }
336
352
  /** Buy a game pass — mints the connected-account PaymentIntent (requires a
337
353
  * signed-in customer; the charge lands on the operator's connected account). */
@@ -415,6 +431,12 @@ interface EventTicketPurchaseIntent {
415
431
  orderId: string;
416
432
  customerSessionClientSecret: string;
417
433
  connectedAccountId: string;
434
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
435
+ * created in. Load Stripe.js with the matching publishable key
436
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
437
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
438
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
439
+ stripeMode?: "test" | "live";
418
440
  }
419
441
  /** Buy tickets for a ticket-mode event offer — mints the connected-account
420
442
  * PaymentIntent. Requires a signed-in customer so taxes and account ownership
@@ -562,6 +584,12 @@ interface MembershipPurchaseIntent {
562
584
  refToken: string | null;
563
585
  customerSessionClientSecret: string;
564
586
  connectedAccountId: string;
587
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
588
+ * created in. Load Stripe.js with the matching publishable key
589
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
590
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
591
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
592
+ stripeMode?: "test" | "live";
565
593
  }
566
594
  /** Buy a one-time membership — mints the connected-account PaymentIntent
567
595
  * (requires a signed-in customer; the charge lands on the operator's connected
@@ -607,6 +635,12 @@ interface MembershipSubscriptionIntent {
607
635
  amountCents: number;
608
636
  customerSessionClientSecret: string;
609
637
  connectedAccountId: string;
638
+ /** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
639
+ * created in. Load Stripe.js with the matching publishable key
640
+ * (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
641
+ * `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
642
+ * `testPublishableKey`. Absent on older gateway responses → treat as "live". */
643
+ stripeMode?: "test" | "live";
610
644
  }
611
645
  /** Start a recurring membership subscription — mints the subscription + its
612
646
  * first-invoice PaymentIntent on the operator's connected account (requires a