summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-10-16 14:59:44 -0400
committerFrank <[email protected]>2025-10-16 14:59:46 -0400
commit7ec5e49e19122f53d99836bdda0d7a98eb61c868 (patch)
tree6ee0dceb9ff90aa580491607fd65ee783985cc5a /packages/console/core/src
parent1c1380d3c8163393c7133981d43c9ec5abf4da43 (diff)
downloadopencode-7ec5e49e19122f53d99836bdda0d7a98eb61c868.tar.gz
opencode-7ec5e49e19122f53d99836bdda0d7a98eb61c868.zip
zen: support stripe link
Diffstat (limited to 'packages/console/core/src')
-rw-r--r--packages/console/core/src/billing.ts1
-rw-r--r--packages/console/core/src/schema/billing.sql.ts1
2 files changed, 2 insertions, 0 deletions
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"),