@nativescript/payments
Version: 
In-App Purchase and Subscriptions for NativeScript
32 lines (31 loc) • 905 B
TypeScript
type ProductDetails = com.android.billingclient.api.ProductDetails;
export declare enum RecurrenceMode {
    FINITE_RECURRING = 2,
    INFINITE_RECURRING = 1,
    NON_RECURRING = 3
}
export declare abstract class BaseItem {
    nativeValue: ProductDetails | SKProduct;
    abstract readonly debug: string | null;
    itemId: string;
    localizedTitle: string;
    localizedDescription: string;
    priceAmount: number;
    priceFormatted: string;
    priceCurrencyCode: string;
    /** Android only */
    type: string;
    offerToken: string;
    pricingPhases: Array<{
        priceAmount: number;
        priceFormatted: string;
        priceCurrencyCode: string;
        billingPeriod: string;
        billingCycleCount: number;
        recurrenceMode: RecurrenceMode;
    }>;
    /** iOS only */
    isFamilyShareable: boolean;
    constructor(nativeValue: ProductDetails | SKProduct);
}
export {};