- Auto-fixed 4,496 lint issues (import sorting, modern syntax, etc.) - Added ignore rules for patterns intentional in this codebase: E402 (late imports), E712 (SQLAlchemy filters), B904 (raise from), SIM108/SIM105/SIM117 (readability preferences) - Added per-file ignores for tests and scripts - Excluded broken scripts/rename_terminology.py (has curly quotes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
122 lines
3.7 KiB
Python
122 lines
3.7 KiB
Python
# app/modules/billing/schemas/__init__.py
|
|
"""
|
|
Billing module Pydantic schemas for API request/response validation.
|
|
|
|
This is the canonical location for billing schemas.
|
|
|
|
Usage:
|
|
from app.modules.billing.schemas import (
|
|
MerchantSubscriptionCreate,
|
|
MerchantSubscriptionResponse,
|
|
TierInfo,
|
|
)
|
|
"""
|
|
|
|
from app.modules.billing.schemas.billing import (
|
|
BillingHistoryListResponse,
|
|
# Billing History schemas
|
|
BillingHistoryResponse,
|
|
BillingHistoryWithMerchant,
|
|
# Checkout & Portal schemas
|
|
CheckoutRequest,
|
|
CheckoutResponse,
|
|
FeatureCatalogResponse,
|
|
# Feature Catalog schemas
|
|
FeatureDeclarationResponse,
|
|
# Merchant Feature Override schemas
|
|
MerchantFeatureOverrideEntry,
|
|
MerchantFeatureOverrideResponse,
|
|
MerchantSubscriptionAdminCreate,
|
|
# Merchant Subscription Admin schemas
|
|
MerchantSubscriptionAdminResponse,
|
|
MerchantSubscriptionAdminUpdate,
|
|
MerchantSubscriptionListResponse,
|
|
MerchantSubscriptionWithMerchant,
|
|
PortalSessionResponse,
|
|
# Stats schemas
|
|
SubscriptionStatsResponse,
|
|
SubscriptionTierBase,
|
|
SubscriptionTierCreate,
|
|
SubscriptionTierListResponse,
|
|
SubscriptionTierResponse,
|
|
SubscriptionTierUpdate,
|
|
# Subscription Tier Admin schemas
|
|
TierFeatureLimitEntry,
|
|
)
|
|
from app.modules.billing.schemas.subscription import (
|
|
ChangeTierRequest,
|
|
ChangeTierResponse,
|
|
FeatureCheckResponse,
|
|
# Feature summary schemas
|
|
FeatureSummaryResponse,
|
|
# Limit check schemas
|
|
LimitCheckResult,
|
|
MerchantPortalAvailableTiersResponse,
|
|
MerchantPortalInvoiceListResponse,
|
|
MerchantPortalSubscriptionDetailResponse,
|
|
# Merchant portal schemas
|
|
MerchantPortalSubscriptionItem,
|
|
MerchantPortalSubscriptionListResponse,
|
|
# Subscription schemas
|
|
MerchantSubscriptionCreate,
|
|
MerchantSubscriptionResponse,
|
|
MerchantSubscriptionStatusResponse,
|
|
MerchantSubscriptionUpdate,
|
|
# Tier schemas
|
|
TierFeatureLimitResponse,
|
|
TierInfo,
|
|
)
|
|
|
|
__all__ = [
|
|
# Tier schemas (subscription.py)
|
|
"TierFeatureLimitResponse",
|
|
"TierInfo",
|
|
# Subscription schemas (subscription.py)
|
|
"MerchantSubscriptionCreate",
|
|
"MerchantSubscriptionUpdate",
|
|
"MerchantSubscriptionResponse",
|
|
"MerchantSubscriptionStatusResponse",
|
|
# Feature summary schemas (subscription.py)
|
|
"FeatureSummaryResponse",
|
|
# Limit check schemas (subscription.py)
|
|
"LimitCheckResult",
|
|
"FeatureCheckResponse",
|
|
# Merchant portal schemas (subscription.py)
|
|
"MerchantPortalSubscriptionItem",
|
|
"MerchantPortalSubscriptionListResponse",
|
|
"MerchantPortalSubscriptionDetailResponse",
|
|
"MerchantPortalAvailableTiersResponse",
|
|
"ChangeTierRequest",
|
|
"ChangeTierResponse",
|
|
"MerchantPortalInvoiceListResponse",
|
|
# Subscription Tier Admin schemas (billing.py)
|
|
"TierFeatureLimitEntry",
|
|
"SubscriptionTierBase",
|
|
"SubscriptionTierCreate",
|
|
"SubscriptionTierUpdate",
|
|
"SubscriptionTierResponse",
|
|
"SubscriptionTierListResponse",
|
|
# Merchant Subscription Admin schemas (billing.py)
|
|
"MerchantSubscriptionAdminResponse",
|
|
"MerchantSubscriptionWithMerchant",
|
|
"MerchantSubscriptionListResponse",
|
|
"MerchantSubscriptionAdminCreate",
|
|
"MerchantSubscriptionAdminUpdate",
|
|
# Merchant Feature Override schemas (billing.py)
|
|
"MerchantFeatureOverrideEntry",
|
|
"MerchantFeatureOverrideResponse",
|
|
# Billing History schemas (billing.py)
|
|
"BillingHistoryResponse",
|
|
"BillingHistoryWithMerchant",
|
|
"BillingHistoryListResponse",
|
|
# Checkout & Portal schemas (billing.py)
|
|
"CheckoutRequest",
|
|
"CheckoutResponse",
|
|
"PortalSessionResponse",
|
|
# Stats schemas (billing.py)
|
|
"SubscriptionStatsResponse",
|
|
# Feature Catalog schemas (billing.py)
|
|
"FeatureDeclarationResponse",
|
|
"FeatureCatalogResponse",
|
|
]
|