Appearance
DoCurious API Reference / types / Subscription
Interface: Subscription
Defined in: types/payment.types.ts:123
User subscription
Extends
Properties
cancelAtPeriodEnd
cancelAtPeriodEnd:
boolean
Defined in: types/payment.types.ts:129
createdAt
createdAt:
string
Defined in: types/common.types.ts:154
ISO 8601 datetime when the entity was created
Inherited from
currentPeriodEnd
currentPeriodEnd:
string
Defined in: types/payment.types.ts:128
currentPeriodStart
currentPeriodStart:
string
Defined in: types/payment.types.ts:127
id
id:
string
Defined in: types/common.types.ts:167
Inherited from
paymentMethodId?
optionalpaymentMethodId:string
Defined in: types/payment.types.ts:130
planId
planId:
string
Defined in: types/payment.types.ts:125
status
status:
"active"|"cancelled"|"expired"|"past_due"
Defined in: types/payment.types.ts:126
updatedAt
updatedAt:
string
Defined in: types/common.types.ts:156
ISO 8601 datetime when the entity was last modified
Inherited from
userId
userId:
string
Defined in: types/payment.types.ts:124