From b88f172355ce98827e9b285878d5f32ee287fe60 Mon Sep 17 00:00:00 2001 From: Loewy Date: Mon, 4 May 2026 14:07:16 -0700 Subject: [PATCH] add trial days to return --- src/index.tsx | 3 +++ src/operations/payments.gql | 1 + src/schema.gql | 1 + 3 files changed, 5 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 88ff9ac..2e3e936 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3270,6 +3270,7 @@ export type StripeProductGql = { export type StripeSubscriptionOptionsGql = { __typename?: "StripeSubscriptionOptionsGQL"; products: Array; + trialPeriodDays?: Maybe; }; export enum StripeSubscriptionStatusEnum { @@ -4727,6 +4728,7 @@ export type GetAvailableSubscriptionOptionsQuery = { __typename?: "Query"; getAvailableSubscriptionOptions: { __typename?: "StripeSubscriptionOptionsGQL"; + trialPeriodDays?: number | null; products: Array<{ __typename?: "StripeProductGQL"; id: string; @@ -9660,6 +9662,7 @@ export type CreateCustomerPortalSessionMutationOptions = export const GetAvailableSubscriptionOptionsDocument = gql` query GetAvailableSubscriptionOptions { getAvailableSubscriptionOptions { + trialPeriodDays products { id name diff --git a/src/operations/payments.gql b/src/operations/payments.gql index 09b087e..cc664e3 100644 --- a/src/operations/payments.gql +++ b/src/operations/payments.gql @@ -28,6 +28,7 @@ mutation CreateCustomerPortalSession { query GetAvailableSubscriptionOptions { getAvailableSubscriptionOptions { + trialPeriodDays products { id name diff --git a/src/schema.gql b/src/schema.gql index b41a99e..90d91d7 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -940,6 +940,7 @@ type UserRelationship { type StripeSubscriptionOptionsGQL { products: [StripeProductGQL!]! + trialPeriodDays: Int } type StripeProductGQL {