diff options
| author | Frank <[email protected]> | 2026-03-11 10:46:16 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-03-11 18:09:41 -0400 |
| commit | 502d6db6d0de384a2831d059b974811513937f08 (patch) | |
| tree | 018baca5c1b5e4e19519bdb3afdabcd00f6076a3 /infra | |
| parent | 0b0ad5de99096bd531af7878e198d3d28c0e61f8 (diff) | |
| download | opencode-502d6db6d0de384a2831d059b974811513937f08.tar.gz opencode-502d6db6d0de384a2831d059b974811513937f08.zip | |
go: first month discount
Diffstat (limited to 'infra')
| -rw-r--r-- | infra/console.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/infra/console.ts b/infra/console.ts index 128e06986..c7889c587 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -103,6 +103,12 @@ export const stripeWebhook = new stripe.WebhookEndpoint("StripeWebhookEndpoint", const zenLiteProduct = new stripe.Product("ZenLite", { name: "OpenCode Go", }) +const zenLiteCouponFirstMonth50 = new stripe.Coupon("ZenLiteCouponFirstMonth50", { + name: "First month 50% off", + percentOff: 50, + appliesToProducts: [zenLiteProduct.id], + duration: "once", +}) const zenLitePrice = new stripe.Price("ZenLitePrice", { product: zenLiteProduct.id, currency: "usd", @@ -116,6 +122,7 @@ const ZEN_LITE_PRICE = new sst.Linkable("ZEN_LITE_PRICE", { properties: { product: zenLiteProduct.id, price: zenLitePrice.id, + firstMonth50Coupon: zenLiteCouponFirstMonth50.id, }, }) |
