RenewalInfoIOS constructor

const RenewalInfoIOS({
  1. String? autoRenewPreference,
  2. String? expirationReason,
  3. double? gracePeriodExpirationDate,
  4. bool? isInBillingRetry,
  5. String? jsonRepresentation,
  6. String? pendingUpgradeProductId,
  7. String? priceIncreaseStatus,
  8. double? renewalDate,
  9. String? renewalOfferId,
  10. String? renewalOfferType,
  11. required bool willAutoRenew,
})

Implementation

const RenewalInfoIOS({
  this.autoRenewPreference,
  /// When subscription expires due to cancellation/billing issue
  /// Possible values: "VOLUNTARY", "BILLING_ERROR", "DID_NOT_AGREE_TO_PRICE_INCREASE", "PRODUCT_NOT_AVAILABLE", "UNKNOWN"
  this.expirationReason,
  /// Grace period expiration date (milliseconds since epoch)
  /// When set, subscription is in grace period (billing issue but still has access)
  this.gracePeriodExpirationDate,
  /// True if subscription failed to renew due to billing issue and is retrying
  /// Note: Not directly available in RenewalInfo, available in Status
  this.isInBillingRetry,
  this.jsonRepresentation,
  /// 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
  this.pendingUpgradeProductId,
  /// User's response to subscription price increase
  /// Possible values: "AGREED", "PENDING", null (no price increase)
  this.priceIncreaseStatus,
  /// Expected renewal date (milliseconds since epoch)
  /// For active subscriptions, when the next renewal/charge will occur
  this.renewalDate,
  /// Offer ID applied to next renewal (promotional offer, subscription offer code, etc.)
  this.renewalOfferId,
  /// Type of offer applied to next renewal
  /// Possible values: "PROMOTIONAL", "SUBSCRIPTION_OFFER_CODE", "WIN_BACK", etc.
  this.renewalOfferType,
  required this.willAutoRenew,
});