2023-03-15 11:51:30 +01:00
|
|
|
import { router } from '@/helpers/server/trpc'
|
|
|
|
|
import { createCheckoutSession } from './createCheckoutSession'
|
|
|
|
|
import { getBillingPortalUrl } from './getBillingPortalUrl'
|
|
|
|
|
import { getSubscription } from './getSubscription'
|
|
|
|
|
import { getUsage } from './getUsage'
|
|
|
|
|
import { listInvoices } from './listInvoices'
|
|
|
|
|
import { updateSubscription } from './updateSubscription'
|
2023-04-28 10:55:15 +02:00
|
|
|
import { createCustomCheckoutSession } from './createCustomCheckoutSession'
|
2023-02-17 16:19:39 +01:00
|
|
|
|
|
|
|
|
export const billingRouter = router({
|
|
|
|
|
getBillingPortalUrl,
|
|
|
|
|
listInvoices,
|
|
|
|
|
createCheckoutSession,
|
|
|
|
|
updateSubscription,
|
|
|
|
|
getSubscription,
|
|
|
|
|
getUsage,
|
2023-04-28 10:55:15 +02:00
|
|
|
createCustomCheckoutSession,
|
2023-02-17 16:19:39 +01:00
|
|
|
})
|