summaryrefslogtreecommitdiffhomepage
path: root/infra/console.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-04-07 10:08:57 -0400
committerFrank <[email protected]>2026-04-07 10:09:00 -0400
commit01c5eb679cd0b00cba654b316ef8615d0262c500 (patch)
treed2617bfd783804525a1b747beccde5999c2864d4 /infra/console.ts
parent41612b3dbea7b4e30a5a83678d2526dbeae9b61a (diff)
downloadopencode-01c5eb679cd0b00cba654b316ef8615d0262c500.tar.gz
opencode-01c5eb679cd0b00cba654b316ef8615d0262c500.zip
go: support coupon
Diffstat (limited to 'infra/console.ts')
-rw-r--r--infra/console.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/infra/console.ts b/infra/console.ts
index 22652f2da..8925f37d5 100644
--- a/infra/console.ts
+++ b/infra/console.ts
@@ -109,6 +109,12 @@ const zenLiteCouponFirstMonth50 = new stripe.Coupon("ZenLiteCouponFirstMonth50",
appliesToProducts: [zenLiteProduct.id],
duration: "once",
})
+const zenLiteCouponFirstMonth100 = new stripe.Coupon("ZenLiteCouponFirstMonth100", {
+ name: "First month 100% off",
+ percentOff: 100,
+ appliesToProducts: [zenLiteProduct.id],
+ duration: "once",
+})
const zenLitePrice = new stripe.Price("ZenLitePrice", {
product: zenLiteProduct.id,
currency: "usd",
@@ -124,6 +130,7 @@ const ZEN_LITE_PRICE = new sst.Linkable("ZEN_LITE_PRICE", {
price: zenLitePrice.id,
priceInr: 92900,
firstMonth50Coupon: zenLiteCouponFirstMonth50.id,
+ firstMonth100Coupon: zenLiteCouponFirstMonth100.id,
},
})
@@ -229,6 +236,7 @@ new sst.cloudflare.x.SolidStart("Console", {
SALESFORCE_INSTANCE_URL,
ZEN_BLACK_PRICE,
ZEN_LITE_PRICE,
+ new sst.Secret("ZEN_LITE_COUPON_FIRST_MONTH_100_INVITEES"),
new sst.Secret("ZEN_LIMITS"),
new sst.Secret("ZEN_SESSION_SECRET"),
...ZEN_MODELS,