Add subcription feature 4
This commit is contained in:
@@ -31,6 +31,9 @@ export interface UserRegistration {
|
||||
billing_cycle?: 'monthly' | 'yearly' | null; // Default: "monthly" - Billing cycle preference
|
||||
payment_method_id?: string | null; // Stripe payment method ID
|
||||
coupon_code?: string | null; // Promotional coupon code for discounts/trial extensions
|
||||
// Payment setup data (passed to complete-registration after 3DS)
|
||||
customer_id?: string | null; // Stripe customer ID from payment setup
|
||||
trial_period_days?: number | null; // Trial period from coupon
|
||||
// GDPR Consent fields
|
||||
terms_accepted?: boolean; // Default: true - Accept terms of service
|
||||
privacy_accepted?: boolean; // Default: true - Accept privacy policy
|
||||
@@ -68,6 +71,7 @@ export interface RegistrationStartResponse {
|
||||
plan_id?: string | null; // Plan ID
|
||||
payment_method_id?: string | null; // Payment method ID
|
||||
billing_cycle?: string | null; // Billing cycle
|
||||
trial_period_days?: number | null; // Trial period from coupon (e.g., 90 for PILOT2025)
|
||||
email?: string | null; // User email
|
||||
state_id?: string | null; // Registration state ID for tracking
|
||||
message?: string | null; // Message explaining what needs to be done
|
||||
|
||||
Reference in New Issue
Block a user