react-native-qonversion
Version:
Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co
22 lines (21 loc) • 1.13 kB
TypeScript
import { EntitlementSource, EntitlementRenewState, EntitlementGrantType } from "./enums";
import Transaction from "./Transaction";
declare class Entitlement {
id: string;
productId: string;
isActive: boolean;
renewState: EntitlementRenewState;
source: EntitlementSource;
startedDate: Date;
renewsCount: number;
grantType: EntitlementGrantType;
transactions: Array<Transaction>;
expirationDate?: Date;
trialStartDate?: Date;
firstPurchaseDate?: Date;
lastPurchaseDate?: Date;
autoRenewDisableDate?: Date;
lastActivatedOfferCode?: string;
constructor(id: string, productId: string, isActive: boolean, renewState: EntitlementRenewState, source: EntitlementSource, startedTimestamp: number, renewsCount: number, grantType: EntitlementGrantType, transactions: Array<Transaction>, expirationTimestamp: number | undefined, trialStartTimestamp: number | undefined, firstPurchaseTimestamp: number | undefined, lastPurchaseTimestamp: number | undefined, autoRenewDisableTimestamp: number | undefined, lastActivatedOfferCode: string | undefined);
}
export default Entitlement;