add createCustomerPortalSession
All checks were successful
Tests / Tests (pull_request) Successful in 10s

This commit is contained in:
2026-04-30 11:44:34 -07:00
parent b0c62f6e80
commit 8367c2d0cd
3 changed files with 86 additions and 0 deletions

View File

@@ -1117,6 +1117,9 @@ type Mutation {
ensureStripeCustomerExists: UserGQL!
deleteUser: Boolean!
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
createCustomerPortalSession(
returnUrl: String = null
): CreateCustomerPortalSessionResultGQL!
cancelSubscription: UserSubscriptionStatusGQL!
grantManualEntitlement(
userId: Int!
@@ -1256,6 +1259,10 @@ type CreateSubscriptionResultGQL {
sessionId: String!
}
type CreateCustomerPortalSessionResultGQL {
portalUrl: String!
}
enum CancellationReasonEnum {
DONT_PLAY_ENOUGH
TOO_EXPENSIVE