Move core signup service from marketplace to billing module, add automatic Stripe product/price sync for tiers, create loyalty-specific signup wizard, and enforce that platform is always explicitly known (no silent defaulting to primary/hardcoded ID). Key changes: - New billing SignupService with separated account/store creation steps - Stripe auto-sync on tier create/update (new prices, archive old) - Loyalty signup template (Plan → Account → Store → Payment) - platform_code is now required throughout the signup flow - Pricing/signup pages return 404 if platform not detected - OMS-specific logic (Letzshop claiming) stays in marketplace module - Bootstrap script: scripts/seed/sync_stripe_products.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
75 lines
1.8 KiB
Python
75 lines
1.8 KiB
Python
# app/modules/billing/services/__init__.py
|
|
"""
|
|
Billing module services.
|
|
|
|
Provides subscription management, Stripe integration, and admin operations.
|
|
"""
|
|
|
|
from app.modules.billing.services.admin_subscription_service import (
|
|
AdminSubscriptionService,
|
|
admin_subscription_service,
|
|
)
|
|
from app.modules.billing.services.billing_service import (
|
|
BillingService,
|
|
billing_service,
|
|
)
|
|
from app.modules.billing.services.feature_service import (
|
|
FeatureService,
|
|
feature_service,
|
|
)
|
|
from app.modules.billing.services.platform_pricing_service import (
|
|
PlatformPricingService,
|
|
platform_pricing_service,
|
|
)
|
|
from app.modules.billing.services.signup_service import (
|
|
SignupService,
|
|
signup_service,
|
|
)
|
|
from app.modules.billing.services.store_platform_sync_service import (
|
|
StorePlatformSync,
|
|
store_platform_sync,
|
|
)
|
|
from app.modules.billing.services.stripe_service import (
|
|
StripeService,
|
|
stripe_service,
|
|
)
|
|
from app.modules.billing.services.subscription_service import (
|
|
SubscriptionService,
|
|
subscription_service,
|
|
)
|
|
from app.modules.billing.services.usage_service import (
|
|
LimitCheckData,
|
|
TierInfoData,
|
|
UpgradeTierData,
|
|
UsageData,
|
|
UsageMetricData,
|
|
UsageService,
|
|
usage_service,
|
|
)
|
|
|
|
__all__ = [
|
|
"SubscriptionService",
|
|
"subscription_service",
|
|
"StorePlatformSync",
|
|
"store_platform_sync",
|
|
"StripeService",
|
|
"stripe_service",
|
|
"AdminSubscriptionService",
|
|
"admin_subscription_service",
|
|
"BillingService",
|
|
"billing_service",
|
|
"FeatureService",
|
|
"feature_service",
|
|
"PlatformPricingService",
|
|
"platform_pricing_service",
|
|
"UsageService",
|
|
"usage_service",
|
|
"UsageData",
|
|
"UsageMetricData",
|
|
"TierInfoData",
|
|
"UpgradeTierData",
|
|
"LimitCheckData",
|
|
"SignupService",
|
|
"signup_service",
|
|
]
|