From 7ec5e49e19122f53d99836bdda0d7a98eb61c868 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 16 Oct 2025 14:59:44 -0400 Subject: zen: support stripe link --- packages/console/core/src/billing.ts | 1 + packages/console/core/src/schema/billing.sql.ts | 1 + 2 files changed, 2 insertions(+) (limited to 'packages/console/core/src') diff --git a/packages/console/core/src/billing.ts b/packages/console/core/src/billing.ts index 7102a4e55..297edebd0 100644 --- a/packages/console/core/src/billing.ts +++ b/packages/console/core/src/billing.ts @@ -27,6 +27,7 @@ export namespace Billing { .select({ customerID: BillingTable.customerID, paymentMethodID: BillingTable.paymentMethodID, + paymentMethodType: BillingTable.paymentMethodType, paymentMethodLast4: BillingTable.paymentMethodLast4, balance: BillingTable.balance, reload: BillingTable.reload, diff --git a/packages/console/core/src/schema/billing.sql.ts b/packages/console/core/src/schema/billing.sql.ts index 215f0a472..c72eba283 100644 --- a/packages/console/core/src/schema/billing.sql.ts +++ b/packages/console/core/src/schema/billing.sql.ts @@ -9,6 +9,7 @@ export const BillingTable = mysqlTable( ...timestamps, customerID: varchar("customer_id", { length: 255 }), paymentMethodID: varchar("payment_method_id", { length: 255 }), + paymentMethodType: varchar("payment_method_type", { length: 32 }), paymentMethodLast4: varchar("payment_method_last4", { length: 4 }), balance: bigint("balance", { mode: "number" }).notNull(), monthlyLimit: int("monthly_limit"), -- cgit v1.2.3