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
constructor(profileId: String, customerUserId: String?, accessLevels: ImmutableMap<String, AdaptyProfile.AccessLevel>, subscriptions: ImmutableMap<String, AdaptyProfile.Subscription>, nonSubscriptions: ImmutableMap<String, ImmutableList<AdaptyProfile.NonSubscription>>, customAttributes: ImmutableMap<String, Any>)
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
Link copied to clipboard
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?)
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
The keys are product ids from a store. The values are information about subscriptions.