1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Merge remote-tracking branch 'origin/pricing/events' into pricing/events

This commit is contained in:
Rory Powell 2023-04-28 11:24:23 +01:00
commit 93564a0d1c

View file

@ -7,16 +7,30 @@ import {
PlanType,
PriceDuration,
PurchasedPlan,
PurchasedPrice,
Quotas,
Subscription,
} from "@budibase/types"
export function price(): PurchasedPrice {
return {
amount: 10000,
amountMonthly: 10000,
currency: "usd",
duration: PriceDuration.MONTHLY,
priceId: "price_123",
dayPasses: undefined,
isPerUser: true,
}
}
export const plan = (type: PlanType = PlanType.FREE): PurchasedPlan => {
return {
type,
usesInvoicing: false,
minUsers: 1,
model: PlanModel.PER_USER,
price: price(),
}
}