import{a as h}from"./chunk-YO44C22F.js";import{f as n}from"./chunk-6VC7H3CZ.js";import{da as r,ja as a}from"./chunk-QMYHTLAJ.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};
