feat: Introduce new plans for the cloud

This commit is contained in:
Faruk AYDIN
2023-04-26 12:13:39 +02:00
parent c0171e1cd1
commit c12703422c
2 changed files with 18 additions and 2 deletions

View File

@@ -1,13 +1,27 @@
const plans = [
import appConfig from '../../config/app';
const testPlans = [
{
name: '10k - monthly',
limit: '10,000',
quota: 10000,
price: '€20',
productId: '47384',
}
},
];
const prodPlans = [
{
name: '10k - monthly',
limit: '10,000',
quota: 10000,
price: '€20',
productId: '826658',
},
];
const plans = appConfig.isProd ? prodPlans : testPlans;
export function getPlanById(id: string) {
return plans.find((plan) => plan.productId === id);
}