@stigg/react-sdk - v10.7.0

    Type Alias CustomerPortalSubscriptionFragment

    type CustomerPortalSubscriptionFragment = {
        __typename?: "CustomerPortalSubscription";
        addons: (
            { __typename?: "CustomerPortalAddon" } & CustomerPortalSubscriptionAddonFragment
        )[];
        billingPeriodRange?:
            | { __typename?: "DateRange"; end?: any
            | null; start?: any | null }
            | null;
        planId: string;
        planName: string;
        previewNextInvoice?:
            | {
                __typename?: "SubscriptionInvoicePreview";
                amountDue: { __typename?: "Money"; amount: number; currency: Currency };
                lines: {
                    __typename?: "SubscriptionInvoicePreviewLineItem";
                    period: {
                        __typename?: "SubscriptionInvoicePreviewLineItemPeriod";
                        end: any;
                        start: any;
                    };
                    price?: | {
                        __typename?: "Price";
                        feature?: { __typename?: "Feature"; refId: string }
                        | null;
                    }
                    | null;
                    quantity?: number
                    | null;
                }[];
                total: { __typename?: "Money"; amount: number; currency: Currency };
            }
            | null;
        prices: (
            { __typename?: "CustomerPortalSubscriptionPrice" } & CustomerPortalSubscriptionPriceFragment
        )[];
        pricing: {
            __typename?: "CustomerPortalSubscriptionPricing";
            billingModel?: BillingModel | null;
            billingPeriod?: BillingPeriod | null;
            creditRate?:
                | { __typename?: "CreditRate"; amount: number; currencyId: string }
                | null;
            feature?:
                | {
                    __typename?: "CustomerPortalPricingFeature";
                    displayName: string;
                    featureUnits?: string
                    | null;
                    featureUnitsPlural?: string | null;
                }
                | null;
            price?: | { __typename?: "Money"; amount: number; currency: Currency }
            | null;
            pricingType: PricingType;
            unitQuantity?: number | null;
            usageBasedEstimatedBill?: number | null;
        };
        pricingType: PricingType;
        scheduledUpdates?: | (
            { __typename?: "SubscriptionScheduledUpdate" } & CustomerPortalSubscriptionScheduledUpdateDataFragment
        )[]
        | null;
        status: SubscriptionStatus;
        subscriptionId: string;
        totalPrice?:
            | {
                __typename?: "CustomerSubscriptionTotalPrice";
                addonsTotal: { __typename?: "Money"; amount: number; currency: Currency };
                subTotal: { __typename?: "Money"; amount: number; currency: Currency };
                total: { __typename?: "Money"; amount: number; currency: Currency };
            }
            | null;
        trialRemainingDays?: number
        | null;
    }
    Index

    Properties

    __typename?: "CustomerPortalSubscription"
    addons: (
        { __typename?: "CustomerPortalAddon" } & CustomerPortalSubscriptionAddonFragment
    )[]
    billingPeriodRange?:
        | { __typename?: "DateRange"; end?: any
        | null; start?: any | null }
        | null
    planId: string
    planName: string
    previewNextInvoice?:
        | {
            __typename?: "SubscriptionInvoicePreview";
            amountDue: { __typename?: "Money"; amount: number; currency: Currency };
            lines: {
                __typename?: "SubscriptionInvoicePreviewLineItem";
                period: {
                    __typename?: "SubscriptionInvoicePreviewLineItemPeriod";
                    end: any;
                    start: any;
                };
                price?: | {
                    __typename?: "Price";
                    feature?: { __typename?: "Feature"; refId: string }
                    | null;
                }
                | null;
                quantity?: number
                | null;
            }[];
            total: { __typename?: "Money"; amount: number; currency: Currency };
        }
        | null
    prices: (
        { __typename?: "CustomerPortalSubscriptionPrice" } & CustomerPortalSubscriptionPriceFragment
    )[]
    pricing: {
        __typename?: "CustomerPortalSubscriptionPricing";
        billingModel?: BillingModel | null;
        billingPeriod?: BillingPeriod | null;
        creditRate?:
            | { __typename?: "CreditRate"; amount: number; currencyId: string }
            | null;
        feature?:
            | {
                __typename?: "CustomerPortalPricingFeature";
                displayName: string;
                featureUnits?: string
                | null;
                featureUnitsPlural?: string | null;
            }
            | null;
        price?: { __typename?: "Money"; amount: number; currency: Currency }
        | null;
        pricingType: PricingType;
        unitQuantity?: number | null;
        usageBasedEstimatedBill?: number | null;
    }
    pricingType: PricingType
    scheduledUpdates?:
        | (
            { __typename?: "SubscriptionScheduledUpdate" } & CustomerPortalSubscriptionScheduledUpdateDataFragment
        )[]
        | null
    subscriptionId: string
    totalPrice?:
        | {
            __typename?: "CustomerSubscriptionTotalPrice";
            addonsTotal: { __typename?: "Money"; amount: number; currency: Currency };
            subTotal: { __typename?: "Money"; amount: number; currency: Currency };
            total: { __typename?: "Money"; amount: number; currency: Currency };
        }
        | null
    trialRemainingDays?: number | null
    MMNEPVFCICPMFPCPTTAAATR