RenewalInfoIOS class

Subscription renewal information from Product.SubscriptionInfo.RenewalInfo https://developer.apple.com/documentation/storekit/product/subscriptioninfo/renewalinfo

Constructors

RenewalInfoIOS({String? autoRenewPreference, String? expirationReason, double? gracePeriodExpirationDate, bool? isInBillingRetry, String? jsonRepresentation, String? pendingUpgradeProductId, String? priceIncreaseStatus, double? renewalDate, String? renewalOfferId, String? renewalOfferType, required bool willAutoRenew})
const
RenewalInfoIOS.fromJson(Map<String, dynamic> json)
factory

Properties

autoRenewPreference String?
final
expirationReason String?
When subscription expires due to cancellation/billing issue Possible values: "VOLUNTARY", "BILLING_ERROR", "DID_NOT_AGREE_TO_PRICE_INCREASE", "PRODUCT_NOT_AVAILABLE", "UNKNOWN"
final
gracePeriodExpirationDate double?
Grace period expiration date (milliseconds since epoch) When set, subscription is in grace period (billing issue but still has access)
final
hashCode int
The hash code for this object.
no setterinherited
isInBillingRetry bool?
True if subscription failed to renew due to billing issue and is retrying Note: Not directly available in RenewalInfo, available in Status
final
jsonRepresentation String?
final
pendingUpgradeProductId String?
Product ID that will be used on next renewal (when user upgrades/downgrades) If set and different from current productId, subscription will change on expiration
final
priceIncreaseStatus String?
User's response to subscription price increase Possible values: "AGREED", "PENDING", null (no price increase)
final
renewalDate double?
Expected renewal date (milliseconds since epoch) For active subscriptions, when the next renewal/charge will occur
final
renewalOfferId String?
Offer ID applied to next renewal (promotional offer, subscription offer code, etc.)
final
renewalOfferType String?
Type of offer applied to next renewal Possible values: "PROMOTIONAL", "SUBSCRIPTION_OFFER_CODE", "WIN_BACK", etc.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
willAutoRenew bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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