Class Subscription

A base class which most other classes extend.

Hierarchy (view full)

Constructors

Properties

canceledAt: null | Date

When the subscription was canceled.

country?: string

ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.

currentPeriodEnd: Date

End of the current subscription period.

currentPeriodStart: Date

Start of the current subscription period.

entitlementIDs: string[]

List of entitlements granted for this subscription.

id: string
renewalSKUIDs: string[]

List of SKUs that this user will be subscribed to at renewal.

skuIDs: string[]

List of SKUs subscribed to.

Current status of the subscription.

userID: string

ID of the user who is subscribed.

Accessors

Methods