@bowlos/reservations 0.23.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.
- package/HEADLESS.md +87 -0
- package/README.md +18 -0
- package/dist/{account-B9tDfXke.d.ts → account-5oZrwcaq.d.ts} +1 -1
- package/dist/{account-C9SvfE3q.d.cts → account-nHac98qx.d.cts} +1 -1
- package/dist/{catalog-BxyPJdBL.d.ts → catalog-BMdk6ZSC.d.ts} +18 -1
- package/dist/{catalog-D1VoVaNe.d.cts → catalog-Ca7eN9CP.d.cts} +18 -1
- package/dist/{chunk-S5T4OCBY.js → chunk-5JWJBLPE.js} +2 -2
- package/dist/{chunk-S5T4OCBY.js.map → chunk-5JWJBLPE.js.map} +1 -1
- package/dist/{chunk-CRETIPLS.js → chunk-7OHHK65Q.js} +11 -4
- package/dist/chunk-7OHHK65Q.js.map +1 -0
- package/dist/components.cjs +174 -18
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +44 -26
- package/dist/components.d.ts +44 -26
- package/dist/components.js +171 -23
- package/dist/components.js.map +1 -1
- package/dist/{data-BKlgn8Ln.d.cts → data-CVq9zXz7.d.cts} +34 -0
- package/dist/{data-BKlgn8Ln.d.ts → data-CVq9zXz7.d.ts} +34 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/payments.cjs +4 -2
- package/dist/payments.cjs.map +1 -1
- package/dist/payments.d.cts +11 -3
- package/dist/payments.d.ts +11 -3
- package/dist/payments.js +4 -2
- package/dist/payments.js.map +1 -1
- package/dist/{react--BT8olOw.d.cts → react-Bhpzhr01.d.cts} +2 -2
- package/dist/{react-BvuU4nzT.d.ts → react-C9bUP9LB.d.ts} +2 -2
- package/dist/react.cjs +8 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +18 -6
- package/dist/react.d.ts +18 -6
- package/dist/react.js +3 -3
- package/package.json +2 -2
- package/templates/center-site/package.json +1 -1
- 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
|