SubscriptionInfo

class SubscriptionInfo(val productIdentifier: String, val purchaseDate: Date, val originalPurchaseDate: Date?, val expiresDate: Date?, val store: Store, val unsubscribeDetectedAt: Date?, val isSandbox: Boolean, val billingIssuesDetectedAt: Date?, val gracePeriodExpiresDate: Date?, val ownershipType: OwnershipType = OwnershipType.UNKNOWN, val periodType: PeriodType, val refundedAt: Date?, val storeTransactionId: String?, requestDate: Date)

Subscription purchases of the Customer.

Constructors

Link copied to clipboard
constructor(productIdentifier: String, purchaseDate: Date, originalPurchaseDate: Date?, expiresDate: Date?, store: Store, unsubscribeDetectedAt: Date?, isSandbox: Boolean, billingIssuesDetectedAt: Date?, gracePeriodExpiresDate: Date?, ownershipType: OwnershipType = OwnershipType.UNKNOWN, periodType: PeriodType, refundedAt: Date?, storeTransactionId: String?, requestDate: Date)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

Date when RevenueCat detected any billing issues with this subscription. If and when the billing issue gets resolved, this field is set to nil. Note the subscription may still be active, check the `expiresDate` attribute.

Link copied to clipboard

Date when the subscription expires/expired

Link copied to clipboard

Date when any grace period for this subscription expires/expired. nil if the customer has never been in a grace period.

Link copied to clipboard

Whether the subscription is currently active.

Link copied to clipboard

Whether or not the purchase was made in sandbox mode.

Link copied to clipboard

Date when this subscription first started. This property does not update with renewals. This property also does not update for product changes within a subscription group or re-subscriptions by lapsed subscribers.

Link copied to clipboard

How the Customer received access to this subscription:

Link copied to clipboard

Type of the current subscription period:

Link copied to clipboard

The product identifier.

Link copied to clipboard

Date when the last subscription period started.

Link copied to clipboard

Date when RevenueCat detected a refund of this subscription.

Link copied to clipboard

Store where the subscription was purchased.

Link copied to clipboard

The transaction id in the store of the subscription.

Link copied to clipboard

Date when RevenueCat detected that auto-renewal was turned off for this subscription. Note the subscription may still be active, check the `expiresDate` attribute.

Link copied to clipboard

Whether the subscription will renew at the next billing period.