AdaptyProfile

class AdaptyProfile(val profileId: String, val customerUserId: String?, val accessLevels: ImmutableMap<String, AdaptyProfile.AccessLevel>, val subscriptions: ImmutableMap<String, AdaptyProfile.Subscription>, val nonSubscriptions: ImmutableMap<String, ImmutableList<AdaptyProfile.NonSubscription>>, val customAttributes: ImmutableMap<String, Any>)

Constructors

Link copied to clipboard

Types

Link copied to clipboard
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?)
Link copied to clipboard
class Date(year: Int, month: Int, date: Int)

The numbers are as in real life. For example, Date(year = 1970, month = 1, date = 3) represents January 3, 1970.

Link copied to clipboard
Link copied to clipboard
class NonSubscription(val purchaseId: String, val vendorProductId: String, val vendorTransactionId: String?, val store: String, val purchasedAt: String, val isConsumable: Boolean, val isSandbox: Boolean, val isRefund: Boolean)
Link copied to clipboard
class Subscription(val isActive: Boolean, val vendorProductId: String, val vendorTransactionId: String?, val vendorOriginalTransactionId: String?, val offerId: String?, val store: String, val activatedAt: String, val renewedAt: String?, val expiresAt: String?, val startsAt: String?, val isLifetime: Boolean, val activeIntroductoryOfferType: String?, val activePromotionalOfferType: String?, val activePromotionalOfferId: String?, val willRenew: Boolean, val isInGracePeriod: Boolean, val unsubscribedAt: String?, val billingIssueDetectedAt: String?, val isSandbox: Boolean, val isRefund: Boolean, val cancellationReason: String?)

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

Properties

Link copied to clipboard

The keys are access level identifiers configured by you in Adapty Dashboard. The values are Can be null if the customer has no access levels.

Link copied to clipboard

Previously set user custom attributes with .updateProfile method.

Link copied to clipboard

An identifier of a user in your system.

Link copied to clipboard

The keys are product ids from the store. The values are lists of information about consumables.

Link copied to clipboard

An identifier of a user in Adapty.

Link copied to clipboard

The keys are product ids from a store. The values are information about subscriptions.