2025-07-07 13:12:36 -07:00
|
|
|
mutation EnsureStripeCustomerExists {
|
|
|
|
ensureStripeCustomerExists {
|
|
|
|
id
|
|
|
|
firebaseUid
|
|
|
|
username
|
|
|
|
stripeCustomerId
|
|
|
|
profileImageUri
|
|
|
|
isAdmin
|
|
|
|
fargoRating
|
|
|
|
videosPrivateByDefault
|
|
|
|
createdAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
2025-07-09 11:31:26 -07:00
|
|
|
|
|
|
|
mutation CreateSubscription($priceId: String!) {
|
|
|
|
createSubscription(priceId: $priceId) {
|
|
|
|
checkoutUrl
|
|
|
|
sessionId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query GetAvailableSubscriptionOptions {
|
|
|
|
getAvailableSubscriptionOptions {
|
|
|
|
products {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
description
|
|
|
|
active
|
|
|
|
prices {
|
|
|
|
id
|
|
|
|
currency
|
|
|
|
unitAmount
|
|
|
|
recurringInterval
|
|
|
|
recurringIntervalCount
|
|
|
|
type
|
|
|
|
active
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-08-14 14:02:36 -07:00
|
|
|
|
|
|
|
query GetSubscriptionStatus {
|
|
|
|
getUserSubscriptionStatus {
|
|
|
|
hasActiveSubscription
|
|
|
|
subscriptionStatus
|
|
|
|
currentPeriodStart
|
|
|
|
currentPeriodEnd
|
|
|
|
validUntil
|
|
|
|
stripePriceId
|
|
|
|
stripeSubscriptionId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation CancelSubscription {
|
|
|
|
cancelSubscription {
|
|
|
|
hasActiveSubscription
|
|
|
|
subscriptionStatus
|
|
|
|
currentPeriodStart
|
|
|
|
currentPeriodEnd
|
|
|
|
validUntil
|
|
|
|
stripePriceId
|
|
|
|
stripeSubscriptionId
|
|
|
|
}
|
|
|
|
}
|