summaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-04-27 01:36:26 -0400
committerFrank <[email protected]>2026-04-27 01:36:28 -0400
commite8c20235b8b50589370d8e6adbe05fad5e4d6e90 (patch)
tree453dc209608714b7e8891c8cbaa3d592733f9238 /infra
parent17701628bd4370067a1e2613043a9da14f8e302f (diff)
downloadopencode-e8c20235b8b50589370d8e6adbe05fad5e4d6e90.tar.gz
opencode-e8c20235b8b50589370d8e6adbe05fad5e4d6e90.zip
zen: coupons
Diffstat (limited to 'infra')
-rw-r--r--infra/console.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/infra/console.ts b/infra/console.ts
index f1f5692b7..201d5bdc6 100644
--- a/infra/console.ts
+++ b/infra/console.ts
@@ -115,6 +115,27 @@ const zenLiteCouponFirstMonth100 = new stripe.Coupon("ZenLiteCouponFirstMonth100
appliesToProducts: [zenLiteProduct.id],
duration: "once",
})
+const zenLiteCouponThreeMonths100 = new stripe.Coupon("ZenLiteCoupon3Months100", {
+ name: "3 months 100% off",
+ percentOff: 100,
+ appliesToProducts: [zenLiteProduct.id],
+ duration: "repeating",
+ durationInMonths: 3,
+})
+const zenLiteCouponSixMonths100 = new stripe.Coupon("ZenLiteCoupon6Months100", {
+ name: "6 months 100% off",
+ percentOff: 100,
+ appliesToProducts: [zenLiteProduct.id],
+ duration: "repeating",
+ durationInMonths: 6,
+})
+const zenLiteCouponTwelveMonths100 = new stripe.Coupon("ZenLiteCoupon12Months100", {
+ name: "12 months 100% off",
+ percentOff: 100,
+ appliesToProducts: [zenLiteProduct.id],
+ duration: "repeating",
+ durationInMonths: 12,
+})
const zenLitePrice = new stripe.Price("ZenLitePrice", {
product: zenLiteProduct.id,
currency: "usd",
@@ -131,6 +152,9 @@ const ZEN_LITE_PRICE = new sst.Linkable("ZEN_LITE_PRICE", {
priceInr: 92900,
firstMonth50Coupon: zenLiteCouponFirstMonth50.id,
firstMonth100Coupon: zenLiteCouponFirstMonth100.id,
+ threeMonths100Coupon: zenLiteCouponThreeMonths100.id,
+ sixMonths100Coupon: zenLiteCouponSixMonths100.id,
+ twelveMonths100Coupon: zenLiteCouponTwelveMonths100.id,
},
})