martmull
2025-06-05 20:56:55 +02:00
committed by GitHub
parent c75f10bc33
commit b2c57c5dcc
29 changed files with 650 additions and 237 deletions
@@ -0,0 +1,19 @@
import { gql } from '@apollo/client';
export const CHECKOUT_SESSION = gql`
mutation CheckoutSession(
$recurringInterval: SubscriptionInterval!
$successUrlPath: String
$plan: BillingPlanKey!
$requirePaymentMethod: Boolean!
) {
checkoutSession(
recurringInterval: $recurringInterval
successUrlPath: $successUrlPath
plan: $plan
requirePaymentMethod: $requirePaymentMethod
) {
url
}
}
`;
@@ -0,0 +1,10 @@
import { gql } from '@apollo/client';
export const END_SUBSCRIPTION_TRIAL_PERIOD = gql`
mutation EndSubscriptionTrialPeriod {
endSubscriptionTrialPeriod {
status
hasPaymentMethod
}
}
`;
@@ -0,0 +1,9 @@
import { gql } from '@apollo/client';
export const SWITCH_SUBSCRIPTION_TO_ENTERPRISE_PLAN = gql`
mutation SwitchSubscriptionToEnterprisePlan {
switchToEnterprisePlan {
success
}
}
`;
@@ -0,0 +1,9 @@
import { gql } from '@apollo/client';
export const SWITCH_SUBSCRIPTION_TO_YEARLY_INTERVAL = gql`
mutation SwitchSubscriptionToYearlyInterval {
switchToYearlyInterval {
success
}
}
`;