UNPKG

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

39 lines 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Entitlement { id; productId; isActive; renewState; source; startedDate; renewsCount; grantType; transactions; expirationDate; trialStartDate; firstPurchaseDate; lastPurchaseDate; autoRenewDisableDate; lastActivatedOfferCode; constructor(id, productId, isActive, renewState, source, startedTimestamp, renewsCount, grantType, transactions, expirationTimestamp, trialStartTimestamp, firstPurchaseTimestamp, lastPurchaseTimestamp, autoRenewDisableTimestamp, lastActivatedOfferCode) { this.id = id; this.productId = productId; this.isActive = isActive; this.renewState = renewState; this.source = source; this.startedDate = new Date(startedTimestamp); this.expirationDate = expirationTimestamp ? new Date(expirationTimestamp) : undefined; this.renewsCount = renewsCount; this.grantType = grantType; this.transactions = transactions; this.expirationDate = expirationTimestamp ? new Date(expirationTimestamp) : undefined; this.trialStartDate = trialStartTimestamp ? new Date(trialStartTimestamp) : undefined; this.firstPurchaseDate = firstPurchaseTimestamp ? new Date(firstPurchaseTimestamp) : undefined; this.lastPurchaseDate = lastPurchaseTimestamp ? new Date(lastPurchaseTimestamp) : undefined; this.autoRenewDisableDate = autoRenewDisableTimestamp ? new Date(autoRenewDisableTimestamp) : undefined; this.lastActivatedOfferCode = lastActivatedOfferCode; } } exports.default = Entitlement; //# sourceMappingURL=Entitlement.js.map