Files
cal.diy/packages/app-store/stripepayment/lib/utils.ts
T
Udit TakkarandHariom Balhara 02c86d0268 feat: cal ai self serve architecture #1 (#22919)
* feat: cal ai self serve architecture

* chore: add package

* chore: update evnet controller

* refactor: improvements

* chore: rename

* chore: type error and naming

* chore: just set it to nul

* chore: just set it to nul

* chore: some more improvements

* chore: packate version

* fix: API v2

* chore: change name of files

* chore: add select

* chore: add missing teamId

* chore: save progress

* refactor: split into multiple services

* refactor: make schema provider agonistic

* chore: improvements

* chore:

* chore: remove duplicate files

* chore: semicolon

* chore: formatting

* refactor: logging and error handling

* chore: rename variable

* refactor: use trpc error

* chore: replace with HttpError

* chore: remove from option

* We need the enum and not just the type

---------

Co-authored-by: Hariom Balhara <[email protected]>
2025-08-08 15:57:13 +00:00

29 lines
673 B
TypeScript

// @NOTE: should we remove this? It's just a wrapper of env vars
import {
PREMIUM_PLAN_PRODUCT_ID,
STRIPE_TEAM_MONTHLY_PRICE_ID,
PREMIUM_MONTHLY_PLAN_PRICE,
STRIPE_PHONE_NUMBER_MONTHLY_PRICE_ID
} from "./constants";
export const getPremiumMonthlyPlanPriceId = (): string => {
return PREMIUM_MONTHLY_PLAN_PRICE;
};
export function getPremiumPlanProductId(): string {
return PREMIUM_PLAN_PRODUCT_ID;
}
export function getPerSeatPlanPrice(): string {
return STRIPE_TEAM_MONTHLY_PRICE_ID;
}
export function getPremiumPlanPriceValue() {
return "$29/month";
}
export function getPhoneNumberMonthlyPriceId(){
return STRIPE_PHONE_NUMBER_MONTHLY_PRICE_ID;
}