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

52 lines 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * This class represents a pricing phase, describing how a user pays at a point in time. */ class ProductPricingPhase { /** * Price for the current phase. */ price; /** * The billing period for which the given price applies. */ billingPeriod; /** * Number of cycles for which the billing period is applied. */ billingCycleCount; /** * Recurrence mode for the pricing phase. */ recurrenceMode; /** * Type of the pricing phase. */ type; /** * True, if the current phase is a trial period. False otherwise. */ isTrial; /** * True, if the current phase is an intro period. False otherwise. * The intro phase is one of single or recurrent discounted payments. */ isIntro; /** * True, if the current phase represents the base plan. False otherwise. */ isBasePlan; constructor(price, billingPeriod, billingCycleCount, recurrenceMode, type, isTrial, isIntro, isBasePlan) { this.price = price; this.billingPeriod = billingPeriod; this.billingCycleCount = billingCycleCount; this.recurrenceMode = recurrenceMode; this.type = type; this.isTrial = isTrial; this.isIntro = isIntro; this.isBasePlan = isBasePlan; } } exports.default = ProductPricingPhase; //# sourceMappingURL=ProductPricingPhase.js.map