@lunora/react 1.0.0-alpha.107 → 1.0.0-alpha.108

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.
@@ -20,6 +20,16 @@ interface Subscription {
20
20
  readonly currentPeriodStart?: number;
21
21
  readonly id: string;
22
22
  readonly priceId: string;
23
+ /**
24
+ * EVERY price/product id the subscription bills, not just the primary one. A Stripe
25
+ * subscription can carry an add-on or a metered price alongside the base plan, and a
26
+ * customer paying for one is entitled to it — so entitlements test membership here.
27
+ *
28
+ * Optional because the webhook path and any pre-existing stored row carry only
29
+ * `priceId`; absent reads as `[priceId]`, which is exactly right for the single-item
30
+ * case every other provider has.
31
+ */
32
+ readonly priceIds?: ReadonlyArray<string>;
23
33
  readonly provider: ProviderId;
24
34
  readonly quantity: number;
25
35
  readonly referenceId: string;
package/dist/payment.d.ts CHANGED
@@ -20,6 +20,16 @@ interface Subscription {
20
20
  readonly currentPeriodStart?: number;
21
21
  readonly id: string;
22
22
  readonly priceId: string;
23
+ /**
24
+ * EVERY price/product id the subscription bills, not just the primary one. A Stripe
25
+ * subscription can carry an add-on or a metered price alongside the base plan, and a
26
+ * customer paying for one is entitled to it — so entitlements test membership here.
27
+ *
28
+ * Optional because the webhook path and any pre-existing stored row carry only
29
+ * `priceId`; absent reads as `[priceId]`, which is exactly right for the single-item
30
+ * case every other provider has.
31
+ */
32
+ readonly priceIds?: ReadonlyArray<string>;
23
33
  readonly provider: ProviderId;
24
34
  readonly quantity: number;
25
35
  readonly referenceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react",
3
- "version": "1.0.0-alpha.107",
3
+ "version": "1.0.0-alpha.108",
4
4
  "description": "React hooks for Lunora: useQuery, useMutation, useSubscription, and useAuth",
5
5
  "keywords": [
6
6
  "cloudflare",