Skip to content

Commit

Permalink
Stripe (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler authored Nov 27, 2024
1 parent 9e08243 commit 3308a68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/types/src/client/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ export interface IUserData {
createdAt: Timestamp;
activated: boolean;
tier: Tier;
tierRequestQuota: number; // how many requests the user is entitled to in this tier (note this may vary for the same tier, e.g. pro @ 100k, pro @ 200k, etc)
marketingPreferences: boolean;
originUrl: string;
settings?: IUserSettings;
updatedAtTimestamp?: Timestamp;
tierCheckoutId?: string; // prosopo (not stripe!) checkout session id / lock
stripeCustomerId?: string; // stripe customer id
stripeTierCheckoutId?: string; // stripe checkout session id
stripeTierSubscriptionId?: string; // stripe subscription id
stripeTierPriceId?: string; // stripe price id for the subscription
stripeTierNext?: string; // the next tier the user is moving to, if any
stripeTierNextAt?: number; // the time the user will move to the next tier, if any
stripeTierCancelAt?: number; // the time the user's subscription will be cancelled (e.g. if cancelling at end of billing period)
stripeUpdatedAt?: number; // the time the user's stripe details were last updated (needed for webhook ordering)
}

export interface IUserSettings {
Expand Down

0 comments on commit 3308a68

Please sign in to comment.