-
- All Implemented Interfaces:
-
android.os.Parcelable
@Serializable() public final class PLYSubscription implements Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StoreTypestoreTypeprivate final StringpurchaseTokenprivate final StringplanIdprivate final StringcancelledAtprivate final StringnextRenewalAtprivate final StringoriginalPurchasedAtprivate final StringpurchasedAtprivate final PLYOfferTypeofferTypeprivate final PLYEnvironmentenvironmentprivate final StringstoreCountryprivate final BooleanisFamilySharedprivate final StringcontentIdprivate final StringofferIdentifierprivate final PLYSubscriptionStatussubscriptionStatusprivate final DoublecumulatedRevenuesInUSDprivate final IntegersubscriptionDurationInDaysprivate final IntegersubscriptionDurationInWeeksprivate final IntegersubscriptionDurationInMonthsprivate final transient PLYPlanplan
-
Constructor Summary
Constructors Constructor Description PLYSubscription(String id, StoreType storeType, String purchaseToken, String planId, String cancelledAt, String nextRenewalAt, String originalPurchasedAt, String purchasedAt, PLYOfferType offerType, PLYEnvironment environment, String storeCountry, Boolean isFamilyShared, String contentId, String offerIdentifier, PLYSubscriptionStatus subscriptionStatus, Double cumulatedRevenuesInUSD, Integer subscriptionDurationInDays, Integer subscriptionDurationInWeeks, Integer subscriptionDurationInMonths, PLYPlan plan)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StoreTypegetStoreType()final StringgetPurchaseToken()final StringgetPlanId()final StringgetCancelledAt()final StringgetNextRenewalAt()final StringgetOriginalPurchasedAt()final StringgetPurchasedAt()final PLYOfferTypegetOfferType()final PLYEnvironmentgetEnvironment()final StringgetStoreCountry()final BooleangetIsFamilyShared()final StringgetContentId()final StringgetOfferIdentifier()final PLYSubscriptionStatusgetSubscriptionStatus()final DoublegetCumulatedRevenuesInUSD()final IntegergetSubscriptionDurationInDays()final IntegergetSubscriptionDurationInWeeks()final IntegergetSubscriptionDurationInMonths()final PLYPlangetPlan()final DategetRenewalDate()final StringgetFormattedRenewalDate(Context context)final <ERROR CLASS>getProduct()final <ERROR CLASS>getPlan()final Map<String, Object>toMap()-
-
Constructor Detail
-
PLYSubscription
PLYSubscription(String id, StoreType storeType, String purchaseToken, String planId, String cancelledAt, String nextRenewalAt, String originalPurchasedAt, String purchasedAt, PLYOfferType offerType, PLYEnvironment environment, String storeCountry, Boolean isFamilyShared, String contentId, String offerIdentifier, PLYSubscriptionStatus subscriptionStatus, Double cumulatedRevenuesInUSD, Integer subscriptionDurationInDays, Integer subscriptionDurationInWeeks, Integer subscriptionDurationInMonths, PLYPlan plan)
-
-
Method Detail
-
getStoreType
final StoreType getStoreType()
-
getPurchaseToken
final String getPurchaseToken()
-
getCancelledAt
final String getCancelledAt()
-
getNextRenewalAt
final String getNextRenewalAt()
-
getOriginalPurchasedAt
final String getOriginalPurchasedAt()
-
getPurchasedAt
final String getPurchasedAt()
-
getOfferType
final PLYOfferType getOfferType()
-
getEnvironment
final PLYEnvironment getEnvironment()
-
getStoreCountry
final String getStoreCountry()
-
getIsFamilyShared
final Boolean getIsFamilyShared()
-
getContentId
final String getContentId()
-
getOfferIdentifier
final String getOfferIdentifier()
-
getSubscriptionStatus
final PLYSubscriptionStatus getSubscriptionStatus()
-
getCumulatedRevenuesInUSD
final Double getCumulatedRevenuesInUSD()
-
getSubscriptionDurationInDays
final Integer getSubscriptionDurationInDays()
-
getSubscriptionDurationInWeeks
final Integer getSubscriptionDurationInWeeks()
-
getSubscriptionDurationInMonths
final Integer getSubscriptionDurationInMonths()
-
getRenewalDate
final Date getRenewalDate()
-
getFormattedRenewalDate
final String getFormattedRenewalDate(Context context)
-
getProduct
final <ERROR CLASS> getProduct()
-
getPlan
final <ERROR CLASS> getPlan()
-
-
-
-