feat: add GetPaymentPlans graphQL query

This commit is contained in:
Faruk AYDIN
2023-03-20 19:12:21 +03:00
parent 40862fcd01
commit f1358c7ad1
6 changed files with 42 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import PaymentPlan from '../../models/payment-plan.ee';
import UsageData from '../../models/usage-data.ee';
import appConfig from '../../config/app';
import handleWebhooks from './webhooks.ee';
import paddlePlans from './plans.ee';
const plans = [
{
@@ -95,6 +96,7 @@ const billing = {
handleWebhooks,
stripe,
plans,
paddlePlans,
};
export default billing;

View File

@@ -0,0 +1,16 @@
const plans = [
{
name: '10k - monthly',
limit: '10,000',
price: '€20',
productId: '47384',
},
{
name: '30k - monthly',
limit: '30,000',
price: '€50',
productId: '47419',
},
];
export default plans;