Add tier-aware subscription options
All checks were successful
Tests / Tests (pull_request) Successful in 9s
All checks were successful
Tests / Tests (pull_request) Successful in 9s
This commit is contained in:
@@ -3727,6 +3727,7 @@ export type StripeSubscriptionOptionsGql = {
|
||||
__typename?: "StripeSubscriptionOptionsGQL";
|
||||
appleIap: AppleIapSubscriptionOptionsGql;
|
||||
products: Array<StripeProductGql>;
|
||||
tierOptions: Array<SubscriptionTierPurchaseOptionGql>;
|
||||
trialPeriodDays?: Maybe<Scalars["Int"]["output"]>;
|
||||
};
|
||||
|
||||
@@ -3741,6 +3742,22 @@ export enum StripeSubscriptionStatusEnum {
|
||||
Unpaid = "UNPAID",
|
||||
}
|
||||
|
||||
export type SubscriptionTierPurchaseOptionGql = {
|
||||
__typename?: "SubscriptionTierPurchaseOptionGQL";
|
||||
appleProductId?: Maybe<Scalars["String"]["output"]>;
|
||||
billingInterval: Scalars["String"]["output"];
|
||||
currency?: Maybe<Scalars["String"]["output"]>;
|
||||
isAvailable: Scalars["Boolean"]["output"];
|
||||
isConfigured: Scalars["Boolean"]["output"];
|
||||
platform: Scalars["String"]["output"];
|
||||
recurringIntervalCount?: Maybe<Scalars["Int"]["output"]>;
|
||||
stripePriceId?: Maybe<Scalars["String"]["output"]>;
|
||||
stripeProductId?: Maybe<Scalars["String"]["output"]>;
|
||||
tierDisplayName: Scalars["String"]["output"];
|
||||
tierName: Scalars["String"]["output"];
|
||||
unitAmount?: Maybe<Scalars["Int"]["output"]>;
|
||||
};
|
||||
|
||||
export type SuccessfulAdd = {
|
||||
__typename?: "SuccessfulAdd";
|
||||
value: Scalars["Boolean"]["output"];
|
||||
@@ -5458,6 +5475,21 @@ export type GetAvailableSubscriptionOptionsQuery = {
|
||||
proMonthlyProductId?: string | null;
|
||||
productIds: Array<string>;
|
||||
};
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -49,6 +49,20 @@ query GetAvailableSubscriptionOptions {
|
||||
proMonthlyProductId
|
||||
productIds
|
||||
}
|
||||
tierOptions {
|
||||
tierName
|
||||
tierDisplayName
|
||||
billingInterval
|
||||
platform
|
||||
isConfigured
|
||||
isAvailable
|
||||
stripeProductId
|
||||
stripePriceId
|
||||
appleProductId
|
||||
currency
|
||||
unitAmount
|
||||
recurringIntervalCount
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user