Mayson Monorepo Documentation
    Preparing search index...

    Interface IUserWithSubscription

    Extended user interface with subscription data

    interface IUserWithSubscription {
        userId: string;
        email?: string;
        activeExchange?: ExchangeName;
        personality?: PersonalityId;
        preferredLanguage?: LanguageCode;
        emailNotifications?: IEmailNotificationPreferences;
        stripeCustomerId?: string;
        stripeSubscriptionId?: string;
        subscriptionPlan?: SubscriptionPlan;
        subscriptionStatus?: SubscriptionStatus;
        currentPeriodStart?: Date;
        currentPeriodEnd?: Date;
        maxSpendingLimit: number;
        alertThreshold: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    userId: string
    email?: string

    User's email address for notifications

    activeExchange?: ExchangeName
    personality?: PersonalityId
    preferredLanguage?: LanguageCode

    User's preferred language for AI responses

    emailNotifications?: IEmailNotificationPreferences

    Email notification preferences

    stripeCustomerId?: string

    Stripe customer ID

    stripeSubscriptionId?: string

    Stripe subscription ID

    subscriptionPlan?: SubscriptionPlan

    Current subscription plan

    subscriptionStatus?: SubscriptionStatus

    Current subscription status

    currentPeriodStart?: Date

    Current billing period start date

    currentPeriodEnd?: Date

    Current billing period end date

    maxSpendingLimit: number

    Maximum spending limit per month in USD

    alertThreshold: number

    Alert threshold percentage (0-100)