diff --git a/src/index.tsx b/src/index.tsx index e63c510..bc8e917 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3727,6 +3727,7 @@ export type StripeSubscriptionOptionsGql = { __typename?: "StripeSubscriptionOptionsGQL"; appleIap: AppleIapSubscriptionOptionsGql; products: Array; + tierOptions: Array; trialPeriodDays?: Maybe; }; @@ -3741,6 +3742,22 @@ export enum StripeSubscriptionStatusEnum { Unpaid = "UNPAID", } +export type SubscriptionTierPurchaseOptionGql = { + __typename?: "SubscriptionTierPurchaseOptionGQL"; + appleProductId?: Maybe; + billingInterval: Scalars["String"]["output"]; + currency?: Maybe; + isAvailable: Scalars["Boolean"]["output"]; + isConfigured: Scalars["Boolean"]["output"]; + platform: Scalars["String"]["output"]; + recurringIntervalCount?: Maybe; + stripePriceId?: Maybe; + stripeProductId?: Maybe; + tierDisplayName: Scalars["String"]["output"]; + tierName: Scalars["String"]["output"]; + unitAmount?: Maybe; +}; + export type SuccessfulAdd = { __typename?: "SuccessfulAdd"; value: Scalars["Boolean"]["output"]; @@ -5458,6 +5475,21 @@ export type GetAvailableSubscriptionOptionsQuery = { proMonthlyProductId?: string | null; productIds: Array; }; + tierOptions: Array<{ + __typename?: "SubscriptionTierPurchaseOptionGQL"; + tierName: string; + tierDisplayName: string; + billingInterval: string; + platform: string; + isConfigured: boolean; + isAvailable: boolean; + stripeProductId?: string | null; + stripePriceId?: string | null; + appleProductId?: string | null; + currency?: string | null; + unitAmount?: number | null; + recurringIntervalCount?: number | null; + }>; }; }; @@ -12297,6 +12329,20 @@ export const GetAvailableSubscriptionOptionsDocument = gql` proMonthlyProductId productIds } + tierOptions { + tierName + tierDisplayName + billingInterval + platform + isConfigured + isAvailable + stripeProductId + stripePriceId + appleProductId + currency + unitAmount + recurringIntervalCount + } } } `; diff --git a/src/operations/payments.gql b/src/operations/payments.gql index 2b6a547..ec83066 100644 --- a/src/operations/payments.gql +++ b/src/operations/payments.gql @@ -49,6 +49,20 @@ query GetAvailableSubscriptionOptions { proMonthlyProductId productIds } + tierOptions { + tierName + tierDisplayName + billingInterval + platform + isConfigured + isAvailable + stripeProductId + stripePriceId + appleProductId + currency + unitAmount + recurringIntervalCount + } } } diff --git a/src/schema.gql b/src/schema.gql index 52cd2c1..6f9ced1 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -1168,6 +1168,7 @@ type StripeSubscriptionOptionsGQL { products: [StripeProductGQL!]! trialPeriodDays: Int appleIap: AppleIapSubscriptionOptionsGQL! + tierOptions: [SubscriptionTierPurchaseOptionGQL!]! } type StripeProductGQL { @@ -1194,6 +1195,21 @@ type AppleIapSubscriptionOptionsGQL { productIds: [String!]! } +type SubscriptionTierPurchaseOptionGQL { + tierName: String! + tierDisplayName: String! + billingInterval: String! + platform: String! + isConfigured: Boolean! + isAvailable: Boolean! + stripeProductId: String + stripePriceId: String + appleProductId: String + currency: String + unitAmount: Int + recurringIntervalCount: Int +} + type UserSubscriptionStatusGQL { hasActiveSubscription: Boolean! entitlementSource: EntitlementSourceTypeEnum