-
- All Implemented Interfaces:
-
android.os.Parcelable,com.revenuecat.purchases.models.RawDataContainer
public final class EntitlementInfo implements Parcelable, RawDataContainer<JSONObject>
This object gives you access to all of the information about the status of a user's entitlements.
-
-
Field Summary
Fields Modifier and Type Field Description private final JSONObjectrawDataprivate final Stringidentifierprivate final BooleanisActiveprivate final BooleanwillRenewprivate final PeriodTypeperiodTypeprivate final DatelatestPurchaseDateprivate final DateoriginalPurchaseDateprivate final DateexpirationDateprivate final Storestoreprivate final StringproductIdentifierprivate final BooleanisSandboxprivate final DateunsubscribeDetectedAtprivate final DatebillingIssueDetectedAtprivate final OwnershipTypeownershipTypeprivate final JSONObjectjsonObject
-
Constructor Summary
Constructors Constructor Description EntitlementInfo(String identifier, Boolean isActive, Boolean willRenew, PeriodType periodType, Date latestPurchaseDate, Date originalPurchaseDate, Date expirationDate, Store store, String productIdentifier, Boolean isSandbox, Date unsubscribeDetectedAt, Date billingIssueDetectedAt, OwnershipType ownershipType, JSONObject jsonObject)
-
Method Summary
Modifier and Type Method Description JSONObjectgetRawData()final StringgetIdentifier()final BooleangetIsActive()final BooleangetWillRenew()final PeriodTypegetPeriodType()final DategetLatestPurchaseDate()final DategetOriginalPurchaseDate()final DategetExpirationDate()final StoregetStore()final StringgetProductIdentifier()final BooleangetIsSandbox()final DategetUnsubscribeDetectedAt()final DategetBillingIssueDetectedAt()final OwnershipTypegetOwnershipType()final JSONObjectgetJsonObject()IntegerhashCode()-
-
Constructor Detail
-
EntitlementInfo
EntitlementInfo(String identifier, Boolean isActive, Boolean willRenew, PeriodType periodType, Date latestPurchaseDate, Date originalPurchaseDate, Date expirationDate, Store store, String productIdentifier, Boolean isSandbox, Date unsubscribeDetectedAt, Date billingIssueDetectedAt, OwnershipType ownershipType, JSONObject jsonObject)
-
-
Method Detail
-
getRawData
JSONObject getRawData()
-
getIdentifier
final String getIdentifier()
-
getIsActive
final Boolean getIsActive()
-
getWillRenew
final Boolean getWillRenew()
-
getPeriodType
final PeriodType getPeriodType()
-
getLatestPurchaseDate
final Date getLatestPurchaseDate()
-
getOriginalPurchaseDate
final Date getOriginalPurchaseDate()
-
getExpirationDate
final Date getExpirationDate()
-
getProductIdentifier
final String getProductIdentifier()
-
getIsSandbox
final Boolean getIsSandbox()
-
getUnsubscribeDetectedAt
final Date getUnsubscribeDetectedAt()
-
getBillingIssueDetectedAt
final Date getBillingIssueDetectedAt()
-
getOwnershipType
final OwnershipType getOwnershipType()
-
getJsonObject
final JSONObject getJsonObject()
-
-
-
-