import{a as h}from"./chunk-NHAEOK7K.js";import{x as n}from"./chunk-OIJW4GMG.js";import{ca as r,ia as a}from"./chunk-3FIHWXA5.js";var d=(()=>{class e{constructor(t){this._http=t,this._defaultFilter={criteria:null,take:100,skip:0,orderBy:"id",isAscending:!0}}getPaymentMethods(t){return this._http.get(`/api/payment-method/${t}/all`)}getPaymentMethodsWithArchive(t){return this._http.get(`/api/payment-method/${t}/all?viewArchive=true`)}getPaymentMethodById(t){return this._http.get(`/api/payment-method/${t}`)}editPaymentMethod(t,i){return this._http.put(`/api/payment-method/${t}`,i)}createPaymentMethod(t){return this._http.post("/api/payment-method",t)}deletePaymentMethod(t){return this._http.delete(`/api/payment-method/${t}`)}getTrinityPaymentMethods(t){return this._http.post(`/api/trinity-payment-method/${t}/all`,this._defaultFilter,{headers:h})}createTrinityPaymentMethod(t){return this._http.post("/api/trinity-payment-method",t)}editTrinityPaymentMethod(t,i){return this._http.put(`/api/trinity-payment-method/${i}`,t)}deleteTrinityPaymentMethod(t){return this._http.delete(`/api/trinity-payment-method/${t}`)}editOrder(t){return this._http.put("/api/payment-method/edit-order",t)}deletePosTerminal(t){return this._http.delete(`/api/payment-method/pos-terminal/${t}`)}static{this.\u0275fac=function(i){return new(i||e)(a(n))}}static{this.\u0275prov=r({token:e,factory:e.\u0275fac})}}return e})();export{d as a};
