TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Type Alias BillingSubscription

    type BillingSubscription = {
        account: GenericID;
        addons: BillingSubscriptionAddOns;
        current_cycle: { end: string; start: string };
        past_due?: BillingPaymentPastDue;
        payment_error?: BillingPaymentError;
        plan: BillingPlan;
        processing: boolean;
        services: BillingSubscriptionServices;
        trial_end: string | null;
        upcoming_invoice_total: number;
    }
    Index

    Properties

    account: GenericID

    Account ID.

    Add-ons in the account's subscription.

    current_cycle: { end: string; start: string }

    Current cycle for the account's subscription.

    Type declaration

    • end: string

      Date when the current cycle ends.

    • start: string

      Date when the current cycle started.

    Past due information for recurring payment errors.

    payment_error?: BillingPaymentError

    Payment errors in the account's subscription.

    Account plan.

    processing: boolean

    Whether changes are still being processed and awaiting response from Stripe.

    Limits for each service in the account's subscription.

    trial_end: string | null

    Timestamp when the trial for the subscription ends if the subscription has a trial active.

    upcoming_invoice_total: number

    Value of the upcoming invoice.