Package com.adapty.models
Class AdaptyProductSubscriptionDetails
-
- All Implemented Interfaces:
public final class AdaptyProductSubscriptionDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAdaptyProductSubscriptionDetails.RenewalType
-
Field Summary
Fields Modifier and Type Field Description private final AdaptyEligibilityintroductoryOfferEligibilityprivate final StringbasePlanIdprivate final StringofferIdprivate final ImmutableList<String>offerTagsprivate final AdaptyProductSubscriptionDetails.RenewalTyperenewalTypeprivate final AdaptyProductSubscriptionPeriodsubscriptionPeriodprivate final StringlocalizedSubscriptionPeriodprivate final ImmutableList<AdaptyProductDiscountPhase>introductoryOfferPhases
-
Constructor Summary
Constructors Constructor Description AdaptyProductSubscriptionDetails(String basePlanId, String offerId, ImmutableList<String> offerTags, AdaptyProductSubscriptionDetails.RenewalType renewalType, AdaptyProductSubscriptionPeriod subscriptionPeriod, String localizedSubscriptionPeriod, ImmutableList<AdaptyProductDiscountPhase> introductoryOfferPhases)
-
Method Summary
Modifier and Type Method Description final AdaptyEligibilitygetIntroductoryOfferEligibility()final StringgetBasePlanId()A base plan of Google's subscription product. final StringgetOfferId()A discount offer for this basePlanId. final ImmutableList<String>getOfferTags()Tags defined in Google Play console for current basePlanId and offerId. final AdaptyProductSubscriptionDetails.RenewalTypegetRenewalType()Indicates whether the subscription is auto-renewing or prepaid. final AdaptyProductSubscriptionPeriodgetSubscriptionPeriod()An information about the period for the discount phase. final StringgetLocalizedSubscriptionPeriod()A formatted subscription period of the discount phase for a user’s locale. final ImmutableList<AdaptyProductDiscountPhase>getIntroductoryOfferPhases()A list that can contain up to two discount phases: the free trial phase and the introductory price phase. -
-
Constructor Detail
-
AdaptyProductSubscriptionDetails
AdaptyProductSubscriptionDetails(String basePlanId, String offerId, ImmutableList<String> offerTags, AdaptyProductSubscriptionDetails.RenewalType renewalType, AdaptyProductSubscriptionPeriod subscriptionPeriod, String localizedSubscriptionPeriod, ImmutableList<AdaptyProductDiscountPhase> introductoryOfferPhases)
-
-
Method Detail
-
getIntroductoryOfferEligibility
final AdaptyEligibility getIntroductoryOfferEligibility()
-
getBasePlanId
final String getBasePlanId()
A base plan of Google's subscription product.
-
getOfferId
final String getOfferId()
A discount offer for this basePlanId.
-
getOfferTags
final ImmutableList<String> getOfferTags()
Tags defined in Google Play console for current basePlanId and offerId.
-
getRenewalType
final AdaptyProductSubscriptionDetails.RenewalType getRenewalType()
Indicates whether the subscription is auto-renewing or prepaid.
-
getSubscriptionPeriod
final AdaptyProductSubscriptionPeriod getSubscriptionPeriod()
An information about the period for the discount phase.
-
getLocalizedSubscriptionPeriod
final String getLocalizedSubscriptionPeriod()
A formatted subscription period of the discount phase for a user’s locale.
-
getIntroductoryOfferPhases
final ImmutableList<AdaptyProductDiscountPhase> getIntroductoryOfferPhases()
A list that can contain up to two discount phases: the free trial phase and the introductory price phase.
-
-
-
-