CustomerInfo
Defined in: src/react/compute.ts:218
What useCustomer returns.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
P extends string |
string |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
cancelAtPeriodEnd |
boolean |
- | src/react/compute.ts:231 |
canCheckout |
boolean |
- | src/react/compute.ts:232 |
canManage |
boolean |
- | src/react/compute.ts:233 |
email |
string | undefined |
- | src/react/compute.ts:221 |
id |
string | undefined |
- | src/react/compute.ts:219 |
isDefault |
boolean |
On the default plan (no entitled subscription in the base group). | src/react/compute.ts:228 |
loading |
boolean |
- | src/react/compute.ts:234 |
name |
string | undefined |
- | src/react/compute.ts:220 |
periodEnd |
string | undefined |
- | src/react/compute.ts:230 |
plan |
P | undefined |
Current plan key (default plan when not subscribed). | src/react/compute.ts:223 |
planName |
string | undefined |
Display name from the pricing table (falls back to the key). | src/react/compute.ts:225 |
status |
| SubscriptionStatus | undefined |
- | src/react/compute.ts:226 |
trialEndsAt |
string | undefined |
- | src/react/compute.ts:229 |