fix: add regular plan to price type enum

This commit is contained in:
Mythie
2024-06-12 21:27:05 +10:00
parent cc43139573
commit 8c2f61a004
3 changed files with 3 additions and 2 deletions

View File

@@ -6,5 +6,5 @@ import { getPricesByPlan } from './get-prices-by-plan';
* Returns the Stripe prices of items that affect the amount of documents a user can create. * Returns the Stripe prices of items that affect the amount of documents a user can create.
*/ */
export const getDocumentRelatedPrices = async () => { export const getDocumentRelatedPrices = async () => {
return await getPricesByPlan([STRIPE_PLAN_TYPE.COMMUNITY, STRIPE_PLAN_TYPE.ENTERPRISE]); return await getPricesByPlan([STRIPE_PLAN_TYPE.REGULAR, STRIPE_PLAN_TYPE.COMMUNITY, STRIPE_PLAN_TYPE.ENTERPRISE]);
}; };

View File

@@ -6,5 +6,5 @@ import { getPricesByPlan } from './get-prices-by-plan';
* Returns the prices of items that count as the account's primary plan. * Returns the prices of items that count as the account's primary plan.
*/ */
export const getPrimaryAccountPlanPrices = async () => { export const getPrimaryAccountPlanPrices = async () => {
return await getPricesByPlan([STRIPE_PLAN_TYPE.COMMUNITY, STRIPE_PLAN_TYPE.ENTERPRISE]); return await getPricesByPlan([STRIPE_PLAN_TYPE.REGULAR, STRIPE_PLAN_TYPE.COMMUNITY, STRIPE_PLAN_TYPE.ENTERPRISE]);
}; };

View File

@@ -4,6 +4,7 @@ export enum STRIPE_CUSTOMER_TYPE {
} }
export enum STRIPE_PLAN_TYPE { export enum STRIPE_PLAN_TYPE {
REGULAR = 'regular',
TEAM = 'team', TEAM = 'team',
COMMUNITY = 'community', COMMUNITY = 'community',
ENTERPRISE = 'enterprise', ENTERPRISE = 'enterprise',