import{f as a}from"./chunk-XJK5B3XJ.js";import{a as l}from"./chunk-AV5HDXJZ.js";import{a as u}from"./chunk-PLVHWZTL.js";import{a as i}from"./chunk-PDYJ5OYY.js";import{d as p,i as A}from"./chunk-YMOV4UGM.js";import{ga as C,la as c}from"./chunk-I3FGJX2C.js";import{a as h}from"./chunk-B7YGBANW.js";var k={CASPKZKA:a.Kaspi,HSBKKZKX:a.Halyk,TSESKZKA:a.Jusan,IRTYKZKA:a.Forte,KCJBKZKX:a.BCC,EURIKZKA:a.Eurasian,BRKEKZKA:a.Bereke,KSNVKZKA:a.Freedom,INLMKZKA:a.HomeCredit},n=(function(t){return t.Kaspi="CASPKZKA",t.Halyk="HSBKKZKX",t.Jusan="TSESKZKA",t.Forte="IRTYKZKA",t.BCC="KCJBKZKX",t.Eurasian="EURIKZKA",t.Bereke="BRKEKZKA",t.Freedom="KSNVKZKA",t.HomeCredit="INLMKZKA",t})(n||{});var f=(function(t){return t[t.Purchase=0]="Purchase",t[t.ReturnPurchase=1]="ReturnPurchase",t[t.Sale=2]="Sale",t[t.ReturnSale=3]="ReturnSale",t})(f||{}),x=(function(t){return t[t.Cash=0]="Cash",t[t.Cashless=1]="Cashless",t[t.Mobile=4]="Mobile",t})(x||{}),E=(function(t){return t[t.Qr=0]="Qr",t[t.Card=1]="Card",t})(E||{}),H=(function(t){return t[t.WithoutRound=0]="WithoutRound",t[t.TotalRound=1]="TotalRound",t[t.PositionRound=2]="PositionRound",t})(H||{}),K=(function(t){return t[t.Wifi=0]="Wifi",t[t.Usb=1]="Usb",t})(K||{}),e=(function(t){return t[t.Kaspi=0]="Kaspi",t[t.BankCenterCredit=1]="BankCenterCredit",t[t.Jusan=3]="Jusan",t[t.HalykSmartPos=5]="HalykSmartPos",t[t.Forte=6]="Forte",t[t.HalykPax=7]="HalykPax",t[t.BankCenterCreditAisino=8]="BankCenterCreditAisino",t})(e||{});var Z={[K.Wifi]:"Wi-Fi",[K.Usb]:"USB"},I={[n.Kaspi]:e.Kaspi,[n.BCC]:e.BankCenterCredit,[n.Jusan]:e.Jusan,[n.Halyk]:e.HalykSmartPos,[n.Forte]:e.Forte},b={[e.Kaspi]:"Kaspi",[e.BankCenterCredit]:"Bank Center Credit",[e.Jusan]:"Jusan",[e.HalykSmartPos]:"Halyk Smart Pos",[e.Forte]:"Forte",[e.HalykPax]:"HalykPax",[e.BankCenterCreditAisino]:"Bank Center Credit Aisino"},R="/api/Authentication/RefreshToken",L="/api/Authentication/Authenticate";var g=(()=>{let s=class s{constructor(r){this._http=r,this._trinityApiURL=l.trinityApiURL}signIn(r,o){return this._http.post(`${this._trinityApiURL}/api/Authentication/Authenticate`,{login:r,password:o})}refreshToken(r){let o=new p({"Content-Type":"application/json"});return this._http.post(`${this._trinityApiURL}${R}`,{refreshToken:r},{headers:o})}bankCenterCreditTerminalSetup(){return this._http.post(`${this._trinityApiURL}/api/PosSettings/BankCenterCreditTerminalSetup`,{timeout:18e4,baudrate:115200},{headers:u})}forteTerminalSetup(){return this._http.post(`${this._trinityApiURL}/api/PosSettings/ForteTerminalSetup`,{timeout:18e4,baudrate:115200},{headers:u})}kaspiTerminalSetup(r=!1){let o=new p().append(i.SkipError,"skipError").append(i.ActAsGet,"true");return this._http.post(`${this._trinityApiURL}/api/PaymentSystem/RegisterCashbox`,{ReRegisterCashbox:r},{headers:o})}checkOperation(r,o){let _=o&&o.length?u.append("Request-Number",o):u;return this._http.post(`${this._trinityApiURL}/api/Cashbox/CheckOperation`,h({},r),{headers:_,observe:"response"})}closeShift(r){return this._http.post(`${this._trinityApiURL}/api/Cashbox/CloseShift`,h({},r))}getXReport(){return this._http.post(`${this._trinityApiURL}/api/Cashbox/XReport`,{})}moneyOperation(r){return this._http.post(`${this._trinityApiURL}/api/Cashbox/MoneyOperation`,h({},r))}};s.\u0275fac=function(o){return new(o||s)(c(A))},s.\u0275prov=C({token:s,factory:s.\u0275fac});let t=s;return t})();export{k as a,n as b,f as c,x as d,E as e,H as f,K as g,e as h,Z as i,I as j,b as k,R as l,L as m,g as n};
//# sourceMappingURL=chunk-OWR3JC2T.js.map
