add fe changes

This commit is contained in:
Tanmay Deep Sharma
2025-10-28 22:59:57 +05:30
parent 3970149b06
commit 1689d5cf5c
15 changed files with 1846 additions and 0 deletions
@@ -23,6 +23,45 @@ class EnterpriseAccountAPI extends ApiClient {
action_type: action,
});
}
// V2 Billing APIs
creditsBalance() {
return axios.get(`${this.url}credits_balance`);
}
creditGrants() {
return axios.get(`${this.url}credit_grants`);
}
v2PricingPlans() {
return axios.get(`${this.url}v2_pricing_plans`);
}
v2TopupOptions() {
return axios.get(`${this.url}v2_topup_options`);
}
v2Topup(data) {
return axios.post(`${this.url}v2_topup`, data);
}
v2Subscribe(data) {
return axios.post(`${this.url}v2_subscribe`, data);
}
cancelSubscription(data = {}) {
return axios.post(`${this.url}cancel_subscription`, data);
}
updateSubscriptionQuantity(quantity) {
return axios.post(`${this.url}update_subscription_quantity`, {
quantity,
});
}
changePricingPlan(data) {
return axios.post(`${this.url}change_pricing_plan`, data);
}
}
export default new EnterpriseAccountAPI();