diff --git a/package.json b/package.json index e5079806..169fcf46 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt ", - "version": "1.29.4", + "version": "1.29.5", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", diff --git a/src/drive/payments/types/types.ts b/src/drive/payments/types/types.ts index 5967bb81..88fac649 100644 --- a/src/drive/payments/types/types.ts +++ b/src/drive/payments/types/types.ts @@ -165,7 +165,7 @@ export interface InvoicePayload { export type UserSubscription = | { type: 'free' } - | { type: 'lifetime'; productId?: string } + | { type: 'lifetime'; productId?: string; tierId?: string | null } | { type: 'subscription'; subscriptionId: string; @@ -176,6 +176,7 @@ export type UserSubscription = nextPayment: number; priceId: string; productId?: string; + tierId?: string | null; userType?: UserType; plan?: StoragePlan; }; @@ -188,6 +189,8 @@ export interface DisplayPrice { amount: number; currency: string; userType: UserType; + tierId?: string | null; + planName?: string | null; } export interface CreateCheckoutSessionPayload { diff --git a/src/payments/types/index.ts b/src/payments/types/index.ts index 3fe72692..105c38a2 100644 --- a/src/payments/types/index.ts +++ b/src/payments/types/index.ts @@ -71,6 +71,8 @@ export type Price = { decimalAmount: number; type: UserType; product: string; + tierId?: string | null; + planName?: string | null; }; export type Taxes = {