Files
speckle-server/packages/server/modules/gatekeeperCore/domain/billing.ts
T
Kristaps Fabians Geikins 211922b6a6 chore: get rid of all old workspace plan code (#4624)
* first batch of changes

* tests fix

* FE fixed

* renaming constants

* test fixes

* moar test fixes

* another test fix

* reenable app rover check

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2025-04-30 19:18:32 +02:00

21 lines
487 B
TypeScript

import { PaidWorkspacePlans, WorkspacePlanBillingIntervals } from '@speckle/shared'
export type WorkspacePricingProducts = PaidWorkspacePlans
export const Currency = {
usd: 'usd',
gbp: 'gbp'
} as const
type IntervalPrices = Record<
WorkspacePlanBillingIntervals,
{ amount: number; currency: string }
>
export type WorkspacePlanProductPrices = Record<
Currency,
Record<PaidWorkspacePlans, IntervalPrices>
>
export type Currency = (typeof Currency)[keyof typeof Currency]