import{bf as e}from"./index-B4gewkxT.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="ed46933f-6e59-44c1-ab8a-7051cb5e8d47",n._sentryDebugIdIdentifier="sentry-dbid-ed46933f-6e59-44c1-ab8a-7051cb5e8d47")}catch{}})();class o{static async getSubscriptions(){return(await e.get("v3/subscriptions")).data}static async subscribeFutureLeadersPass(s){return(await e.post("/v3/subscriptions/future-leaders-pass",s)).data}static async getInvoices(){return(await e.get("/v3/invoices")).data}static async getBillingAddress(){return(await e.get("/v3/subscriptions/billing-address")).data}static async patchBillingAddress(s){return(await e.patch("v3/subscriptions/billing-address",s)).data}static async cancelSubscriptionAddon(s,t){return(await e.delete(`v3/subscriptions/${s}/cancel/${t}`)).data}static async changeBillingPeriod(s){return(await e.put(`/v3/subscriptions/${s.subscriptionId}/billing-period`,{period:s.period})).data}static async cancelSubscription(s,t){return(await e.delete(`v3/subscriptions/${s}/cancel`,{data:t})).data}static async reactivateSubscription(s){return(await e.post(`v3/subscriptions/${s}/reactivate`)).data}static async switchOnAutoCollectionSubscription(s){return(await e.post(`v3/subscriptions/${s}/auto-collection`)).data}static async unscheduleCancellationSubscription(s){return(await e.post(`v3/subscriptions/${s}/unschedule-cancellation`)).data}static async getSubscriptionRenewEstimate(s){return(await e.get(`v3/subscriptions/${s}/estimate`)).data}static async getChargebeeCollectNowPayload(){return(await e.get("/v3/subscriptions/collect-now",{})).data}static async upgradeSubscription(s,t){return(await e.put(`v3/subscriptions/${s}`,{planItemPriceId:t})).data}static async getSubscriptionData(s,t){return(await e.put(`/v3/subscriptions/${s}`,t)).data}static async upgradeSubscriptionBs(s,t,a){return(await e.put(`v3/subscriptions/${s}`,{addonItemPriceId:t,additionnalAddonItemPriceId:a})).data}static async getSubscription(s){return(await e.get(`v3/subscriptions/${s}`,{})).data}static async pauseSubscription(s,t){return(await e.put(`v3/subscriptions/${s}/pause`,{pauseDuration:t})).data}static async getNotificationPreferences(){return(await e.get("/v3/notifications")).data}static async getOffboardingStats(){return(await e.get("v3/subscriptions/offboarding")).data}static async setNotificationPreferences(s){return(await e.post("/v3/notifications",s)).data}static async downgradeSubscription(s){return(await e.put(`v3/subscriptions/${s}/downgrade`)).data}}export{o as A};
//# sourceMappingURL=Account.api-DXjYphb3.js.map