cordova-plugin-qonversion
Version:
Qonversion Cordova Plugin
77 lines (76 loc) • 2.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProductOfferDetails = void 0;
/**
* This class contains all the information about the Google subscription offer details.
* It might be either a plain base plan details or a base plan with the concrete offer details.
*/
class ProductOfferDetails {
/**
* The identifier of the current base plan.
*/
basePlanId;
/**
* The identifier of the concrete offer, to which these details belong.
* Null, if these are plain base plan details.
*/
offerId;
/**
* A token to purchase the current offer.
*/
offerToken;
/**
* List of tags set for the current offer.
*/
tags;
/**
* A time-ordered list of pricing phases for the current offer.
*/
pricingPhases;
/**
* A base plan phase details.
*/
basePlan;
/**
* Additional details of an installment plan, if exists.
*/
installmentPlanDetails;
/**
* A trial phase details, if exists.
*/
introPhase;
/**
* An intro phase details, if exists.
* The intro phase is one of single or recurrent discounted payments.
*/
trialPhase;
/**
* True, if there is a trial phase in the current offer. False otherwise.
*/
hasTrial;
/**
* True, if there is any intro phase in the current offer. False otherwise.
* The intro phase is one of single or recurrent discounted payments.
*/
hasIntro;
/**
* True, if there is any trial or intro phase in the current offer. False otherwise.
* The intro phase is one of single or recurrent discounted payments.
*/
hasTrialOrIntro;
constructor(basePlanId, offerId, offerToken, tags, pricingPhases, basePlan, installmentPlanDetails, introPhase, trialPhase, hasTrial, hasIntro, hasTrialOrIntro) {
this.basePlanId = basePlanId;
this.offerId = offerId;
this.offerToken = offerToken;
this.tags = tags;
this.pricingPhases = pricingPhases;
this.basePlan = basePlan;
this.installmentPlanDetails = installmentPlanDetails;
this.introPhase = introPhase;
this.trialPhase = trialPhase;
this.hasTrial = hasTrial;
this.hasIntro = hasIntro;
this.hasTrialOrIntro = hasTrialOrIntro;
}
}
exports.ProductOfferDetails = ProductOfferDetails;