AdaptyAccessLevelInfo class
Properties
-
activatedAt
→ DateTime?
-
The time when the access level was activated.
final
-
activeIntroductoryOfferType
→ String?
-
The type of active introductory offer.
Possible values are: free_trial, pay_as_you_go, pay_up_front. If the value is not null,
it means that the offer was applied during the current subscription period.
final
-
activePromotionalOfferType
→ String?
-
The type of active promotional offer.
Possible values are: free_trial, pay_as_you_go, pay_up_front.
If the value is not null, it means that the offer was applied during the current subscription period.
final
-
billingIssueDetectedAt
→ DateTime?
-
The time when billing issue was detected (Apple was not able to charge the card).
Subscription can still be active. Will be set to null if the charge will be made.
final
-
cancellationReason
→ String?
-
The reason why the subscription was cancelled.
Possible values are: voluntarily_cancelled, billing_error, refund, price_increase, product_was_not_available, unknown.
final
-
expiresAt
→ DateTime?
-
The time when the access level will expire (could be in the past and could be null for lifetime access).
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String?
-
Unique identifier of the access level configured by you in Adapty Dashboard.
final
-
isActive
→ bool?
-
Whether the access level is active.
Generally, you have to check just this property to determine if the user has access to premium features.
final
-
isInGracePeriod
→ bool?
-
Whether the auto-renewable subscription is in the grace period.
final
-
isLifetime
→ bool?
-
Whether the access level is active for a lifetime (no expiration date).
If set to true you shouldn't check expires_at , or you could just check isActive.
final
-
isRefund
→ bool?
-
Whether the purchase was refunded.
final
-
renewedAt
→ DateTime?
-
The time when the access level was renewed.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
startsAt
→ DateTime?
-
The time when the access level has started (could be in the future).
final
-
store
→ String?
-
The store of the purchase that unlocked this access level.
The possible values are: app_store, play_store, adapty.
final
-
unsubscribedAt
→ DateTime?
-
The time 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.
final
-
vendorOriginalTransactionId
→ String?
-
Original transaction id of the purchase that unlocked this access level.
For auto-renewable subscription, this will be the id of the first transaction in the subscription.
final
-
vendorProductId
→ String?
-
The identifier of the product in the App Store Connect that unlocked this access level.
final
-
vendorTransactionId
→ String?
-
Transaction id of the purchase that unlocked this access level.
final
-
willRenew
→ bool?
-
Whether the auto-renewable subscription is set to renew.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override