Files
chat_backend/llm_be/finance/urls.py
T
westfarn a6c45b0882
CI / test (pull_request) Successful in 10s
Unit Tests / test (pull_request) Successful in 10s
Add multi-plan subscriptions, quotas, and token usage APIs
Implements #16/#17/#36: Founders/Standard/Pro/Business/Backer catalog,
Backer email whitelist, prompt-window + token-period gates, and
tokens_in/out on conversation/prompt + subscription usage APIs.
2026-07-31 06:21:54 -05:00

50 lines
1.0 KiB
Python

from django.urls import path
from finance.views import (
CreateBillingPortalSessionView,
CreateCheckoutSessionView,
InvoiceListView,
PaymentListView,
PlanListView,
StripeWebhookView,
SubscriptionMeView,
)
urlpatterns = [
path(
"checkout/",
CreateCheckoutSessionView.as_view(),
name="finance_checkout",
),
path(
"portal/",
CreateBillingPortalSessionView.as_view(),
name="finance_portal",
),
path(
"invoices/",
InvoiceListView.as_view(),
name="finance_invoices",
),
path(
"payments/",
PaymentListView.as_view(),
name="finance_payments",
),
path(
"plans/",
PlanListView.as_view(),
name="finance_plans",
),
path(
"subscription/",
SubscriptionMeView.as_view(),
name="finance_subscription_me",
),
path(
"webhooks/stripe/",
StripeWebhookView.as_view(),
name="finance_stripe_webhook",
),
]