AccessLevel

class AccessLevel(val id: String, val isActive: Boolean, val vendorProductId: String, val offerId: String?, val store: String, val activatedAt: String, val startsAt: String?, val renewedAt: String?, val expiresAt: String?, val isLifetime: Boolean, val cancellationReason: String?, val isRefund: Boolean, val activeIntroductoryOfferType: String?, val activePromotionalOfferType: String?, val activePromotionalOfferId: String?, val willRenew: Boolean, val isInGracePeriod: Boolean, val unsubscribedAt: String?, val billingIssueDetectedAt: String?)

Constructors

Link copied to clipboard
constructor(id: String, isActive: Boolean, vendorProductId: String, offerId: String?, store: String, activatedAt: String, startsAt: String?, renewedAt: String?, expiresAt: String?, isLifetime: Boolean, cancellationReason: String?, isRefund: Boolean, activeIntroductoryOfferType: String?, activePromotionalOfferType: String?, activePromotionalOfferId: String?, willRenew: Boolean, isInGracePeriod: Boolean, unsubscribedAt: String?, billingIssueDetectedAt: String?)

Properties

Link copied to clipboard

ISO 8601 datetime when this access level was activated.

Link copied to clipboard

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.

Link copied to clipboard

An id of active promotional offer.

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

A reason why a subscription was cancelled.

Link copied to clipboard

ISO 8601 datetime when the access level will expire (could be in the past and could be null for lifetime access).

Link copied to clipboard
val id: String

Unique identifier of the access level configured by you in Adapty Dashboard.

Link copied to clipboard

true if this access level is active. Generally, you can check this property to determine whether a user has an access to premium features.

Link copied to clipboard

true if this auto-renewable subscription is in the grace period.

Link copied to clipboard

true if this access level is active for a lifetime (no expiration date).

Link copied to clipboard

true if this purchase was refunded.

Link copied to clipboard

An identifier of a discount offer in Google Play that unlocked this access level.

Link copied to clipboard

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).

Link copied to clipboard

ISO 8601 datetime when this access level has started (could be in the future).

Link copied to clipboard

A store of the purchase that unlocked this access level.

Link copied to clipboard

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.

Link copied to clipboard

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".

Link copied to clipboard

true if this auto-renewable subscription is set to renew.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String