import{bf as a}from"./index-0LqjRhnu.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="0d36bed2-ff8a-4aef-83b1-d48752cb0eb0",s._sentryDebugIdIdentifier="sentry-dbid-0d36bed2-ff8a-4aef-83b1-d48752cb0eb0")}catch{}})();class y{static async getRetryPaymentData(t){return(await a.get(`/v3/payments/${t}/retry`)).data}static async retryPayment(t,e){return(await a.post(`/v3/payments/${t}/retry`,e)).data}static async getPaymentMethods(){return(await a.get("/v3/payment-methods")).data}static async createCardPaymentMethod(t,e,r=!1,d="USD",n){return(await a.post("/public/v3/payment-methods",{gateway:t,metas:JSON.stringify(e),primary:r,publicParticipantId:(n==null?void 0:n.publicParticipantId)||void 0,applyId:(n==null?void 0:n.applyId)||void 0,currency:d})).data}static async deletePaymentMethod(t){return(await a.delete(`/v3/payment-methods/${t}`)).data}static async setPrimaryPaymentMethod(t){await a.put(`/v3/payment-methods/${t}/primary`)}static async initPaymentMethodGoCardless(t,e){return(await a.post("/v3/payment-methods/init/gocardless",{scheme:t,applyId:e})).data}static async getCheckoutConfirmationDetails(t){return(await a.get(`/public/v3/checkout/confirmation/${t}`)).data}static async getStripePaymentIntent(t="USD"){return(await a.post("/v3/payment-methods/init/stripe",{currency:t})).data}}export{y as P};
//# sourceMappingURL=Payment.api-BTaM3-ji.js.map