@munchi_oy/core 1.3.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +3695 -3776
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +7357 -7848
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import h from"axios";import Fe from"axios";var p="http://localhost".replace(/\/+$/,"");var S=class{constructor(t,e=p,r=Fe){this.basePath=e;this.axios=r;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},z=class extends Error{constructor(e,r){super(r);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,t,e){if(e==null)throw new z(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var v=async function(a,t){if(t&&t.accessToken){let e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;a.Authorization="Bearer "+e}};function J(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>J(a,r,e)):Object.keys(t).forEach(r=>J(a,t[r],`${e}${e!==""?".":""}${r}`)):a.has(e)?a.append(e,t):a.set(e,t))}var y=function(a,...t){let e=new URLSearchParams(a.search);J(e,t),a.search=e.toString()},x=function(a,t,e){let r=typeof a!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(a!==void 0?a:{}):a||""},g=function(a){return a.pathname+a.search+a.hash},P=function(a,t,e,r){return(s=t,n=e)=>{let o={...a.options,url:(r?.basePath||n)+a.url};return s.request(o)}};var Et={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Bt={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ut={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Mt={Image:"image",Video:"video",Animation:"animation"},kt={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},_t={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Nt={GiftCard:"GiftCard"},wt={Online:"ONLINE",Offline:"OFFLINE"},jt={SaleTransaction:"SALE_TRANSACTION",RefundTransaction:"REFUND_TRANSACTION",OrderVoid:"ORDER_VOID",OpeningFloat:"OPENING_FLOAT",ClosingCount:"CLOSING_COUNT",AdjustmentEntry:"ADJUSTMENT_ENTRY",BankTransferIn:"BANK_TRANSFER_IN",PrivateDeposit:"PRIVATE_DEPOSIT",TipsDeposit:"TIPS_DEPOSIT",PurchaseMaterials:"PURCHASE_MATERIALS",BankTransferOut:"BANK_TRANSFER_OUT",SalaryPayout:"SALARY_PAYOUT",TipsPayout:"TIPS_PAYOUT",PrivateWithdrawal:"PRIVATE_WITHDRAWAL",OtherExpense:"OTHER_EXPENSE",Other:"OTHER"},Lt={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ft={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Ht={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Qt={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},Gt={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4},Wt={Business:"BUSINESS",Chain:"CHAIN"},Kt={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},$t={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},zt={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Yt={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4,NUMBER_5:5,NUMBER_6:6,NUMBER_7:7},Zt={Item:"ITEM",Cart:"CART"},Jt={Percentage:"PERCENTAGE",Fixed:"FIXED"},Xt={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},es={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE"},ts={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},ss={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},rs={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},ns={Table:"table",Indicator:"indicator"},os={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},as={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},is={Open:"OPEN",Instant:"INSTANT"},ls={None:"NONE",Partial:"PARTIAL",Full:"FULL"},us={Platform:"PLATFORM",Pos:"POS"},cs={Pending:"pending",InProgress:"in_progress",Ready:"ready",Delivered:"delivered",Rejected:"rejected",PickUpByDriver:"pick_up_by_driver",Preorder:"preorder",AcceptByDriver:"accept_by_driver",Parked:"parked",Refunded:"refunded",Draft:"draft"},ds={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},ps={DineIn:"dine_in",PickUp:"pick_up"},ms={Business:"BUSINESS",Chain:"CHAIN"},ys={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},gs={PaymentAborted:"payment.aborted",PaymentCancelledByUser:"payment.cancelled_by_user",PaymentInsufficientFunds:"payment.insufficient_funds",PaymentCardExpired:"payment.card_expired",PaymentCardInvalid:"payment.card_invalid",PaymentPinError:"payment.pin_error",PaymentDeclined:"payment.declined",PaymentTimeout:"payment.timeout",PaymentUnknown:"payment.unknown",TerminalOffline:"terminal.offline",TerminalTimeout:"terminal.timeout",TerminalBusy:"terminal.busy",SystemProviderError:"system.provider_error",SystemUnknown:"system.unknown"},Ps={Cash:"Cash",Card:"Card",Voucher:"Voucher",EPassi:"EPassi",Edenred:"Edenred",Munchi:"Munchi",Flatpay:"Flatpay",GiftUp:"GiftUp",MobilePay:"MobilePay",CardManual:"CardManual",EdenredManual:"EdenredManual",EmployeeDiscount:"EmployeeDiscount",LunchVoucher:"LunchVoucher",EdenredVoucher:"EdenredVoucher",SmartumVoucher:"SmartumVoucher",Invoice:"Invoice",Smartum:"Smartum",GiftCard:"GiftCard",Debit:"Debit",Credit:"Credit",GiftCardManual:"GiftCardManual",WoltBenefit:"WoltBenefit",Fundis:"Fundis"},hs={Stripe:"stripe",Viva:"viva",Nets:"nets"},As={Stripe:"stripe",Viva:"viva",Nets:"nets"},fs={Paid:"paid",Pending:"pending"},xs={Cash:"cash",Card:"card"},Rs={Percentage:"percentage",Fixed:"fixed"},bs={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Cs={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Ds={AccessPosApp:"Access::PosApp",PagePos:"Page::Pos",PageOpenOrders:"Page::OpenOrders",PageOrders:"Page::Orders",PageTransactions:"Page::Transactions",PageProducts:"Page::Products",PageReports:"Page::Reports",PageSettings:"Page::Settings",Cart:"Cart::*",CartAddItem:"Cart::AddItem",CartRemoveItem:"Cart::RemoveItem",CartApplyDiscount:"Cart::ApplyDiscount",CartVoidItem:"Cart::VoidItem",CartClear:"Cart::Clear",Transaction:"Transaction::*",TransactionView:"Transaction::View",TransactionRefund:"Transaction::Refund",Shift:"Shift::*",ShiftForceClockOut:"Shift::ForceClockOut",Settings:"Settings::*",SettingsEditProfile:"Settings::EditProfile",OpenOrdersDelete:"OpenOrders::Delete"},Os={Waiting:"waiting",Confirm:"confirm"},Vs={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD"},Is={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},vs={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Ts={Modal:"MODAL",Screen:"SCREEN"},Ss={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},qs={Full:"FULL",Item:"ITEM"},Es={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Bs={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Us={Pending:"PENDING",InProgress:"in_progress",Failed:"FAILED",Completed:"COMPLETED"},Ms={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},ks={OrderCreated:"ORDER_CREATED",OrderUpdated:"ORDER_UPDATED",ItemAdded:"ITEM_ADDED",ItemRemoved:"ITEM_REMOVED",ItemUpdated:"ITEM_UPDATED",DiscountApplied:"DISCOUNT_APPLIED",DiscountRemoved:"DISCOUNT_REMOVED",RefundInitiated:"REFUND_INITIATED",RefundProcessed:"REFUND_PROCESSED",RefundCanceled:"REFUND_CANCELED",PaymentProcessed:"PAYMENT_PROCESSED",OrderStatusUpdated:"ORDER_STATUS_UPDATED",InventoryUpdated:"INVENTORY_UPDATED",CashSessionOpened:"CASH_SESSION_OPENED",CashSessionClosed:"CASH_SESSION_CLOSED",CashManualAdd:"CASH_MANUAL_ADD",CashManualRemove:"CASH_MANUAL_REMOVE"},_s={Kiosk:"KIOSK",Pos:"POS"},Ns={Active:"ACTIVE",Inactive:"INACTIVE"},ws={RequiresPaymentMethod:"requires_payment_method",RequiresConfirmation:"requires_confirmation",RequiresAction:"requires_action",Processing:"processing",RequiresCapture:"requires_capture",Canceled:"canceled",Succeeded:"succeeded"},js={Network:"NETWORK"},Ls={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Fs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Hs={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Qs={Instant:"instant",Preorder:"preorder"},Gs={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Ws={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4},Ks={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},$s={NUMBER_1000:1e3,NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1009:1009,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1047:1047,NUMBER_1048:1048,NUMBER_1049:1049,NUMBER_1050:1050,NUMBER_1051:1051,NUMBER_1052:1052,NUMBER_1053:1053,NUMBER_1054:1054,NUMBER_1055:1055,NUMBER_1056:1056,NUMBER_1057:1057,NUMBER_1058:1058,NUMBER_1059:1059,NUMBER_1060:1060,NUMBER_1061:1061,NUMBER_1062:1062,NUMBER_1063:1063,NUMBER_1064:1064,NUMBER_1065:1065,NUMBER_1066:1066,NUMBER_1067:1067,NUMBER_1068:1068,NUMBER_1069:1069,NUMBER_1070:1070,NUMBER_1071:1071,NUMBER_1072:1072,NUMBER_1074:1074,NUMBER_1075:1075,NUMBER_1076:1076,NUMBER_1077:1077,NUMBER_1079:1079,NUMBER_1080:1080,NUMBER_1081:1081,NUMBER_1082:1082,NUMBER_1083:1083,NUMBER_1099:1099,NUMBER_1100:1100,NUMBER_1101:1101,NUMBER_1102:1102,NUMBER_1110:1110,NUMBER_1301:1301,NUMBER_1302:1302,NUMBER_1303:1303,NUMBER_2000:2e3,NUMBER_3000:3e3,NUMBER_3001:3001,NUMBER_3002:3002,NUMBER_3099:3099,NUMBER_4000:4e3,NUMBER_5000:5e3,NUMBER_5001:5001,NUMBER_5002:5002,NUMBER_5003:5003,NUMBER_5004:5004,NUMBER_5005:5005,NUMBER_5006:5006,NUMBER_6000:6e3,NUMBER_6102:6102,NUMBER_6201:6201,NUMBER_7001:7001,NUMBER_7002:7002,NUMBER_7003:7003,NUMBER_7004:7004,NUMBER_7005:7005},zs={NUMBER_1000:1e3,NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1009:1009,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1047:1047,NUMBER_1048:1048,NUMBER_1049:1049,NUMBER_1050:1050,NUMBER_1051:1051,NUMBER_1052:1052,NUMBER_1053:1053,NUMBER_1054:1054,NUMBER_1055:1055,NUMBER_1056:1056,NUMBER_1057:1057,NUMBER_1058:1058,NUMBER_1059:1059,NUMBER_1060:1060,NUMBER_1061:1061,NUMBER_1062:1062,NUMBER_1063:1063,NUMBER_1064:1064,NUMBER_1065:1065,NUMBER_1066:1066,NUMBER_1067:1067,NUMBER_1068:1068,NUMBER_1069:1069,NUMBER_1070:1070,NUMBER_1071:1071,NUMBER_1072:1072,NUMBER_1074:1074,NUMBER_1075:1075,NUMBER_1076:1076,NUMBER_1077:1077,NUMBER_1079:1079,NUMBER_1080:1080,NUMBER_1081:1081,NUMBER_1082:1082,NUMBER_1083:1083,NUMBER_1099:1099,NUMBER_1100:1100,NUMBER_1101:1101,NUMBER_1102:1102,NUMBER_1110:1110,NUMBER_1301:1301,NUMBER_1302:1302,NUMBER_1303:1303,NUMBER_2000:2e3,NUMBER_3000:3e3,NUMBER_3001:3001,NUMBER_3002:3002,NUMBER_3099:3099,NUMBER_4000:4e3,NUMBER_5000:5e3,NUMBER_5001:5001,NUMBER_5002:5002,NUMBER_5003:5003,NUMBER_5004:5004,NUMBER_5005:5005,NUMBER_5006:5006,NUMBER_6000:6e3,NUMBER_6102:6102,NUMBER_6201:6201,NUMBER_7001:7001,NUMBER_7002:7002,NUMBER_7003:7003,NUMBER_7004:7004,NUMBER_7005:7005},Ys={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},Zs={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},He=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}}}},X=function(a){let t=He(a);return{async refreshConfig(e){let r=await t.refreshConfig(e);return P(r,h,p,a)},async requestSettings(e){let r=await t.requestSettings(e);return P(r,h,p,a)}}},Js=function(a,t,e){let r=X(a);return{refreshConfig(s){return r.refreshConfig(s).then(n=>n(e,t))},requestSettings(s){return r.requestSettings(s).then(n=>n(e,t))}}},ie=class extends S{refreshConfig(t){return X(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return X(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},Qe=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},generateCode:async(t,e={})=>{c("generateCode","generateCodeDto",t);let r="/api/v1/auth/code/generate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},login:async(t,e={})=>{c("login","credentialDto",t);let r="/api/v1/auth/login",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},logout:async(t={})=>{let e="/api/v1/auth/logout",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},refreshToken:async(t,e={})=>{c("refreshToken","refreshTokenDto",t);let r="/api/v1/auth/refresh",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},registerUser:async(t,e={})=>{c("registerUser","userDto",t);let r="/api/v1/auth/register",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},verifyCode:async(t,e,r={})=>{c("verifyCode","orderingAccessToken",t),c("verifyCode","phoneCodeVerificationDto",e);let s="/api/v1/auth/code/verify",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};t!=null&&(l.orderingAccessToken=String(t)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}}}},_=function(a){let t=Qe(a);return{async firebaseAuth(e){let r=await t.firebaseAuth(e);return P(r,h,p,a)},async generateCode(e,r){let s=await t.generateCode(e,r);return P(s,h,p,a)},async login(e,r){let s=await t.login(e,r);return P(s,h,p,a)},async logout(e){let r=await t.logout(e);return P(r,h,p,a)},async refreshToken(e,r){let s=await t.refreshToken(e,r);return P(s,h,p,a)},async registerUser(e,r){let s=await t.registerUser(e,r);return P(s,h,p,a)},async verifyCode(e,r,s){let n=await t.verifyCode(e,r,s);return P(n,h,p,a)}}},Xs=function(a,t,e){let r=_(a);return{firebaseAuth(s){return r.firebaseAuth(s).then(n=>n(e,t))},generateCode(s,n){return r.generateCode(s,n).then(o=>o(e,t))},login(s,n){return r.login(s,n).then(o=>o(e,t))},logout(s){return r.logout(s).then(n=>n(e,t))},refreshToken(s,n){return r.refreshToken(s,n).then(o=>o(e,t))},registerUser(s,n){return r.registerUser(s,n).then(o=>o(e,t))},verifyCode(s,n,o){return r.verifyCode(s,n,o).then(i=>i(e,t))}}},le=class extends S{firebaseAuth(t){return _(this.configuration).firebaseAuth(t).then(e=>e(this.axios,this.basePath))}generateCode(t,e){return _(this.configuration).generateCode(t,e).then(r=>r(this.axios,this.basePath))}login(t,e){return _(this.configuration).login(t,e).then(r=>r(this.axios,this.basePath))}logout(t){return _(this.configuration).logout(t).then(e=>e(this.axios,this.basePath))}refreshToken(t,e){return _(this.configuration).refreshToken(t,e).then(r=>r(this.axios,this.basePath))}registerUser(t,e){return _(this.configuration).registerUser(t,e).then(r=>r(this.axios,this.basePath))}verifyCode(t,e,r){return _(this.configuration).verifyCode(t,e,r).then(s=>s(this.axios,this.basePath))}},Ge=function(a){return{createBusinessPermission:async(t,e,r={})=>{c("createBusinessPermission","businessId",t),c("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await v(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},deleteBusinessPermission:async(t,e,r={})=>{c("deleteBusinessPermission","permissionId",t),c("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await v(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessCategoriesByMenuId:async(t,e,r={})=>{c("getBusinessCategoriesByMenuId","businessId",t),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await v(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV2:async(t,e,r={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",t),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await v(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},getBusinessChannelConfig:async(t,e,r={})=>{c("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfig:async(t,e,r={})=>{c("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfigById:async(t,e,r={})=>{c("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfigByIdV2:async(t,e,r={})=>{c("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfiguration:async(t,e,r={})=>{c("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByType:async(t,e,r={})=>{c("getBusinessMenuByType","businessId",t),c("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByTypeV2:async(t,e,r={})=>{c("getBusinessMenuByTypeV2","businessId",t),c("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByTypeV3:async(t,e,r={})=>{c("getBusinessMenuByTypeV3","businessId",t),c("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByTypeV4:async(t,e,r={})=>{c("getBusinessMenuByTypeV4","businessId",t),c("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessProviderStatus:async(t,e={})=>{c("getBusinessProviderStatus","businessId",t);let r="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await v(i,a),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},getBusinessProviderStatusExternal:async(t,e,r={})=>{c("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessTax:async(t={})=>{let e="/api/v1/business/tax",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await v(o,a),y(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},getSingleBusinessProviderStatus:async(t,e,r,s={})=>{c("getSingleBusinessProviderStatus","businessId",t),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",r);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await v(u,a),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{c("getUnifiedDiscounts","businessId",t);let r="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await v(i,a),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},setBusinessStatus:async(t,e,r={})=>{c("setBusinessStatus","businessId",t),c("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await v(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},setBusinessStatusSchedule:async(t,e,r={})=>{c("setBusinessStatusSchedule","businessId",t),c("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await v(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},updateBusinessPermission:async(t,e,r,s={})=>{c("updateBusinessPermission","permissionId",t),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",r);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},d={};await v(u,a),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=x(r,l,a),{url:g(o),options:l}},validateBusiness:async(t,e={})=>{c("validateBusiness","businessId",t);let r="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await v(i,a),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}}}},E=function(a){let t=Ge(a);return{async createBusinessPermission(e,r,s){let n=await t.createBusinessPermission(e,r,s);return P(n,h,p,a)},async deleteBusinessPermission(e,r,s){let n=await t.deleteBusinessPermission(e,r,s);return P(n,h,p,a)},async getBusinessCategoriesByMenuId(e,r,s){let n=await t.getBusinessCategoriesByMenuId(e,r,s);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,r,s){let n=await t.getBusinessCategoriesByMenuIdV2(e,r,s);return P(n,h,p,a)},async getBusinessChannelConfig(e,r,s){let n=await t.getBusinessChannelConfig(e,r,s);return P(n,h,p,a)},async getBusinessConfig(e,r,s){let n=await t.getBusinessConfig(e,r,s);return P(n,h,p,a)},async getBusinessConfigById(e,r,s){let n=await t.getBusinessConfigById(e,r,s);return P(n,h,p,a)},async getBusinessConfigByIdV2(e,r,s){let n=await t.getBusinessConfigByIdV2(e,r,s);return P(n,h,p,a)},async getBusinessConfiguration(e,r,s){let n=await t.getBusinessConfiguration(e,r,s);return P(n,h,p,a)},async getBusinessMenuByType(e,r,s){let n=await t.getBusinessMenuByType(e,r,s);return P(n,h,p,a)},async getBusinessMenuByTypeV2(e,r,s){let n=await t.getBusinessMenuByTypeV2(e,r,s);return P(n,h,p,a)},async getBusinessMenuByTypeV3(e,r,s){let n=await t.getBusinessMenuByTypeV3(e,r,s);return P(n,h,p,a)},async getBusinessMenuByTypeV4(e,r,s){let n=await t.getBusinessMenuByTypeV4(e,r,s);return P(n,h,p,a)},async getBusinessProviderStatus(e,r){let s=await t.getBusinessProviderStatus(e,r);return P(s,h,p,a)},async getBusinessProviderStatusExternal(e,r,s){let n=await t.getBusinessProviderStatusExternal(e,r,s);return P(n,h,p,a)},async getBusinessTax(e){let r=await t.getBusinessTax(e);return P(r,h,p,a)},async getSingleBusinessProviderStatus(e,r,s,n){let o=await t.getSingleBusinessProviderStatus(e,r,s,n);return P(o,h,p,a)},async getUnifiedDiscounts(e,r){let s=await t.getUnifiedDiscounts(e,r);return P(s,h,p,a)},async setBusinessStatus(e,r,s){let n=await t.setBusinessStatus(e,r,s);return P(n,h,p,a)},async setBusinessStatusSchedule(e,r,s){let n=await t.setBusinessStatusSchedule(e,r,s);return P(n,h,p,a)},async updateBusinessPermission(e,r,s,n){let o=await t.updateBusinessPermission(e,r,s,n);return P(o,h,p,a)},async validateBusiness(e,r){let s=await t.validateBusiness(e,r);return P(s,h,p,a)}}},er=function(a,t,e){let r=E(a);return{createBusinessPermission(s,n,o){return r.createBusinessPermission(s,n,o).then(i=>i(e,t))},deleteBusinessPermission(s,n,o){return r.deleteBusinessPermission(s,n,o).then(i=>i(e,t))},getBusinessCategoriesByMenuId(s,n,o){return r.getBusinessCategoriesByMenuId(s,n,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,n,o){return r.getBusinessCategoriesByMenuIdV2(s,n,o).then(i=>i(e,t))},getBusinessChannelConfig(s,n,o){return r.getBusinessChannelConfig(s,n,o).then(i=>i(e,t))},getBusinessConfig(s,n,o){return r.getBusinessConfig(s,n,o).then(i=>i(e,t))},getBusinessConfigById(s,n,o){return r.getBusinessConfigById(s,n,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,n,o){return r.getBusinessConfigByIdV2(s,n,o).then(i=>i(e,t))},getBusinessConfiguration(s,n,o){return r.getBusinessConfiguration(s,n,o).then(i=>i(e,t))},getBusinessMenuByType(s,n,o){return r.getBusinessMenuByType(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,n,o){return r.getBusinessMenuByTypeV2(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,n,o){return r.getBusinessMenuByTypeV3(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,n,o){return r.getBusinessMenuByTypeV4(s,n,o).then(i=>i(e,t))},getBusinessProviderStatus(s,n){return r.getBusinessProviderStatus(s,n).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,n,o){return r.getBusinessProviderStatusExternal(s,n,o).then(i=>i(e,t))},getBusinessTax(s){return r.getBusinessTax(s).then(n=>n(e,t))},getSingleBusinessProviderStatus(s,n,o,i){return r.getSingleBusinessProviderStatus(s,n,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,n){return r.getUnifiedDiscounts(s,n).then(o=>o(e,t))},setBusinessStatus(s,n,o){return r.setBusinessStatus(s,n,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,n,o){return r.setBusinessStatusSchedule(s,n,o).then(i=>i(e,t))},updateBusinessPermission(s,n,o,i){return r.updateBusinessPermission(s,n,o,i).then(l=>l(e,t))},validateBusiness(s,n){return r.validateBusiness(s,n).then(o=>o(e,t))}}},ue=class extends S{createBusinessPermission(t,e,r){return E(this.configuration).createBusinessPermission(t,e,r).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,r){return E(this.configuration).deleteBusinessPermission(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,r){return E(this.configuration).getBusinessCategoriesByMenuId(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,r){return E(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,r){return E(this.configuration).getBusinessChannelConfig(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,r){return E(this.configuration).getBusinessConfig(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,r){return E(this.configuration).getBusinessConfigById(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,r){return E(this.configuration).getBusinessConfigByIdV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,r){return E(this.configuration).getBusinessConfiguration(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,r){return E(this.configuration).getBusinessMenuByType(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,r){return E(this.configuration).getBusinessMenuByTypeV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,r){return E(this.configuration).getBusinessMenuByTypeV3(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,r){return E(this.configuration).getBusinessMenuByTypeV4(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return E(this.configuration).getBusinessProviderStatus(t,e).then(r=>r(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,r){return E(this.configuration).getBusinessProviderStatusExternal(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessTax(t){return E(this.configuration).getBusinessTax(t).then(e=>e(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,r,s){return E(this.configuration).getSingleBusinessProviderStatus(t,e,r,s).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return E(this.configuration).getUnifiedDiscounts(t,e).then(r=>r(this.axios,this.basePath))}setBusinessStatus(t,e,r){return E(this.configuration).setBusinessStatus(t,e,r).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,r){return E(this.configuration).setBusinessStatusSchedule(t,e,r).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,r,s){return E(this.configuration).updateBusinessPermission(t,e,r,s).then(n=>n(this.axios,this.basePath))}validateBusiness(t,e){return E(this.configuration).validateBusiness(t,e).then(r=>r(this.axios,this.basePath))}},We=function(a){return{create:async(t,e,r={})=>{c("create","businessId",t),c("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},getCashSession:async(t,e={})=>{c("getCashSession","businessId",t);let r="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},recordCashLog:async(t,e,r={})=>{c("recordCashLog","businessId",t),c("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}}}},Y=function(a){let t=We(a);return{async create(e,r,s){let n=await t.create(e,r,s);return P(n,h,p,a)},async getCashSession(e,r){let s=await t.getCashSession(e,r);return P(s,h,p,a)},async recordCashLog(e,r,s){let n=await t.recordCashLog(e,r,s);return P(n,h,p,a)}}},tr=function(a,t,e){let r=Y(a);return{create(s,n,o){return r.create(s,n,o).then(i=>i(e,t))},getCashSession(s,n){return r.getCashSession(s,n).then(o=>o(e,t))},recordCashLog(s,n,o){return r.recordCashLog(s,n,o).then(i=>i(e,t))}}},ce=class extends S{create(t,e,r){return Y(this.configuration).create(t,e,r).then(s=>s(this.axios,this.basePath))}getCashSession(t,e){return Y(this.configuration).getCashSession(t,e).then(r=>r(this.axios,this.basePath))}recordCashLog(t,e,r){return Y(this.configuration).recordCashLog(t,e,r).then(s=>s(this.axios,this.basePath))}},Ke=function(a){return{createAssignment:async(t,e,r={})=>{c("createAssignment","businessId",t),c("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}}}},_e=function(a){let t=Ke(a);return{async createAssignment(e,r,s){let n=await t.createAssignment(e,r,s);return P(n,h,p,a)}}},sr=function(a,t,e){let r=_e(a);return{createAssignment(s,n,o){return r.createAssignment(s,n,o).then(i=>i(e,t))}}},de=class extends S{createAssignment(t,e,r){return _e(this.configuration).createAssignment(t,e,r).then(s=>s(this.axios,this.basePath))}},$e=function(a){return{redeemGiftCard:async(t,e={})=>{c("redeemGiftCard","redeemGiftCardDto",t);let r="/api/v1/giftcard/redeem",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},validateGiftCard:async(t,e={})=>{c("validateGiftCard","validateGiftCardDto",t);let r="/api/v1/giftcard/validate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},ee=function(a){let t=$e(a);return{async redeemGiftCard(e,r){let s=await t.redeemGiftCard(e,r);return P(s,h,p,a)},async validateGiftCard(e,r){let s=await t.validateGiftCard(e,r);return P(s,h,p,a)}}},rr=function(a,t,e){let r=ee(a);return{redeemGiftCard(s,n){return r.redeemGiftCard(s,n).then(o=>o(e,t))},validateGiftCard(s,n){return r.validateGiftCard(s,n).then(o=>o(e,t))}}},pe=class extends S{redeemGiftCard(t,e){return ee(this.configuration).redeemGiftCard(t,e).then(r=>r(this.axios,this.basePath))}validateGiftCard(t,e){return ee(this.configuration).validateGiftCard(t,e).then(r=>r(this.axios,this.basePath))}},ze=function(a){return{getInternalOrderHistoryOnline:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getInternalOrderHistoryOnline","businessIds",t);let O="/api/v1/history/internal/orders",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}},getOrderHistoryOnline:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getOrderHistoryOnline","businessIds",t);let O="/api/v1/history/orders",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}},getOrderHistoryPOSV2:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getOrderHistoryPOSV2","businessIds",t);let O="/api/v2/history/orders/pos",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};await v(B,a),e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}},getOrderHistoryPOSV3:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getOrderHistoryPOSV3","businessIds",t);let O="/api/v3/history/orders/pos",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};await v(B,a),e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}},getOrderHistoryPOSV4:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getOrderHistoryPOSV4","businessIds",t);let O="/api/v4/history/orders/pos",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};await v(B,a),e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}},getOrderHistoryPOSV5:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getOrderHistoryPOSV5","businessIds",t);let O="/api/v5/history/orders/pos",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};await v(B,a),e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}},getOrderHistoryPOSV5Internal:async(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D={})=>{c("getOrderHistoryPOSV5Internal","businessIds",t);let O="/api/v5/history/internal/orders/pos",I=new URL(O,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...D},B={},f={};await v(B,a),e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),s!==void 0&&(f.end=s),t&&(f.businessIds=t),n!==void 0&&(f.page=n),o!==void 0&&(f.rowPerPage=o),i&&(f.provider=i),l&&(f.paymentType=l),u&&(f.orderStatus=u),d&&(f.paymentStatus=d),A&&(f.orderType=A),R&&(f.paymentTypePos=R),b!==void 0&&(f.invoiceCompanyId=b),C!==void 0&&(f.timezone=C),y(I,f);let M=V&&V.headers?V.headers:{};return T.headers={...B,...M,...D.headers},{url:g(I),options:T}}}},N=function(a){let t=ze(a);return{async getInternalOrderHistoryOnline(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getInternalOrderHistoryOnline(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)},async getOrderHistoryOnline(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getOrderHistoryOnline(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)},async getOrderHistoryPOSV2(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getOrderHistoryPOSV2(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)},async getOrderHistoryPOSV3(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getOrderHistoryPOSV3(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)},async getOrderHistoryPOSV4(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getOrderHistoryPOSV4(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)},async getOrderHistoryPOSV5(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getOrderHistoryPOSV5(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)},async getOrderHistoryPOSV5Internal(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O){let I=await t.getOrderHistoryPOSV5Internal(e,r,s,n,o,i,l,u,d,A,R,b,C,D,O);return P(I,h,p,a)}}},nr=function(a,t,e){let r=N(a);return{getInternalOrderHistoryOnline(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getInternalOrderHistoryOnline(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))},getOrderHistoryOnline(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getOrderHistoryOnline(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))},getOrderHistoryPOSV2(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getOrderHistoryPOSV2(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))},getOrderHistoryPOSV3(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getOrderHistoryPOSV3(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))},getOrderHistoryPOSV4(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getOrderHistoryPOSV4(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))},getOrderHistoryPOSV5(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getOrderHistoryPOSV5(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))},getOrderHistoryPOSV5Internal(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V){return r.getOrderHistoryPOSV5Internal(s,n,o,i,l,u,d,A,R,b,C,D,O,I,V).then(T=>T(e,t))}}},me=class extends S{getInternalOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getInternalOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV2(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getOrderHistoryPOSV2(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV3(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getOrderHistoryPOSV3(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV4(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getOrderHistoryPOSV4(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getOrderHistoryPOSV5(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D){return N(this.configuration).getOrderHistoryPOSV5Internal(t,e,r,s,n,o,i,l,u,d,A,R,b,C,D).then(O=>O(this.axios,this.basePath))}},Ye=function(a){return{createInvoiceCompany:async(t,e,r={})=>{c("createInvoiceCompany","businessId",t),c("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},deleteInvoiceCompany:async(t,e,r={})=>{c("deleteInvoiceCompany","id",t),c("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getInvoiceCompanies:async(t,e={})=>{c("getInvoiceCompanies","businessId",t);let r="/api/v1/invoice-companies",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},getInvoiceCompanyById:async(t,e,r={})=>{c("getInvoiceCompanyById","id",t),c("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},searchInvoiceCompanies:async(t,e,r={})=>{c("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),e!==void 0&&(u.search=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},updateInvoiceCompany:async(t,e,r,s={})=>{c("updateInvoiceCompany","id",t),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",r);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=x(r,l,a),{url:g(o),options:l}}}},w=function(a){let t=Ye(a);return{async createInvoiceCompany(e,r,s){let n=await t.createInvoiceCompany(e,r,s);return P(n,h,p,a)},async deleteInvoiceCompany(e,r,s){let n=await t.deleteInvoiceCompany(e,r,s);return P(n,h,p,a)},async getInvoiceCompanies(e,r){let s=await t.getInvoiceCompanies(e,r);return P(s,h,p,a)},async getInvoiceCompanyById(e,r,s){let n=await t.getInvoiceCompanyById(e,r,s);return P(n,h,p,a)},async searchInvoiceCompanies(e,r,s){let n=await t.searchInvoiceCompanies(e,r,s);return P(n,h,p,a)},async updateInvoiceCompany(e,r,s,n){let o=await t.updateInvoiceCompany(e,r,s,n);return P(o,h,p,a)}}},or=function(a,t,e){let r=w(a);return{createInvoiceCompany(s,n,o){return r.createInvoiceCompany(s,n,o).then(i=>i(e,t))},deleteInvoiceCompany(s,n,o){return r.deleteInvoiceCompany(s,n,o).then(i=>i(e,t))},getInvoiceCompanies(s,n){return r.getInvoiceCompanies(s,n).then(o=>o(e,t))},getInvoiceCompanyById(s,n,o){return r.getInvoiceCompanyById(s,n,o).then(i=>i(e,t))},searchInvoiceCompanies(s,n,o){return r.searchInvoiceCompanies(s,n,o).then(i=>i(e,t))},updateInvoiceCompany(s,n,o,i){return r.updateInvoiceCompany(s,n,o,i).then(l=>l(e,t))}}},ye=class extends S{createInvoiceCompany(t,e,r){return w(this.configuration).createInvoiceCompany(t,e,r).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,r){return w(this.configuration).deleteInvoiceCompany(t,e,r).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return w(this.configuration).getInvoiceCompanies(t,e).then(r=>r(this.axios,this.basePath))}getInvoiceCompanyById(t,e,r){return w(this.configuration).getInvoiceCompanyById(t,e,r).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,r){return w(this.configuration).searchInvoiceCompanies(t,e,r).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,r,s){return w(this.configuration).updateInvoiceCompany(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Ze=function(a){return{getOrderStatus:async(t,e,r={})=>{c("getOrderStatus","orderId",t),c("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},validate:async(t,e,r={})=>{c("validate","terminalId",t),c("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};t!==void 0&&(u.terminalId=t),e!==void 0&&(u.provider=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}}}},te=function(a){let t=Ze(a);return{async getOrderStatus(e,r,s){let n=await t.getOrderStatus(e,r,s);return P(n,h,p,a)},async validate(e,r,s){let n=await t.validate(e,r,s);return P(n,h,p,a)}}},ar=function(a,t,e){let r=te(a);return{getOrderStatus(s,n,o){return r.getOrderStatus(s,n,o).then(i=>i(e,t))},validate(s,n,o){return r.validate(s,n,o).then(i=>i(e,t))}}},ge=class extends S{getOrderStatus(t,e,r){return te(this.configuration).getOrderStatus(t,e,r).then(s=>s(this.axios,this.basePath))}validate(t,e,r){return te(this.configuration).validate(t,e,r).then(s=>s(this.axios,this.basePath))}},Je=function(a){return{getAdminTransactions:async(t,e,r,s={})=>{c("getAdminTransactions","businessId",t);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await v(u,a),t!==void 0&&(d.businessId=t),e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}},getLoyaltyInfo:async(t,e={})=>{c("getLoyaltyInfo","businessId",t);let r="/api/v1/loyalty/info",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await v(i,a),t!==void 0&&(l.businessId=t),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},getUserById:async(t,e,r={})=>{c("getUserById","businessId",t),c("getUserById","userId",e);let s="/api/v1/loyalty/users/info",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await v(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},searchUser:async(t,e,r,s,n={})=>{c("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};await v(d,a),e!==void 0&&(A.phone=e),r!==void 0&&(A.country_code=r),s!==void 0&&(A.email=s),t!==void 0&&(A.businessId=t),y(i,A);let R=l&&l.headers?l.headers:{};return u.headers={...d,...R,...n.headers},{url:g(i),options:u}},updatePoints:async(t,e,r={})=>{c("updatePoints","businessId",t),c("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await v(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}}}},L=function(a){let t=Je(a);return{async getAdminTransactions(e,r,s,n){let o=await t.getAdminTransactions(e,r,s,n);return P(o,h,p,a)},async getLoyaltyInfo(e,r){let s=await t.getLoyaltyInfo(e,r);return P(s,h,p,a)},async getUserById(e,r,s){let n=await t.getUserById(e,r,s);return P(n,h,p,a)},async searchUser(e,r,s,n,o){let i=await t.searchUser(e,r,s,n,o);return P(i,h,p,a)},async updatePoints(e,r,s){let n=await t.updatePoints(e,r,s);return P(n,h,p,a)}}},ir=function(a,t,e){let r=L(a);return{getAdminTransactions(s,n,o,i){return r.getAdminTransactions(s,n,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,n){return r.getLoyaltyInfo(s,n).then(o=>o(e,t))},getUserById(s,n,o){return r.getUserById(s,n,o).then(i=>i(e,t))},searchUser(s,n,o,i,l){return r.searchUser(s,n,o,i,l).then(u=>u(e,t))},updatePoints(s,n,o){return r.updatePoints(s,n,o).then(i=>i(e,t))}}},Pe=class extends S{getAdminTransactions(t,e,r,s){return L(this.configuration).getAdminTransactions(t,e,r,s).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(t,e){return L(this.configuration).getLoyaltyInfo(t,e).then(r=>r(this.axios,this.basePath))}getUserById(t,e,r){return L(this.configuration).getUserById(t,e,r).then(s=>s(this.axios,this.basePath))}searchUser(t,e,r,s,n){return L(this.configuration).searchUser(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,r){return L(this.configuration).updatePoints(t,e,r).then(s=>s(this.axios,this.basePath))}},Xe=function(a){return{editBusinessProduct:async(t,e,r={})=>{c("editBusinessProduct","businessId",t),c("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},editBusinessProductV2:async(t,e,r={})=>{c("editBusinessProductV2","businessId",t),c("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},getBusinessExtras:async(t,e={})=>{c("getBusinessExtras","businessId",t);let r="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},getProductsByCategoriesV2:async(t,e,r={})=>{c("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},resetProductEod:async(t,e={})=>{c("resetProductEod","resetEodDto",t);let r="/api/v1/menu/availability/reset-eod",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},F=function(a){let t=Xe(a);return{async editBusinessProduct(e,r,s){let n=await t.editBusinessProduct(e,r,s);return P(n,h,p,a)},async editBusinessProductV2(e,r,s){let n=await t.editBusinessProductV2(e,r,s);return P(n,h,p,a)},async getBusinessExtras(e,r){let s=await t.getBusinessExtras(e,r);return P(s,h,p,a)},async getProductsByCategoriesV2(e,r,s){let n=await t.getProductsByCategoriesV2(e,r,s);return P(n,h,p,a)},async resetProductEod(e,r){let s=await t.resetProductEod(e,r);return P(s,h,p,a)}}},lr=function(a,t,e){let r=F(a);return{editBusinessProduct(s,n,o){return r.editBusinessProduct(s,n,o).then(i=>i(e,t))},editBusinessProductV2(s,n,o){return r.editBusinessProductV2(s,n,o).then(i=>i(e,t))},getBusinessExtras(s,n){return r.getBusinessExtras(s,n).then(o=>o(e,t))},getProductsByCategoriesV2(s,n,o){return r.getProductsByCategoriesV2(s,n,o).then(i=>i(e,t))},resetProductEod(s,n){return r.resetProductEod(s,n).then(o=>o(e,t))}}},he=class extends S{editBusinessProduct(t,e,r){return F(this.configuration).editBusinessProduct(t,e,r).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,r){return F(this.configuration).editBusinessProductV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return F(this.configuration).getBusinessExtras(t,e).then(r=>r(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,r){return F(this.configuration).getProductsByCategoriesV2(t,e,r).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return F(this.configuration).resetProductEod(t,e).then(r=>r(this.axios,this.basePath))}},et=function(a){return{createMerchant:async(t,e={})=>{c("createMerchant","createMerchantDto",t);let r="/api/v1/merchants",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},Ne=function(a){let t=et(a);return{async createMerchant(e,r){let s=await t.createMerchant(e,r);return P(s,h,p,a)}}},ur=function(a,t,e){let r=Ne(a);return{createMerchant(s,n){return r.createMerchant(s,n).then(o=>o(e,t))}}},Ae=class extends S{createMerchant(t,e){return Ne(this.configuration).createMerchant(t,e).then(r=>r(this.axios,this.basePath))}},tt=function(a){return{addVenueSubscriptions:async(t,e={})=>{c("addVenueSubscriptions","deviceSubscriptionDto",t);let r="/api/v1/notification/add-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},addVenueSubscriptionsV2:async(t,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let r="/api/v2/notification/add-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},removeVenueSubscriptions:async(t,e={})=>{c("removeVenueSubscriptions","deviceSubscriptionDto",t);let r="/api/v1/notification/remove-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let r="/api/v2/notification/remove-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},Q=function(a){let t=tt(a);return{async addVenueSubscriptions(e,r){let s=await t.addVenueSubscriptions(e,r);return P(s,h,p,a)},async addVenueSubscriptionsV2(e,r){let s=await t.addVenueSubscriptionsV2(e,r);return P(s,h,p,a)},async removeVenueSubscriptions(e,r){let s=await t.removeVenueSubscriptions(e,r);return P(s,h,p,a)},async removeVenueSubscriptionsV2(e,r){let s=await t.removeVenueSubscriptionsV2(e,r);return P(s,h,p,a)}}},cr=function(a,t,e){let r=Q(a);return{addVenueSubscriptions(s,n){return r.addVenueSubscriptions(s,n).then(o=>o(e,t))},addVenueSubscriptionsV2(s,n){return r.addVenueSubscriptionsV2(s,n).then(o=>o(e,t))},removeVenueSubscriptions(s,n){return r.removeVenueSubscriptions(s,n).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,n){return r.removeVenueSubscriptionsV2(s,n).then(o=>o(e,t))}}},fe=class extends S{addVenueSubscriptions(t,e){return Q(this.configuration).addVenueSubscriptions(t,e).then(r=>r(this.axios,this.basePath))}addVenueSubscriptionsV2(t,e){return Q(this.configuration).addVenueSubscriptionsV2(t,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptions(t,e){return Q(this.configuration).removeVenueSubscriptions(t,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return Q(this.configuration).removeVenueSubscriptionsV2(t,e).then(r=>r(this.axios,this.basePath))}},st=function(a){return{updateTaxRate:async(t,e={})=>{c("updateTaxRate","body",t);let r="/api/v1/ordering/update-tax-rate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},we=function(a){let t=st(a);return{async updateTaxRate(e,r){let s=await t.updateTaxRate(e,r);return P(s,h,p,a)}}},dr=function(a,t,e){let r=we(a);return{updateTaxRate(s,n){return r.updateTaxRate(s,n).then(o=>o(e,t))}}},xe=class extends S{updateTaxRate(t,e){return we(this.configuration).updateTaxRate(t,e).then(r=>r(this.axios,this.basePath))}},rt=function(a){return{acceptOrder:async(t,e={})=>{c("acceptOrder","acceptOrderDto",t);let r="/api/v1/orders/accept",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},confirmPreOrder:async(t,e={})=>{c("confirmPreOrder","confirmPreorderDto",t);let r="/api/v1/orders/confirm/preOrder",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",t);let r="/api/v2/orders/pos/park",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},deliverOrder:async(t,e={})=>{c("deliverOrder","deliveredOrderDto",t);let r="/api/v1/orders/delivered",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},getAllOrdersV2:async(t,e={})=>{c("getAllOrdersV2","businessIds",t);let r="/api/v2/orders",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessIds=t),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},getOrdersV2:async(t,e,r,s,n={})=>{c("getOrdersV2","status",t),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};r!==void 0&&(A.posBusinessId=r),s!==void 0&&(A.extraProvider=s),e!==void 0&&(A.businessIds=e),y(i,A);let R=l&&l.headers?l.headers:{};return u.headers={...d,...R,...n.headers},{url:g(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{c("getParkedPosOrderV2","businessId",t);let r="/api/v2/orders/pos/park",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},markOrderAsReady:async(t,e={})=>{c("markOrderAsReady","readyOrderDto",t);let r="/api/v1/orders/ready",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},placePosOrderV4:async(t,e={})=>{c("placePosOrderV4","posOrderPayloadDto",t);let r="/api/v4/orders/pos/place",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},processPosOrderActions:async(t,e={})=>{c("processPosOrderActions","processOrderActionsDto",t);let r="/api/v4/orders/pos/actions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},rejectOrder:async(t,e={})=>{c("rejectOrder","rejectOrderDto",t);let r="/api/v1/orders/reject",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},updatePosOrderV2:async(t,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",t);let r="/api/v2/orders/pos/update",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},k=function(a){let t=rt(a);return{async acceptOrder(e,r){let s=await t.acceptOrder(e,r);return P(s,h,p,a)},async confirmPreOrder(e,r){let s=await t.confirmPreOrder(e,r);return P(s,h,p,a)},async deletePosParkedOrderV2(e,r){let s=await t.deletePosParkedOrderV2(e,r);return P(s,h,p,a)},async deliverOrder(e,r){let s=await t.deliverOrder(e,r);return P(s,h,p,a)},async getAllOrdersV2(e,r){let s=await t.getAllOrdersV2(e,r);return P(s,h,p,a)},async getOrdersV2(e,r,s,n,o){let i=await t.getOrdersV2(e,r,s,n,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,r){let s=await t.getParkedPosOrderV2(e,r);return P(s,h,p,a)},async markOrderAsReady(e,r){let s=await t.markOrderAsReady(e,r);return P(s,h,p,a)},async placePosOrderV4(e,r){let s=await t.placePosOrderV4(e,r);return P(s,h,p,a)},async processPosOrderActions(e,r){let s=await t.processPosOrderActions(e,r);return P(s,h,p,a)},async rejectOrder(e,r){let s=await t.rejectOrder(e,r);return P(s,h,p,a)},async updatePosOrderV2(e,r){let s=await t.updatePosOrderV2(e,r);return P(s,h,p,a)}}},pr=function(a,t,e){let r=k(a);return{acceptOrder(s,n){return r.acceptOrder(s,n).then(o=>o(e,t))},confirmPreOrder(s,n){return r.confirmPreOrder(s,n).then(o=>o(e,t))},deletePosParkedOrderV2(s,n){return r.deletePosParkedOrderV2(s,n).then(o=>o(e,t))},deliverOrder(s,n){return r.deliverOrder(s,n).then(o=>o(e,t))},getAllOrdersV2(s,n){return r.getAllOrdersV2(s,n).then(o=>o(e,t))},getOrdersV2(s,n,o,i,l){return r.getOrdersV2(s,n,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,n){return r.getParkedPosOrderV2(s,n).then(o=>o(e,t))},markOrderAsReady(s,n){return r.markOrderAsReady(s,n).then(o=>o(e,t))},placePosOrderV4(s,n){return r.placePosOrderV4(s,n).then(o=>o(e,t))},processPosOrderActions(s,n){return r.processPosOrderActions(s,n).then(o=>o(e,t))},rejectOrder(s,n){return r.rejectOrder(s,n).then(o=>o(e,t))},updatePosOrderV2(s,n){return r.updatePosOrderV2(s,n).then(o=>o(e,t))}}},Re=class extends S{acceptOrder(t,e){return k(this.configuration).acceptOrder(t,e).then(r=>r(this.axios,this.basePath))}confirmPreOrder(t,e){return k(this.configuration).confirmPreOrder(t,e).then(r=>r(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return k(this.configuration).deletePosParkedOrderV2(t,e).then(r=>r(this.axios,this.basePath))}deliverOrder(t,e){return k(this.configuration).deliverOrder(t,e).then(r=>r(this.axios,this.basePath))}getAllOrdersV2(t,e){return k(this.configuration).getAllOrdersV2(t,e).then(r=>r(this.axios,this.basePath))}getOrdersV2(t,e,r,s,n){return k(this.configuration).getOrdersV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return k(this.configuration).getParkedPosOrderV2(t,e).then(r=>r(this.axios,this.basePath))}markOrderAsReady(t,e){return k(this.configuration).markOrderAsReady(t,e).then(r=>r(this.axios,this.basePath))}placePosOrderV4(t,e){return k(this.configuration).placePosOrderV4(t,e).then(r=>r(this.axios,this.basePath))}processPosOrderActions(t,e){return k(this.configuration).processPosOrderActions(t,e).then(r=>r(this.axios,this.basePath))}rejectOrder(t,e){return k(this.configuration).rejectOrder(t,e).then(r=>r(this.axios,this.basePath))}updatePosOrderV2(t,e){return k(this.configuration).updatePosOrderV2(t,e).then(r=>r(this.axios,this.basePath))}},nt=function(a){return{getPosSession:async(t,e={})=>{c("getPosSession","businessId",t);let r="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}}}},je=function(a){let t=nt(a);return{async getPosSession(e,r){let s=await t.getPosSession(e,r);return P(s,h,p,a)}}},mr=function(a,t,e){let r=je(a);return{getPosSession(s,n){return r.getPosSession(s,n).then(o=>o(e,t))}}},be=class extends S{getPosSession(t,e){return je(this.configuration).getPosSession(t,e).then(r=>r(this.axios,this.basePath))}},ot=function(a){return{createPasscode:async(t,e={})=>{c("createPasscode","createPasscodeDto",t);let r="/api/v1/passcode/create",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},deletePasscode:async(t,e={})=>{c("deletePasscode","passcodeId",t);let r="/api/v1/passcode/{passcodeId}".replace("{passcodeId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},getPasscodeOptions:async(t,e={})=>{c("getPasscodeOptions","businessId",t);let r="/api/v1/passcode/options/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},validatePasscode:async(t,e={})=>{c("validatePasscode","validatePasscodeDto",t);let r="/api/v1/passcode/validate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},G=function(a){let t=ot(a);return{async createPasscode(e,r){let s=await t.createPasscode(e,r);return P(s,h,p,a)},async deletePasscode(e,r){let s=await t.deletePasscode(e,r);return P(s,h,p,a)},async getPasscodeOptions(e,r){let s=await t.getPasscodeOptions(e,r);return P(s,h,p,a)},async validatePasscode(e,r){let s=await t.validatePasscode(e,r);return P(s,h,p,a)}}},yr=function(a,t,e){let r=G(a);return{createPasscode(s,n){return r.createPasscode(s,n).then(o=>o(e,t))},deletePasscode(s,n){return r.deletePasscode(s,n).then(o=>o(e,t))},getPasscodeOptions(s,n){return r.getPasscodeOptions(s,n).then(o=>o(e,t))},validatePasscode(s,n){return r.validatePasscode(s,n).then(o=>o(e,t))}}},Ce=class extends S{createPasscode(t,e){return G(this.configuration).createPasscode(t,e).then(r=>r(this.axios,this.basePath))}deletePasscode(t,e){return G(this.configuration).deletePasscode(t,e).then(r=>r(this.axios,this.basePath))}getPasscodeOptions(t,e){return G(this.configuration).getPasscodeOptions(t,e).then(r=>r(this.axios,this.basePath))}validatePasscode(t,e){return G(this.configuration).validatePasscode(t,e).then(r=>r(this.axios,this.basePath))}},at=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let r="/api/v3/payment/nets/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},cancelNetsTransaction:async(t,e={})=>{c("cancelNetsTransaction","netsCancelPayloadDto",t);let r="/api/v2/payment/nets/cancelTransaction",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},cancelStripePayment:async(t,e={})=>{c("cancelStripePayment","paymentIntentIdDto",t);let r="/api/v1/payment/stripe/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},cancelTransaction:async(t,e={})=>{c("cancelTransaction","vivaCancelTransactionDto",t);let r="/api/v1/payment/viva/cancelTransaction",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let r="/api/v2/payment/viva/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},captureStripePayment:async(t,e={})=>{c("captureStripePayment","paymentIntentIdDto",t);let r="/api/v1/payment/stripe/capture",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},cleanupNetsTransaction:async(t,e={})=>{c("cleanupNetsTransaction","netsRemoveFailedTransactionPayloadDto",t);let r="/api/v2/payment/nets/cleanupTransaction",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},connectNetsTerminal:async(t,e={})=>{c("connectNetsTerminal","connectTerminalPayloadDto",t);let r="/api/v2/payment/nets/connectTerminal",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},createNetsPayment:async(t,e={})=>{c("createNetsPayment","createNetsTransactionDto",t);let r="/api/v2/payment/nets/createPayment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{c("createNetsRefundTransaction","createRefundDto",t);let r="/api/v4/payment/nets/refund/transaction",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},createVivaPayment:async(t,e={})=>{c("createVivaPayment","vivaCreatePaymentDto",t);let r="/api/v1/payment/viva/createPayment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},createVivaPaymentV2:async(t,e={})=>{c("createVivaPaymentV2","vivaCreatePaymentDto",t);let r="/api/v2/payment/viva/createPayment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},createVivaPaymentV3:async(t,e={})=>{c("createVivaPaymentV3","vivaCreatePaymentDto",t);let r="/api/v3/payment/viva/createPayment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},disconnectNetsTerminal:async(t,e={})=>{c("disconnectNetsTerminal","connectTerminalPayloadDto",t);let r="/api/v2/payment/nets/disconnectTerminal",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},discoverDevices:async(t,e={})=>{c("discoverDevices","vivaDiscoverDevicesDto",t);let r="/api/v1/payment/viva/discoverDevices",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},discoverNetsDevices:async(t,e={})=>{c("discoverNetsDevices","shareOrderingBusinessIdPayload",t);let r="/api/v2/payment/nets/discoverDevices",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},getConnectionToken:async(t,e={})=>{c("getConnectionToken","connectionTokenPayloadDto",t);let r="/api/v1/payment/connectionToken",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},getPaymentStatus:async(t,e={})=>{c("getPaymentStatus","getPaymentStatusDto",t);let r="/api/v1/payment/status",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},getToken:async(t,e={})=>{c("getToken","businessId",t);let r="/api/v1/payment/stripe/connectionToken",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let r="/api/v3/payment/nets/terminal/initiate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",t);let r="/api/v4/payment/viva/terminal/initiate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{c("processOnlineOrderRefund","orderResponseDto",t);let r="/api/v1/payment/online-orders/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundCashPayment:async(t,e={})=>{c("refundCashPayment","cashRefundPayload",t);let r="/api/v2/payment/cash/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundCashPaymentV3:async(t,e={})=>{c("refundCashPaymentV3","cashRefundPayload",t);let r="/api/v3/payment/cash/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundManualPayment:async(t,e={})=>{c("refundManualPayment","manualRefundPayload",t);let r="/api/v2/payment/manual/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundManualPaymentV3:async(t,e={})=>{c("refundManualPaymentV3","manualRefundPayload",t);let r="/api/v3/payment/manual/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundNetsTransaction:async(t,e={})=>{c("refundNetsTransaction","refundPayloadDto",t);let r="/api/v2/payment/nets/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{c("refundNetsTransactionV3","refundPayloadDtoV4",t);let r="/api/v3/payment/nets/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{c("refundSingleVivaTransaction","createRefundDto",t);let r="/api/v4/payment/viva/refund/single",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundVivaTransactionV2:async(t,e={})=>{c("refundVivaTransactionV2","refundPayloadDto",t);let r="/api/v2/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{c("refundVivaTransactionV3","refundPayloadDto",t);let r="/api/v3/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{c("refundVivaTransactionV4","refundPayloadDtoV4",t);let r="/api/v4/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},q=function(a){let t=at(a);return{async cancelNetsTerminalTransaction(e,r){let s=await t.cancelNetsTerminalTransaction(e,r);return P(s,h,p,a)},async cancelNetsTransaction(e,r){let s=await t.cancelNetsTransaction(e,r);return P(s,h,p,a)},async cancelStripePayment(e,r){let s=await t.cancelStripePayment(e,r);return P(s,h,p,a)},async cancelTransaction(e,r){let s=await t.cancelTransaction(e,r);return P(s,h,p,a)},async cancelVivaTransactionV2(e,r){let s=await t.cancelVivaTransactionV2(e,r);return P(s,h,p,a)},async captureStripePayment(e,r){let s=await t.captureStripePayment(e,r);return P(s,h,p,a)},async cleanupNetsTransaction(e,r){let s=await t.cleanupNetsTransaction(e,r);return P(s,h,p,a)},async connectNetsTerminal(e,r){let s=await t.connectNetsTerminal(e,r);return P(s,h,p,a)},async createNetsPayment(e,r){let s=await t.createNetsPayment(e,r);return P(s,h,p,a)},async createNetsRefundTransaction(e,r){let s=await t.createNetsRefundTransaction(e,r);return P(s,h,p,a)},async createVivaPayment(e,r){let s=await t.createVivaPayment(e,r);return P(s,h,p,a)},async createVivaPaymentV2(e,r){let s=await t.createVivaPaymentV2(e,r);return P(s,h,p,a)},async createVivaPaymentV3(e,r){let s=await t.createVivaPaymentV3(e,r);return P(s,h,p,a)},async disconnectNetsTerminal(e,r){let s=await t.disconnectNetsTerminal(e,r);return P(s,h,p,a)},async discoverDevices(e,r){let s=await t.discoverDevices(e,r);return P(s,h,p,a)},async discoverNetsDevices(e,r){let s=await t.discoverNetsDevices(e,r);return P(s,h,p,a)},async getConnectionToken(e,r){let s=await t.getConnectionToken(e,r);return P(s,h,p,a)},async getPaymentStatus(e,r){let s=await t.getPaymentStatus(e,r);return P(s,h,p,a)},async getToken(e,r){let s=await t.getToken(e,r);return P(s,h,p,a)},async initiateNetsTerminalTransaction(e,r){let s=await t.initiateNetsTerminalTransaction(e,r);return P(s,h,p,a)},async initiateTerminalTransaction(e,r){let s=await t.initiateTerminalTransaction(e,r);return P(s,h,p,a)},async processOnlineOrderRefund(e,r){let s=await t.processOnlineOrderRefund(e,r);return P(s,h,p,a)},async refundCashPayment(e,r){let s=await t.refundCashPayment(e,r);return P(s,h,p,a)},async refundCashPaymentV3(e,r){let s=await t.refundCashPaymentV3(e,r);return P(s,h,p,a)},async refundManualPayment(e,r){let s=await t.refundManualPayment(e,r);return P(s,h,p,a)},async refundManualPaymentV3(e,r){let s=await t.refundManualPaymentV3(e,r);return P(s,h,p,a)},async refundNetsTransaction(e,r){let s=await t.refundNetsTransaction(e,r);return P(s,h,p,a)},async refundNetsTransactionV3(e,r){let s=await t.refundNetsTransactionV3(e,r);return P(s,h,p,a)},async refundSingleVivaTransaction(e,r){let s=await t.refundSingleVivaTransaction(e,r);return P(s,h,p,a)},async refundVivaTransactionV2(e,r){let s=await t.refundVivaTransactionV2(e,r);return P(s,h,p,a)},async refundVivaTransactionV3(e,r){let s=await t.refundVivaTransactionV3(e,r);return P(s,h,p,a)},async refundVivaTransactionV4(e,r){let s=await t.refundVivaTransactionV4(e,r);return P(s,h,p,a)}}},gr=function(a,t,e){let r=q(a);return{cancelNetsTerminalTransaction(s,n){return r.cancelNetsTerminalTransaction(s,n).then(o=>o(e,t))},cancelNetsTransaction(s,n){return r.cancelNetsTransaction(s,n).then(o=>o(e,t))},cancelStripePayment(s,n){return r.cancelStripePayment(s,n).then(o=>o(e,t))},cancelTransaction(s,n){return r.cancelTransaction(s,n).then(o=>o(e,t))},cancelVivaTransactionV2(s,n){return r.cancelVivaTransactionV2(s,n).then(o=>o(e,t))},captureStripePayment(s,n){return r.captureStripePayment(s,n).then(o=>o(e,t))},cleanupNetsTransaction(s,n){return r.cleanupNetsTransaction(s,n).then(o=>o(e,t))},connectNetsTerminal(s,n){return r.connectNetsTerminal(s,n).then(o=>o(e,t))},createNetsPayment(s,n){return r.createNetsPayment(s,n).then(o=>o(e,t))},createNetsRefundTransaction(s,n){return r.createNetsRefundTransaction(s,n).then(o=>o(e,t))},createVivaPayment(s,n){return r.createVivaPayment(s,n).then(o=>o(e,t))},createVivaPaymentV2(s,n){return r.createVivaPaymentV2(s,n).then(o=>o(e,t))},createVivaPaymentV3(s,n){return r.createVivaPaymentV3(s,n).then(o=>o(e,t))},disconnectNetsTerminal(s,n){return r.disconnectNetsTerminal(s,n).then(o=>o(e,t))},discoverDevices(s,n){return r.discoverDevices(s,n).then(o=>o(e,t))},discoverNetsDevices(s,n){return r.discoverNetsDevices(s,n).then(o=>o(e,t))},getConnectionToken(s,n){return r.getConnectionToken(s,n).then(o=>o(e,t))},getPaymentStatus(s,n){return r.getPaymentStatus(s,n).then(o=>o(e,t))},getToken(s,n){return r.getToken(s,n).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,n){return r.initiateNetsTerminalTransaction(s,n).then(o=>o(e,t))},initiateTerminalTransaction(s,n){return r.initiateTerminalTransaction(s,n).then(o=>o(e,t))},processOnlineOrderRefund(s,n){return r.processOnlineOrderRefund(s,n).then(o=>o(e,t))},refundCashPayment(s,n){return r.refundCashPayment(s,n).then(o=>o(e,t))},refundCashPaymentV3(s,n){return r.refundCashPaymentV3(s,n).then(o=>o(e,t))},refundManualPayment(s,n){return r.refundManualPayment(s,n).then(o=>o(e,t))},refundManualPaymentV3(s,n){return r.refundManualPaymentV3(s,n).then(o=>o(e,t))},refundNetsTransaction(s,n){return r.refundNetsTransaction(s,n).then(o=>o(e,t))},refundNetsTransactionV3(s,n){return r.refundNetsTransactionV3(s,n).then(o=>o(e,t))},refundSingleVivaTransaction(s,n){return r.refundSingleVivaTransaction(s,n).then(o=>o(e,t))},refundVivaTransactionV2(s,n){return r.refundVivaTransactionV2(s,n).then(o=>o(e,t))},refundVivaTransactionV3(s,n){return r.refundVivaTransactionV3(s,n).then(o=>o(e,t))},refundVivaTransactionV4(s,n){return r.refundVivaTransactionV4(s,n).then(o=>o(e,t))}}},De=class extends S{cancelNetsTerminalTransaction(t,e){return q(this.configuration).cancelNetsTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}cancelNetsTransaction(t,e){return q(this.configuration).cancelNetsTransaction(t,e).then(r=>r(this.axios,this.basePath))}cancelStripePayment(t,e){return q(this.configuration).cancelStripePayment(t,e).then(r=>r(this.axios,this.basePath))}cancelTransaction(t,e){return q(this.configuration).cancelTransaction(t,e).then(r=>r(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return q(this.configuration).cancelVivaTransactionV2(t,e).then(r=>r(this.axios,this.basePath))}captureStripePayment(t,e){return q(this.configuration).captureStripePayment(t,e).then(r=>r(this.axios,this.basePath))}cleanupNetsTransaction(t,e){return q(this.configuration).cleanupNetsTransaction(t,e).then(r=>r(this.axios,this.basePath))}connectNetsTerminal(t,e){return q(this.configuration).connectNetsTerminal(t,e).then(r=>r(this.axios,this.basePath))}createNetsPayment(t,e){return q(this.configuration).createNetsPayment(t,e).then(r=>r(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return q(this.configuration).createNetsRefundTransaction(t,e).then(r=>r(this.axios,this.basePath))}createVivaPayment(t,e){return q(this.configuration).createVivaPayment(t,e).then(r=>r(this.axios,this.basePath))}createVivaPaymentV2(t,e){return q(this.configuration).createVivaPaymentV2(t,e).then(r=>r(this.axios,this.basePath))}createVivaPaymentV3(t,e){return q(this.configuration).createVivaPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}disconnectNetsTerminal(t,e){return q(this.configuration).disconnectNetsTerminal(t,e).then(r=>r(this.axios,this.basePath))}discoverDevices(t,e){return q(this.configuration).discoverDevices(t,e).then(r=>r(this.axios,this.basePath))}discoverNetsDevices(t,e){return q(this.configuration).discoverNetsDevices(t,e).then(r=>r(this.axios,this.basePath))}getConnectionToken(t,e){return q(this.configuration).getConnectionToken(t,e).then(r=>r(this.axios,this.basePath))}getPaymentStatus(t,e){return q(this.configuration).getPaymentStatus(t,e).then(r=>r(this.axios,this.basePath))}getToken(t,e){return q(this.configuration).getToken(t,e).then(r=>r(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return q(this.configuration).initiateNetsTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return q(this.configuration).initiateTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return q(this.configuration).processOnlineOrderRefund(t,e).then(r=>r(this.axios,this.basePath))}refundCashPayment(t,e){return q(this.configuration).refundCashPayment(t,e).then(r=>r(this.axios,this.basePath))}refundCashPaymentV3(t,e){return q(this.configuration).refundCashPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}refundManualPayment(t,e){return q(this.configuration).refundManualPayment(t,e).then(r=>r(this.axios,this.basePath))}refundManualPaymentV3(t,e){return q(this.configuration).refundManualPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}refundNetsTransaction(t,e){return q(this.configuration).refundNetsTransaction(t,e).then(r=>r(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return q(this.configuration).refundNetsTransactionV3(t,e).then(r=>r(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return q(this.configuration).refundSingleVivaTransaction(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV2(t,e){return q(this.configuration).refundVivaTransactionV2(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return q(this.configuration).refundVivaTransactionV3(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return q(this.configuration).refundVivaTransactionV4(t,e).then(r=>r(this.axios,this.basePath))}},it=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}}}},se=function(a){let t=it(a);return{async loadConfigFile(e){let r=await t.loadConfigFile(e);return P(r,h,p,a)},async upsertBusiness(e){let r=await t.upsertBusiness(e);return P(r,h,p,a)}}},Pr=function(a,t,e){let r=se(a);return{loadConfigFile(s){return r.loadConfigFile(s).then(n=>n(e,t))},upsertBusiness(s){return r.upsertBusiness(s).then(n=>n(e,t))}}},Oe=class extends S{loadConfigFile(t){return se(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return se(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},lt=function(a){return{updateChannelInventoryV2:async(t,e,r,s,n={})=>{c("updateChannelInventoryV2","businessId",t),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",r),c("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let R=l&&l.headers?l.headers:{};return u.headers={...d,...R,...n.headers},u.data=x(s,u,a),{url:g(i),options:u}},updatePosInventory:async(t,e,r,s,n={})=>{c("updatePosInventory","businessId",t),c("updatePosInventory","categoryId",e),c("updatePosInventory","productId",r),c("updatePosInventory","updatePosInventoryDto",s);let o="/api/v1/business/{businessId}/categories/{categoryId}/products/{productId}/pos-inventory".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let R=l&&l.headers?l.headers:{};return u.headers={...d,...R,...n.headers},u.data=x(s,u,a),{url:g(i),options:u}}}},re=function(a){let t=lt(a);return{async updateChannelInventoryV2(e,r,s,n,o){let i=await t.updateChannelInventoryV2(e,r,s,n,o);return P(i,h,p,a)},async updatePosInventory(e,r,s,n,o){let i=await t.updatePosInventory(e,r,s,n,o);return P(i,h,p,a)}}},hr=function(a,t,e){let r=re(a);return{updateChannelInventoryV2(s,n,o,i,l){return r.updateChannelInventoryV2(s,n,o,i,l).then(u=>u(e,t))},updatePosInventory(s,n,o,i,l){return r.updatePosInventory(s,n,o,i,l).then(u=>u(e,t))}}},Ve=class extends S{updateChannelInventoryV2(t,e,r,s,n){return re(this.configuration).updateChannelInventoryV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}updatePosInventory(t,e,r,s,n){return re(this.configuration).updatePosInventory(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}},ut=function(a){return{getSupportedChannels:async(t,e={})=>{c("getSupportedChannels","businessId",t);let r="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},registerCredential:async(t,e={})=>{c("registerCredential","body",t);let r="/api/v1/provider/credentials",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},registerProvider:async(t,e={})=>{c("registerProvider","body",t);let r="/api/v1/provider",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},Z=function(a){let t=ut(a);return{async getSupportedChannels(e,r){let s=await t.getSupportedChannels(e,r);return P(s,h,p,a)},async registerCredential(e,r){let s=await t.registerCredential(e,r);return P(s,h,p,a)},async registerProvider(e,r){let s=await t.registerProvider(e,r);return P(s,h,p,a)}}},Ar=function(a,t,e){let r=Z(a);return{getSupportedChannels(s,n){return r.getSupportedChannels(s,n).then(o=>o(e,t))},registerCredential(s,n){return r.registerCredential(s,n).then(o=>o(e,t))},registerProvider(s,n){return r.registerProvider(s,n).then(o=>o(e,t))}}},Ie=class extends S{getSupportedChannels(t,e){return Z(this.configuration).getSupportedChannels(t,e).then(r=>r(this.axios,this.basePath))}registerCredential(t,e){return Z(this.configuration).registerCredential(t,e).then(r=>r(this.axios,this.basePath))}registerProvider(t,e){return Z(this.configuration).registerProvider(t,e).then(r=>r(this.axios,this.basePath))}},ct=function(a){return{cancelPlan:async(t,e,r,s={})=>{c("cancelPlan","businessId",t),c("cancelPlan","orderId",e),c("cancelPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}},createRefundPlan:async(t,e,r,s={})=>{c("createRefundPlan","businessId",t),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=x(r,l,a),{url:g(o),options:l}},getRefundPlan:async(t,e,r,s={})=>{c("getRefundPlan","businessId",t),c("getRefundPlan","orderId",e),c("getRefundPlan","status",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};r!==void 0&&(d.status=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}},recordRefundPlan:async(t,e,r,s,n={})=>{c("recordRefundPlan","businessId",t),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",r),c("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let R=l&&l.headers?l.headers:{};return u.headers={...d,...R,...n.headers},u.data=x(s,u,a),{url:g(i),options:u}},resolveRefundChoice:async(t,e,r,s,n={})=>{c("resolveRefundChoice","businessId",t),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",r),c("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let R=l&&l.headers?l.headers:{};return u.headers={...d,...R,...n.headers},u.data=x(s,u,a),{url:g(i),options:u}},startProcessPlan:async(t,e,r,s={})=>{c("startProcessPlan","businessId",t),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}}}},j=function(a){let t=ct(a);return{async cancelPlan(e,r,s,n){let o=await t.cancelPlan(e,r,s,n);return P(o,h,p,a)},async createRefundPlan(e,r,s,n){let o=await t.createRefundPlan(e,r,s,n);return P(o,h,p,a)},async getRefundPlan(e,r,s,n){let o=await t.getRefundPlan(e,r,s,n);return P(o,h,p,a)},async recordRefundPlan(e,r,s,n,o){let i=await t.recordRefundPlan(e,r,s,n,o);return P(i,h,p,a)},async resolveRefundChoice(e,r,s,n,o){let i=await t.resolveRefundChoice(e,r,s,n,o);return P(i,h,p,a)},async startProcessPlan(e,r,s,n){let o=await t.startProcessPlan(e,r,s,n);return P(o,h,p,a)}}},fr=function(a,t,e){let r=j(a);return{cancelPlan(s,n,o,i){return r.cancelPlan(s,n,o,i).then(l=>l(e,t))},createRefundPlan(s,n,o,i){return r.createRefundPlan(s,n,o,i).then(l=>l(e,t))},getRefundPlan(s,n,o,i){return r.getRefundPlan(s,n,o,i).then(l=>l(e,t))},recordRefundPlan(s,n,o,i,l){return r.recordRefundPlan(s,n,o,i,l).then(u=>u(e,t))},resolveRefundChoice(s,n,o,i,l){return r.resolveRefundChoice(s,n,o,i,l).then(u=>u(e,t))},startProcessPlan(s,n,o,i){return r.startProcessPlan(s,n,o,i).then(l=>l(e,t))}}},ve=class extends S{cancelPlan(t,e,r,s){return j(this.configuration).cancelPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}createRefundPlan(t,e,r,s){return j(this.configuration).createRefundPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}getRefundPlan(t,e,r,s){return j(this.configuration).getRefundPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}recordRefundPlan(t,e,r,s,n){return j(this.configuration).recordRefundPlan(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}resolveRefundChoice(t,e,r,s,n){return j(this.configuration).resolveRefundChoice(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,r,s){return j(this.configuration).startProcessPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}},dt=function(a){return{getEndOfDayReportV5:async(t,e,r,s,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",t);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},R={},b={};e!==void 0&&(b.timeSpan=e),r!==void 0&&(b.start=r),s!==void 0&&(b.end=s),t&&(b.businessIds=t),n!==void 0&&(b.timezone=n),o!==void 0&&(b.provider=o),y(u,b);let C=d&&d.headers?d.headers:{};return A.headers={...R,...C,...i.headers},{url:g(u),options:A}},getPOSEndOfDayReportV4:async(t,e,r,s,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",t);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},R={};e!==void 0&&(R.timeSpan=e),r!==void 0&&(R.start=r),s!==void 0&&(R.end=s),t&&(R.businessIds=t),n!==void 0&&(R.timezone=n),y(l,R);let b=u&&u.headers?u.headers:{};return d.headers={...A,...b,...o.headers},{url:g(l),options:d}},sendReportEmailV4:async(t,e,r,s,n,o,i={})=>{c("sendReportEmailV4","businessIds",t),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",r);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},R={},b={};s!==void 0&&(b.timeSpan=s),n!==void 0&&(b.start=n),o!==void 0&&(b.end=o),t&&(b.businessIds=t),e!==void 0&&(b.timezone=e),R["Content-Type"]="application/json",y(u,b);let C=d&&d.headers?d.headers:{};return A.headers={...R,...C,...i.headers},A.data=x(r,A,a),{url:g(u),options:A}},sendReportEmailV5:async(t,e,r,s,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",t),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",r);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let R={method:"POST",...A,...l},b={},C={};s!==void 0&&(C.timeSpan=s),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),t&&(C.businessIds=t),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),b["Content-Type"]="application/json",y(d,C);let D=A&&A.headers?A.headers:{};return R.headers={...b,...D,...l.headers},R.data=x(r,R,a),{url:g(d),options:R}}}},W=function(a){let t=dt(a);return{async getEndOfDayReportV5(e,r,s,n,o,i,l){let u=await t.getEndOfDayReportV5(e,r,s,n,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,r,s,n,o,i){let l=await t.getPOSEndOfDayReportV4(e,r,s,n,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,r,s,n,o,i,l){let u=await t.sendReportEmailV4(e,r,s,n,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,r,s,n,o,i,l,u){let d=await t.sendReportEmailV5(e,r,s,n,o,i,l,u);return P(d,h,p,a)}}},xr=function(a,t,e){let r=W(a);return{getEndOfDayReportV5(s,n,o,i,l,u,d){return r.getEndOfDayReportV5(s,n,o,i,l,u,d).then(A=>A(e,t))},getPOSEndOfDayReportV4(s,n,o,i,l,u){return r.getPOSEndOfDayReportV4(s,n,o,i,l,u).then(d=>d(e,t))},sendReportEmailV4(s,n,o,i,l,u,d){return r.sendReportEmailV4(s,n,o,i,l,u,d).then(A=>A(e,t))},sendReportEmailV5(s,n,o,i,l,u,d,A){return r.sendReportEmailV5(s,n,o,i,l,u,d,A).then(R=>R(e,t))}}},Te=class extends S{getEndOfDayReportV5(t,e,r,s,n,o,i){return W(this.configuration).getEndOfDayReportV5(t,e,r,s,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,r,s,n,o){return W(this.configuration).getPOSEndOfDayReportV4(t,e,r,s,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,r,s,n,o,i){return W(this.configuration).sendReportEmailV4(t,e,r,s,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,r,s,n,o,i,l){return W(this.configuration).sendReportEmailV5(t,e,r,s,n,o,i,l).then(u=>u(this.axios,this.basePath))}},pt=function(a){return{createActionPasscode:async(t,e={})=>{c("createActionPasscode","createActionPasscodeDto",t);let r="/api/v1/action-passcodes",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},createRole:async(t,e,r={})=>{c("createRole","businessId",t),c("createRole","createRoleDto",e);let s="/api/v1/businesses/{businessId}/roles".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}}}},ne=function(a){let t=pt(a);return{async createActionPasscode(e,r){let s=await t.createActionPasscode(e,r);return P(s,h,p,a)},async createRole(e,r,s){let n=await t.createRole(e,r,s);return P(n,h,p,a)}}},Rr=function(a,t,e){let r=ne(a);return{createActionPasscode(s,n){return r.createActionPasscode(s,n).then(o=>o(e,t))},createRole(s,n,o){return r.createRole(s,n,o).then(i=>i(e,t))}}},Se=class extends S{createActionPasscode(t,e){return ne(this.configuration).createActionPasscode(t,e).then(r=>r(this.axios,this.basePath))}createRole(t,e,r){return ne(this.configuration).createRole(t,e,r).then(s=>s(this.axios,this.basePath))}},mt=function(a){return{clockIn:async(t,e,r={})=>{c("clockIn","businessId",t),c("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},clockOut:async(t,e,r={})=>{c("clockOut","businessId",t),c("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}},getShifts:async(t,e,r,s={})=>{c("getShifts","businessId",t);let n="/api/v1/businesses/{businessId}/shifts".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}},getTodayShift:async(t,e,r={})=>{c("getTodayShift","businessId",t),c("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.employeeId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},unlock:async(t,e,r={})=>{c("unlock","businessId",t),c("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=x(e,i,a),{url:g(n),options:i}}}},H=function(a){let t=mt(a);return{async clockIn(e,r,s){let n=await t.clockIn(e,r,s);return P(n,h,p,a)},async clockOut(e,r,s){let n=await t.clockOut(e,r,s);return P(n,h,p,a)},async getShifts(e,r,s,n){let o=await t.getShifts(e,r,s,n);return P(o,h,p,a)},async getTodayShift(e,r,s){let n=await t.getTodayShift(e,r,s);return P(n,h,p,a)},async unlock(e,r,s){let n=await t.unlock(e,r,s);return P(n,h,p,a)}}},br=function(a,t,e){let r=H(a);return{clockIn(s,n,o){return r.clockIn(s,n,o).then(i=>i(e,t))},clockOut(s,n,o){return r.clockOut(s,n,o).then(i=>i(e,t))},getShifts(s,n,o,i){return r.getShifts(s,n,o,i).then(l=>l(e,t))},getTodayShift(s,n,o){return r.getTodayShift(s,n,o).then(i=>i(e,t))},unlock(s,n,o){return r.unlock(s,n,o).then(i=>i(e,t))}}},qe=class extends S{clockIn(t,e,r){return H(this.configuration).clockIn(t,e,r).then(s=>s(this.axios,this.basePath))}clockOut(t,e,r){return H(this.configuration).clockOut(t,e,r).then(s=>s(this.axios,this.basePath))}getShifts(t,e,r,s){return H(this.configuration).getShifts(t,e,r,s).then(n=>n(this.axios,this.basePath))}getTodayShift(t,e,r){return H(this.configuration).getTodayShift(t,e,r).then(s=>s(this.axios,this.basePath))}unlock(t,e,r){return H(this.configuration).unlock(t,e,r).then(s=>s(this.axios,this.basePath))}},yt=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},getStation:async(t={})=>{let e="/api/v1/station",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},syncStation:async(t,e={})=>{c("syncStation","syncStationDto",t);let r="/api/v1/station/sync",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},syncTerminal:async(t,e={})=>{c("syncTerminal","syncTerminalDto",t);let r="/api/v1/station/terminal/sync",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}}}},K=function(a){let t=yt(a);return{async deactivateStation(e){let r=await t.deactivateStation(e);return P(r,h,p,a)},async getStation(e){let r=await t.getStation(e);return P(r,h,p,a)},async syncStation(e,r){let s=await t.syncStation(e,r);return P(s,h,p,a)},async syncTerminal(e,r){let s=await t.syncTerminal(e,r);return P(s,h,p,a)}}},Cr=function(a,t,e){let r=K(a);return{deactivateStation(s){return r.deactivateStation(s).then(n=>n(e,t))},getStation(s){return r.getStation(s).then(n=>n(e,t))},syncStation(s,n){return r.syncStation(s,n).then(o=>o(e,t))},syncTerminal(s,n){return r.syncTerminal(s,n).then(o=>o(e,t))}}},Ee=class extends S{deactivateStation(t){return K(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return K(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return K(this.configuration).syncStation(t,e).then(r=>r(this.axios,this.basePath))}syncTerminal(t,e){return K(this.configuration).syncTerminal(t,e).then(r=>r(this.axios,this.basePath))}},gt=function(a){return{connectTerminal:async(t,e={})=>{c("connectTerminal","connectTerminalDto",t);let r="/api/v1/terminal/connect",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},discoverTerminal:async(t,e={})=>{c("discoverTerminal","discoverTerminalDto",t);let r="/api/v1/terminal/discover",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},getTerminalStatus:async(t,e,r,s={})=>{c("getTerminalStatus","businessId",t),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",r);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};e!==void 0&&(d.provider=e),r!==void 0&&(d.terminalId=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:g(o),options:l}}}},$=function(a){let t=gt(a);return{async connectTerminal(e,r){let s=await t.connectTerminal(e,r);return P(s,h,p,a)},async disconnectTerminal(e){let r=await t.disconnectTerminal(e);return P(r,h,p,a)},async discoverTerminal(e,r){let s=await t.discoverTerminal(e,r);return P(s,h,p,a)},async getTerminalStatus(e,r,s,n){let o=await t.getTerminalStatus(e,r,s,n);return P(o,h,p,a)}}},Dr=function(a,t,e){let r=$(a);return{connectTerminal(s,n){return r.connectTerminal(s,n).then(o=>o(e,t))},disconnectTerminal(s){return r.disconnectTerminal(s).then(n=>n(e,t))},discoverTerminal(s,n){return r.discoverTerminal(s,n).then(o=>o(e,t))},getTerminalStatus(s,n,o,i){return r.getTerminalStatus(s,n,o,i).then(l=>l(e,t))}}},Be=class extends S{connectTerminal(t,e){return $(this.configuration).connectTerminal(t,e).then(r=>r(this.axios,this.basePath))}disconnectTerminal(t){return $(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return $(this.configuration).discoverTerminal(t,e).then(r=>r(this.axios,this.basePath))}getTerminalStatus(t,e,r,s){return $(this.configuration).getTerminalStatus(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Pt=function(a){return{getUserBusiness:async(t={})=>{let e="/api/v1/user/business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await v(o,a),y(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},getUserInfo:async(t={})=>{let e="/api/v1/user",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await v(o,a),y(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}}}},oe=function(a){let t=Pt(a);return{async getUserBusiness(e){let r=await t.getUserBusiness(e);return P(r,h,p,a)},async getUserInfo(e){let r=await t.getUserInfo(e);return P(r,h,p,a)}}},Or=function(a,t,e){let r=oe(a);return{getUserBusiness(s){return r.getUserBusiness(s).then(n=>n(e,t))},getUserInfo(s){return r.getUserInfo(s).then(n=>n(e,t))}}},Ue=class extends S{getUserBusiness(t){return oe(this.configuration).getUserBusiness(t).then(e=>e(this.axios,this.basePath))}getUserInfo(t){return oe(this.configuration).getUserInfo(t).then(e=>e(this.axios,this.basePath))}},ht=function(a){return{getUser:async(t,e={})=>{c("getUser","userValidation",t);let r="/api/v1/users",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await v(i,a),i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},updateUserRewardPoints:async(t,e,r,s={})=>{c("updateUserRewardPoints","userId",t),c("updateUserRewardPoints","walletId",e),c("updateUserRewardPoints","rewardPointPayload",r);let n="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await v(u,a),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=x(r,l,a),{url:g(o),options:l}}}},ae=function(a){let t=ht(a);return{async getUser(e,r){let s=await t.getUser(e,r);return P(s,h,p,a)},async updateUserRewardPoints(e,r,s,n){let o=await t.updateUserRewardPoints(e,r,s,n);return P(o,h,p,a)}}},Vr=function(a,t,e){let r=ae(a);return{getUser(s,n){return r.getUser(s,n).then(o=>o(e,t))},updateUserRewardPoints(s,n,o,i){return r.updateUserRewardPoints(s,n,o,i).then(l=>l(e,t))}}},Me=class extends S{getUser(t,e){return ae(this.configuration).getUser(t,e).then(r=>r(this.axios,this.basePath))}updateUserRewardPoints(t,e,r,s){return ae(this.configuration).updateUserRewardPoints(t,e,r,s).then(n=>n(this.axios,this.basePath))}},At=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleFoodoraEvent:async(t,e={})=>{c("handleFoodoraEvent","orderUpdateDto",t);let r="/api/webhook/order/event",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handlePreorderReminder:async(t,e={})=>{c("handlePreorderReminder","preOrderReminderDto",t);let r="/api/webhook/preorder-reminder",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleVivaEvents:async(t,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",t);let r="/api/webhook/viva/verification",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(t,o,a),{url:g(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},handleWoltDriveEventByCountry:async(t,e={})=>{c("handleWoltDriveEventByCountry","country",t);let r="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(s),options:o}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};y(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:g(r),options:n}}}},U=function(a){let t=At(a);return{async handleAssignmentWebhook(e){let r=await t.handleAssignmentWebhook(e);return P(r,h,p,a)},async handleBusinessWebhook(e){let r=await t.handleBusinessWebhook(e);return P(r,h,p,a)},async handleFoodoraEvent(e,r){let s=await t.handleFoodoraEvent(e,r);return P(s,h,p,a)},async handleLoadEmployee(e){let r=await t.handleLoadEmployee(e);return P(r,h,p,a)},async handleNetsEvents(e){let r=await t.handleNetsEvents(e);return P(r,h,p,a)},async handleNetsEventsV2(e){let r=await t.handleNetsEventsV2(e);return P(r,h,p,a)},async handleNetsRefundEvents(e){let r=await t.handleNetsRefundEvents(e);return P(r,h,p,a)},async handlePreorderReminder(e,r){let s=await t.handlePreorderReminder(e,r);return P(s,h,p,a)},async handleRoleWebhook(e){let r=await t.handleRoleWebhook(e);return P(r,h,p,a)},async handleShiftWebhook(e){let r=await t.handleShiftWebhook(e);return P(r,h,p,a)},async handleVivaEvents(e,r){let s=await t.handleVivaEvents(e,r);return P(s,h,p,a)},async handleWebhook(e){let r=await t.handleWebhook(e);return P(r,h,p,a)},async handleWoltDriveEvent(e){let r=await t.handleWoltDriveEvent(e);return P(r,h,p,a)},async handleWoltDriveEventByCountry(e,r){let s=await t.handleWoltDriveEventByCountry(e,r);return P(s,h,p,a)},async updateWoltProduct(e){let r=await t.updateWoltProduct(e);return P(r,h,p,a)},async verifyVivaWebhook(e){let r=await t.verifyVivaWebhook(e);return P(r,h,p,a)}}},Ir=function(a,t,e){let r=U(a);return{handleAssignmentWebhook(s){return r.handleAssignmentWebhook(s).then(n=>n(e,t))},handleBusinessWebhook(s){return r.handleBusinessWebhook(s).then(n=>n(e,t))},handleFoodoraEvent(s,n){return r.handleFoodoraEvent(s,n).then(o=>o(e,t))},handleLoadEmployee(s){return r.handleLoadEmployee(s).then(n=>n(e,t))},handleNetsEvents(s){return r.handleNetsEvents(s).then(n=>n(e,t))},handleNetsEventsV2(s){return r.handleNetsEventsV2(s).then(n=>n(e,t))},handleNetsRefundEvents(s){return r.handleNetsRefundEvents(s).then(n=>n(e,t))},handlePreorderReminder(s,n){return r.handlePreorderReminder(s,n).then(o=>o(e,t))},handleRoleWebhook(s){return r.handleRoleWebhook(s).then(n=>n(e,t))},handleShiftWebhook(s){return r.handleShiftWebhook(s).then(n=>n(e,t))},handleVivaEvents(s,n){return r.handleVivaEvents(s,n).then(o=>o(e,t))},handleWebhook(s){return r.handleWebhook(s).then(n=>n(e,t))},handleWoltDriveEvent(s){return r.handleWoltDriveEvent(s).then(n=>n(e,t))},handleWoltDriveEventByCountry(s,n){return r.handleWoltDriveEventByCountry(s,n).then(o=>o(e,t))},updateWoltProduct(s){return r.updateWoltProduct(s).then(n=>n(e,t))},verifyVivaWebhook(s){return r.verifyVivaWebhook(s).then(n=>n(e,t))}}},ke=class extends S{handleAssignmentWebhook(t){return U(this.configuration).handleAssignmentWebhook(t).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(t){return U(this.configuration).handleBusinessWebhook(t).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(t,e){return U(this.configuration).handleFoodoraEvent(t,e).then(r=>r(this.axios,this.basePath))}handleLoadEmployee(t){return U(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return U(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return U(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return U(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return U(this.configuration).handlePreorderReminder(t,e).then(r=>r(this.axios,this.basePath))}handleRoleWebhook(t){return U(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return U(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return U(this.configuration).handleVivaEvents(t,e).then(r=>r(this.axios,this.basePath))}handleWebhook(t){return U(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return U(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return U(this.configuration).handleWoltDriveEventByCountry(t,e).then(r=>r(this.axios,this.basePath))}updateWoltProduct(t){return U(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return U(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}};var Le=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}};var ft="1.3.5";export{ie as AblyApi,He as AblyApiAxiosParamCreator,Js as AblyApiFactory,X as AblyApiFp,Et as ActionEnum,Is as ActionsEnum,le as AuthApi,Qe as AuthApiAxiosParamCreator,Xs as AuthApiFactory,_ as AuthApiFp,ue as BusinessApi,Ge as BusinessApiAxiosParamCreator,er as BusinessApiFactory,E as BusinessApiFp,Mt as BusinessBackgroundType,kt as BusinessEventAction,_t as BusinessEventType,Nt as BusinessPaymentIntegrationType,wt as BusinessStatusEnum,jt as CashLogReason,Lt as CashLogType,ce as CashManagementApi,We as CashManagementApiAxiosParamCreator,tr as CashManagementApiFactory,Y as CashManagementApiFp,Ft as CashSessionDtoEnum,Ht as CashSessionStatus,Qt as ChannelEnum,Gt as CodeChannel,Le as Configuration,Kt as CurrencyCode,Ys as CurrencyCodeEnum,$t as DeliveryStatus,zt as DeliveryType,Yt as DeviceStatus,Zt as DiscountScope,Jt as DiscountType,de as EmployeesApi,Ke as EmployeesApiAxiosParamCreator,sr as EmployeesApiFactory,_e as EmployeesApiFp,Xt as EntityType,Bt as EntityTypeEnum,Ut as EventTypeEnum,Zs as EventTypeIdEnum,pe as GiftcardApi,$e as GiftcardApiAxiosParamCreator,rr as GiftcardApiFactory,ee as GiftcardApiFp,me as HistoryApi,ze as HistoryApiAxiosParamCreator,nr as HistoryApiFactory,N as HistoryApiFp,es as IntegrationType,ye as InvoiceCompaniesApi,Ye as InvoiceCompaniesApiAxiosParamCreator,or as InvoiceCompaniesApiFactory,w as InvoiceCompaniesApiFp,ts as KioskEventType,ss as KioskLayout,ge as KiosksApi,Ze as KiosksApiAxiosParamCreator,ar as KiosksApiFactory,te as KiosksApiFp,rs as KitchenStatus,ns as LocatorType,os as LoyaltyActionKey,Pe as LoyaltyIntegerationsApi,Je as LoyaltyIntegerationsApiAxiosParamCreator,ir as LoyaltyIntegerationsApiFactory,L as LoyaltyIntegerationsApiFp,ft as MUNCHI_CORE_VERSION,he as MenuApi,Xe as MenuApiAxiosParamCreator,lr as MenuApiFactory,F as MenuApiFp,Ae as MerchantsApi,et as MerchantsApiAxiosParamCreator,ur as MerchantsApiFactory,Ne as MerchantsApiFp,fe as NotificationApi,tt as NotificationApiAxiosParamCreator,cr as NotificationApiFactory,Q as NotificationApiFp,as as OperatingMode,is as OrderFormat,ls as OrderRefundStatus,us as OrderSource,cs as OrderStatusEnum,ds as OrderType,ps as OrderTypePOS,xe as OrderingCoApi,st as OrderingCoApiAxiosParamCreator,dr as OrderingCoApiFactory,we as OrderingCoApiFp,Re as OrdersApi,rt as OrdersApiAxiosParamCreator,pr as OrdersApiFactory,k as OrdersApiFp,be as POSSessionApi,nt as POSSessionApiAxiosParamCreator,mr as POSSessionApiFactory,je as POSSessionApiFp,Ce as PasscodeApi,ot as PasscodeApiAxiosParamCreator,yr as PasscodeApiFactory,G as PasscodeApiFp,ms as PasscodeScopeType,De as PaymentApi,at as PaymentApiAxiosParamCreator,gr as PaymentApiFactory,q as PaymentApiFp,ys as PaymentEventType,gs as PaymentFailureCode,Ps as PaymentMethod,hs as PaymentProvider,As as PaymentProviderEnum,fs as PaymentStatus,xs as PaymentTypeEnum,Oe as PluginApi,it as PluginApiAxiosParamCreator,Pr as PluginApiFactory,se as PluginApiFp,Rs as PosDiscountType,bs as PosPaymentStatus,Cs as PosPaymentType,Ds as PosPermission,Os as PreorderStatus,Vs as PrinterTypeEnum,Ve as ProductApi,lt as ProductApiAxiosParamCreator,hr as ProductApiFactory,re as ProductApiFp,vs as ProductAvailability,Ts as ProductDetailLayout,Ie as ProviderApi,ut as ProviderApiAxiosParamCreator,Ar as ProviderApiFactory,Z as ProviderApiFp,Ss as ProviderEnum,qs as RefundMode,Es as RefundOverallStatus,Bs as RefundStatusEnum,Us as RefundStepStatus,ve as RefundsApi,ct as RefundsApiAxiosParamCreator,fr as RefundsApiFactory,j as RefundsApiFp,Te as ReportApi,dt as ReportApiAxiosParamCreator,xr as ReportApiFactory,W as ReportApiFp,Se as RolesPermissionsApi,pt as RolesPermissionsApiAxiosParamCreator,Rr as RolesPermissionsApiFactory,ne as RolesPermissionsApiFp,Wt as ScopeTypeEnum,qe as ShiftTrackingApi,mt as ShiftTrackingApiAxiosParamCreator,br as ShiftTrackingApiFactory,H as ShiftTrackingApiFp,Ms as SimplePaymentStatus,ks as StaffActivityActionType,_s as StationType,Ee as StationsApi,yt as StationsApiAxiosParamCreator,Cr as StationsApiFactory,K as StationsApiFp,Ns as Status,ws as StatusEnum,Be as TerminalApi,gt as TerminalApiAxiosParamCreator,Dr as TerminalApiFactory,$ as TerminalApiFp,js as TerminalConnectionType,Ls as TimeSpan,Fs as TransactionEventType,Hs as TransactionType,Qs as Type,Gs as UpsellMode,Ue as UserApi,Pt as UserApiAxiosParamCreator,Or as UserApiFactory,oe as UserApiFp,Me as UsersApi,ht as UsersApiAxiosParamCreator,Vr as UsersApiFactory,ae as UsersApiFp,Ws as VerificationType,Ks as VivaCurrencyCode,$s as VivaErrorId,zs as VivaEventId,ke as WebhookApi,At as WebhookApiAxiosParamCreator,Ir as WebhookApiFactory,U as WebhookApiFp};
|
|
1
|
+
import h from"axios";import Fe from"axios";var p="http://localhost".replace(/\/+$/,"");var V=class{constructor(s,e=p,n=Fe){this.basePath=e;this.axios=n;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},Y=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",d=function(a,s,e){if(e==null)throw new Y(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var O=async function(a,s){if(s&&s.accessToken){let e=typeof s.accessToken=="function"?await s.accessToken():await s.accessToken;a.Authorization="Bearer "+e}};function J(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(n=>J(a,n,e)):Object.keys(s).forEach(n=>J(a,s[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,s):a.set(e,s))}var g=function(a,...s){let e=new URLSearchParams(a.search);J(e,s),a.search=e.toString()},x=function(a,s,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(s.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,s,e,n){return(t=s,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return t.request(o)}};var Et={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Bt={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ut={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},kt={Image:"image",Video:"video",Animation:"animation"},Mt={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},_t={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},wt={GiftCard:"GiftCard"},Nt={Online:"ONLINE",Offline:"OFFLINE"},jt={SaleTransaction:"SALE_TRANSACTION",RefundTransaction:"REFUND_TRANSACTION",OrderVoid:"ORDER_VOID",OpeningFloat:"OPENING_FLOAT",ClosingCount:"CLOSING_COUNT",AdjustmentEntry:"ADJUSTMENT_ENTRY",BankTransferIn:"BANK_TRANSFER_IN",PrivateDeposit:"PRIVATE_DEPOSIT",TipsDeposit:"TIPS_DEPOSIT",PurchaseMaterials:"PURCHASE_MATERIALS",BankTransferOut:"BANK_TRANSFER_OUT",SalaryPayout:"SALARY_PAYOUT",TipsPayout:"TIPS_PAYOUT",PrivateWithdrawal:"PRIVATE_WITHDRAWAL",OtherExpense:"OTHER_EXPENSE",Other:"OTHER"},Lt={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ft={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Wt={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Ht={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},Qt={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},Gt={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Kt={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},$t={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4,NUMBER_5:5,NUMBER_6:6,NUMBER_7:7},zt={Item:"ITEM",Cart:"CART"},Yt={Percentage:"PERCENTAGE",Fixed:"FIXED"},Zt={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Jt={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE"},Xt={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},es={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},ts={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},ss={Table:"table",Indicator:"indicator"},ns={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},rs={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},os={Open:"OPEN",Instant:"INSTANT"},as={None:"NONE",Partial:"PARTIAL",Full:"FULL"},is={Platform:"PLATFORM",Pos:"POS"},ls={Pending:"pending",InProgress:"in_progress",Ready:"ready",Delivered:"delivered",Rejected:"rejected",PickUpByDriver:"pick_up_by_driver",Preorder:"preorder",AcceptByDriver:"accept_by_driver",Parked:"parked",Refunded:"refunded",Draft:"draft"},us={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},ds={DineIn:"dine_in",PickUp:"pick_up"},cs={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},ps={PaymentAborted:"payment.aborted",PaymentCancelledByUser:"payment.cancelled_by_user",PaymentInsufficientFunds:"payment.insufficient_funds",PaymentCardExpired:"payment.card_expired",PaymentCardInvalid:"payment.card_invalid",PaymentPinError:"payment.pin_error",PaymentDeclined:"payment.declined",PaymentTimeout:"payment.timeout",PaymentUnknown:"payment.unknown",TerminalOffline:"terminal.offline",TerminalTimeout:"terminal.timeout",TerminalBusy:"terminal.busy",SystemProviderError:"system.provider_error",SystemUnknown:"system.unknown"},ms={Cash:"Cash",Card:"Card",Voucher:"Voucher",EPassi:"EPassi",Edenred:"Edenred",Munchi:"Munchi",Flatpay:"Flatpay",GiftUp:"GiftUp",MobilePay:"MobilePay",CardManual:"CardManual",EdenredManual:"EdenredManual",EmployeeDiscount:"EmployeeDiscount",LunchVoucher:"LunchVoucher",EdenredVoucher:"EdenredVoucher",SmartumVoucher:"SmartumVoucher",Invoice:"Invoice",Smartum:"Smartum",GiftCard:"GiftCard",Debit:"Debit",Credit:"Credit",GiftCardManual:"GiftCardManual",WoltBenefit:"WoltBenefit",Fundis:"Fundis"},gs={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},ys={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Ps={Paid:"paid",Pending:"pending"},hs={Cash:"cash",Card:"card"},As={Percentage:"percentage",Fixed:"fixed"},xs={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},fs={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Rs={AccessPosApp:"Access::PosApp",PagePos:"Page::Pos",PageOpenOrders:"Page::OpenOrders",PageOrders:"Page::Orders",PageTransactions:"Page::Transactions",PageProducts:"Page::Products",PageReports:"Page::Reports",PageSettings:"Page::Settings",Cart:"Cart::*",CartAddItem:"Cart::AddItem",CartRemoveItem:"Cart::RemoveItem",CartApplyDiscount:"Cart::ApplyDiscount",CartVoidItem:"Cart::VoidItem",CartClear:"Cart::Clear",Transaction:"Transaction::*",TransactionView:"Transaction::View",TransactionRefund:"Transaction::Refund",Shift:"Shift::*",ShiftForceClockOut:"Shift::ForceClockOut",Settings:"Settings::*",SettingsEditProfile:"Settings::EditProfile",OpenOrdersDelete:"OpenOrders::Delete"},bs={Waiting:"waiting",Confirm:"confirm"},Cs={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD"},Ds={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},Os={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Vs={Modal:"MODAL",Screen:"SCREEN"},Is={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},vs={Full:"FULL",Item:"ITEM"},Ss={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Ts={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},qs={Pending:"PENDING",InProgress:"in_progress",Failed:"FAILED",Completed:"COMPLETED"},Es={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Bs={OrderCreated:"ORDER_CREATED",OrderUpdated:"ORDER_UPDATED",ItemAdded:"ITEM_ADDED",ItemRemoved:"ITEM_REMOVED",ItemUpdated:"ITEM_UPDATED",DiscountApplied:"DISCOUNT_APPLIED",DiscountRemoved:"DISCOUNT_REMOVED",RefundInitiated:"REFUND_INITIATED",RefundProcessed:"REFUND_PROCESSED",RefundCanceled:"REFUND_CANCELED",PaymentProcessed:"PAYMENT_PROCESSED",OrderStatusUpdated:"ORDER_STATUS_UPDATED",InventoryUpdated:"INVENTORY_UPDATED",CashSessionOpened:"CASH_SESSION_OPENED",CashSessionClosed:"CASH_SESSION_CLOSED",CashManualAdd:"CASH_MANUAL_ADD",CashManualRemove:"CASH_MANUAL_REMOVE"},Us={Kiosk:"KIOSK",Pos:"POS"},ks={Active:"ACTIVE",Inactive:"INACTIVE"},Ms={RequiresPaymentMethod:"requires_payment_method",RequiresConfirmation:"requires_confirmation",RequiresAction:"requires_action",Processing:"processing",RequiresCapture:"requires_capture",Canceled:"canceled",Succeeded:"succeeded"},_s={Sync:"sync"},ws={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",Taxes:"TAXES",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",PosSession:"POS_SESSION"},Ns={Network:"NETWORK"},js={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Ls={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Fs={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Ws={Instant:"instant",Preorder:"preorder"},Hs={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Qs={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},Gs={NUMBER_1000:1e3,NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1009:1009,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1047:1047,NUMBER_1048:1048,NUMBER_1049:1049,NUMBER_1050:1050,NUMBER_1051:1051,NUMBER_1052:1052,NUMBER_1053:1053,NUMBER_1054:1054,NUMBER_1055:1055,NUMBER_1056:1056,NUMBER_1057:1057,NUMBER_1058:1058,NUMBER_1059:1059,NUMBER_1060:1060,NUMBER_1061:1061,NUMBER_1062:1062,NUMBER_1063:1063,NUMBER_1064:1064,NUMBER_1065:1065,NUMBER_1066:1066,NUMBER_1067:1067,NUMBER_1068:1068,NUMBER_1069:1069,NUMBER_1070:1070,NUMBER_1071:1071,NUMBER_1072:1072,NUMBER_1074:1074,NUMBER_1075:1075,NUMBER_1076:1076,NUMBER_1077:1077,NUMBER_1079:1079,NUMBER_1080:1080,NUMBER_1081:1081,NUMBER_1082:1082,NUMBER_1083:1083,NUMBER_1099:1099,NUMBER_1100:1100,NUMBER_1101:1101,NUMBER_1102:1102,NUMBER_1110:1110,NUMBER_1301:1301,NUMBER_1302:1302,NUMBER_1303:1303,NUMBER_2000:2e3,NUMBER_3000:3e3,NUMBER_3001:3001,NUMBER_3002:3002,NUMBER_3099:3099,NUMBER_4000:4e3,NUMBER_5000:5e3,NUMBER_5001:5001,NUMBER_5002:5002,NUMBER_5003:5003,NUMBER_5004:5004,NUMBER_5005:5005,NUMBER_5006:5006,NUMBER_6000:6e3,NUMBER_6102:6102,NUMBER_6201:6201,NUMBER_7001:7001,NUMBER_7002:7002,NUMBER_7003:7003,NUMBER_7004:7004,NUMBER_7005:7005},Ks={NUMBER_1000:1e3,NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1009:1009,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1047:1047,NUMBER_1048:1048,NUMBER_1049:1049,NUMBER_1050:1050,NUMBER_1051:1051,NUMBER_1052:1052,NUMBER_1053:1053,NUMBER_1054:1054,NUMBER_1055:1055,NUMBER_1056:1056,NUMBER_1057:1057,NUMBER_1058:1058,NUMBER_1059:1059,NUMBER_1060:1060,NUMBER_1061:1061,NUMBER_1062:1062,NUMBER_1063:1063,NUMBER_1064:1064,NUMBER_1065:1065,NUMBER_1066:1066,NUMBER_1067:1067,NUMBER_1068:1068,NUMBER_1069:1069,NUMBER_1070:1070,NUMBER_1071:1071,NUMBER_1072:1072,NUMBER_1074:1074,NUMBER_1075:1075,NUMBER_1076:1076,NUMBER_1077:1077,NUMBER_1079:1079,NUMBER_1080:1080,NUMBER_1081:1081,NUMBER_1082:1082,NUMBER_1083:1083,NUMBER_1099:1099,NUMBER_1100:1100,NUMBER_1101:1101,NUMBER_1102:1102,NUMBER_1110:1110,NUMBER_1301:1301,NUMBER_1302:1302,NUMBER_1303:1303,NUMBER_2000:2e3,NUMBER_3000:3e3,NUMBER_3001:3001,NUMBER_3002:3002,NUMBER_3099:3099,NUMBER_4000:4e3,NUMBER_5000:5e3,NUMBER_5001:5001,NUMBER_5002:5002,NUMBER_5003:5003,NUMBER_5004:5004,NUMBER_5005:5005,NUMBER_5006:5006,NUMBER_6000:6e3,NUMBER_6102:6102,NUMBER_6201:6201,NUMBER_7001:7001,NUMBER_7002:7002,NUMBER_7003:7003,NUMBER_7004:7004,NUMBER_7005:7005},$s={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},zs={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Ys={Online:"Online",Offline:"Offline"},Zs={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},Js={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},Xs={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},en={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},tn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},sn={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},nn={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},rn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},We=function(a){return{refreshConfig:async(s={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},requestSettings:async(s={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},X=function(a){let s=We(a);return{async refreshConfig(e){let n=await s.refreshConfig(e);return P(n,h,p,a)},async requestSettings(e){let n=await s.requestSettings(e);return P(n,h,p,a)}}},on=function(a,s,e){let n=X(a);return{refreshConfig(t){return n.refreshConfig(t).then(r=>r(e,s))},requestSettings(t){return n.requestSettings(t).then(r=>r(e,s))}}},ae=class extends V{refreshConfig(s){return X(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return X(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},He=function(a){return{firebaseAuth:async(s={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},login:async(s,e={})=>{d("login","credentialDto",s);let n="/api/v1/auth/login",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},logout:async(s={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},refreshToken:async(s,e={})=>{d("refreshToken","refreshTokenDto",s);let n="/api/v1/auth/refresh",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},Q=function(a){let s=He(a);return{async firebaseAuth(e){let n=await s.firebaseAuth(e);return P(n,h,p,a)},async login(e,n){let t=await s.login(e,n);return P(t,h,p,a)},async logout(e){let n=await s.logout(e);return P(n,h,p,a)},async refreshToken(e,n){let t=await s.refreshToken(e,n);return P(t,h,p,a)}}},an=function(a,s,e){let n=Q(a);return{firebaseAuth(t){return n.firebaseAuth(t).then(r=>r(e,s))},login(t,r){return n.login(t,r).then(o=>o(e,s))},logout(t){return n.logout(t).then(r=>r(e,s))},refreshToken(t,r){return n.refreshToken(t,r).then(o=>o(e,s))}}},ie=class extends V{firebaseAuth(s){return Q(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return Q(this.configuration).login(s,e).then(n=>n(this.axios,this.basePath))}logout(s){return Q(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return Q(this.configuration).refreshToken(s,e).then(n=>n(this.axios,this.basePath))}},Qe=function(a){return{createBusinessPermission:async(s,e,n={})=>{d("createBusinessPermission","businessId",s),d("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await O(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(s,e,n={})=>{d("deleteBusinessPermission","permissionId",s),d("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await O(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessCategoriesByMenuId:async(s,e,n={})=>{d("getBusinessCategoriesByMenuId","businessId",s),d("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await O(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(s,e,n={})=>{d("getBusinessCategoriesByMenuIdV2","businessId",s),d("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await O(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(s,e,n={})=>{d("getBusinessChannelConfig","businessId",s);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(s,e,n={})=>{d("getBusinessChannelConfigV2","businessId",s);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfig:async(s,e,n={})=>{d("getBusinessConfig","businessId",s);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigById:async(s,e,n={})=>{d("getBusinessConfigById","businessId",s);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(s,e,n={})=>{d("getBusinessConfigByIdV2","businessId",s);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfiguration:async(s,e,n={})=>{d("getBusinessConfiguration","businessId",s);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByType:async(s,e,n={})=>{d("getBusinessMenuByType","businessId",s),d("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV2:async(s,e,n={})=>{d("getBusinessMenuByTypeV2","businessId",s),d("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV3:async(s,e,n={})=>{d("getBusinessMenuByTypeV3","businessId",s),d("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV4:async(s,e,n={})=>{d("getBusinessMenuByTypeV4","businessId",s),d("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessProviderStatus:async(s,e={})=>{d("getBusinessProviderStatus","businessId",s);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await O(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(s,e,n={})=>{d("getBusinessProviderStatusExternal","businessId",s);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessTax:async(s={})=>{let e="/api/v1/business/tax",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await O(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getSingleBusinessProviderStatus:async(s,e,n,t={})=>{d("getSingleBusinessProviderStatus","businessId",s),d("getSingleBusinessProviderStatus","provider",e),d("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(s))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await O(u,a),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(s,e={})=>{d("getUnifiedDiscounts","businessId",s);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await O(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(s,e,n={})=>{d("setBusinessStatus","businessId",s),d("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await O(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(s,e,n={})=>{d("setBusinessStatusSchedule","businessId",s),d("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await O(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(s,e,n,t={})=>{d("updateBusinessPermission","permissionId",s),d("updateBusinessPermission","businessId",e),d("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},c={};await O(u,a),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=x(n,l,a),{url:y(o),options:l}},validateBusiness:async(s,e={})=>{d("validateBusiness","businessId",s);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await O(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let s=Qe(a);return{async createBusinessPermission(e,n,t){let r=await s.createBusinessPermission(e,n,t);return P(r,h,p,a)},async deleteBusinessPermission(e,n,t){let r=await s.deleteBusinessPermission(e,n,t);return P(r,h,p,a)},async getBusinessCategoriesByMenuId(e,n,t){let r=await s.getBusinessCategoriesByMenuId(e,n,t);return P(r,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV2(e,n,t);return P(r,h,p,a)},async getBusinessChannelConfig(e,n,t){let r=await s.getBusinessChannelConfig(e,n,t);return P(r,h,p,a)},async getBusinessChannelConfigV2(e,n,t){let r=await s.getBusinessChannelConfigV2(e,n,t);return P(r,h,p,a)},async getBusinessConfig(e,n,t){let r=await s.getBusinessConfig(e,n,t);return P(r,h,p,a)},async getBusinessConfigById(e,n,t){let r=await s.getBusinessConfigById(e,n,t);return P(r,h,p,a)},async getBusinessConfigByIdV2(e,n,t){let r=await s.getBusinessConfigByIdV2(e,n,t);return P(r,h,p,a)},async getBusinessConfiguration(e,n,t){let r=await s.getBusinessConfiguration(e,n,t);return P(r,h,p,a)},async getBusinessMenuByType(e,n,t){let r=await s.getBusinessMenuByType(e,n,t);return P(r,h,p,a)},async getBusinessMenuByTypeV2(e,n,t){let r=await s.getBusinessMenuByTypeV2(e,n,t);return P(r,h,p,a)},async getBusinessMenuByTypeV3(e,n,t){let r=await s.getBusinessMenuByTypeV3(e,n,t);return P(r,h,p,a)},async getBusinessMenuByTypeV4(e,n,t){let r=await s.getBusinessMenuByTypeV4(e,n,t);return P(r,h,p,a)},async getBusinessProviderStatus(e,n){let t=await s.getBusinessProviderStatus(e,n);return P(t,h,p,a)},async getBusinessProviderStatusExternal(e,n,t){let r=await s.getBusinessProviderStatusExternal(e,n,t);return P(r,h,p,a)},async getBusinessTax(e){let n=await s.getBusinessTax(e);return P(n,h,p,a)},async getSingleBusinessProviderStatus(e,n,t,r){let o=await s.getSingleBusinessProviderStatus(e,n,t,r);return P(o,h,p,a)},async getUnifiedDiscounts(e,n){let t=await s.getUnifiedDiscounts(e,n);return P(t,h,p,a)},async setBusinessStatus(e,n,t){let r=await s.setBusinessStatus(e,n,t);return P(r,h,p,a)},async setBusinessStatusSchedule(e,n,t){let r=await s.setBusinessStatusSchedule(e,n,t);return P(r,h,p,a)},async updateBusinessPermission(e,n,t,r){let o=await s.updateBusinessPermission(e,n,t,r);return P(o,h,p,a)},async validateBusiness(e,n){let t=await s.validateBusiness(e,n);return P(t,h,p,a)}}},ln=function(a,s,e){let n=T(a);return{createBusinessPermission(t,r,o){return n.createBusinessPermission(t,r,o).then(i=>i(e,s))},deleteBusinessPermission(t,r,o){return n.deleteBusinessPermission(t,r,o).then(i=>i(e,s))},getBusinessCategoriesByMenuId(t,r,o){return n.getBusinessCategoriesByMenuId(t,r,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV2(t,r,o){return n.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,s))},getBusinessChannelConfig(t,r,o){return n.getBusinessChannelConfig(t,r,o).then(i=>i(e,s))},getBusinessChannelConfigV2(t,r,o){return n.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,s))},getBusinessConfig(t,r,o){return n.getBusinessConfig(t,r,o).then(i=>i(e,s))},getBusinessConfigById(t,r,o){return n.getBusinessConfigById(t,r,o).then(i=>i(e,s))},getBusinessConfigByIdV2(t,r,o){return n.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,s))},getBusinessConfiguration(t,r,o){return n.getBusinessConfiguration(t,r,o).then(i=>i(e,s))},getBusinessMenuByType(t,r,o){return n.getBusinessMenuByType(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV2(t,r,o){return n.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV3(t,r,o){return n.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV4(t,r,o){return n.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,s))},getBusinessProviderStatus(t,r){return n.getBusinessProviderStatus(t,r).then(o=>o(e,s))},getBusinessProviderStatusExternal(t,r,o){return n.getBusinessProviderStatusExternal(t,r,o).then(i=>i(e,s))},getBusinessTax(t){return n.getBusinessTax(t).then(r=>r(e,s))},getSingleBusinessProviderStatus(t,r,o,i){return n.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,s))},getUnifiedDiscounts(t,r){return n.getUnifiedDiscounts(t,r).then(o=>o(e,s))},setBusinessStatus(t,r,o){return n.setBusinessStatus(t,r,o).then(i=>i(e,s))},setBusinessStatusSchedule(t,r,o){return n.setBusinessStatusSchedule(t,r,o).then(i=>i(e,s))},updateBusinessPermission(t,r,o,i){return n.updateBusinessPermission(t,r,o,i).then(l=>l(e,s))},validateBusiness(t,r){return n.validateBusiness(t,r).then(o=>o(e,s))}}},le=class extends V{createBusinessPermission(s,e,n){return T(this.configuration).createBusinessPermission(s,e,n).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(s,e,n){return T(this.configuration).deleteBusinessPermission(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuId(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(s,e,n){return T(this.configuration).getBusinessChannelConfig(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(s,e,n){return T(this.configuration).getBusinessChannelConfigV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfig(s,e,n){return T(this.configuration).getBusinessConfig(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(s,e,n){return T(this.configuration).getBusinessConfigById(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(s,e,n){return T(this.configuration).getBusinessConfigByIdV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(s,e,n){return T(this.configuration).getBusinessConfiguration(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(s,e,n){return T(this.configuration).getBusinessMenuByType(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(s,e,n){return T(this.configuration).getBusinessMenuByTypeV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(s,e,n){return T(this.configuration).getBusinessMenuByTypeV3(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(s,e,n){return T(this.configuration).getBusinessMenuByTypeV4(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(s,e){return T(this.configuration).getBusinessProviderStatus(s,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(s,e,n){return T(this.configuration).getBusinessProviderStatusExternal(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessTax(s){return T(this.configuration).getBusinessTax(s).then(e=>e(this.axios,this.basePath))}getSingleBusinessProviderStatus(s,e,n,t){return T(this.configuration).getSingleBusinessProviderStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(s,e){return T(this.configuration).getUnifiedDiscounts(s,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(s,e,n){return T(this.configuration).setBusinessStatus(s,e,n).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(s,e,n){return T(this.configuration).setBusinessStatusSchedule(s,e,n).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(s,e,n,t){return T(this.configuration).updateBusinessPermission(s,e,n,t).then(r=>r(this.axios,this.basePath))}validateBusiness(s,e){return T(this.configuration).validateBusiness(s,e).then(n=>n(this.axios,this.basePath))}},Ge=function(a){return{create:async(s,e,n={})=>{d("create","businessId",s),d("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},getCashSession:async(s,e={})=>{d("getCashSession","businessId",s);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(s,e,n={})=>{d("getSessionReport","businessId",s),d("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},recordCashLog:async(s,e,n={})=>{d("recordCashLog","businessId",s),d("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},sendSessionReport:async(s,e,n,t={})=>{d("sendSessionReport","businessId",s),d("sendSessionReport","sessionId",e),d("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=x(n,l,a),{url:y(o),options:l}}}},L=function(a){let s=Ge(a);return{async create(e,n,t){let r=await s.create(e,n,t);return P(r,h,p,a)},async getCashSession(e,n){let t=await s.getCashSession(e,n);return P(t,h,p,a)},async getSessionReport(e,n,t){let r=await s.getSessionReport(e,n,t);return P(r,h,p,a)},async recordCashLog(e,n,t){let r=await s.recordCashLog(e,n,t);return P(r,h,p,a)},async sendSessionReport(e,n,t,r){let o=await s.sendSessionReport(e,n,t,r);return P(o,h,p,a)}}},un=function(a,s,e){let n=L(a);return{create(t,r,o){return n.create(t,r,o).then(i=>i(e,s))},getCashSession(t,r){return n.getCashSession(t,r).then(o=>o(e,s))},getSessionReport(t,r,o){return n.getSessionReport(t,r,o).then(i=>i(e,s))},recordCashLog(t,r,o){return n.recordCashLog(t,r,o).then(i=>i(e,s))},sendSessionReport(t,r,o,i){return n.sendSessionReport(t,r,o,i).then(l=>l(e,s))}}},ue=class extends V{create(s,e,n){return L(this.configuration).create(s,e,n).then(t=>t(this.axios,this.basePath))}getCashSession(s,e){return L(this.configuration).getCashSession(s,e).then(n=>n(this.axios,this.basePath))}getSessionReport(s,e,n){return L(this.configuration).getSessionReport(s,e,n).then(t=>t(this.axios,this.basePath))}recordCashLog(s,e,n){return L(this.configuration).recordCashLog(s,e,n).then(t=>t(this.axios,this.basePath))}sendSessionReport(s,e,n,t){return L(this.configuration).sendSessionReport(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Ke=function(a){return{createAssignment:async(s,e,n={})=>{d("createAssignment","businessId",s),d("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}}}},Me=function(a){let s=Ke(a);return{async createAssignment(e,n,t){let r=await s.createAssignment(e,n,t);return P(r,h,p,a)}}},dn=function(a,s,e){let n=Me(a);return{createAssignment(t,r,o){return n.createAssignment(t,r,o).then(i=>i(e,s))}}},de=class extends V{createAssignment(s,e,n){return Me(this.configuration).createAssignment(s,e,n).then(t=>t(this.axios,this.basePath))}},$e=function(a){return{redeemGiftCard:async(s,e={})=>{d("redeemGiftCard","redeemGiftCardDto",s);let n="/api/v1/giftcard/redeem",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},validateGiftCard:async(s,e={})=>{d("validateGiftCard","validateGiftCardDto",s);let n="/api/v1/giftcard/validate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},ee=function(a){let s=$e(a);return{async redeemGiftCard(e,n){let t=await s.redeemGiftCard(e,n);return P(t,h,p,a)},async validateGiftCard(e,n){let t=await s.validateGiftCard(e,n);return P(t,h,p,a)}}},cn=function(a,s,e){let n=ee(a);return{redeemGiftCard(t,r){return n.redeemGiftCard(t,r).then(o=>o(e,s))},validateGiftCard(t,r){return n.validateGiftCard(t,r).then(o=>o(e,s))}}},ce=class extends V{redeemGiftCard(s,e){return ee(this.configuration).redeemGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(s,e){return ee(this.configuration).validateGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},ze=function(a){return{getInternalOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D={})=>{d("getInternalOrderHistoryOnline","businessIds",s);let I="/api/v1/history/internal/orders",S=new URL(I,m),v;a&&(v=a.baseOptions);let E={method:"GET",...v,...D},k={},R={};e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),t!==void 0&&(R.end=t),s&&(R.businessIds=s),r!==void 0&&(R.page=r),o!==void 0&&(R.rowPerPage=o),i&&(R.provider=i),l&&(R.paymentType=l),u&&(R.orderStatus=u),c&&(R.paymentStatus=c),A&&(R.orderType=A),f&&(R.paymentTypePos=f),b!==void 0&&(R.invoiceCompanyId=b),C!==void 0&&(R.timezone=C),g(S,R);let w=v&&v.headers?v.headers:{};return E.headers={...k,...w,...D.headers},{url:y(S),options:E}},getOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D={})=>{d("getOrderHistoryOnline","businessIds",s);let I="/api/v1/history/orders",S=new URL(I,m),v;a&&(v=a.baseOptions);let E={method:"GET",...v,...D},k={},R={};e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),t!==void 0&&(R.end=t),s&&(R.businessIds=s),r!==void 0&&(R.page=r),o!==void 0&&(R.rowPerPage=o),i&&(R.provider=i),l&&(R.paymentType=l),u&&(R.orderStatus=u),c&&(R.paymentStatus=c),A&&(R.orderType=A),f&&(R.paymentTypePos=f),b!==void 0&&(R.invoiceCompanyId=b),C!==void 0&&(R.timezone=C),g(S,R);let w=v&&v.headers?v.headers:{};return E.headers={...k,...w,...D.headers},{url:y(S),options:E}},getOrderHistoryPOSV5:async(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D={})=>{d("getOrderHistoryPOSV5","businessIds",s);let I="/api/v5/history/orders/pos",S=new URL(I,m),v;a&&(v=a.baseOptions);let E={method:"GET",...v,...D},k={},R={};await O(k,a),e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),t!==void 0&&(R.end=t),s&&(R.businessIds=s),r!==void 0&&(R.page=r),o!==void 0&&(R.rowPerPage=o),i&&(R.provider=i),l&&(R.paymentType=l),u&&(R.orderStatus=u),c&&(R.paymentStatus=c),A&&(R.orderType=A),f&&(R.paymentTypePos=f),b!==void 0&&(R.invoiceCompanyId=b),C!==void 0&&(R.timezone=C),g(S,R);let w=v&&v.headers?v.headers:{};return E.headers={...k,...w,...D.headers},{url:y(S),options:E}},getOrderHistoryPOSV5Internal:async(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D={})=>{d("getOrderHistoryPOSV5Internal","businessIds",s);let I="/api/v5/history/internal/orders/pos",S=new URL(I,m),v;a&&(v=a.baseOptions);let E={method:"GET",...v,...D},k={},R={};await O(k,a),e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),t!==void 0&&(R.end=t),s&&(R.businessIds=s),r!==void 0&&(R.page=r),o!==void 0&&(R.rowPerPage=o),i&&(R.provider=i),l&&(R.paymentType=l),u&&(R.orderStatus=u),c&&(R.paymentStatus=c),A&&(R.orderType=A),f&&(R.paymentTypePos=f),b!==void 0&&(R.invoiceCompanyId=b),C!==void 0&&(R.timezone=C),g(S,R);let w=v&&v.headers?v.headers:{};return E.headers={...k,...w,...D.headers},{url:y(S),options:E}}}},G=function(a){let s=ze(a);return{async getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I){let S=await s.getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I);return P(S,h,p,a)},async getOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I){let S=await s.getOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I);return P(S,h,p,a)},async getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I){let S=await s.getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I);return P(S,h,p,a)},async getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I){let S=await s.getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,c,A,f,b,C,D,I);return P(S,h,p,a)}}},pn=function(a,s,e){let n=G(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v){return n.getInternalOrderHistoryOnline(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v).then(E=>E(e,s))},getOrderHistoryOnline(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v){return n.getOrderHistoryOnline(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v).then(E=>E(e,s))},getOrderHistoryPOSV5(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v){return n.getOrderHistoryPOSV5(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v).then(E=>E(e,s))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v){return n.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,c,A,f,b,C,D,I,S,v).then(E=>E(e,s))}}},pe=class extends V{getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D){return G(this.configuration).getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D){return G(this.configuration).getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D){return G(this.configuration).getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D){return G(this.configuration).getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,c,A,f,b,C,D).then(I=>I(this.axios,this.basePath))}},Ye=function(a){return{createInvoiceCompany:async(s,e,n={})=>{d("createInvoiceCompany","businessId",s),d("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(s,e,n={})=>{d("deleteInvoiceCompany","id",s),d("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getInvoiceCompanies:async(s,e={})=>{d("getInvoiceCompanies","businessId",s);let n="/api/v1/invoice-companies",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(s,e,n={})=>{d("getInvoiceCompanyById","id",s),d("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(s,e,n={})=>{d("searchInvoiceCompanies","businessId",s);let t="/api/v1/invoice-companies/search",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.search=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},updateInvoiceCompany:async(s,e,n,t={})=>{d("updateInvoiceCompany","id",s),d("updateInvoiceCompany","businessId",e),d("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=x(n,l,a),{url:y(o),options:l}}}},N=function(a){let s=Ye(a);return{async createInvoiceCompany(e,n,t){let r=await s.createInvoiceCompany(e,n,t);return P(r,h,p,a)},async deleteInvoiceCompany(e,n,t){let r=await s.deleteInvoiceCompany(e,n,t);return P(r,h,p,a)},async getInvoiceCompanies(e,n){let t=await s.getInvoiceCompanies(e,n);return P(t,h,p,a)},async getInvoiceCompanyById(e,n,t){let r=await s.getInvoiceCompanyById(e,n,t);return P(r,h,p,a)},async searchInvoiceCompanies(e,n,t){let r=await s.searchInvoiceCompanies(e,n,t);return P(r,h,p,a)},async updateInvoiceCompany(e,n,t,r){let o=await s.updateInvoiceCompany(e,n,t,r);return P(o,h,p,a)}}},mn=function(a,s,e){let n=N(a);return{createInvoiceCompany(t,r,o){return n.createInvoiceCompany(t,r,o).then(i=>i(e,s))},deleteInvoiceCompany(t,r,o){return n.deleteInvoiceCompany(t,r,o).then(i=>i(e,s))},getInvoiceCompanies(t,r){return n.getInvoiceCompanies(t,r).then(o=>o(e,s))},getInvoiceCompanyById(t,r,o){return n.getInvoiceCompanyById(t,r,o).then(i=>i(e,s))},searchInvoiceCompanies(t,r,o){return n.searchInvoiceCompanies(t,r,o).then(i=>i(e,s))},updateInvoiceCompany(t,r,o,i){return n.updateInvoiceCompany(t,r,o,i).then(l=>l(e,s))}}},me=class extends V{createInvoiceCompany(s,e,n){return N(this.configuration).createInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,n){return N(this.configuration).deleteInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return N(this.configuration).getInvoiceCompanies(s,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(s,e,n){return N(this.configuration).getInvoiceCompanyById(s,e,n).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,n){return N(this.configuration).searchInvoiceCompanies(s,e,n).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,n,t){return N(this.configuration).updateInvoiceCompany(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Ze=function(a){return{getOrderStatus:async(s,e,n={})=>{d("getOrderStatus","orderId",s),d("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},validate:async(s,e,n={})=>{d("validate","terminalId",s),d("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};s!==void 0&&(u.terminalId=s),e!==void 0&&(u.provider=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}}}},te=function(a){let s=Ze(a);return{async getOrderStatus(e,n,t){let r=await s.getOrderStatus(e,n,t);return P(r,h,p,a)},async validate(e,n,t){let r=await s.validate(e,n,t);return P(r,h,p,a)}}},gn=function(a,s,e){let n=te(a);return{getOrderStatus(t,r,o){return n.getOrderStatus(t,r,o).then(i=>i(e,s))},validate(t,r,o){return n.validate(t,r,o).then(i=>i(e,s))}}},ge=class extends V{getOrderStatus(s,e,n){return te(this.configuration).getOrderStatus(s,e,n).then(t=>t(this.axios,this.basePath))}validate(s,e,n){return te(this.configuration).validate(s,e,n).then(t=>t(this.axios,this.basePath))}},Je=function(a){return{getAdminTransactions:async(s,e,n,t={})=>{d("getAdminTransactions","businessId",s);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await O(u,a),s!==void 0&&(c.businessId=s),e!==void 0&&(c.page=e),n!==void 0&&(c.limit=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(s,e={})=>{d("getLoyaltyInfo","businessId",s);let n="/api/v1/loyalty/info",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await O(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(s,e,n={})=>{d("getUserById","businessId",s),d("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await O(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},searchUser:async(s,e,n,t,r={})=>{d("searchUser","businessId",s);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};await O(c,a),e!==void 0&&(A.phone=e),n!==void 0&&(A.country_code=n),t!==void 0&&(A.email=t),s!==void 0&&(A.businessId=s),g(i,A);let f=l&&l.headers?l.headers:{};return u.headers={...c,...f,...r.headers},{url:y(i),options:u}},updatePoints:async(s,e,n={})=>{d("updatePoints","businessId",s),d("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await O(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}}}},F=function(a){let s=Je(a);return{async getAdminTransactions(e,n,t,r){let o=await s.getAdminTransactions(e,n,t,r);return P(o,h,p,a)},async getLoyaltyInfo(e,n){let t=await s.getLoyaltyInfo(e,n);return P(t,h,p,a)},async getUserById(e,n,t){let r=await s.getUserById(e,n,t);return P(r,h,p,a)},async searchUser(e,n,t,r,o){let i=await s.searchUser(e,n,t,r,o);return P(i,h,p,a)},async updatePoints(e,n,t){let r=await s.updatePoints(e,n,t);return P(r,h,p,a)}}},yn=function(a,s,e){let n=F(a);return{getAdminTransactions(t,r,o,i){return n.getAdminTransactions(t,r,o,i).then(l=>l(e,s))},getLoyaltyInfo(t,r){return n.getLoyaltyInfo(t,r).then(o=>o(e,s))},getUserById(t,r,o){return n.getUserById(t,r,o).then(i=>i(e,s))},searchUser(t,r,o,i,l){return n.searchUser(t,r,o,i,l).then(u=>u(e,s))},updatePoints(t,r,o){return n.updatePoints(t,r,o).then(i=>i(e,s))}}},ye=class extends V{getAdminTransactions(s,e,n,t){return F(this.configuration).getAdminTransactions(s,e,n,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(s,e){return F(this.configuration).getLoyaltyInfo(s,e).then(n=>n(this.axios,this.basePath))}getUserById(s,e,n){return F(this.configuration).getUserById(s,e,n).then(t=>t(this.axios,this.basePath))}searchUser(s,e,n,t,r){return F(this.configuration).searchUser(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,n){return F(this.configuration).updatePoints(s,e,n).then(t=>t(this.axios,this.basePath))}},Xe=function(a){return{editBusinessProduct:async(s,e,n={})=>{d("editBusinessProduct","businessId",s),d("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(s,e,n={})=>{d("editBusinessProductV2","businessId",s),d("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(s,e={})=>{d("getBusinessExtras","businessId",s);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(s,e,n={})=>{d("getProductsByCategoriesV2","businessId",s);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},resetProductEod:async(s,e={})=>{d("resetProductEod","resetEodDto",s);let n="/api/v1/menu/availability/reset-eod",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},W=function(a){let s=Xe(a);return{async editBusinessProduct(e,n,t){let r=await s.editBusinessProduct(e,n,t);return P(r,h,p,a)},async editBusinessProductV2(e,n,t){let r=await s.editBusinessProductV2(e,n,t);return P(r,h,p,a)},async getBusinessExtras(e,n){let t=await s.getBusinessExtras(e,n);return P(t,h,p,a)},async getProductsByCategoriesV2(e,n,t){let r=await s.getProductsByCategoriesV2(e,n,t);return P(r,h,p,a)},async resetProductEod(e,n){let t=await s.resetProductEod(e,n);return P(t,h,p,a)}}},Pn=function(a,s,e){let n=W(a);return{editBusinessProduct(t,r,o){return n.editBusinessProduct(t,r,o).then(i=>i(e,s))},editBusinessProductV2(t,r,o){return n.editBusinessProductV2(t,r,o).then(i=>i(e,s))},getBusinessExtras(t,r){return n.getBusinessExtras(t,r).then(o=>o(e,s))},getProductsByCategoriesV2(t,r,o){return n.getProductsByCategoriesV2(t,r,o).then(i=>i(e,s))},resetProductEod(t,r){return n.resetProductEod(t,r).then(o=>o(e,s))}}},Pe=class extends V{editBusinessProduct(s,e,n){return W(this.configuration).editBusinessProduct(s,e,n).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,n){return W(this.configuration).editBusinessProductV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return W(this.configuration).getBusinessExtras(s,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,n){return W(this.configuration).getProductsByCategoriesV2(s,e,n).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return W(this.configuration).resetProductEod(s,e).then(n=>n(this.axios,this.basePath))}},et=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{d("addVenueSubscriptionsV2","deviceSubscriptionDto",s);let n="/api/v2/notification/add-venue-subscriptions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{d("removeVenueSubscriptionsV2","deviceSubscriptionDto",s);let n="/api/v2/notification/remove-venue-subscriptions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},se=function(a){let s=et(a);return{async addVenueSubscriptionsV2(e,n){let t=await s.addVenueSubscriptionsV2(e,n);return P(t,h,p,a)},async removeVenueSubscriptionsV2(e,n){let t=await s.removeVenueSubscriptionsV2(e,n);return P(t,h,p,a)}}},hn=function(a,s,e){let n=se(a);return{addVenueSubscriptionsV2(t,r){return n.addVenueSubscriptionsV2(t,r).then(o=>o(e,s))},removeVenueSubscriptionsV2(t,r){return n.removeVenueSubscriptionsV2(t,r).then(o=>o(e,s))}}},he=class extends V{addVenueSubscriptionsV2(s,e){return se(this.configuration).addVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return se(this.configuration).removeVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}},tt=function(a){return{updateTaxRate:async(s,e={})=>{d("updateTaxRate","body",s);let n="/api/v1/ordering/update-tax-rate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},_e=function(a){let s=tt(a);return{async updateTaxRate(e,n){let t=await s.updateTaxRate(e,n);return P(t,h,p,a)}}},An=function(a,s,e){let n=_e(a);return{updateTaxRate(t,r){return n.updateTaxRate(t,r).then(o=>o(e,s))}}},Ae=class extends V{updateTaxRate(s,e){return _e(this.configuration).updateTaxRate(s,e).then(n=>n(this.axios,this.basePath))}},st=function(a){return{acceptOrder:async(s,e={})=>{d("acceptOrder","acceptOrderDto",s);let n="/api/v1/orders/accept",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},confirmPreOrder:async(s,e={})=>{d("confirmPreOrder","confirmPreorderDto",s);let n="/api/v1/orders/confirm/preOrder",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{d("deletePosParkedOrderV2","deletePosOrderDto",s);let n="/api/v2/orders/pos/park",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},deliverOrder:async(s,e={})=>{d("deliverOrder","deliveredOrderDto",s);let n="/api/v1/orders/delivered",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},getAllOrdersV2:async(s,e={})=>{d("getAllOrdersV2","businessIds",s);let n="/api/v2/orders",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessIds=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(s,e,n,t,r={})=>{d("getOrdersV2","status",s),d("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};n!==void 0&&(A.posBusinessId=n),t!==void 0&&(A.extraProvider=t),e!==void 0&&(A.businessIds=e),g(i,A);let f=l&&l.headers?l.headers:{};return u.headers={...c,...f,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{d("getParkedPosOrderV2","businessId",s);let n="/api/v2/orders/pos/park",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},markOrderAsReady:async(s,e={})=>{d("markOrderAsReady","readyOrderDto",s);let n="/api/v1/orders/ready",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},placePosOrderV4:async(s,e={})=>{d("placePosOrderV4","posOrderPayloadDto",s);let n="/api/v4/orders/pos/place",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},processPosOrderActions:async(s,e={})=>{d("processPosOrderActions","processOrderActionsDto",s);let n="/api/v4/orders/pos/actions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},rejectOrder:async(s,e={})=>{d("rejectOrder","rejectOrderDto",s);let n="/api/v1/orders/reject",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},updatePosOrderV2:async(s,e={})=>{d("updatePosOrderV2","posUpdateOrderDto",s);let n="/api/v2/orders/pos/update",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},U=function(a){let s=st(a);return{async acceptOrder(e,n){let t=await s.acceptOrder(e,n);return P(t,h,p,a)},async confirmPreOrder(e,n){let t=await s.confirmPreOrder(e,n);return P(t,h,p,a)},async deletePosParkedOrderV2(e,n){let t=await s.deletePosParkedOrderV2(e,n);return P(t,h,p,a)},async deliverOrder(e,n){let t=await s.deliverOrder(e,n);return P(t,h,p,a)},async getAllOrdersV2(e,n){let t=await s.getAllOrdersV2(e,n);return P(t,h,p,a)},async getOrdersV2(e,n,t,r,o){let i=await s.getOrdersV2(e,n,t,r,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,n){let t=await s.getParkedPosOrderV2(e,n);return P(t,h,p,a)},async markOrderAsReady(e,n){let t=await s.markOrderAsReady(e,n);return P(t,h,p,a)},async placePosOrderV4(e,n){let t=await s.placePosOrderV4(e,n);return P(t,h,p,a)},async processPosOrderActions(e,n){let t=await s.processPosOrderActions(e,n);return P(t,h,p,a)},async rejectOrder(e,n){let t=await s.rejectOrder(e,n);return P(t,h,p,a)},async updatePosOrderV2(e,n){let t=await s.updatePosOrderV2(e,n);return P(t,h,p,a)}}},xn=function(a,s,e){let n=U(a);return{acceptOrder(t,r){return n.acceptOrder(t,r).then(o=>o(e,s))},confirmPreOrder(t,r){return n.confirmPreOrder(t,r).then(o=>o(e,s))},deletePosParkedOrderV2(t,r){return n.deletePosParkedOrderV2(t,r).then(o=>o(e,s))},deliverOrder(t,r){return n.deliverOrder(t,r).then(o=>o(e,s))},getAllOrdersV2(t,r){return n.getAllOrdersV2(t,r).then(o=>o(e,s))},getOrdersV2(t,r,o,i,l){return n.getOrdersV2(t,r,o,i,l).then(u=>u(e,s))},getParkedPosOrderV2(t,r){return n.getParkedPosOrderV2(t,r).then(o=>o(e,s))},markOrderAsReady(t,r){return n.markOrderAsReady(t,r).then(o=>o(e,s))},placePosOrderV4(t,r){return n.placePosOrderV4(t,r).then(o=>o(e,s))},processPosOrderActions(t,r){return n.processPosOrderActions(t,r).then(o=>o(e,s))},rejectOrder(t,r){return n.rejectOrder(t,r).then(o=>o(e,s))},updatePosOrderV2(t,r){return n.updatePosOrderV2(t,r).then(o=>o(e,s))}}},xe=class extends V{acceptOrder(s,e){return U(this.configuration).acceptOrder(s,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(s,e){return U(this.configuration).confirmPreOrder(s,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return U(this.configuration).deletePosParkedOrderV2(s,e).then(n=>n(this.axios,this.basePath))}deliverOrder(s,e){return U(this.configuration).deliverOrder(s,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(s,e){return U(this.configuration).getAllOrdersV2(s,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(s,e,n,t,r){return U(this.configuration).getOrdersV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return U(this.configuration).getParkedPosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(s,e){return U(this.configuration).markOrderAsReady(s,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(s,e){return U(this.configuration).placePosOrderV4(s,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(s,e){return U(this.configuration).processPosOrderActions(s,e).then(n=>n(this.axios,this.basePath))}rejectOrder(s,e){return U(this.configuration).rejectOrder(s,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(s,e){return U(this.configuration).updatePosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}},nt=function(a){return{getPosSession:async(s,e={})=>{d("getPosSession","businessId",s);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},we=function(a){let s=nt(a);return{async getPosSession(e,n){let t=await s.getPosSession(e,n);return P(t,h,p,a)}}},fn=function(a,s,e){let n=we(a);return{getPosSession(t,r){return n.getPosSession(t,r).then(o=>o(e,s))}}},fe=class extends V{getPosSession(s,e){return we(this.configuration).getPosSession(s,e).then(n=>n(this.axios,this.basePath))}},rt=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{d("cancelNetsTerminalTransaction","netsCancelTransactionDto",s);let n="/api/v3/payment/nets/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},cancelStripePayment:async(s,e={})=>{d("cancelStripePayment","paymentIntentIdDto",s);let n="/api/v1/payment/stripe/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},cancelTransaction:async(s,e={})=>{d("cancelTransaction","vivaCancelTransactionDto",s);let n="/api/v1/payment/viva/cancelTransaction",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{d("cancelVivaTransactionV2","vivaCancelTransactionDto",s);let n="/api/v2/payment/viva/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},captureStripePayment:async(s,e={})=>{d("captureStripePayment","paymentIntentIdDto",s);let n="/api/v1/payment/stripe/capture",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{d("createNetsRefundTransaction","createRefundDto",s);let n="/api/v4/payment/nets/refund/transaction",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},createVivaPayment:async(s,e={})=>{d("createVivaPayment","vivaCreatePaymentDto",s);let n="/api/v1/payment/viva/createPayment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},createVivaPaymentV3:async(s,e={})=>{d("createVivaPaymentV3","vivaCreatePaymentDto",s);let n="/api/v3/payment/viva/createPayment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},discoverDevices:async(s,e={})=>{d("discoverDevices","vivaDiscoverDevicesDto",s);let n="/api/v1/payment/viva/discoverDevices",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},getConnectionToken:async(s,e={})=>{d("getConnectionToken","connectionTokenPayloadDto",s);let n="/api/v1/payment/connectionToken",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},getPaymentStatus:async(s,e={})=>{d("getPaymentStatus","getPaymentStatusDto",s);let n="/api/v1/payment/status",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},getToken:async(s,e={})=>{d("getToken","businessId",s);let n="/api/v1/payment/stripe/connectionToken",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{d("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",s);let n="/api/v3/payment/nets/terminal/initiate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{d("initiateTerminalTransaction","createTerminalPaymentDto",s);let n="/api/v4/payment/viva/terminal/initiate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{d("processOnlineOrderRefund","orderResponseDto",s);let n="/api/v1/payment/online-orders/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},refundCashPaymentV3:async(s,e={})=>{d("refundCashPaymentV3","cashRefundPayload",s);let n="/api/v3/payment/cash/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},refundManualPaymentV3:async(s,e={})=>{d("refundManualPaymentV3","manualRefundPayload",s);let n="/api/v3/payment/manual/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},refundNetsTransactionV3:async(s,e={})=>{d("refundNetsTransactionV3","refundPayloadDtoV4",s);let n="/api/v3/payment/nets/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{d("refundSingleVivaTransaction","createRefundDto",s);let n="/api/v4/payment/viva/refund/single",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},refundVivaTransactionV3:async(s,e={})=>{d("refundVivaTransactionV3","refundPayloadDto",s);let n="/api/v3/payment/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},refundVivaTransactionV4:async(s,e={})=>{d("refundVivaTransactionV4","refundPayloadDtoV4",s);let n="/api/v4/payment/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},q=function(a){let s=rt(a);return{async cancelNetsTerminalTransaction(e,n){let t=await s.cancelNetsTerminalTransaction(e,n);return P(t,h,p,a)},async cancelStripePayment(e,n){let t=await s.cancelStripePayment(e,n);return P(t,h,p,a)},async cancelTransaction(e,n){let t=await s.cancelTransaction(e,n);return P(t,h,p,a)},async cancelVivaTransactionV2(e,n){let t=await s.cancelVivaTransactionV2(e,n);return P(t,h,p,a)},async captureStripePayment(e,n){let t=await s.captureStripePayment(e,n);return P(t,h,p,a)},async createNetsRefundTransaction(e,n){let t=await s.createNetsRefundTransaction(e,n);return P(t,h,p,a)},async createVivaPayment(e,n){let t=await s.createVivaPayment(e,n);return P(t,h,p,a)},async createVivaPaymentV3(e,n){let t=await s.createVivaPaymentV3(e,n);return P(t,h,p,a)},async discoverDevices(e,n){let t=await s.discoverDevices(e,n);return P(t,h,p,a)},async getConnectionToken(e,n){let t=await s.getConnectionToken(e,n);return P(t,h,p,a)},async getPaymentStatus(e,n){let t=await s.getPaymentStatus(e,n);return P(t,h,p,a)},async getToken(e,n){let t=await s.getToken(e,n);return P(t,h,p,a)},async initiateNetsTerminalTransaction(e,n){let t=await s.initiateNetsTerminalTransaction(e,n);return P(t,h,p,a)},async initiateTerminalTransaction(e,n){let t=await s.initiateTerminalTransaction(e,n);return P(t,h,p,a)},async processOnlineOrderRefund(e,n){let t=await s.processOnlineOrderRefund(e,n);return P(t,h,p,a)},async refundCashPaymentV3(e,n){let t=await s.refundCashPaymentV3(e,n);return P(t,h,p,a)},async refundManualPaymentV3(e,n){let t=await s.refundManualPaymentV3(e,n);return P(t,h,p,a)},async refundNetsTransactionV3(e,n){let t=await s.refundNetsTransactionV3(e,n);return P(t,h,p,a)},async refundSingleVivaTransaction(e,n){let t=await s.refundSingleVivaTransaction(e,n);return P(t,h,p,a)},async refundVivaTransactionV3(e,n){let t=await s.refundVivaTransactionV3(e,n);return P(t,h,p,a)},async refundVivaTransactionV4(e,n){let t=await s.refundVivaTransactionV4(e,n);return P(t,h,p,a)}}},Rn=function(a,s,e){let n=q(a);return{cancelNetsTerminalTransaction(t,r){return n.cancelNetsTerminalTransaction(t,r).then(o=>o(e,s))},cancelStripePayment(t,r){return n.cancelStripePayment(t,r).then(o=>o(e,s))},cancelTransaction(t,r){return n.cancelTransaction(t,r).then(o=>o(e,s))},cancelVivaTransactionV2(t,r){return n.cancelVivaTransactionV2(t,r).then(o=>o(e,s))},captureStripePayment(t,r){return n.captureStripePayment(t,r).then(o=>o(e,s))},createNetsRefundTransaction(t,r){return n.createNetsRefundTransaction(t,r).then(o=>o(e,s))},createVivaPayment(t,r){return n.createVivaPayment(t,r).then(o=>o(e,s))},createVivaPaymentV3(t,r){return n.createVivaPaymentV3(t,r).then(o=>o(e,s))},discoverDevices(t,r){return n.discoverDevices(t,r).then(o=>o(e,s))},getConnectionToken(t,r){return n.getConnectionToken(t,r).then(o=>o(e,s))},getPaymentStatus(t,r){return n.getPaymentStatus(t,r).then(o=>o(e,s))},getToken(t,r){return n.getToken(t,r).then(o=>o(e,s))},initiateNetsTerminalTransaction(t,r){return n.initiateNetsTerminalTransaction(t,r).then(o=>o(e,s))},initiateTerminalTransaction(t,r){return n.initiateTerminalTransaction(t,r).then(o=>o(e,s))},processOnlineOrderRefund(t,r){return n.processOnlineOrderRefund(t,r).then(o=>o(e,s))},refundCashPaymentV3(t,r){return n.refundCashPaymentV3(t,r).then(o=>o(e,s))},refundManualPaymentV3(t,r){return n.refundManualPaymentV3(t,r).then(o=>o(e,s))},refundNetsTransactionV3(t,r){return n.refundNetsTransactionV3(t,r).then(o=>o(e,s))},refundSingleVivaTransaction(t,r){return n.refundSingleVivaTransaction(t,r).then(o=>o(e,s))},refundVivaTransactionV3(t,r){return n.refundVivaTransactionV3(t,r).then(o=>o(e,s))},refundVivaTransactionV4(t,r){return n.refundVivaTransactionV4(t,r).then(o=>o(e,s))}}},Re=class extends V{cancelNetsTerminalTransaction(s,e){return q(this.configuration).cancelNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}cancelStripePayment(s,e){return q(this.configuration).cancelStripePayment(s,e).then(n=>n(this.axios,this.basePath))}cancelTransaction(s,e){return q(this.configuration).cancelTransaction(s,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return q(this.configuration).cancelVivaTransactionV2(s,e).then(n=>n(this.axios,this.basePath))}captureStripePayment(s,e){return q(this.configuration).captureStripePayment(s,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return q(this.configuration).createNetsRefundTransaction(s,e).then(n=>n(this.axios,this.basePath))}createVivaPayment(s,e){return q(this.configuration).createVivaPayment(s,e).then(n=>n(this.axios,this.basePath))}createVivaPaymentV3(s,e){return q(this.configuration).createVivaPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}discoverDevices(s,e){return q(this.configuration).discoverDevices(s,e).then(n=>n(this.axios,this.basePath))}getConnectionToken(s,e){return q(this.configuration).getConnectionToken(s,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(s,e){return q(this.configuration).getPaymentStatus(s,e).then(n=>n(this.axios,this.basePath))}getToken(s,e){return q(this.configuration).getToken(s,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return q(this.configuration).initiateNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return q(this.configuration).initiateTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return q(this.configuration).processOnlineOrderRefund(s,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(s,e){return q(this.configuration).refundCashPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(s,e){return q(this.configuration).refundManualPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(s,e){return q(this.configuration).refundNetsTransactionV3(s,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return q(this.configuration).refundSingleVivaTransaction(s,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(s,e){return q(this.configuration).refundVivaTransactionV3(s,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(s,e){return q(this.configuration).refundVivaTransactionV4(s,e).then(n=>n(this.axios,this.basePath))}},ot=function(a){return{loadConfigFile:async(s={})=>{let e="/api/plugin/config.json",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},upsertBusiness:async(s={})=>{let e="/api/plugin/business/upsert",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},ne=function(a){let s=ot(a);return{async loadConfigFile(e){let n=await s.loadConfigFile(e);return P(n,h,p,a)},async upsertBusiness(e){let n=await s.upsertBusiness(e);return P(n,h,p,a)}}},bn=function(a,s,e){let n=ne(a);return{loadConfigFile(t){return n.loadConfigFile(t).then(r=>r(e,s))},upsertBusiness(t){return n.upsertBusiness(t).then(r=>r(e,s))}}},be=class extends V{loadConfigFile(s){return ne(this.configuration).loadConfigFile(s).then(e=>e(this.axios,this.basePath))}upsertBusiness(s){return ne(this.configuration).upsertBusiness(s).then(e=>e(this.axios,this.basePath))}},at=function(a){return{updateChannelInventoryV2:async(s,e,n,t,r={})=>{d("updateChannelInventoryV2","businessId",s),d("updateChannelInventoryV2","categoryId",e),d("updateChannelInventoryV2","productId",n),d("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},c={},A={};c["Content-Type"]="application/json",g(i,A);let f=l&&l.headers?l.headers:{};return u.headers={...c,...f,...r.headers},u.data=x(t,u,a),{url:y(i),options:u}}}},Ne=function(a){let s=at(a);return{async updateChannelInventoryV2(e,n,t,r,o){let i=await s.updateChannelInventoryV2(e,n,t,r,o);return P(i,h,p,a)}}},Cn=function(a,s,e){let n=Ne(a);return{updateChannelInventoryV2(t,r,o,i,l){return n.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,s))}}},Ce=class extends V{updateChannelInventoryV2(s,e,n,t,r){return Ne(this.configuration).updateChannelInventoryV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}},it=function(a){return{getSupportedChannels:async(s,e={})=>{d("getSupportedChannels","businessId",s);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},registerCredential:async(s,e={})=>{d("registerCredential","body",s);let n="/api/v1/provider/credentials",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},registerProvider:async(s,e={})=>{d("registerProvider","body",s);let n="/api/v1/provider",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},Z=function(a){let s=it(a);return{async getSupportedChannels(e,n){let t=await s.getSupportedChannels(e,n);return P(t,h,p,a)},async registerCredential(e,n){let t=await s.registerCredential(e,n);return P(t,h,p,a)},async registerProvider(e,n){let t=await s.registerProvider(e,n);return P(t,h,p,a)}}},Dn=function(a,s,e){let n=Z(a);return{getSupportedChannels(t,r){return n.getSupportedChannels(t,r).then(o=>o(e,s))},registerCredential(t,r){return n.registerCredential(t,r).then(o=>o(e,s))},registerProvider(t,r){return n.registerProvider(t,r).then(o=>o(e,s))}}},De=class extends V{getSupportedChannels(s,e){return Z(this.configuration).getSupportedChannels(s,e).then(n=>n(this.axios,this.basePath))}registerCredential(s,e){return Z(this.configuration).registerCredential(s,e).then(n=>n(this.axios,this.basePath))}registerProvider(s,e){return Z(this.configuration).registerProvider(s,e).then(n=>n(this.axios,this.basePath))}},lt=function(a){return{cancelPlan:async(s,e,n,t={})=>{d("cancelPlan","businessId",s),d("cancelPlan","orderId",e),d("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},createRefundPlan:async(s,e,n,t={})=>{d("createRefundPlan","businessId",s),d("createRefundPlan","orderId",e),d("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=x(n,l,a),{url:y(o),options:l}},getRefundPlan:async(s,e,n,t={})=>{d("getRefundPlan","businessId",s),d("getRefundPlan","orderId",e),d("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};n!==void 0&&(c.status=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(s,e,n,t,r={})=>{d("recordRefundPlan","businessId",s),d("recordRefundPlan","orderId",e),d("recordRefundPlan","refundId",n),d("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},c={},A={};c["Content-Type"]="application/json",g(i,A);let f=l&&l.headers?l.headers:{};return u.headers={...c,...f,...r.headers},u.data=x(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(s,e,n,t={})=>{d("refundOnlineOrder","businessId",s),d("refundOnlineOrder","orderId",e),d("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};n!==void 0&&(c.provider=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(s,e,n,t,r={})=>{d("resolveRefundChoice","businessId",s),d("resolveRefundChoice","orderId",e),d("resolveRefundChoice","refundId",n),d("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},c={},A={};c["Content-Type"]="application/json",g(i,A);let f=l&&l.headers?l.headers:{};return u.headers={...c,...f,...r.headers},u.data=x(t,u,a),{url:y(i),options:u}},startProcessPlan:async(s,e,n,t={})=>{d("startProcessPlan","businessId",s),d("startProcessPlan","orderId",e),d("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},M=function(a){let s=lt(a);return{async cancelPlan(e,n,t,r){let o=await s.cancelPlan(e,n,t,r);return P(o,h,p,a)},async createRefundPlan(e,n,t,r){let o=await s.createRefundPlan(e,n,t,r);return P(o,h,p,a)},async getRefundPlan(e,n,t,r){let o=await s.getRefundPlan(e,n,t,r);return P(o,h,p,a)},async recordRefundPlan(e,n,t,r,o){let i=await s.recordRefundPlan(e,n,t,r,o);return P(i,h,p,a)},async refundOnlineOrder(e,n,t,r){let o=await s.refundOnlineOrder(e,n,t,r);return P(o,h,p,a)},async resolveRefundChoice(e,n,t,r,o){let i=await s.resolveRefundChoice(e,n,t,r,o);return P(i,h,p,a)},async startProcessPlan(e,n,t,r){let o=await s.startProcessPlan(e,n,t,r);return P(o,h,p,a)}}},On=function(a,s,e){let n=M(a);return{cancelPlan(t,r,o,i){return n.cancelPlan(t,r,o,i).then(l=>l(e,s))},createRefundPlan(t,r,o,i){return n.createRefundPlan(t,r,o,i).then(l=>l(e,s))},getRefundPlan(t,r,o,i){return n.getRefundPlan(t,r,o,i).then(l=>l(e,s))},recordRefundPlan(t,r,o,i,l){return n.recordRefundPlan(t,r,o,i,l).then(u=>u(e,s))},refundOnlineOrder(t,r,o,i){return n.refundOnlineOrder(t,r,o,i).then(l=>l(e,s))},resolveRefundChoice(t,r,o,i,l){return n.resolveRefundChoice(t,r,o,i,l).then(u=>u(e,s))},startProcessPlan(t,r,o,i){return n.startProcessPlan(t,r,o,i).then(l=>l(e,s))}}},Oe=class extends V{cancelPlan(s,e,n,t){return M(this.configuration).cancelPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(s,e,n,t){return M(this.configuration).createRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(s,e,n,t){return M(this.configuration).getRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(s,e,n,t,r){return M(this.configuration).recordRefundPlan(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,n,t){return M(this.configuration).refundOnlineOrder(s,e,n,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(s,e,n,t,r){return M(this.configuration).resolveRefundChoice(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,n,t){return M(this.configuration).startProcessPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}},ut=function(a){return{getEndOfDayReportV5:async(s,e,n,t,r,o,i={})=>{d("getEndOfDayReportV5","businessIds",s);let l="/api/v5/report/end-of-day",u=new URL(l,m),c;a&&(c=a.baseOptions);let A={method:"GET",...c,...i},f={},b={};e!==void 0&&(b.timeSpan=e),n!==void 0&&(b.start=n),t!==void 0&&(b.end=t),s&&(b.businessIds=s),r!==void 0&&(b.timezone=r),o!==void 0&&(b.provider=o),g(u,b);let C=c&&c.headers?c.headers:{};return A.headers={...f,...C,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(s,e,n,t,r,o={})=>{d("getPOSEndOfDayReportV4","businessIds",s);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let c={method:"GET",...u,...o},A={},f={};e!==void 0&&(f.timeSpan=e),n!==void 0&&(f.start=n),t!==void 0&&(f.end=t),s&&(f.businessIds=s),r!==void 0&&(f.timezone=r),g(l,f);let b=u&&u.headers?u.headers:{};return c.headers={...A,...b,...o.headers},{url:y(l),options:c}},sendReportEmailV4:async(s,e,n,t,r,o,i={})=>{d("sendReportEmailV4","businessIds",s),d("sendReportEmailV4","timezone",e),d("sendReportEmailV4","sendReportEmailDto",n);let l="/api/v4/report/email",u=new URL(l,m),c;a&&(c=a.baseOptions);let A={method:"POST",...c,...i},f={},b={};t!==void 0&&(b.timeSpan=t),r!==void 0&&(b.start=r),o!==void 0&&(b.end=o),s&&(b.businessIds=s),e!==void 0&&(b.timezone=e),f["Content-Type"]="application/json",g(u,b);let C=c&&c.headers?c.headers:{};return A.headers={...f,...C,...i.headers},A.data=x(n,A,a),{url:y(u),options:A}},sendReportEmailV5:async(s,e,n,t,r,o,i,l={})=>{d("sendReportEmailV5","businessIds",s),d("sendReportEmailV5","timezone",e),d("sendReportEmailV5","sendReportEmailDto",n);let u="/api/v5/report/email",c=new URL(u,m),A;a&&(A=a.baseOptions);let f={method:"POST",...A,...l},b={},C={};t!==void 0&&(C.timeSpan=t),r!==void 0&&(C.start=r),o!==void 0&&(C.end=o),s&&(C.businessIds=s),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),b["Content-Type"]="application/json",g(c,C);let D=A&&A.headers?A.headers:{};return f.headers={...b,...D,...l.headers},f.data=x(n,f,a),{url:y(c),options:f}}}},K=function(a){let s=ut(a);return{async getEndOfDayReportV5(e,n,t,r,o,i,l){let u=await s.getEndOfDayReportV5(e,n,t,r,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,n,t,r,o,i){let l=await s.getPOSEndOfDayReportV4(e,n,t,r,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,n,t,r,o,i,l){let u=await s.sendReportEmailV4(e,n,t,r,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,n,t,r,o,i,l,u){let c=await s.sendReportEmailV5(e,n,t,r,o,i,l,u);return P(c,h,p,a)}}},Vn=function(a,s,e){let n=K(a);return{getEndOfDayReportV5(t,r,o,i,l,u,c){return n.getEndOfDayReportV5(t,r,o,i,l,u,c).then(A=>A(e,s))},getPOSEndOfDayReportV4(t,r,o,i,l,u){return n.getPOSEndOfDayReportV4(t,r,o,i,l,u).then(c=>c(e,s))},sendReportEmailV4(t,r,o,i,l,u,c){return n.sendReportEmailV4(t,r,o,i,l,u,c).then(A=>A(e,s))},sendReportEmailV5(t,r,o,i,l,u,c,A){return n.sendReportEmailV5(t,r,o,i,l,u,c,A).then(f=>f(e,s))}}},Ve=class extends V{getEndOfDayReportV5(s,e,n,t,r,o,i){return K(this.configuration).getEndOfDayReportV5(s,e,n,t,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(s,e,n,t,r,o){return K(this.configuration).getPOSEndOfDayReportV4(s,e,n,t,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(s,e,n,t,r,o,i){return K(this.configuration).sendReportEmailV4(s,e,n,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(s,e,n,t,r,o,i,l){return K(this.configuration).sendReportEmailV5(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},dt=function(a){return{createActionPasscode:async(s,e={})=>{d("createActionPasscode","createActionPasscodeDto",s);let n="/api/v1/action-passcodes",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},je=function(a){let s=dt(a);return{async createActionPasscode(e,n){let t=await s.createActionPasscode(e,n);return P(t,h,p,a)}}},In=function(a,s,e){let n=je(a);return{createActionPasscode(t,r){return n.createActionPasscode(t,r).then(o=>o(e,s))}}},Ie=class extends V{createActionPasscode(s,e){return je(this.configuration).createActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}},ct=function(a){return{clockIn:async(s,e,n={})=>{d("clockIn","businessId",s),d("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},clockOut:async(s,e,n={})=>{d("clockOut","businessId",s),d("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},getShifts:async(s,e,n,t={})=>{d("getShifts","businessId",s);let r="/api/v1/businesses/{businessId}/shifts".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};e!==void 0&&(c.page=e),n!==void 0&&(c.limit=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getTodayShift:async(s,e,n={})=>{d("getTodayShift","businessId",s),d("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},unlock:async(s,e,n={})=>{d("unlock","businessId",s),d("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}}}},H=function(a){let s=ct(a);return{async clockIn(e,n,t){let r=await s.clockIn(e,n,t);return P(r,h,p,a)},async clockOut(e,n,t){let r=await s.clockOut(e,n,t);return P(r,h,p,a)},async getShifts(e,n,t,r){let o=await s.getShifts(e,n,t,r);return P(o,h,p,a)},async getTodayShift(e,n,t){let r=await s.getTodayShift(e,n,t);return P(r,h,p,a)},async unlock(e,n,t){let r=await s.unlock(e,n,t);return P(r,h,p,a)}}},vn=function(a,s,e){let n=H(a);return{clockIn(t,r,o){return n.clockIn(t,r,o).then(i=>i(e,s))},clockOut(t,r,o){return n.clockOut(t,r,o).then(i=>i(e,s))},getShifts(t,r,o,i){return n.getShifts(t,r,o,i).then(l=>l(e,s))},getTodayShift(t,r,o){return n.getTodayShift(t,r,o).then(i=>i(e,s))},unlock(t,r,o){return n.unlock(t,r,o).then(i=>i(e,s))}}},ve=class extends V{clockIn(s,e,n){return H(this.configuration).clockIn(s,e,n).then(t=>t(this.axios,this.basePath))}clockOut(s,e,n){return H(this.configuration).clockOut(s,e,n).then(t=>t(this.axios,this.basePath))}getShifts(s,e,n,t){return H(this.configuration).getShifts(s,e,n,t).then(r=>r(this.axios,this.basePath))}getTodayShift(s,e,n){return H(this.configuration).getTodayShift(s,e,n).then(t=>t(this.axios,this.basePath))}unlock(s,e,n){return H(this.configuration).unlock(s,e,n).then(t=>t(this.axios,this.basePath))}},pt=function(a){return{deactivateStation:async(s={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getStation:async(s={})=>{let e="/api/v1/station",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},syncStation:async(s,e={})=>{d("syncStation","syncStationDto",s);let n="/api/v1/station/sync",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},syncTerminal:async(s,e={})=>{d("syncTerminal","syncTerminalDto",s);let n="/api/v1/station/terminal/sync",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}}}},$=function(a){let s=pt(a);return{async deactivateStation(e){let n=await s.deactivateStation(e);return P(n,h,p,a)},async getStation(e){let n=await s.getStation(e);return P(n,h,p,a)},async syncStation(e,n){let t=await s.syncStation(e,n);return P(t,h,p,a)},async syncTerminal(e,n){let t=await s.syncTerminal(e,n);return P(t,h,p,a)}}},Sn=function(a,s,e){let n=$(a);return{deactivateStation(t){return n.deactivateStation(t).then(r=>r(e,s))},getStation(t){return n.getStation(t).then(r=>r(e,s))},syncStation(t,r){return n.syncStation(t,r).then(o=>o(e,s))},syncTerminal(t,r){return n.syncTerminal(t,r).then(o=>o(e,s))}}},Se=class extends V{deactivateStation(s){return $(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return $(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return $(this.configuration).syncStation(s,e).then(n=>n(this.axios,this.basePath))}syncTerminal(s,e){return $(this.configuration).syncTerminal(s,e).then(n=>n(this.axios,this.basePath))}},mt=function(a){return{connectTerminal:async(s,e={})=>{d("connectTerminal","connectTerminalDto",s);let n="/api/v1/terminal/connect",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},disconnectTerminal:async(s={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},discoverTerminal:async(s,e={})=>{d("discoverTerminal","discoverTerminalDto",s);let n="/api/v1/terminal/discover",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},getTerminalStatus:async(s,e,n,t={})=>{d("getTerminalStatus","businessId",s),d("getTerminalStatus","provider",e),d("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};e!==void 0&&(c.provider=e),n!==void 0&&(c.terminalId=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},z=function(a){let s=mt(a);return{async connectTerminal(e,n){let t=await s.connectTerminal(e,n);return P(t,h,p,a)},async disconnectTerminal(e){let n=await s.disconnectTerminal(e);return P(n,h,p,a)},async discoverTerminal(e,n){let t=await s.discoverTerminal(e,n);return P(t,h,p,a)},async getTerminalStatus(e,n,t,r){let o=await s.getTerminalStatus(e,n,t,r);return P(o,h,p,a)}}},Tn=function(a,s,e){let n=z(a);return{connectTerminal(t,r){return n.connectTerminal(t,r).then(o=>o(e,s))},disconnectTerminal(t){return n.disconnectTerminal(t).then(r=>r(e,s))},discoverTerminal(t,r){return n.discoverTerminal(t,r).then(o=>o(e,s))},getTerminalStatus(t,r,o,i){return n.getTerminalStatus(t,r,o,i).then(l=>l(e,s))}}},Te=class extends V{connectTerminal(s,e){return z(this.configuration).connectTerminal(s,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(s){return z(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return z(this.configuration).discoverTerminal(s,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(s,e,n,t){return z(this.configuration).getTerminalStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},gt=function(a){return{getUserBusiness:async(s={})=>{let e="/api/v1/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await O(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserInfo:async(s={})=>{let e="/api/v1/user",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await O(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},re=function(a){let s=gt(a);return{async getUserBusiness(e){let n=await s.getUserBusiness(e);return P(n,h,p,a)},async getUserInfo(e){let n=await s.getUserInfo(e);return P(n,h,p,a)}}},qn=function(a,s,e){let n=re(a);return{getUserBusiness(t){return n.getUserBusiness(t).then(r=>r(e,s))},getUserInfo(t){return n.getUserInfo(t).then(r=>r(e,s))}}},qe=class extends V{getUserBusiness(s){return re(this.configuration).getUserBusiness(s).then(e=>e(this.axios,this.basePath))}getUserInfo(s){return re(this.configuration).getUserInfo(s).then(e=>e(this.axios,this.basePath))}},yt=function(a){return{getUser:async(s,e={})=>{d("getUser","userValidation",s);let n="/api/v1/users",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await O(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},updateUserRewardPoints:async(s,e,n,t={})=>{d("updateUserRewardPoints","userId",s),d("updateUserRewardPoints","walletId",e),d("updateUserRewardPoints","rewardPointPayload",n);let r="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(s))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await O(u,a),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=x(n,l,a),{url:y(o),options:l}}}},oe=function(a){let s=yt(a);return{async getUser(e,n){let t=await s.getUser(e,n);return P(t,h,p,a)},async updateUserRewardPoints(e,n,t,r){let o=await s.updateUserRewardPoints(e,n,t,r);return P(o,h,p,a)}}},En=function(a,s,e){let n=oe(a);return{getUser(t,r){return n.getUser(t,r).then(o=>o(e,s))},updateUserRewardPoints(t,r,o,i){return n.updateUserRewardPoints(t,r,o,i).then(l=>l(e,s))}}},Ee=class extends V{getUser(s,e){return oe(this.configuration).getUser(s,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(s,e,n,t){return oe(this.configuration).updateUserRewardPoints(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Pt=function(a){return{handleAssignmentWebhook:async(s={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleBusinessWebhook:async(s={})=>{let e="/api/webhook/add-business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleFoodoraEvent:async(s,e={})=>{d("handleFoodoraEvent","orderUpdateDto",s);let n="/api/webhook/order/event",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},handleLoadEmployee:async(s={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsEvents:async(s={})=>{let e="/api/webhook/nets",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsEventsV2:async(s={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsRefundEvents:async(s={})=>{let e="/api/webhook/nets/refund",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handlePreorderReminder:async(s,e={})=>{d("handlePreorderReminder","preOrderReminderDto",s);let n="/api/webhook/preorder-reminder",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},handleRoleWebhook:async(s={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleShiftWebhook:async(s={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleVivaEvents:async(s,e={})=>{d("handleVivaEvents","vivaWebhookPayloadDto",s);let n="/api/webhook/viva/verification",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},handleWebhook:async(s={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(s={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(s,e={})=>{d("handleWoltDriveEventByCountry","country",s);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(s={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},updateWoltProduct:async(s={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},verifyVivaWebhook:async(s={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},B=function(a){let s=Pt(a);return{async handleAssignmentWebhook(e){let n=await s.handleAssignmentWebhook(e);return P(n,h,p,a)},async handleBusinessWebhook(e){let n=await s.handleBusinessWebhook(e);return P(n,h,p,a)},async handleFoodoraEvent(e,n){let t=await s.handleFoodoraEvent(e,n);return P(t,h,p,a)},async handleLoadEmployee(e){let n=await s.handleLoadEmployee(e);return P(n,h,p,a)},async handleNetsEvents(e){let n=await s.handleNetsEvents(e);return P(n,h,p,a)},async handleNetsEventsV2(e){let n=await s.handleNetsEventsV2(e);return P(n,h,p,a)},async handleNetsRefundEvents(e){let n=await s.handleNetsRefundEvents(e);return P(n,h,p,a)},async handlePreorderReminder(e,n){let t=await s.handlePreorderReminder(e,n);return P(t,h,p,a)},async handleRoleWebhook(e){let n=await s.handleRoleWebhook(e);return P(n,h,p,a)},async handleShiftWebhook(e){let n=await s.handleShiftWebhook(e);return P(n,h,p,a)},async handleVivaEvents(e,n){let t=await s.handleVivaEvents(e,n);return P(t,h,p,a)},async handleWebhook(e){let n=await s.handleWebhook(e);return P(n,h,p,a)},async handleWoltDriveEvent(e){let n=await s.handleWoltDriveEvent(e);return P(n,h,p,a)},async handleWoltDriveEventByCountry(e,n){let t=await s.handleWoltDriveEventByCountry(e,n);return P(t,h,p,a)},async handleWorldlineEvents(e){let n=await s.handleWorldlineEvents(e);return P(n,h,p,a)},async updateWoltProduct(e){let n=await s.updateWoltProduct(e);return P(n,h,p,a)},async verifyVivaWebhook(e){let n=await s.verifyVivaWebhook(e);return P(n,h,p,a)}}},Bn=function(a,s,e){let n=B(a);return{handleAssignmentWebhook(t){return n.handleAssignmentWebhook(t).then(r=>r(e,s))},handleBusinessWebhook(t){return n.handleBusinessWebhook(t).then(r=>r(e,s))},handleFoodoraEvent(t,r){return n.handleFoodoraEvent(t,r).then(o=>o(e,s))},handleLoadEmployee(t){return n.handleLoadEmployee(t).then(r=>r(e,s))},handleNetsEvents(t){return n.handleNetsEvents(t).then(r=>r(e,s))},handleNetsEventsV2(t){return n.handleNetsEventsV2(t).then(r=>r(e,s))},handleNetsRefundEvents(t){return n.handleNetsRefundEvents(t).then(r=>r(e,s))},handlePreorderReminder(t,r){return n.handlePreorderReminder(t,r).then(o=>o(e,s))},handleRoleWebhook(t){return n.handleRoleWebhook(t).then(r=>r(e,s))},handleShiftWebhook(t){return n.handleShiftWebhook(t).then(r=>r(e,s))},handleVivaEvents(t,r){return n.handleVivaEvents(t,r).then(o=>o(e,s))},handleWebhook(t){return n.handleWebhook(t).then(r=>r(e,s))},handleWoltDriveEvent(t){return n.handleWoltDriveEvent(t).then(r=>r(e,s))},handleWoltDriveEventByCountry(t,r){return n.handleWoltDriveEventByCountry(t,r).then(o=>o(e,s))},handleWorldlineEvents(t){return n.handleWorldlineEvents(t).then(r=>r(e,s))},updateWoltProduct(t){return n.updateWoltProduct(t).then(r=>r(e,s))},verifyVivaWebhook(t){return n.verifyVivaWebhook(t).then(r=>r(e,s))}}},Be=class extends V{handleAssignmentWebhook(s){return B(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return B(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return B(this.configuration).handleFoodoraEvent(s,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(s){return B(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return B(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return B(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(s){return B(this.configuration).handleNetsRefundEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return B(this.configuration).handlePreorderReminder(s,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(s){return B(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return B(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return B(this.configuration).handleVivaEvents(s,e).then(n=>n(this.axios,this.basePath))}handleWebhook(s){return B(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return B(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return B(this.configuration).handleWoltDriveEventByCountry(s,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(s){return B(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}updateWoltProduct(s){return B(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return B(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},ht=function(a){return{cancelPayment:async(s,e={})=>{d("cancelPayment","cancelWorldlinePaymentDto",s);let n="/api/v1/worldline/payment/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},createPayment:async(s,e={})=>{d("createPayment","createWorldlineTerminalPaymentDto",s);let n="/api/v1/worldline/payment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},createRefund:async(s,e={})=>{d("createRefund","createWorldlineRefundDto",s);let n="/api/v1/worldline/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=x(s,o,a),{url:y(t),options:o}},getNextRequest:async(s,e,n,t,r={})=>{d("getNextRequest","terminalId",s),d("getNextRequest","authorization",e),d("getNextRequest","sessionID",n),d("getNextRequest","protocolVersion",t);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};e!=null&&(c.Authorization=String(e)),n!=null&&(c["Session-ID"]=String(n)),t!=null&&(c["Protocol-Version"]=String(t)),g(i,A);let f=l&&l.headers?l.headers:{};return u.headers={...c,...f,...r.headers},{url:y(i),options:u}},submitEvent:async(s,e,n={})=>{d("submitEvent","terminalId",s),d("submitEvent","worldlineEventEnvelopeDto",e);let t="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},submitResponse:async(s,e,n={})=>{d("submitResponse","terminalId",s),d("submitResponse","worldlineResponseEnvelopeDto",e);let t="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}}}},j=function(a){let s=ht(a);return{async cancelPayment(e,n){let t=await s.cancelPayment(e,n);return P(t,h,p,a)},async createPayment(e,n){let t=await s.createPayment(e,n);return P(t,h,p,a)},async createRefund(e,n){let t=await s.createRefund(e,n);return P(t,h,p,a)},async getNextRequest(e,n,t,r,o){let i=await s.getNextRequest(e,n,t,r,o);return P(i,h,p,a)},async submitEvent(e,n,t){let r=await s.submitEvent(e,n,t);return P(r,h,p,a)},async submitResponse(e,n,t){let r=await s.submitResponse(e,n,t);return P(r,h,p,a)}}},Un=function(a,s,e){let n=j(a);return{cancelPayment(t,r){return n.cancelPayment(t,r).then(o=>o(e,s))},createPayment(t,r){return n.createPayment(t,r).then(o=>o(e,s))},createRefund(t,r){return n.createRefund(t,r).then(o=>o(e,s))},getNextRequest(t,r,o,i,l){return n.getNextRequest(t,r,o,i,l).then(u=>u(e,s))},submitEvent(t,r,o){return n.submitEvent(t,r,o).then(i=>i(e,s))},submitResponse(t,r,o){return n.submitResponse(t,r,o).then(i=>i(e,s))}}},Ue=class extends V{cancelPayment(s,e){return j(this.configuration).cancelPayment(s,e).then(n=>n(this.axios,this.basePath))}createPayment(s,e){return j(this.configuration).createPayment(s,e).then(n=>n(this.axios,this.basePath))}createRefund(s,e){return j(this.configuration).createRefund(s,e).then(n=>n(this.axios,this.basePath))}getNextRequest(s,e,n,t,r){return j(this.configuration).getNextRequest(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}submitEvent(s,e,n){return j(this.configuration).submitEvent(s,e,n).then(t=>t(this.axios,this.basePath))}submitResponse(s,e,n){return j(this.configuration).submitResponse(s,e,n).then(t=>t(this.axios,this.basePath))}},At=function(a){return{createPaymentRequest:async(s,e,n={})=>{d("createPaymentRequest","terminalId",s),d("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},createRefundRequest:async(s,e,n={})=>{d("createRefundRequest","terminalId",s),d("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=x(e,i,a),{url:y(r),options:i}},getPaymentResult:async(s,e={})=>{d("getPaymentResult","operationId",s);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(s,e,n={})=>{d("getTerminalAuthContext","terminalId",s),d("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getTerminalContext:async(s,e,n={})=>{d("getTerminalContext","terminalId",s),d("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getTerminalState:async(s,e={})=>{d("getTerminalState","terminalId",s);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(s={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},_=function(a){let s=At(a);return{async createPaymentRequest(e,n,t){let r=await s.createPaymentRequest(e,n,t);return P(r,h,p,a)},async createRefundRequest(e,n,t){let r=await s.createRefundRequest(e,n,t);return P(r,h,p,a)},async getPaymentResult(e,n){let t=await s.getPaymentResult(e,n);return P(t,h,p,a)},async getTerminalAuthContext(e,n,t){let r=await s.getTerminalAuthContext(e,n,t);return P(r,h,p,a)},async getTerminalContext(e,n,t){let r=await s.getTerminalContext(e,n,t);return P(r,h,p,a)},async getTerminalState(e,n){let t=await s.getTerminalState(e,n);return P(t,h,p,a)},async handleCallback(e){let n=await s.handleCallback(e);return P(n,h,p,a)}}},kn=function(a,s,e){let n=_(a);return{createPaymentRequest(t,r,o){return n.createPaymentRequest(t,r,o).then(i=>i(e,s))},createRefundRequest(t,r,o){return n.createRefundRequest(t,r,o).then(i=>i(e,s))},getPaymentResult(t,r){return n.getPaymentResult(t,r).then(o=>o(e,s))},getTerminalAuthContext(t,r,o){return n.getTerminalAuthContext(t,r,o).then(i=>i(e,s))},getTerminalContext(t,r,o){return n.getTerminalContext(t,r,o).then(i=>i(e,s))},getTerminalState(t,r){return n.getTerminalState(t,r).then(o=>o(e,s))},handleCallback(t){return n.handleCallback(t).then(r=>r(e,s))}}},ke=class extends V{createPaymentRequest(s,e,n){return _(this.configuration).createPaymentRequest(s,e,n).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,n){return _(this.configuration).createRefundRequest(s,e,n).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return _(this.configuration).getPaymentResult(s,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(s,e,n){return _(this.configuration).getTerminalAuthContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,n){return _(this.configuration).getTerminalContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return _(this.configuration).getTerminalState(s,e).then(n=>n(this.axios,this.basePath))}handleCallback(s){return _(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var Le=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(s={}){this.apiKey=s.apiKey,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.baseOptions=s.baseOptions,this.formDataCtor=s.formDataCtor}isJsonMime(s){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return s!==null&&(e.test(s)||s.toLowerCase()==="application/json-patch+json")}};var xt="1.4.0";export{ae as AblyApi,We as AblyApiAxiosParamCreator,on as AblyApiFactory,X as AblyApiFp,Et as ActionEnum,Ds as ActionsEnum,ie as AuthApi,He as AuthApiAxiosParamCreator,an as AuthApiFactory,Q as AuthApiFp,le as BusinessApi,Qe as BusinessApiAxiosParamCreator,ln as BusinessApiFactory,T as BusinessApiFp,kt as BusinessBackgroundType,Mt as BusinessEventAction,_t as BusinessEventType,wt as BusinessPaymentIntegrationType,Nt as BusinessStatusEnum,jt as CashLogReason,Lt as CashLogType,ue as CashManagementApi,Ge as CashManagementApiAxiosParamCreator,un as CashManagementApiFactory,L as CashManagementApiFp,Ft as CashSessionDtoEnum,Wt as CashSessionStatus,Ht as ChannelEnum,Le as Configuration,Qt as CurrencyCode,$s as CurrencyCodeEnum,Gt as DeliveryStatus,Kt as DeliveryType,$t as DeviceStatus,zt as DiscountScope,Yt as DiscountType,de as EmployeesApi,Ke as EmployeesApiAxiosParamCreator,dn as EmployeesApiFactory,Me as EmployeesApiFp,Zt as EntityType,Bt as EntityTypeEnum,Ut as EventTypeEnum,zs as EventTypeIdEnum,ce as GiftcardApi,$e as GiftcardApiAxiosParamCreator,cn as GiftcardApiFactory,ee as GiftcardApiFp,pe as HistoryApi,ze as HistoryApiAxiosParamCreator,pn as HistoryApiFactory,G as HistoryApiFp,Jt as IntegrationType,me as InvoiceCompaniesApi,Ye as InvoiceCompaniesApiAxiosParamCreator,mn as InvoiceCompaniesApiFactory,N as InvoiceCompaniesApiFp,Xt as KioskEventType,es as KioskLayout,ge as KiosksApi,Ze as KiosksApiAxiosParamCreator,gn as KiosksApiFactory,te as KiosksApiFp,ts as KitchenStatus,ss as LocatorType,ns as LoyaltyActionKey,ye as LoyaltyIntegerationsApi,Je as LoyaltyIntegerationsApiAxiosParamCreator,yn as LoyaltyIntegerationsApiFactory,F as LoyaltyIntegerationsApiFp,xt as MUNCHI_CORE_VERSION,Pe as MenuApi,Xe as MenuApiAxiosParamCreator,Pn as MenuApiFactory,W as MenuApiFp,he as NotificationApi,et as NotificationApiAxiosParamCreator,hn as NotificationApiFactory,se as NotificationApiFp,rs as OperatingMode,os as OrderFormat,as as OrderRefundStatus,is as OrderSource,ls as OrderStatusEnum,us as OrderType,ds as OrderTypePOS,Ae as OrderingCoApi,tt as OrderingCoApiAxiosParamCreator,An as OrderingCoApiFactory,_e as OrderingCoApiFp,xe as OrdersApi,st as OrdersApiAxiosParamCreator,xn as OrdersApiFactory,U as OrdersApiFp,fe as POSSessionApi,nt as POSSessionApiAxiosParamCreator,fn as POSSessionApiFactory,we as POSSessionApiFp,Re as PaymentApi,rt as PaymentApiAxiosParamCreator,Rn as PaymentApiFactory,q as PaymentApiFp,cs as PaymentEventType,ps as PaymentFailureCode,ms as PaymentMethod,gs as PaymentProvider,ys as PaymentProviderEnum,Ps as PaymentStatus,hs as PaymentTypeEnum,be as PluginApi,ot as PluginApiAxiosParamCreator,bn as PluginApiFactory,ne as PluginApiFp,As as PosDiscountType,xs as PosPaymentStatus,fs as PosPaymentType,Rs as PosPermission,bs as PreorderStatus,Cs as PrinterTypeEnum,Ce as ProductApi,at as ProductApiAxiosParamCreator,Cn as ProductApiFactory,Ne as ProductApiFp,Os as ProductAvailability,Vs as ProductDetailLayout,De as ProviderApi,it as ProviderApiAxiosParamCreator,Dn as ProviderApiFactory,Z as ProviderApiFp,Is as ProviderEnum,vs as RefundMode,Ss as RefundOverallStatus,Ts as RefundStatusEnum,qs as RefundStepStatus,Oe as RefundsApi,lt as RefundsApiAxiosParamCreator,On as RefundsApiFactory,M as RefundsApiFp,Ve as ReportApi,ut as ReportApiAxiosParamCreator,Vn as ReportApiFactory,K as ReportApiFp,Ie as RolesPermissionsApi,dt as RolesPermissionsApiAxiosParamCreator,In as RolesPermissionsApiFactory,je as RolesPermissionsApiFp,ve as ShiftTrackingApi,ct as ShiftTrackingApiAxiosParamCreator,vn as ShiftTrackingApiFactory,H as ShiftTrackingApiFp,Es as SimplePaymentStatus,Bs as StaffActivityActionType,Us as StationType,Se as StationsApi,pt as StationsApiAxiosParamCreator,Sn as StationsApiFactory,$ as StationsApiFp,ks as Status,Ms as StatusEnum,_s as SyncEvent,ws as SyncKey,Te as TerminalApi,mt as TerminalApiAxiosParamCreator,Tn as TerminalApiFactory,z as TerminalApiFp,Ns as TerminalConnectionType,js as TimeSpan,Ls as TransactionEventType,Fs as TransactionType,Ws as Type,Hs as UpsellMode,qe as UserApi,gt as UserApiAxiosParamCreator,qn as UserApiFactory,re as UserApiFp,Ee as UsersApi,yt as UsersApiAxiosParamCreator,En as UsersApiFactory,oe as UsersApiFp,Qs as VivaCurrencyCode,Gs as VivaErrorId,Ks as VivaEventId,Be as WebhookApi,Pt as WebhookApiAxiosParamCreator,Bn as WebhookApiFactory,B as WebhookApiFp,Ue as WorldlineApi,ht as WorldlineApiAxiosParamCreator,Un as WorldlineApiFactory,j as WorldlineApiFp,Ys as WorldlineAuthorizationMethod,Zs as WorldlineAuthorizationResponder,Js as WorldlineEntryMode,Xs as WorldlineEventType,ke as WorldlineInternalApi,At as WorldlineInternalApiAxiosParamCreator,kn as WorldlineInternalApiFactory,_ as WorldlineInternalApiFp,en as WorldlineOutcomeDescription,tn as WorldlineResponseStatus,sn as WorldlineTransactionOutcome,nn as WorldlineTransactionType,rn as WorldlineVerificationMethod};
|