remove update subscription flow overall from UI

This commit is contained in:
Tanmay Deep Sharma
2025-10-29 21:36:45 +05:30
parent 40608f4494
commit 65559b47fd
5 changed files with 22 additions and 12 deletions
@@ -304,13 +304,18 @@ export const actions = {
}
},
v2UpdateQuantity: async ({ commit, dispatch }, { quantity }) => {
v2UpdateQuantity: async (
{ commit, dispatch },
{ pricingPlanId, quantity }
) => {
commit(types.default.SET_V2_BILLING_UI_FLAG, {
isSubscribeInProcess: true,
});
try {
const response =
await EnterpriseAccountAPI.updateSubscriptionQuantity(quantity);
const response = await EnterpriseAccountAPI.changePricingPlan({
pricing_plan_id: pricingPlanId,
quantity,
});
// Update account with new quantity
if (response.data.id && response.data.custom_attributes) {
commit(types.default.SET_ACCOUNT_LIMITS, response.data);