UNPKG

@chargebee/react-native-chargebee

Version:
88 lines 2.33 kB
/** * Chargebee SDK Config parameters. */ export interface ChargebeeConfig { site: string; publishableApiKey: string; androidSdkKey: string; iOsSdkKey: string; } export interface AuthenticationDetail { appId: string | null; status: string | null; version: string | null; } export interface Product { readonly id: string; readonly title: string; readonly price: number; readonly currencyCode: string; } export interface Purchase { readonly subscriptionId: string; readonly planId: string; readonly status: string; } export interface OneTimePurchase { readonly invoiceId: string; readonly chargeId: string; readonly customerId: string; } export declare enum ProductType { UNKNOWN = "unknown", CONSUMABLE = "consumable", NON_CONSUMABLE = "non_consumable", NON_RENEWING_SUBSCRIPTION = "non_renewing_subscription" } export interface Subscription { readonly id: string; readonly customerId: string; readonly status: string; readonly planId: string | null; readonly planAmount: number | null; readonly activatedAt: number | null; readonly currentTermStart: number | null; readonly currentTermEnd: number | null; } export interface SubscriptionsRequest { customer_id?: string; subscription_id?: string; status?: string; } export interface EntitlementsRequest { subscriptionId: string; } export interface ProductIdentifiersRequest { limit?: string; offset?: string; } export interface Customer { id?: string; firstName?: string; lastName?: string; email?: string; } export declare enum StoreStatus { ACTIVE = 0, IN_TRIAL = 1, CANCELLED = 2, PAUSED = 3 } export interface RestoredSubscription { readonly subscriptionId: string; readonly planId: string; readonly storeStatus: StoreStatus; } export interface Entitlement { readonly subscriptionId: string; readonly featureId: string; readonly featureName: string; readonly featureDescription: string; readonly featureType: string; readonly value: string; readonly name: string; readonly isOverridden: boolean; readonly isEnabled: boolean; } export declare function sdkKeyForPlatform(androidSdkKey: string, iOsSdkKey: string): string; //# sourceMappingURL=Purchases.d.ts.map