SubscriptionInfo

class SubscriptionInfo(val productIdentifier: String, val purchaseDateMillis: Long, val originalPurchaseDateMillis: Long?, val expiresDateMillis: Long?, val store: Store, val isSandbox: Boolean, val unsubscribeDetectedAtMillis: Long?, val billingIssuesDetectedAtMillis: Long?, val gracePeriodExpiresDateMillis: Long?, val ownershipType: OwnershipType, val periodType: PeriodType, val refundedAtMillis: Long?, val storeTransactionId: String?, val autoResumeDateMillis: Long?, val price: Price?, val productPlanIdentifier: String?, val managementUrlString: String?, val isActive: Boolean, val willRenew: Boolean)

Subscription purchases of the Customer.

Constructors

Link copied to clipboard
constructor(productIdentifier: String, purchaseDateMillis: Long, originalPurchaseDateMillis: Long?, expiresDateMillis: Long?, store: Store, isSandbox: Boolean, unsubscribeDetectedAtMillis: Long?, billingIssuesDetectedAtMillis: Long?, gracePeriodExpiresDateMillis: Long?, ownershipType: OwnershipType, periodType: PeriodType, refundedAtMillis: Long?, storeTransactionId: String?, autoResumeDateMillis: Long?, price: Price?, productPlanIdentifier: String?, managementUrlString: String?, isActive: Boolean, willRenew: Boolean)

Properties

Link copied to clipboard
val autoResumeDate: <Error class: unknown class>?

Date when the subscription will auto-resume. This property is only applicable for Google Play subscriptions and will only have a value when the subscription is currently paused.

Link copied to clipboard

Date when the subscription will auto-resume, in milliseconds since the Unix epoch. This property is only applicable for Google Play subscriptions and will only have a value when the subscription is currently paused.

Link copied to clipboard
val billingIssuesDetectedAt: <Error class: unknown class>?

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

Link copied to clipboard

Date when RevenueCat detected any billing issues with this subscription, in milliseconds since the Unix epoch. If and when the billing issue gets resolved, this field is set to null. Note the subscription may still be active, check the expiresDateMillis attribute.

Link copied to clipboard
val expiresDate: <Error class: unknown class>?

Date when the subscription expires/expired.

Link copied to clipboard

Date when the subscription expires/expired, in milliseconds since the Unix epoch.

Link copied to clipboard
val gracePeriodExpiresDate: <Error class: unknown class>?

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

Link copied to clipboard

Date when any grace period for this subscription expires/expired, in milliseconds since the Unix epoch. null 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 the purchase was made in sandbox mode.

Link copied to clipboard

URL to manage this subscription.

Link copied to clipboard
val originalPurchaseDate: <Error class: unknown class>?

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

Date when this subscription first started, in milliseconds since the Unix epoch. 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
val price: Price?

Paid price for the subscription. Contains currency and amount information.

Link copied to clipboard

The product identifier.

Link copied to clipboard

The identifier of the product plan.

Link copied to clipboard
val purchaseDate: <Error class: unknown class>

Date when the last subscription period started.

Link copied to clipboard

Date when the last subscription period started, in milliseconds since the Unix epoch.

Link copied to clipboard
val refundedAt: <Error class: unknown class>?

Date when RevenueCat detected a refund of this subscription.

Link copied to clipboard

Date when RevenueCat detected a refund of this subscription, in milliseconds since the Unix epoch.

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
val unsubscribeDetectedAt: <Error class: unknown class>?

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

Date when RevenueCat detected that auto-renewal was turned off for this subscription, in milliseconds since the Unix epoch. Note the subscription may still be active, check the expiresDateMillis attribute.

Link copied to clipboard

Whether the subscription will renew at the next billing period.