diff options
Diffstat (limited to 'packages/console/core')
| -rw-r--r-- | packages/console/core/src/billing.ts | 1 | ||||
| -rw-r--r-- | packages/console/core/src/lite.ts | 1 | ||||
| -rw-r--r-- | packages/console/core/sst-env.d.ts | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/packages/console/core/src/billing.ts b/packages/console/core/src/billing.ts index a1078052c..77657fc63 100644 --- a/packages/console/core/src/billing.ts +++ b/packages/console/core/src/billing.ts @@ -258,6 +258,7 @@ export namespace Billing { mode: "subscription", billing_address_collection: "required", line_items: [{ price: LiteData.priceID(), quantity: 1 }], + discounts: [{ coupon: LiteData.firstMonth50Coupon() }], ...(billing.customerID ? { customer: billing.customerID, diff --git a/packages/console/core/src/lite.ts b/packages/console/core/src/lite.ts index c6f7d5a3e..8c5b63d0c 100644 --- a/packages/console/core/src/lite.ts +++ b/packages/console/core/src/lite.ts @@ -10,5 +10,6 @@ export namespace LiteData { export const productID = fn(z.void(), () => Resource.ZEN_LITE_PRICE.product) export const priceID = fn(z.void(), () => Resource.ZEN_LITE_PRICE.price) + export const firstMonth50Coupon = fn(z.void(), () => Resource.ZEN_LITE_PRICE.firstMonth50Coupon) export const planName = fn(z.void(), () => "lite") } diff --git a/packages/console/core/sst-env.d.ts b/packages/console/core/sst-env.d.ts index 23ae6e44b..d00d0c32f 100644 --- a/packages/console/core/sst-env.d.ts +++ b/packages/console/core/sst-env.d.ts @@ -131,6 +131,7 @@ declare module "sst" { "value": string } "ZEN_LITE_PRICE": { + "firstMonth50Coupon": string "price": string "product": string "type": "sst.sst.Linkable" |
