Class AdaptyProfile.AccessLevel
-
- All Implemented Interfaces:
public final class AdaptyProfile.AccessLevel
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final BooleanisActiveprivate final StringvendorProductIdprivate final StringofferIdprivate final Stringstoreprivate final StringactivatedAtprivate final StringstartsAtprivate final StringrenewedAtprivate final StringexpiresAtprivate final BooleanisLifetimeprivate final StringcancellationReasonprivate final BooleanisRefundprivate final StringactiveIntroductoryOfferTypeprivate final StringactivePromotionalOfferTypeprivate final StringactivePromotionalOfferIdprivate final BooleanwillRenewprivate final BooleanisInGracePeriodprivate final StringunsubscribedAtprivate final StringbillingIssueDetectedAt
-
Constructor Summary
Constructors Constructor Description AdaptyProfile.AccessLevel(String id, Boolean isActive, String vendorProductId, String offerId, String store, String activatedAt, String startsAt, String renewedAt, String expiresAt, Boolean isLifetime, String cancellationReason, Boolean isRefund, String activeIntroductoryOfferType, String activePromotionalOfferType, String activePromotionalOfferId, Boolean willRenew, Boolean isInGracePeriod, String unsubscribedAt, String billingIssueDetectedAt)
-
Method Summary
Modifier and Type Method Description final StringgetId()Unique identifier of the access level configured by you in Adapty Dashboard. final BooleanisActive()trueif this access level is active.final StringgetVendorProductId()An identifier of a product in a store that unlocked this access level. final StringgetOfferId()An identifier of a discount offer in Google Play that unlocked this access level. final StringgetStore()A store of the purchase that unlocked this access level. final StringgetActivatedAt()ISO 8601 datetime when this access level was activated. final StringgetStartsAt()ISO 8601 datetime when this access level has started (could be in the future). final StringgetRenewedAt()ISO 8601 datetime when the access level was renewed. final StringgetExpiresAt()ISO 8601 datetime when the access level will expire (could be in the past and could be null for lifetime access). final BooleanisLifetime()trueif this access level is active for a lifetime (no expiration date).final StringgetCancellationReason()A reason why a subscription was cancelled. final BooleanisRefund()trueif this purchase was refunded.final StringgetActiveIntroductoryOfferType()A type of an active introductory offer. final StringgetActivePromotionalOfferType()A type of an active promotional offer. final StringgetActivePromotionalOfferId()An id of active promotional offer. final BooleangetWillRenew()trueif this auto-renewable subscription is set to renew.final BooleanisInGracePeriod()trueif this auto-renewable subscription is in the grace period.final StringgetUnsubscribedAt()ISO 8601 datetime when the auto-renewable subscription was cancelled. final StringgetBillingIssueDetectedAt()Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Constructor Detail
-
AdaptyProfile.AccessLevel
AdaptyProfile.AccessLevel(String id, Boolean isActive, String vendorProductId, String offerId, String store, String activatedAt, String startsAt, String renewedAt, String expiresAt, Boolean isLifetime, String cancellationReason, Boolean isRefund, String activeIntroductoryOfferType, String activePromotionalOfferType, String activePromotionalOfferId, Boolean willRenew, Boolean isInGracePeriod, String unsubscribedAt, String billingIssueDetectedAt)
-
-
Method Detail
-
getId
final String getId()
Unique identifier of the access level configured by you in Adapty Dashboard.
-
isActive
final Boolean isActive()
trueif this access level is active. Generally, you can check this property to determine whether a user has an access to premium features.
-
getVendorProductId
final String getVendorProductId()
An identifier of a product in a store that unlocked this access level. It may contain either product_id only or "product_id:base_plan_id".
-
getOfferId
final String getOfferId()
An identifier of a discount offer in Google Play that unlocked this access level.
-
getActivatedAt
final String getActivatedAt()
ISO 8601 datetime when this access level was activated.
-
getStartsAt
final String getStartsAt()
ISO 8601 datetime when this access level has started (could be in the future).
-
getRenewedAt
final String getRenewedAt()
ISO 8601 datetime when the access level was renewed. It can be null if the purchase was first in chain or it is non-renewing subscription / non-consumable (e.g. lifetime).
-
getExpiresAt
final String getExpiresAt()
ISO 8601 datetime when the access level will expire (could be in the past and could be null for lifetime access).
-
isLifetime
final Boolean isLifetime()
trueif this access level is active for a lifetime (no expiration date).
-
getCancellationReason
final String getCancellationReason()
A reason why a subscription was cancelled.
-
getActiveIntroductoryOfferType
final String getActiveIntroductoryOfferType()
A type of an active introductory offer. If the value is not null, it means that the offer was applied during the current subscription period.
-
getActivePromotionalOfferType
final String getActivePromotionalOfferType()
A type of an active promotional offer. If the value is not null, it means that the offer was applied during the current subscription period.
-
getActivePromotionalOfferId
final String getActivePromotionalOfferId()
An id of active promotional offer.
-
getWillRenew
final Boolean getWillRenew()
trueif this auto-renewable subscription is set to renew.
-
isInGracePeriod
final Boolean isInGracePeriod()
trueif this auto-renewable subscription is in the grace period.
-
getUnsubscribedAt
final String getUnsubscribedAt()
ISO 8601 datetime when the auto-renewable subscription was cancelled. Subscription can still be active, it just means that auto-renewal turned off. Will be set to null if the user reactivates the subscription.
-
getBillingIssueDetectedAt
final String getBillingIssueDetectedAt()
-
-
-
-