detritus
On this page

Subscription Structure

import { Structures } from 'detritus-client';

Structures.Subscription;
17 properties1 method15 inheritedsrc/structures/subscription.ts:35

Constructor

Properties

canceledAtUnix
number
Default 0
client
readonly
Inherited from BaseStructure.client
country?
string
optional
currentPeriodEndUnix
number
Default 0
currentPeriodStartUnix
number
Default 0
entitlementIds
string[]
Default []
id
string
Default ''
renewalSkuIds
string[] | null
Default null
skuIds
string[]
Default []
status
Default SubscriptionStatusTypes.ACTIVE
userId
string
Default ''

Accessors

canceledAt
Date | null
get
createdAt
Date
get
createdAtUnix
number
get
currentPeriodEnd
Date
get
currentPeriodStart
Date
get
isActive
boolean
get
isClone
boolean
get
Inherited from BaseStructure.isClone
shardId
number
get
Inherited from BaseStructure.shardId
user
User | null
get

Methods