AdaptySubscriptionInfo class

Constructors

AdaptySubscriptionInfo.fromJson(Map<String, dynamic> json)

Properties

activatedAt DateTime?
The time when the subscription 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 subscription 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
isActive bool?
Whether the subscription is active.
final
isInGracePeriod bool?
Whether the auto-renewable subscription is in the grace period.
final
isLifetime bool?
Whether the subscription 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
isSandbox bool?
Whether the product was purchased in the sandbox environment.
final
renewedAt DateTime?
The time when the subscription was renewed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startsAt DateTime?
The time when the subscription has started (could be in the future).
final
store String?
The store of the purchase. 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 from the App Store. 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.
final
vendorTransactionId String?
Transaction id from the App Store.
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

Operators

operator ==(Object other) bool
The equality operator.
inherited