cordova-plugin-qonversion
Version:
Qonversion Cordova Plugin
53 lines (52 loc) • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProductPricingPhase = void 0;
/**
* 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.ProductPricingPhase = ProductPricingPhase;