-
- All Implemented Interfaces:
-
android.os.Parcelable
@Serializable() public final class PLYPlan implements Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description private transient StoreProductstoreProductprivate final Stringnameprivate final Stringidprivate final StringpublicIdprivate final StringvendorIdprivate final Stringstore_product_idprivate final StringbasePlanIdprivate final Integerlevelprivate final AmazonPeriodamazonPeriodprivate final DistributionTypetypeprivate final BooleanisVisibleprivate final List<PLYPromoOffer>promoOffers
-
Constructor Summary
Constructors Constructor Description PLYPlan(String name, String id, String publicId, String vendorId, String store_product_id, String basePlanId, Integer level, AmazonPeriod amazonPeriod, DistributionType type, Boolean isVisible, List<PLYPromoOffer> promoOffers)
-
Method Summary
-
-
Constructor Detail
-
PLYPlan
PLYPlan(String name, String id, String publicId, String vendorId, String store_product_id, String basePlanId, Integer level, AmazonPeriod amazonPeriod, DistributionType type, Boolean isVisible, List<PLYPromoOffer> promoOffers)
-
-
Method Detail
-
getStoreProduct
final StoreProduct getStoreProduct()
-
setStoreProduct
final Unit setStoreProduct(@Transient() StoreProduct storeProduct)
-
getPublicId
final String getPublicId()
-
getVendorId
final String getVendorId()
-
getStore_product_id
final String getStore_product_id()
-
getBasePlanId
final String getBasePlanId()
-
getAmazonPeriod
final AmazonPeriod getAmazonPeriod()
-
getType
final DistributionType getType()
-
getIsVisible
final Boolean getIsVisible()
-
getPromoOffers
final List<PLYPromoOffer> getPromoOffers()
-
getProductId
final String getProductId()
-
getPromoOffer
final PLYPromoOffer getPromoOffer(String offerVendorId)
-
localizedFullPrice
final String localizedFullPrice()
-
localizedPrice
final String localizedPrice()
-
localizedPeriod
final String localizedPeriod()
-
localizedDuration
final String localizedDuration()
-
period
final PLYProductPeriod period()
-
hasIntroductoryPrice
@Deprecated(message = Use hasOfferPrice instead, replaceWith = @ReplaceWith(imports = {}, expression = hasOfferPrice)) final Boolean hasIntroductoryPrice(String offerId)
-
hasOfferPrice
final Boolean hasOfferPrice(String offerId)
-
localizedFullIntroductoryPrice
@Deprecated(message = Use localizedFullOfferPrice instead, replaceWith = @ReplaceWith(imports = {}, expression = localizedFullOfferPrice)) final String localizedFullIntroductoryPrice(String offerId)
-
localizedFullOfferPrice
final String localizedFullOfferPrice(String offerId)
-
localizedIntroductoryPrice
@Deprecated(message = Use localizedOfferPrice instead, replaceWith = @ReplaceWith(imports = {}, expression = localizedOfferPrice)) final String localizedIntroductoryPrice(Boolean introOnly, String offerId)
-
localizedOfferPrice
final String localizedOfferPrice(Boolean offerOnly, String offerId)
- Parameters:
offerOnly- boolean true if should return only offer's price
-
introductoryAmount
@Deprecated(message = Use offerAmount instead, replaceWith = @ReplaceWith(imports = {}, expression = offerAmount)) final Double introductoryAmount(String offerId)
-
offerAmount
final Double offerAmount(String offerId)
-
localizedIntroductoryPeriod
@Deprecated(message = Use localizedOfferPeriod instead, replaceWith = @ReplaceWith(imports = {}, expression = localizedOfferPeriod)) final String localizedIntroductoryPeriod(String offerId)
-
localizedOfferPeriod
final String localizedOfferPeriod(String offerId)
-
introductoryPeriod
@Deprecated(message = Use offerPeriod instead, replaceWith = @ReplaceWith(imports = {}, expression = offerPeriod)) final PLYProductPeriod introductoryPeriod(String offerId)
-
offerPeriod
final PLYProductPeriod offerPeriod(String offerId)
-
introductoryDuration
@Deprecated(message = Use offerDuration instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDuration)) final Integer introductoryDuration(String offerId)
-
offerDuration
final Integer offerDuration(String offerId)
-
introductoryCycles
@Deprecated(message = Use offerCycles instead, replaceWith = @ReplaceWith(imports = {}, expression = offerCycles)) final Integer introductoryCycles(String offerId)
-
offerCycles
final Integer offerCycles(String offerId)
-
hasFreeTrial
final Boolean hasFreeTrial(String offerId)
-
localizedTrialDuration
final String localizedTrialDuration(String offerId)
-
freeTrialPeriod
final PLYProductPeriod freeTrialPeriod(String offerId)
-
freeTrialDuration
final Integer freeTrialDuration(String offerId)
-
localizedIntroductoryDuration
@Deprecated(message = Use localizedOfferDuration instead, replaceWith = @ReplaceWith(imports = {offerId}, expression = localizedOfferDuration)) final String localizedIntroductoryDuration(String offerId)
-
localizedOfferDuration
final String localizedOfferDuration(String offerId)
-
currencySymbol
final String currencySymbol()
-
currencyCode
final String currencyCode()
-
dailyEquivalentPrice
final String dailyEquivalentPrice()
-
weeklyEquivalentPrice
final String weeklyEquivalentPrice()
-
quarterlyEquivalentPrice
final String quarterlyEquivalentPrice()
-
monthlyEquivalentPrice
final String monthlyEquivalentPrice()
-
yearlyEquivalentPrice
final String yearlyEquivalentPrice()
-
offerDailyEquivalentPrice
final String offerDailyEquivalentPrice(String offerId)
-
offerWeeklyEquivalentPrice
final String offerWeeklyEquivalentPrice(String offerId)
-
offerMonthlyEquivalentPrice
final String offerMonthlyEquivalentPrice(String offerId)
-
offerQuarterlyEquivalentPrice
final String offerQuarterlyEquivalentPrice(String offerId)
-
offerYearlyEquivalentPrice
final String offerYearlyEquivalentPrice(String offerId)
-
durationInDays
final Double durationInDays()
-
introDurationInDays
@Deprecated(message = use offerDurationInDays instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDurationInDays)) final Double introDurationInDays(String offerId)
-
offerDurationInDays
final Double offerDurationInDays(String offerId)
-
durationInWeeks
final Double durationInWeeks()
-
introDurationInWeeks
@Deprecated(message = use offerDurationInWeeks instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDurationInWeeks)) final Double introDurationInWeeks(String offerId)
-
offerDurationInWeeks
final Double offerDurationInWeeks(String offerId)
-
durationInMonths
final Double durationInMonths()
-
introDurationInMonths
@Deprecated(message = use offerDurationInMonths instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDurationInMonths)) final Double introDurationInMonths(String offerId)
-
offerDurationInMonths
final Double offerDurationInMonths(String offerId)
-
durationInQuarters
final Double durationInQuarters()
-
introDurationInQuarters
@Deprecated(message = use offerDurationInQuarters instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDurationInQuarters)) final Double introDurationInQuarters(String offerId)
-
offerDurationInQuarters
final Double offerDurationInQuarters(String offerId)
-
durationInYears
final Double durationInYears()
-
introDurationInYears
@Deprecated(message = use offerDurationInYears instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDurationInYears)) final Double introDurationInYears(String offerId)
-
offerDurationInYears
final Double offerDurationInYears(String offerId)
-
priceDifference
final String priceDifference(PLYPlan plan)
-
priceDifferencePercentage
final String priceDifferencePercentage(PLYPlan plan)
-
discountPercentage
final String discountPercentage(PLYPlan plan)
-
raisePercentage
final String raisePercentage(PLYPlan plan)
-
introPriceComparison
@Deprecated(message = use offerPriceComparison instead, replaceWith = @ReplaceWith(imports = {}, expression = offerPriceComparison)) final String introPriceComparison(String offerId)
-
offerPriceComparison
final String offerPriceComparison(String offerId, PLYPlan otherPlan)
-
introDiscountPercentage
@Deprecated(message = use offerDiscountPercentage instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDiscountPercentage)) final String introDiscountPercentage(String offerId)
-
offerDiscountPercentage
final String offerDiscountPercentage(String offerId, PLYPlan otherPlan)
-
isEligibleToIntroOffer
@Deprecated(message = use isEligibleToOffer instead, replaceWith = @ReplaceWith(imports = {}, expression = isEligibleToOffer)) final Boolean isEligibleToIntroOffer(String offerId)
-
isEligibleToOffer
final Boolean isEligibleToOffer(String storeOfferId)
-
getSubscriptionOffer
final PLYSubscriptionOffer getSubscriptionOffer(String storeOfferId)
-
hasIntroOffer
@Deprecated(message = use hasOffer instead, replaceWith = @ReplaceWith(imports = {}, expression = hasOffer)) final Boolean hasIntroOffer(String offerId)
-
offerType
final PLYOfferType offerType(String offerId)
-
introDurationForTag
@Deprecated(message = use offerDurationForTag instead, replaceWith = @ReplaceWith(imports = {}, expression = offerDurationForTag)) final String introDurationForTag(String offerId)
-
introPriceForTag
@Deprecated(message = use offerPriceForTag instead, replaceWith = @ReplaceWith(imports = {}, expression = offerPriceForTag)) final String introPriceForTag(String offerId)
-
sameBasePlan
final Boolean sameBasePlan(String other)
-
-
-
-