fix: add regular plan to price type enum
This commit is contained in:
@@ -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]);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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]);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user