@stigg/node-server-sdk - v4.22.1

    Type Alias SubscriptionInvoicePreviewFragment

    type SubscriptionInvoicePreviewFragment = {
        __typename?: "SubscriptionInvoicePreview";
        amountDue: { __typename?: "Money"; amount: number; currency: Currency };
        credits?:
            | {
                __typename?: "SubscriptionPreviewCredits";
                initial: { __typename?: "Money"; amount: number; currency: Currency };
                remaining: { __typename?: "Money"; amount: number; currency: Currency };
                used: { __typename?: "Money"; amount: number; currency: Currency };
            }
            | null;
        discount?: | { __typename?: "Money"; amount: number; currency: Currency }
        | null;
        discountDetails?:
            | {
                __typename?: "SubscriptionPreviewDiscount";
                durationInMonths?: number
                | null;
                durationType: DiscountDurationType;
                name?: string | null;
                type: DiscountType;
                value: number;
            }
            | null;
        lastUpdatedAt: any;
        lines: {
            __typename?: "SubscriptionInvoicePreviewLineItem";
            amount: { __typename?: "Money"; amount: number; currency: Currency };
            costDescription: string;
            description: string;
            hasSoftLimit?: boolean | null;
            lines?:
                | {
                    __typename?: "SubscriptionInvoicePreviewLineItemData";
                    costDescription: string;
                    description: string;
                    hasSoftLimit?: boolean
                    | null;
                    proration: boolean;
                    quantity?: number | null;
                    type: InvoiceLineItemType;
                    usageLimit?: number | null;
                }[]
                | null;
            period: {
                __typename?: "SubscriptionInvoicePreviewLineItemPeriod";
                end: any;
                start: any;
            };
            price?: { __typename?: "Price" } & PriceFragment
            | null;
            proration: boolean;
            quantity?: number | null;
            type: InvoiceLineItemType;
            unitPrice?:
                | { __typename?: "Money"; amount: number; currency: Currency }
                | null;
            usageLimit?: number | null;
        }[];
        minimumSpendAdjustment: {
            __typename?: "Money";
            amount: number;
            currency: Currency;
        };
        subTotal: { __typename?: "Money"; amount: number; currency: Currency };
        subTotalExcludingTax: {
            __typename?: "Money";
            amount: number;
            currency: Currency;
        };
        tax?: { __typename?: "Money"; amount: number; currency: Currency }
        | null;
        taxDetails?:
            | {
                __typename?: "SubscriptionPreviewTaxDetails";
                displayName: string;
                inclusive: boolean;
                percentage: number;
            }
            | null;
        total: { __typename?: "Money"; amount: number; currency: Currency };
        totalExcludingTax: {
            __typename?: "Money";
            amount: number;
            currency: Currency;
        };
    }
    Index

    Properties

    __typename?: "SubscriptionInvoicePreview"
    amountDue: { __typename?: "Money"; amount: number; currency: Currency }
    credits?:
        | {
            __typename?: "SubscriptionPreviewCredits";
            initial: { __typename?: "Money"; amount: number; currency: Currency };
            remaining: { __typename?: "Money"; amount: number; currency: Currency };
            used: { __typename?: "Money"; amount: number; currency: Currency };
        }
        | null
    discount?: { __typename?: "Money"; amount: number; currency: Currency } | null
    discountDetails?:
        | {
            __typename?: "SubscriptionPreviewDiscount";
            durationInMonths?: number
            | null;
            durationType: DiscountDurationType;
            name?: string | null;
            type: DiscountType;
            value: number;
        }
        | null
    lastUpdatedAt: any
    lines: {
        __typename?: "SubscriptionInvoicePreviewLineItem";
        amount: { __typename?: "Money"; amount: number; currency: Currency };
        costDescription: string;
        description: string;
        hasSoftLimit?: boolean | null;
        lines?:
            | {
                __typename?: "SubscriptionInvoicePreviewLineItemData";
                costDescription: string;
                description: string;
                hasSoftLimit?: boolean
                | null;
                proration: boolean;
                quantity?: number | null;
                type: InvoiceLineItemType;
                usageLimit?: number | null;
            }[]
            | null;
        period: {
            __typename?: "SubscriptionInvoicePreviewLineItemPeriod";
            end: any;
            start: any;
        };
        price?: { __typename?: "Price" } & PriceFragment
        | null;
        proration: boolean;
        quantity?: number | null;
        type: InvoiceLineItemType;
        unitPrice?:
            | { __typename?: "Money"; amount: number; currency: Currency }
            | null;
        usageLimit?: number | null;
    }[]
    minimumSpendAdjustment: {
        __typename?: "Money";
        amount: number;
        currency: Currency;
    }
    subTotal: { __typename?: "Money"; amount: number; currency: Currency }
    subTotalExcludingTax: {
        __typename?: "Money";
        amount: number;
        currency: Currency;
    }
    tax?: { __typename?: "Money"; amount: number; currency: Currency } | null
    taxDetails?:
        | {
            __typename?: "SubscriptionPreviewTaxDetails";
            displayName: string;
            inclusive: boolean;
            percentage: number;
        }
        | null
    total: { __typename?: "Money"; amount: number; currency: Currency }
    totalExcludingTax: { __typename?: "Money"; amount: number; currency: Currency }
    MMNEPVFCICPMFPCPTTAAATR