import{Ma as a}from"./chunk-QHAVDXDG.js";import{a as A}from"./chunk-PSDBNMO6.js";import{a as n}from"./chunk-KXX3UDJ3.js";import{a as p}from"./chunk-PDYJ5OYY.js";import{d as h,j as c}from"./chunk-GQAU5ACB.js";import{la as K,pa as C}from"./chunk-ISMRT7VU.js";import{a as u}from"./chunk-M5TX2NVG.js";var H={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},s=(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})(s||{});var _=(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=(function(t){return t[t.Cash=0]="Cash",t[t.Cashless=1]="Cashless",t[t.Mobile=4]="Mobile",t})(f||{}),x=(function(t){return t[t.Qr=0]="Qr",t[t.Card=1]="Card",t})(x||{}),S=(function(t){return t[t.WithoutRound=0]="WithoutRound",t[t.TotalRound=1]="TotalRound",t[t.PositionRound=2]="PositionRound",t})(S||{}),i=(function(t){return t[t.Wifi=0]="Wifi",t[t.Usb=1]="Usb",t})(i||{}),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 d={[i.Wifi]:"Wi-Fi",[i.Usb]:"USB"},Z={[s.Kaspi]:e.Kaspi,[s.BCC]:e.BankCenterCredit,[s.Jusan]:e.Jusan,[s.Halyk]:e.HalykSmartPos,[s.Forte]:e.Forte},I={[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"},l="/api/Authentication/RefreshToken",b="/api/Authentication/Authenticate";var B=(()=>{class t{constructor(r){this._http=r,this._trinityApiURL=A.trinityApiURL}signIn(r,o){return this._http.post(`${this._trinityApiURL}/api/Authentication/Authenticate`,{login:r,password:o})}refreshToken(r){let o=new h({"Content-Type":"application/json"});return this._http.post(`${this._trinityApiURL}${l}`,{refreshToken:r},{headers:o})}bankCenterCreditTerminalSetup(){return this._http.post(`${this._trinityApiURL}/api/PosSettings/BankCenterCreditTerminalSetup`,{timeout:18e4,baudrate:115200},{headers:n})}forteTerminalSetup(){return this._http.post(`${this._trinityApiURL}/api/PosSettings/ForteTerminalSetup`,{timeout:18e4,baudrate:115200},{headers:n})}kaspiTerminalSetup(r=!1){let o=new h().append(p.SkipError,"skipError").append(p.ActAsGet,"true");return this._http.post(`${this._trinityApiURL}/api/PaymentSystem/RegisterCashbox`,{ReRegisterCashbox:r},{headers:o})}checkOperation(r,o){let R=o&&o.length?n.append("Request-Number",o):n;return this._http.post(`${this._trinityApiURL}/api/Cashbox/CheckOperation`,u({},r),{headers:R,observe:"response"})}closeShift(r){return this._http.post(`${this._trinityApiURL}/api/Cashbox/CloseShift`,u({},r))}getXReport(){return this._http.post(`${this._trinityApiURL}/api/Cashbox/XReport`,{})}moneyOperation(r){return this._http.post(`${this._trinityApiURL}/api/Cashbox/MoneyOperation`,u({},r))}static{this.\u0275fac=function(o){return new(o||t)(C(c))}}static{this.\u0275prov=K({token:t,factory:t.\u0275fac})}}return t})();export{H as a,s as b,_ as c,f as d,x as e,S as f,i as g,e as h,d as i,Z as j,I as k,l,b as m,B as n};
//# sourceMappingURL=chunk-6WU6YPK5.js.map
