@munchi_oy/core 1.7.3 → 1.7.4
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 +497 -5
- 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 +635 -13
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import h from"axios";import nt from"axios";var p="http://localhost".replace(/\/+$/,"");var V=class{constructor(s,e=p,n=nt){this.basePath=e;this.axios=n;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},Z=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,s,e){if(e==null)throw new Z(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var D=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 re(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(n=>re(a,n,e)):Object.keys(s).forEach(n=>re(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);re(e,s),a.search=e.toString()},f=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 ss={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ns={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},rs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},os={Image:"image",Video:"video",Animation:"animation"},as={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},is={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},ls={GiftCard:"GiftCard"},us={Online:"ONLINE",Offline:"OFFLINE"},cs={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"},ds={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},ps={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},ms={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},gs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},ys={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Ps={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},J={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"},hs={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},As={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},fs={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},xs={Item:"ITEM",Cart:"CART"},Rs={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},bs={Percentage:"PERCENTAGE",Fixed:"FIXED"},Cs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ds={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Os={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS"},Vs={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Is={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Ss={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},vs={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Ts={Table:"table",Indicator:"indicator"},Es={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Us={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},qs={Open:"OPEN",Instant:"INSTANT"},Bs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Ms={None:"NONE",Partial:"PARTIAL",Full:"FULL"},ks={Platform:"PLATFORM",Pos:"POS"},_s={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},ws={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"},Ns={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ls={DineIn:"dine_in",PickUp:"pick_up"},Fs={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},js={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"},Ws={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",Worldline:"worldline"},Ks={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Qs={Paid:"paid",Pending:"pending"},Gs={Cash:"cash",Card:"card"},$s={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},zs={Percentage:"percentage",Fixed:"fixed"},Ys={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Js={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Zs={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"},Xs={Waiting:"waiting",Confirm:"confirm"},en={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},tn={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},sn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},nn={Modal:"MODAL",Screen:"SCREEN"},rn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},on={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},an={Kds:"KDS"},ln={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},un={Full:"FULL",Item:"ITEM"},cn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},dn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},pn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},mn={Fi:"fi",En:"en"},gn={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION"},yn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Pn={Order:"ORDER",Ticket:"TICKET"},hn={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"},An={Kiosk:"KIOSK",Pos:"POS"},fn={Active:"ACTIVE",Inactive:"INACTIVE"},xn={Network:"NETWORK"},Rn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},bn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Cn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Dn={Instant:"instant",Preorder:"preorder"},On={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Vn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},In={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Sn={Modal:"MODAL",Screen:"SCREEN"},vn={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"},Tn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},En={_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"},Un={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},qn={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},Bn={_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"},Mn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},kn={Online:"Online",Offline:"Offline"},_n={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},wn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},Nn={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},Ln={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},Fn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},jn={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},Wn={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},Hn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},rt=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}}}},oe=function(a){let s=rt(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)}}},Kn=function(a,s,e){let n=oe(a);return{refreshConfig(t){return n.refreshConfig(t).then(r=>r(e,s))},requestSettings(t){return n.requestSettings(t).then(r=>r(e,s))}}},me=class extends V{refreshConfig(s){return oe(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return oe(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},ot=function(a){return{createActionPasscode:async(s,e={})=>{c("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={};await D(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=f(s,o,a),{url:y(t),options:o}},deleteActionPasscode:async(s,e={})=>{c("deleteActionPasscode","id",s);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(s,e,n={})=>{c("updateActionPasscode","id",s),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}}}},X=function(a){let s=ot(a);return{async createActionPasscode(e,n){let t=await s.createActionPasscode(e,n);return P(t,h,p,a)},async deleteActionPasscode(e,n){let t=await s.deleteActionPasscode(e,n);return P(t,h,p,a)},async updateActionPasscode(e,n,t){let r=await s.updateActionPasscode(e,n,t);return P(r,h,p,a)}}},Qn=function(a,s,e){let n=X(a);return{createActionPasscode(t,r){return n.createActionPasscode(t,r).then(o=>o(e,s))},deleteActionPasscode(t,r){return n.deleteActionPasscode(t,r).then(o=>o(e,s))},updateActionPasscode(t,r,o){return n.updateActionPasscode(t,r,o).then(i=>i(e,s))}}},ge=class extends V{createActionPasscode(s,e){return X(this.configuration).createActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(s,e){return X(this.configuration).deleteActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(s,e,n){return X(this.configuration).updateActionPasscode(s,e,n).then(t=>t(this.axios,this.basePath))}},at=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={})=>{c("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=f(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={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},K=function(a){let s=at(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)}}},Gn=function(a,s,e){let n=K(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))}}},ye=class extends V{firebaseAuth(s){return K(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return K(this.configuration).login(s,e).then(n=>n(this.axios,this.basePath))}logout(s){return K(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return K(this.configuration).refreshToken(s,e).then(n=>n(this.axios,this.basePath))}},it=function(a){return{createBusinessPermission:async(s,e,n={})=>{c("createBusinessPermission","businessId",s),c("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 D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(s,e,n={})=>{c("deleteBusinessPermission","permissionId",s),c("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 D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessCategoriesByMenuId:async(s,e,n={})=>{c("getBusinessCategoriesByMenuId","businessId",s),c("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 D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(s,e,n={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",s),c("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 D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(s,e,n={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",s),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/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 D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(s,e,n={})=>{c("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 D(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(s,e,n={})=>{c("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 D(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfig:async(s,e,n={})=>{c("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 D(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfigById:async(s,e,n={})=>{c("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 D(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(s,e,n={})=>{c("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 D(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfiguration:async(s,e,n={})=>{c("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 D(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByType:async(s,e,n={})=>{c("getBusinessMenuByType","businessId",s),c("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 D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV2:async(s,e,n={})=>{c("getBusinessMenuByTypeV2","businessId",s),c("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 D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV3:async(s,e,n={})=>{c("getBusinessMenuByTypeV3","businessId",s),c("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 D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV4:async(s,e,n={})=>{c("getBusinessMenuByTypeV4","businessId",s),c("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 D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessProviderStatus:async(s,e={})=>{c("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 D(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={})=>{c("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 D(l,a),e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...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 D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(s,e={})=>{c("getProvidersSupportedIntegrations","businessIds",s);let n="/api/v1/business/providers/supported-integrations",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),s&&(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}},getSingleBusinessProviderStatus:async(s,e,n,t={})=>{c("getSingleBusinessProviderStatus","businessId",s),c("getSingleBusinessProviderStatus","provider",e),c("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={},d={};await D(u,a),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(s,e={})=>{c("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 D(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={})=>{c("setBusinessStatus","businessId",s),c("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 D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(s,e,n={})=>{c("setBusinessStatusSchedule","businessId",s),c("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 D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(s,e,n,t={})=>{c("updateBusinessPermission","permissionId",s),c("updateBusinessPermission","businessId",e),c("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={},d={};await D(u,a),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},validateBusiness:async(s,e={})=>{c("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 D(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=it(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 getBusinessCategoriesByMenuIdV3(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV3(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 getProvidersSupportedIntegrations(e,n){let t=await s.getProvidersSupportedIntegrations(e,n);return P(t,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)}}},$n=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))},getBusinessCategoriesByMenuIdV3(t,r,o){return n.getBusinessCategoriesByMenuIdV3(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))},getProvidersSupportedIntegrations(t,r){return n.getProvidersSupportedIntegrations(t,r).then(o=>o(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))}}},Pe=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))}getBusinessCategoriesByMenuIdV3(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(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))}getProvidersSupportedIntegrations(s,e){return T(this.configuration).getProvidersSupportedIntegrations(s,e).then(n=>n(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))}},lt=function(a){return{create:async(s,e,n={})=>{c("create","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getCashLogs:async(s,e,n,t,r,o,i,l={})=>{c("getCashLogs","businessId",s),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};n!==void 0&&(C.timeSpan=n),t!==void 0&&(C.start=t),r!==void 0&&(C.end=r),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(s,e={})=>{c("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={})=>{c("getSessionReport","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},recordCashLog:async(s,e,n={})=>{c("recordCashLog","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},sendSessionReport:async(s,e,n,t={})=>{c("sendSessionReport","businessId",s),c("sendSessionReport","sessionId",e),c("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={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},L=function(a){let s=lt(a);return{async create(e,n,t){let r=await s.create(e,n,t);return P(r,h,p,a)},async getCashLogs(e,n,t,r,o,i,l,u){let d=await s.getCashLogs(e,n,t,r,o,i,l,u);return P(d,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)}}},zn=function(a,s,e){let n=L(a);return{create(t,r,o){return n.create(t,r,o).then(i=>i(e,s))},getCashLogs(t,r,o,i,l,u,d,A){return n.getCashLogs(t,r,o,i,l,u,d,A).then(x=>x(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))}}},he=class extends V{create(s,e,n){return L(this.configuration).create(s,e,n).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,n,t,r,o,i,l){return L(this.configuration).getCashLogs(s,e,n,t,r,o,i,l).then(u=>u(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))}},ut=function(a){return{configManualSync:async(s,e,n={})=>{c("configManualSync","businessId",s),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(s,e,n,t={})=>{c("configRemovePaymentOption","businessId",s),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await D(u,a),n!=null&&(u["x-app-x"]=String(n)),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(s,e,n={})=>{c("configUpsertBusiness","businessId",s),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(s,e,n,t={})=>{c("configUpsertChannelConfig","businessId",s),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(s,e,n,t={})=>{c("configUpsertGiftCard","businessId",s),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(s,e,n={})=>{c("configUpsertLoyalty","businessId",s),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},configUpsertNets:async(s,e,n,t={})=>{c("configUpsertNets","businessId",s),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(s,e,n,t={})=>{c("configUpsertPaymentOptions","businessId",s),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(s,e,n,t={})=>{c("configUpsertStripe","businessId",s),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertViva:async(s,e,n,t={})=>{c("configUpsertViva","businessId",s),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},M=function(a){let s=ut(a);return{async configManualSync(e,n,t){let r=await s.configManualSync(e,n,t);return P(r,h,p,a)},async configRemovePaymentOption(e,n,t,r){let o=await s.configRemovePaymentOption(e,n,t,r);return P(o,h,p,a)},async configUpsertBusiness(e,n,t){let r=await s.configUpsertBusiness(e,n,t);return P(r,h,p,a)},async configUpsertChannelConfig(e,n,t,r){let o=await s.configUpsertChannelConfig(e,n,t,r);return P(o,h,p,a)},async configUpsertGiftCard(e,n,t,r){let o=await s.configUpsertGiftCard(e,n,t,r);return P(o,h,p,a)},async configUpsertLoyalty(e,n,t){let r=await s.configUpsertLoyalty(e,n,t);return P(r,h,p,a)},async configUpsertNets(e,n,t,r){let o=await s.configUpsertNets(e,n,t,r);return P(o,h,p,a)},async configUpsertPaymentOptions(e,n,t,r){let o=await s.configUpsertPaymentOptions(e,n,t,r);return P(o,h,p,a)},async configUpsertStripe(e,n,t,r){let o=await s.configUpsertStripe(e,n,t,r);return P(o,h,p,a)},async configUpsertViva(e,n,t,r){let o=await s.configUpsertViva(e,n,t,r);return P(o,h,p,a)}}},Yn=function(a,s,e){let n=M(a);return{configManualSync(t,r,o){return n.configManualSync(t,r,o).then(i=>i(e,s))},configRemovePaymentOption(t,r,o,i){return n.configRemovePaymentOption(t,r,o,i).then(l=>l(e,s))},configUpsertBusiness(t,r,o){return n.configUpsertBusiness(t,r,o).then(i=>i(e,s))},configUpsertChannelConfig(t,r,o,i){return n.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,r,o,i){return n.configUpsertGiftCard(t,r,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,r,o){return n.configUpsertLoyalty(t,r,o).then(i=>i(e,s))},configUpsertNets(t,r,o,i){return n.configUpsertNets(t,r,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,r,o,i){return n.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,s))},configUpsertStripe(t,r,o,i){return n.configUpsertStripe(t,r,o,i).then(l=>l(e,s))},configUpsertViva(t,r,o,i){return n.configUpsertViva(t,r,o,i).then(l=>l(e,s))}}},Ae=class extends V{configManualSync(s,e,n){return M(this.configuration).configManualSync(s,e,n).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,n,t){return M(this.configuration).configRemovePaymentOption(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(s,e,n){return M(this.configuration).configUpsertBusiness(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,n,t){return M(this.configuration).configUpsertChannelConfig(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(s,e,n,t){return M(this.configuration).configUpsertGiftCard(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(s,e,n){return M(this.configuration).configUpsertLoyalty(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,n,t){return M(this.configuration).configUpsertNets(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,n,t){return M(this.configuration).configUpsertPaymentOptions(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(s,e,n,t){return M(this.configuration).configUpsertStripe(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(s,e,n,t){return M(this.configuration).configUpsertViva(s,e,n,t).then(r=>r(this.axios,this.basePath))}},ct=function(a){return{createAssignment:async(s,e,n={})=>{c("createAssignment","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}}}},$e=function(a){let s=ct(a);return{async createAssignment(e,n,t){let r=await s.createAssignment(e,n,t);return P(r,h,p,a)}}},Jn=function(a,s,e){let n=$e(a);return{createAssignment(t,r,o){return n.createAssignment(t,r,o).then(i=>i(e,s))}}},fe=class extends V{createAssignment(s,e,n){return $e(this.configuration).createAssignment(s,e,n).then(t=>t(this.axios,this.basePath))}},dt=function(a){return{redeemGiftCard:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},validateGiftCard:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},ae=function(a){let s=dt(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)}}},Zn=function(a,s,e){let n=ae(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))}}},xe=class extends V{redeemGiftCard(s,e){return ae(this.configuration).redeemGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(s,e){return ae(this.configuration).validateGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},pt=function(a){return{getInternalOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",s);let I="/api/v1/history/internal/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),d&&(b.paymentStatus=d),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),C!==void 0&&(b.timezone=C),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",s);let I="/api/v1/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),d&&(b.paymentStatus=d),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),C!==void 0&&(b.timezone=C),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",s);let I="/api/v5/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},b={};await D(k,a),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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),d&&(b.paymentStatus=d),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),C!==void 0&&(b.timezone=C),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",s);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},b={};await D(k,a),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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),d&&(b.paymentStatus=d),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),C!==void 0&&(b.timezone=C),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}}}},Q=function(a){let s=pt(a);return{async getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)}}},Xn=function(a,s,e){let n=Q(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(E=>E(e,s))},getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(E=>E(e,s))},getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(E=>E(e,s))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(E=>E(e,s))}}},Re=class extends V{getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return Q(this.configuration).getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return Q(this.configuration).getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return Q(this.configuration).getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return Q(this.configuration).getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}},mt=function(a){return{createInvoiceCompany:async(s,e,n={})=>{c("createInvoiceCompany","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(s,e,n={})=>{c("deleteInvoiceCompany","id",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getInvoiceCompanies:async(s,e={})=>{c("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={})=>{c("getInvoiceCompanyById","id",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(s,e,n={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},updateInvoiceCompany:async(s,e,n,t={})=>{c("updateInvoiceCompany","id",s),c("updateInvoiceCompany","businessId",e),c("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={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},F=function(a){let s=mt(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)}}},er=function(a,s,e){let n=F(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))}}},be=class extends V{createInvoiceCompany(s,e,n){return F(this.configuration).createInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,n){return F(this.configuration).deleteInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return F(this.configuration).getInvoiceCompanies(s,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(s,e,n){return F(this.configuration).getInvoiceCompanyById(s,e,n).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,n){return F(this.configuration).searchInvoiceCompanies(s,e,n).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,n,t){return F(this.configuration).updateInvoiceCompany(s,e,n,t).then(r=>r(this.axios,this.basePath))}},gt=function(a){return{kdsGetOrders:async(s,e,n={})=>{c("kdsGetOrders","status",s),c("kdsGetOrders","profileId",e);let t="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.profileId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},ze=function(a){let s=gt(a);return{async kdsGetOrders(e,n,t){let r=await s.kdsGetOrders(e,n,t);return P(r,h,p,a)}}},tr=function(a,s,e){let n=ze(a);return{kdsGetOrders(t,r,o){return n.kdsGetOrders(t,r,o).then(i=>i(e,s))}}},Ce=class extends V{kdsGetOrders(s,e,n){return ze(this.configuration).kdsGetOrders(s,e,n).then(t=>t(this.axios,this.basePath))}},yt=function(a){return{getOrderStatus:async(s,e,n={})=>{c("getOrderStatus","orderId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},validate:async(s,e,n={})=>{c("validate","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},ie=function(a){let s=yt(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)}}},sr=function(a,s,e){let n=ie(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))}}},De=class extends V{getOrderStatus(s,e,n){return ie(this.configuration).getOrderStatus(s,e,n).then(t=>t(this.axios,this.basePath))}validate(s,e,n){return ie(this.configuration).validate(s,e,n).then(t=>t(this.axios,this.basePath))}},Pt=function(a){return{getAdminTransactions:async(s,e,n,t={})=>{c("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={},d={};await D(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.page=e),n!==void 0&&(d.limit=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(s,e={})=>{c("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 D(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={})=>{c("getUserById","businessId",s),c("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 D(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},searchUser:async(s,e,n,t,r={})=>{c("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},d={},A={};await D(d,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 x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(s,e,n={})=>{c("updatePoints","businessId",s),c("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 D(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}}}},W=function(a){let s=Pt(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)}}},nr=function(a,s,e){let n=W(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))}}},Oe=class extends V{getAdminTransactions(s,e,n,t){return W(this.configuration).getAdminTransactions(s,e,n,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(s,e){return W(this.configuration).getLoyaltyInfo(s,e).then(n=>n(this.axios,this.basePath))}getUserById(s,e,n){return W(this.configuration).getUserById(s,e,n).then(t=>t(this.axios,this.basePath))}searchUser(s,e,n,t,r){return W(this.configuration).searchUser(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,n){return W(this.configuration).updatePoints(s,e,n).then(t=>t(this.axios,this.basePath))}},ht=function(a){return{editBusinessProduct:async(s,e,n={})=>{c("editBusinessProduct","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(s,e,n={})=>{c("editBusinessProductV2","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(s,e={})=>{c("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={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},resetProductEod:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},H=function(a){let s=ht(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)}}},rr=function(a,s,e){let n=H(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))}}},Ve=class extends V{editBusinessProduct(s,e,n){return H(this.configuration).editBusinessProduct(s,e,n).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,n){return H(this.configuration).editBusinessProductV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return H(this.configuration).getBusinessExtras(s,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,n){return H(this.configuration).getProductsByCategoriesV2(s,e,n).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return H(this.configuration).resetProductEod(s,e).then(n=>n(this.axios,this.basePath))}},At=function(a){return{addBusinessesToMerchant:async(s,e,n={})=>{c("addBusinessesToMerchant","merchantId",s),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},createMerchant:async(s,e={})=>{c("createMerchant","createMerchantDto",s);let n="/api/v1/merchants",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(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=f(s,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(s,e,n={})=>{c("removeBusinessFromMerchant","merchantId",s),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",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 D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},ee=function(a){let s=At(a);return{async addBusinessesToMerchant(e,n,t){let r=await s.addBusinessesToMerchant(e,n,t);return P(r,h,p,a)},async createMerchant(e,n){let t=await s.createMerchant(e,n);return P(t,h,p,a)},async removeBusinessFromMerchant(e,n,t){let r=await s.removeBusinessFromMerchant(e,n,t);return P(r,h,p,a)}}},or=function(a,s,e){let n=ee(a);return{addBusinessesToMerchant(t,r,o){return n.addBusinessesToMerchant(t,r,o).then(i=>i(e,s))},createMerchant(t,r){return n.createMerchant(t,r).then(o=>o(e,s))},removeBusinessFromMerchant(t,r,o){return n.removeBusinessFromMerchant(t,r,o).then(i=>i(e,s))}}},Ie=class extends V{addBusinessesToMerchant(s,e,n){return ee(this.configuration).addBusinessesToMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return ee(this.configuration).createMerchant(s,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,n){return ee(this.configuration).removeBusinessFromMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}},ft=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},le=function(a){let s=ft(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)}}},ar=function(a,s,e){let n=le(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))}}},Se=class extends V{addVenueSubscriptionsV2(s,e){return le(this.configuration).addVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return le(this.configuration).removeVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}},xt=function(a){return{findOneByExternalId:async(s,e={})=>{c("findOneByExternalId","externalId",s);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",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}}}},Ye=function(a){let s=xt(a);return{async findOneByExternalId(e,n){let t=await s.findOneByExternalId(e,n);return P(t,h,p,a)}}},ir=function(a,s,e){let n=Ye(a);return{findOneByExternalId(t,r){return n.findOneByExternalId(t,r).then(o=>o(e,s))}}},ve=class extends V{findOneByExternalId(s,e){return Ye(this.configuration).findOneByExternalId(s,e).then(n=>n(this.axios,this.basePath))}},Rt=function(a){return{updateTaxRate:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},Je=function(a){let s=Rt(a);return{async updateTaxRate(e,n){let t=await s.updateTaxRate(e,n);return P(t,h,p,a)}}},lr=function(a,s,e){let n=Je(a);return{updateTaxRate(t,r){return n.updateTaxRate(t,r).then(o=>o(e,s))}}},Te=class extends V{updateTaxRate(s,e){return Je(this.configuration).updateTaxRate(s,e).then(n=>n(this.axios,this.basePath))}},bt=function(a){return{acceptOrder:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},confirmPreOrder:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},deliverOrder:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},getAllOrdersV2:async(s,e={})=>{c("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={})=>{c("getOrdersV2","status",s),c("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},d={},A={};n!==void 0&&(A.posBusinessId=n),t!==void 0&&(A.extraProvider=t),e!==void 0&&(A.businessIds=e),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{c("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={})=>{c("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=f(s,o,a),{url:y(t),options:o}},placePosOrderV4:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},processPosOrderActions:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},rejectOrder:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},updatePosOrderV2:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},B=function(a){let s=bt(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)}}},ur=function(a,s,e){let n=B(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))}}},Ee=class extends V{acceptOrder(s,e){return B(this.configuration).acceptOrder(s,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(s,e){return B(this.configuration).confirmPreOrder(s,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return B(this.configuration).deletePosParkedOrderV2(s,e).then(n=>n(this.axios,this.basePath))}deliverOrder(s,e){return B(this.configuration).deliverOrder(s,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(s,e){return B(this.configuration).getAllOrdersV2(s,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(s,e,n,t,r){return B(this.configuration).getOrdersV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return B(this.configuration).getParkedPosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(s,e){return B(this.configuration).markOrderAsReady(s,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(s,e){return B(this.configuration).placePosOrderV4(s,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(s,e){return B(this.configuration).processPosOrderActions(s,e).then(n=>n(this.axios,this.basePath))}rejectOrder(s,e){return B(this.configuration).rejectOrder(s,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(s,e){return B(this.configuration).updatePosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}},Ct=function(a){return{getPosSession:async(s,e={})=>{c("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}},getPosSessionV2:async(s,e={})=>{c("getPosSessionV2","businessId",s);let n="/api/v2/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}}}},ue=function(a){let s=Ct(a);return{async getPosSession(e,n){let t=await s.getPosSession(e,n);return P(t,h,p,a)},async getPosSessionV2(e,n){let t=await s.getPosSessionV2(e,n);return P(t,h,p,a)}}},cr=function(a,s,e){let n=ue(a);return{getPosSession(t,r){return n.getPosSession(t,r).then(o=>o(e,s))},getPosSessionV2(t,r){return n.getPosSessionV2(t,r).then(o=>o(e,s))}}},Ue=class extends V{getPosSession(s,e){return ue(this.configuration).getPosSession(s,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(s,e){return ue(this.configuration).getPosSessionV2(s,e).then(n=>n(this.axios,this.basePath))}},Dt=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},getPaymentReference:async(s,e={})=>{c("getPaymentReference","getPaymentReferenceDto",s);let n="/api/v1/payment/reference",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=f(s,o,a),{url:y(t),options:o}},getPaymentStatus:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},refundCashPaymentV3:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},refundManualPaymentV3:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},refundNetsTransactionV3:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},refundVivaTransactionV3:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},refundVivaTransactionV4:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},q=function(a){let s=Dt(a);return{async cancelNetsTerminalTransaction(e,n){let t=await s.cancelNetsTerminalTransaction(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 createNetsRefundTransaction(e,n){let t=await s.createNetsRefundTransaction(e,n);return P(t,h,p,a)},async getPaymentReference(e,n){let t=await s.getPaymentReference(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 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)}}},dr=function(a,s,e){let n=q(a);return{cancelNetsTerminalTransaction(t,r){return n.cancelNetsTerminalTransaction(t,r).then(o=>o(e,s))},cancelVivaTransactionV2(t,r){return n.cancelVivaTransactionV2(t,r).then(o=>o(e,s))},createNetsRefundTransaction(t,r){return n.createNetsRefundTransaction(t,r).then(o=>o(e,s))},getPaymentReference(t,r){return n.getPaymentReference(t,r).then(o=>o(e,s))},getPaymentStatus(t,r){return n.getPaymentStatus(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))}}},qe=class extends V{cancelNetsTerminalTransaction(s,e){return q(this.configuration).cancelNetsTerminalTransaction(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))}createNetsRefundTransaction(s,e){return q(this.configuration).createNetsRefundTransaction(s,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(s,e){return q(this.configuration).getPaymentReference(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))}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}}}},ce=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)}}},pr=function(a,s,e){let n=ce(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 ce(this.configuration).loadConfigFile(s).then(e=>e(this.axios,this.basePath))}upsertBusiness(s){return ce(this.configuration).upsertBusiness(s).then(e=>e(this.axios,this.basePath))}},Vt=function(a){return{updateChannelInventoryV2:async(s,e,n,t,r={})=>{c("updateChannelInventoryV2","businessId",s),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",n),c("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},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=f(t,u,a),{url:y(i),options:u}}}},Ze=function(a){let s=Vt(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)}}},mr=function(a,s,e){let n=Ze(a);return{updateChannelInventoryV2(t,r,o,i,l){return n.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,s))}}},Me=class extends V{updateChannelInventoryV2(s,e,n,t,r){return Ze(this.configuration).updateChannelInventoryV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}},It=function(a){return{getSupportedChannels:async(s,e={})=>{c("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={})=>{c("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=f(s,o,a),{url:y(t),options:o}},registerProvider:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},te=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)}}},gr=function(a,s,e){let n=te(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))}}},ke=class extends V{getSupportedChannels(s,e){return te(this.configuration).getSupportedChannels(s,e).then(n=>n(this.axios,this.basePath))}registerCredential(s,e){return te(this.configuration).registerCredential(s,e).then(n=>n(this.axios,this.basePath))}registerProvider(s,e){return te(this.configuration).registerProvider(s,e).then(n=>n(this.axios,this.basePath))}},St=function(a){return{cancelPlan:async(s,e,n,t={})=>{c("cancelPlan","businessId",s),c("cancelPlan","orderId",e),c("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={})=>{c("createRefundPlan","businessId",s),c("createRefundPlan","orderId",e),c("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={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}},getRefundPlan:async(s,e,n,t={})=>{c("getRefundPlan","businessId",s),c("getRefundPlan","orderId",e),c("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={},d={};n!==void 0&&(d.status=n),g(o,d);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={})=>{c("recordRefundPlan","businessId",s),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",n),c("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},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=f(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(s,e,n,t={})=>{c("refundOnlineOrder","businessId",s),c("refundOnlineOrder","orderId",e),c("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={},d={};n!==void 0&&(d.provider=n),g(o,d);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={})=>{c("resolveRefundChoice","businessId",s),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",n),c("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},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=f(t,u,a),{url:y(i),options:u}},startProcessPlan:async(s,e,n,t={})=>{c("startProcessPlan","businessId",s),c("startProcessPlan","orderId",e),c("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}}}},_=function(a){let s=St(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)}}},yr=function(a,s,e){let n=_(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))}}},_e=class extends V{cancelPlan(s,e,n,t){return _(this.configuration).cancelPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(s,e,n,t){return _(this.configuration).createRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(s,e,n,t){return _(this.configuration).getRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(s,e,n,t,r){return _(this.configuration).recordRefundPlan(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,n,t){return _(this.configuration).refundOnlineOrder(s,e,n,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(s,e,n,t,r){return _(this.configuration).resolveRefundChoice(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,n,t){return _(this.configuration).startProcessPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}},vt=function(a){return{getEndOfDayReportV5:async(s,e,n,t,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",s);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},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.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(s,e,n,t,r,o={})=>{c("getPOSEndOfDayReportV4","businessIds",s);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={},x={};e!==void 0&&(x.timeSpan=e),n!==void 0&&(x.start=n),t!==void 0&&(x.end=t),s&&(x.businessIds=s),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(s,e,n,t,r,o,i={})=>{c("sendReportEmailV4","businessIds",s),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",n);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},x={},R={};t!==void 0&&(R.timeSpan=t),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),s&&(R.businessIds=s),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},A.data=f(n,A,a),{url:y(u),options:A}},sendReportEmailV5:async(s,e,n,t,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",s),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",n);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},R={},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),R["Content-Type"]="application/json",g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},x.data=f(n,x,a),{url:y(d),options:x}}}},G=function(a){let s=vt(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 d=await s.sendReportEmailV5(e,n,t,r,o,i,l,u);return P(d,h,p,a)}}},Pr=function(a,s,e){let n=G(a);return{getEndOfDayReportV5(t,r,o,i,l,u,d){return n.getEndOfDayReportV5(t,r,o,i,l,u,d).then(A=>A(e,s))},getPOSEndOfDayReportV4(t,r,o,i,l,u){return n.getPOSEndOfDayReportV4(t,r,o,i,l,u).then(d=>d(e,s))},sendReportEmailV4(t,r,o,i,l,u,d){return n.sendReportEmailV4(t,r,o,i,l,u,d).then(A=>A(e,s))},sendReportEmailV5(t,r,o,i,l,u,d,A){return n.sendReportEmailV5(t,r,o,i,l,u,d,A).then(x=>x(e,s))}}},we=class extends V{getEndOfDayReportV5(s,e,n,t,r,o,i){return G(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 G(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 G(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 G(this.configuration).sendReportEmailV5(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},Tt=function(a){return{clockIn:async(s,e,n={})=>{c("clockIn","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},clockOut:async(s,e,n={})=>{c("clockOut","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getTodayShift:async(s,e,n={})=>{c("getTodayShift","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},unlock:async(s,e,n={})=>{c("unlock","businessId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}}}},$=function(a){let s=Tt(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 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)}}},hr=function(a,s,e){let n=$(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))},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))}}},Ne=class extends V{clockIn(s,e,n){return $(this.configuration).clockIn(s,e,n).then(t=>t(this.axios,this.basePath))}clockOut(s,e,n){return $(this.configuration).clockOut(s,e,n).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,n){return $(this.configuration).getTodayShift(s,e,n).then(t=>t(this.axios,this.basePath))}unlock(s,e,n){return $(this.configuration).unlock(s,e,n).then(t=>t(this.axios,this.basePath))}},Et=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={})=>{c("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=f(s,o,a),{url:y(t),options:o}},syncTerminal:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}}}},z=function(a){let s=Et(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)}}},Ar=function(a,s,e){let n=z(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))}}},Le=class extends V{deactivateStation(s){return z(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return z(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return z(this.configuration).syncStation(s,e).then(n=>n(this.axios,this.basePath))}syncTerminal(s,e){return z(this.configuration).syncTerminal(s,e).then(n=>n(this.axios,this.basePath))}},Ut=function(a){return{connectTerminal:async(s,e={})=>{c("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=f(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={})=>{c("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=f(s,o,a),{url:y(t),options:o}},getTerminalStatus:async(s,e,n,t={})=>{c("getTerminalStatus","businessId",s),c("getTerminalStatus","provider",e),c("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={},d={};e!==void 0&&(d.provider=e),n!==void 0&&(d.terminalId=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},Y=function(a){let s=Ut(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)}}},fr=function(a,s,e){let n=Y(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))}}},Fe=class extends V{connectTerminal(s,e){return Y(this.configuration).connectTerminal(s,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(s){return Y(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return Y(this.configuration).discoverTerminal(s,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(s,e,n,t){return Y(this.configuration).getTerminalStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},qt=function(a){return{getUserBusinessV1: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 D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserInfoV1: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 D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},se=function(a){let s=qt(a);return{async getUserBusinessV1(e){let n=await s.getUserBusinessV1(e);return P(n,h,p,a)},async getUserBusinessV2(e){let n=await s.getUserBusinessV2(e);return P(n,h,p,a)},async getUserInfoV1(e){let n=await s.getUserInfoV1(e);return P(n,h,p,a)}}},xr=function(a,s,e){let n=se(a);return{getUserBusinessV1(t){return n.getUserBusinessV1(t).then(r=>r(e,s))},getUserBusinessV2(t){return n.getUserBusinessV2(t).then(r=>r(e,s))},getUserInfoV1(t){return n.getUserInfoV1(t).then(r=>r(e,s))}}},je=class extends V{getUserBusinessV1(s){return se(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return se(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return se(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},Bt=function(a){return{getUser:async(s,e={})=>{c("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 D(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=f(s,o,a),{url:y(t),options:o}},updateUserRewardPoints:async(s,e,n,t={})=>{c("updateUserRewardPoints","userId",s),c("updateUserRewardPoints","walletId",e),c("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={},d={};await D(u,a),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},de=function(a){let s=Bt(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)}}},Rr=function(a,s,e){let n=de(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))}}},We=class extends V{getUser(s,e){return de(this.configuration).getUser(s,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(s,e,n,t){return de(this.configuration).updateUserRewardPoints(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",s);let n="/api/v1/viva/a2a/create-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=f(s,o,a),{url:y(t),options:o}}}},Xe=function(a){let s=Mt(a);return{async createVivaAppToAppPayment(e,n){let t=await s.createVivaAppToAppPayment(e,n);return P(t,h,p,a)}}},br=function(a,s,e){let n=Xe(a);return{createVivaAppToAppPayment(t,r){return n.createVivaAppToAppPayment(t,r).then(o=>o(e,s))}}},He=class extends V{createVivaAppToAppPayment(s,e){return Xe(this.configuration).createVivaAppToAppPayment(s,e).then(n=>n(this.axios,this.basePath))}},kt=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={})=>{c("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=f(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={})=>{c("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=f(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={})=>{c("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=f(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={})=>{c("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}}}},U=function(a){let s=kt(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)}}},Cr=function(a,s,e){let n=U(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))}}},Ke=class extends V{handleAssignmentWebhook(s){return U(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return U(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return U(this.configuration).handleFoodoraEvent(s,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(s){return U(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return U(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return U(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(s){return U(this.configuration).handleNetsRefundEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return U(this.configuration).handlePreorderReminder(s,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(s){return U(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return U(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return U(this.configuration).handleVivaEvents(s,e).then(n=>n(this.axios,this.basePath))}handleWebhook(s){return U(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return U(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return U(this.configuration).handleWoltDriveEventByCountry(s,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(s){return U(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}updateWoltProduct(s){return U(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return U(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},_t=function(a){return{cancelPayment:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},createPayment:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},createRefund:async(s,e={})=>{c("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=f(s,o,a),{url:y(t),options:o}},getNextRequest:async(s,e,n,t,r={})=>{c("getNextRequest","terminalId",s),c("getNextRequest","authorization",e),c("getNextRequest","sessionID",n),c("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},d={},A={};e!=null&&(d.Authorization=String(e)),n!=null&&(d["Session-ID"]=String(n)),t!=null&&(d["Protocol-Version"]=String(t)),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},submitEvent:async(s,e,n={})=>{c("submitEvent","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},submitResponse:async(s,e,n={})=>{c("submitResponse","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}}}},j=function(a){let s=_t(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)}}},Dr=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))}}},Qe=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))}},wt=function(a){return{createPaymentRequest:async(s,e,n={})=>{c("createPaymentRequest","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},createRefundRequest:async(s,e,n={})=>{c("createRefundRequest","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}},getPaymentResult:async(s,e={})=>{c("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={})=>{c("getTerminalAuthContext","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getTerminalContext:async(s,e,n={})=>{c("getTerminalContext","terminalId",s),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getTerminalState:async(s,e={})=>{c("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}}}},w=function(a){let s=wt(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)}}},Or=function(a,s,e){let n=w(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))}}},Ge=class extends V{createPaymentRequest(s,e,n){return w(this.configuration).createPaymentRequest(s,e,n).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,n){return w(this.configuration).createRefundRequest(s,e,n).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return w(this.configuration).getPaymentResult(s,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(s,e,n){return w(this.configuration).getTerminalAuthContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,n){return w(this.configuration).getTerminalContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return w(this.configuration).getTerminalState(s,e).then(n=>n(this.axios,this.basePath))}handleCallback(s){return w(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var et=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 Nt={[J.Eur]:2,[J.Aed]:2,[J.Usd]:2,[J.Gbp]:2,BHD:3,JPY:0},Ur={getMultiplier(a){let s=Nt[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};import ne from"lodash";var pe=a=>ne.orderBy(a,["rank","id"],["asc","asc"]),Lt=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},Ft=(a,s)=>({...a,colorCode:a.colorCode??s}),jt=(a,s)=>ne.compact(a.map(e=>s.get(e))),tt=(a,s)=>a.flatMap(e=>{let n=s[e];return n?[e,...tt(n.childIds,s)]:[]}),st=(a,s)=>a.flatMap(e=>{let n=s[e];return n?.enabled?[e,...st(n.childIds,s)]:[]}),Mr=a=>{let s=new Map,e={},n={},t=pe(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return s.set(d,Ft(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),A=(R,C)=>{let O=String(R.id),I=o(R.products,u),S=pe(Lt(R)).map(E=>A(E,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:S},O},x=pe(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},kr=(a,s,e,n)=>{let t=s[a];if(!t)return[];let r=st(t.subcategoryIds,e),o=ne.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return jt(o,n)},_r=(a,s,e)=>{let n=s[a];if(!n)return[];let t=tt(n.subcategoryIds,e);return ne.compact(t.map(r=>e[r]))};var Wt="1.7.3";export{me as AblyApi,rt as AblyApiAxiosParamCreator,Kn as AblyApiFactory,oe as AblyApiFp,ss as ActionEnum,ge as ActionPasscodesApi,ot as ActionPasscodesApiAxiosParamCreator,Qn as ActionPasscodesApiFactory,X as ActionPasscodesApiFp,tn as ActionsEnum,ye as AuthApi,at as AuthApiAxiosParamCreator,Gn as AuthApiFactory,K as AuthApiFp,Pe as BusinessApi,it as BusinessApiAxiosParamCreator,$n as BusinessApiFactory,T as BusinessApiFp,os as BusinessBackgroundType,as as BusinessEventAction,is as BusinessEventType,ls as BusinessPaymentIntegrationType,us as BusinessStatusEnum,cs as CashLogReason,ds as CashLogType,he as CashManagementApi,lt as CashManagementApiAxiosParamCreator,zn as CashManagementApiFactory,L as CashManagementApiFp,ps as CashSessionDtoEnum,ms as CashSessionStatus,gs as ChannelEnum,ys as CheckoutModelEnum,Ae as ConfigManagementApi,ut as ConfigManagementApiAxiosParamCreator,Yn as ConfigManagementApiFactory,M as ConfigManagementApiFp,et as Configuration,Ps as ConsumptionType,J as CurrencyCode,Bn as CurrencyCodeEnum,Ur as CurrencyRegistry,hs as DeliveryStatus,As as DeliveryType,fs as DeviceType,xs as DiscountScope,Rs as DiscountSourceType,bs as DiscountType,fe as EmployeesApi,ct as EmployeesApiAxiosParamCreator,Jn as EmployeesApiFactory,$e as EmployeesApiFp,Cs as EntityType,ns as EntityTypeEnum,rs as EventTypeEnum,Mn as EventTypeIdEnum,Ds as FeeType,xe as GiftcardApi,dt as GiftcardApiAxiosParamCreator,Zn as GiftcardApiFactory,ae as GiftcardApiFp,Re as HistoryApi,pt as HistoryApiAxiosParamCreator,Xn as HistoryApiFactory,Q as HistoryApiFp,Os as IntegrationType,be as InvoiceCompaniesApi,mt as InvoiceCompaniesApiAxiosParamCreator,er as InvoiceCompaniesApiFactory,F as InvoiceCompaniesApiFp,Ce as KDSApi,gt as KDSApiAxiosParamCreator,tr as KDSApiFactory,ze as KDSApiFp,Vs as KioskEventType,Is as KioskLayout,De as KiosksApi,yt as KiosksApiAxiosParamCreator,sr as KiosksApiFactory,ie as KiosksApiFp,Ss as KitchenItemStatus,vs as KitchenStatus,Ts as LocatorType,Es as LoyaltyActionKey,Oe as LoyaltyIntegerationsApi,Pt as LoyaltyIntegerationsApiAxiosParamCreator,nr as LoyaltyIntegerationsApiFactory,W as LoyaltyIntegerationsApiFp,Wt as MUNCHI_CORE_VERSION,Ve as MenuApi,ht as MenuApiAxiosParamCreator,rr as MenuApiFactory,H as MenuApiFp,Ie as MerchantsApi,At as MerchantsApiAxiosParamCreator,or as MerchantsApiFactory,ee as MerchantsApiFp,vn as NameEnum,Se as NotificationApi,ft as NotificationApiAxiosParamCreator,ar as NotificationApiFactory,le as NotificationApiFp,Us as OperatingMode,In as OperatingModeEnum,qs as OrderFormat,ve as OrderInternalApi,xt as OrderInternalApiAxiosParamCreator,ir as OrderInternalApiFactory,Ye as OrderInternalApiFp,Bs as OrderMode,Ms as OrderRefundStatus,ks as OrderSource,_s as OrderStatus,ws as OrderStatusEnum,Ns as OrderType,Ls as OrderTypePOS,Te as OrderingCoApi,Rt as OrderingCoApiAxiosParamCreator,lr as OrderingCoApiFactory,Je as OrderingCoApiFp,Ee as OrdersApi,bt as OrdersApiAxiosParamCreator,ur as OrdersApiFactory,B as OrdersApiFp,Ue as POSSessionApi,Ct as POSSessionApiAxiosParamCreator,cr as POSSessionApiFactory,ue as POSSessionApiFp,qe as PaymentApi,Dt as PaymentApiAxiosParamCreator,dr as PaymentApiFactory,q as PaymentApiFp,Fs as PaymentEventType,js as PaymentFailureCode,Ws as PaymentMethod,Hs as PaymentProvider,Ks as PaymentProviderEnum,Qs as PaymentStatus,Gs as PaymentTypeEnum,Be as PluginApi,Ot as PluginApiAxiosParamCreator,pr as PluginApiFactory,ce as PluginApiFp,$s as PosDiscountTargetType,zs as PosDiscountType,Ys as PosPaymentStatus,Js as PosPaymentType,Zs as PosPermission,Xs as PreorderStatus,en as PrinterTypeEnum,Me as ProductApi,Vt as ProductApiAxiosParamCreator,mr as ProductApiFactory,Ze as ProductApiFp,sn as ProductAvailability,nn as ProductDetailLayout,Sn as ProductDetailLayoutEnum,ke as ProviderApi,It as ProviderApiAxiosParamCreator,gr as ProviderApiFactory,te as ProviderApiFp,rn as ProviderEnum,on as PubSubAction,an as PubSubTarget,ln as RefundFailureReasonKey,un as RefundMode,cn as RefundOverallStatus,dn as RefundStatusEnum,pn as RefundStepStatus,_e as RefundsApi,St as RefundsApiAxiosParamCreator,yr as RefundsApiFactory,_ as RefundsApiFp,we as ReportApi,vt as ReportApiAxiosParamCreator,Pr as ReportApiFactory,G as ReportApiFp,mn as ReportLanguage,gn as SYNCKEY,Vn as SelectedPaymentProviderEnum,Ne as ShiftTrackingApi,Tt as ShiftTrackingApiAxiosParamCreator,hr as ShiftTrackingApiFactory,$ as ShiftTrackingApiFp,yn as SimplePaymentStatus,Pn as SourceType,hn as StaffActivityActionType,An as StationType,Le as StationsApi,Et as StationsApiAxiosParamCreator,Ar as StationsApiFactory,z as StationsApiFp,fn as Status,Fe as TerminalApi,Ut as TerminalApiAxiosParamCreator,fr as TerminalApiFactory,Y as TerminalApiFp,xn as TerminalConnectionType,Rn as TimeSpan,bn as TransactionEventType,Cn as TransactionType,Dn as Type,On as UpsellMode,je as UserApi,qt as UserApiAxiosParamCreator,xr as UserApiFactory,se as UserApiFp,We as UsersApi,Bt as UsersApiAxiosParamCreator,Rr as UsersApiFactory,de as UsersApiFp,He as VivaApi,Mt as VivaApiAxiosParamCreator,br as VivaApiFactory,Xe as VivaApiFp,Tn as VivaAppToAppPaymentMethod,En as VivaCurrencyCode,Un as VivaErrorId,qn as VivaEventId,Ke as WebhookApi,kt as WebhookApiAxiosParamCreator,Cr as WebhookApiFactory,U as WebhookApiFp,Qe as WorldlineApi,_t as WorldlineApiAxiosParamCreator,Dr as WorldlineApiFactory,j as WorldlineApiFp,kn as WorldlineAuthorizationMethod,_n as WorldlineAuthorizationResponder,wn as WorldlineEntryMode,Nn as WorldlineEventType,Ge as WorldlineInternalApi,wt as WorldlineInternalApiAxiosParamCreator,Or as WorldlineInternalApiFactory,w as WorldlineInternalApiFp,Ln as WorldlineOutcomeDescription,Fn as WorldlineResponseStatus,jn as WorldlineTransactionOutcome,Wn as WorldlineTransactionType,Hn as WorldlineVerificationMethod,Mr as buildPosCategoryIndex,st as collectEnabledSubcategoryIdsDepthFirst,tt as collectSubcategoryIdsDepthFirst,kr as getCategoryProductsIncludingSubcategories,_r as getSubcategoriesForCategory,jt as mapProductIdsToProducts};
|
|
1
|
+
import h from"axios";import nt from"axios";var p="http://localhost".replace(/\/+$/,"");var V=class{constructor(s,e=p,n=nt){this.basePath=e;this.axios=n;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},X=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 X(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var C=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 oe(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(n=>oe(a,n,e)):Object.keys(s).forEach(n=>oe(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);oe(e,s),a.search=e.toString()},f=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 ss={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ns={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},rs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},os={Image:"image",Video:"video",Animation:"animation"},as={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},is={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},ls={GiftCard:"GiftCard"},us={Online:"ONLINE",Offline:"OFFLINE"},ds={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"},cs={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},ps={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},ms={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},gs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},ys={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Ps={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},Z={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"},hs={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},As={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},fs={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},xs={Item:"ITEM",Cart:"CART"},Rs={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},bs={Percentage:"PERCENTAGE",Fixed:"FIXED"},Cs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ds={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Os={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS"},Vs={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Is={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Ss={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},vs={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Ts={Table:"table",Indicator:"indicator"},Es={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},qs={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Us={Open:"OPEN",Instant:"INSTANT"},Bs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Ms={None:"NONE",Partial:"PARTIAL",Full:"FULL"},ks={Platform:"PLATFORM",Pos:"POS"},_s={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},ws={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"},Ns={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ls={DineIn:"dine_in",PickUp:"pick_up"},Fs={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},js={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"},Ws={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"},Ks={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Hs={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Gs={Paid:"paid",Pending:"pending"},Qs={Cash:"cash",Card:"card"},$s={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},zs={Percentage:"percentage",Fixed:"fixed"},Ys={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Js={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Zs={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"},Xs={Waiting:"waiting",Confirm:"confirm"},en={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},tn={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},sn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},nn={Modal:"MODAL",Screen:"SCREEN"},rn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},on={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},an={Kds:"KDS"},ln={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},un={Full:"FULL",Item:"ITEM"},dn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},cn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},pn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},mn={Fi:"fi",En:"en"},gn={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",DiscountsV2:"DISCOUNTS_V2"},yn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Pn={Order:"ORDER",Ticket:"TICKET"},hn={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"},An={Kiosk:"KIOSK",Pos:"POS"},fn={Active:"ACTIVE",Inactive:"INACTIVE"},xn={Network:"NETWORK"},Rn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},bn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Cn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Dn={Instant:"instant",Preorder:"preorder"},On={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Vn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},In={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Sn={Modal:"MODAL",Screen:"SCREEN"},vn={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"},Tn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},En={_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"},qn={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},Un={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},Bn={_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"},Mn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},kn={Online:"Online",Offline:"Offline"},_n={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},wn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},Nn={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},Ln={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},Fn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},jn={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},Wn={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},Kn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},rt=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}}}},ae=function(a){let s=rt(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)}}},Hn=function(a,s,e){let n=ae(a);return{refreshConfig(t){return n.refreshConfig(t).then(r=>r(e,s))},requestSettings(t){return n.requestSettings(t).then(r=>r(e,s))}}},ge=class extends V{refreshConfig(s){return ae(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return ae(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},ot=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={};await C(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=f(s,o,a),{url:y(t),options:o}},deleteActionPasscode:async(s,e={})=>{d("deleteActionPasscode","id",s);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await C(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(s,e,n={})=>{d("updateActionPasscode","id",s),d("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await C(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=f(e,i,a),{url:y(r),options:i}}}},ee=function(a){let s=ot(a);return{async createActionPasscode(e,n){let t=await s.createActionPasscode(e,n);return P(t,h,p,a)},async deleteActionPasscode(e,n){let t=await s.deleteActionPasscode(e,n);return P(t,h,p,a)},async updateActionPasscode(e,n,t){let r=await s.updateActionPasscode(e,n,t);return P(r,h,p,a)}}},Gn=function(a,s,e){let n=ee(a);return{createActionPasscode(t,r){return n.createActionPasscode(t,r).then(o=>o(e,s))},deleteActionPasscode(t,r){return n.deleteActionPasscode(t,r).then(o=>o(e,s))},updateActionPasscode(t,r,o){return n.updateActionPasscode(t,r,o).then(i=>i(e,s))}}},ye=class extends V{createActionPasscode(s,e){return ee(this.configuration).createActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(s,e){return ee(this.configuration).deleteActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(s,e,n){return ee(this.configuration).updateActionPasscode(s,e,n).then(t=>t(this.axios,this.basePath))}},at=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=f(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=f(s,o,a),{url:y(t),options:o}}}},H=function(a){let s=at(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)}}},Qn=function(a,s,e){let n=H(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))}}},Pe=class extends V{firebaseAuth(s){return H(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return H(this.configuration).login(s,e).then(n=>n(this.axios,this.basePath))}logout(s){return H(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return H(this.configuration).refreshToken(s,e).then(n=>n(this.axios,this.basePath))}},it=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 C(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=f(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 C(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 C(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=f(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 C(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=f(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(s,e,n={})=>{d("getBusinessCategoriesByMenuIdV3","businessId",s),d("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/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 C(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=f(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(s,e={})=>{d("getProvidersSupportedIntegrations","businessIds",s);let n="/api/v1/business/providers/supported-integrations",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await C(i,a),s&&(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}},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 C(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 C(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 C(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=f(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 C(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=f(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 C(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=f(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 C(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=it(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 getBusinessCategoriesByMenuIdV3(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV3(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 getProvidersSupportedIntegrations(e,n){let t=await s.getProvidersSupportedIntegrations(e,n);return P(t,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)}}},$n=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))},getBusinessCategoriesByMenuIdV3(t,r,o){return n.getBusinessCategoriesByMenuIdV3(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))},getProvidersSupportedIntegrations(t,r){return n.getProvidersSupportedIntegrations(t,r).then(o=>o(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))}}},he=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))}getBusinessCategoriesByMenuIdV3(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(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))}getProvidersSupportedIntegrations(s,e){return T(this.configuration).getProvidersSupportedIntegrations(s,e).then(n=>n(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))}},lt=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=f(e,i,a),{url:y(r),options:i}},getCashLogs:async(s,e,n,t,r,o,i,l={})=>{d("getCashLogs","businessId",s),d("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),c=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},D={};n!==void 0&&(D.timeSpan=n),t!==void 0&&(D.start=t),r!==void 0&&(D.end=r),o!==void 0&&(D.page=o),i!==void 0&&(D.rowPerPage=i),e!==void 0&&(D.timezone=e),g(c,D);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(c),options:x}},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=f(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=f(n,l,a),{url:y(o),options:l}}}},L=function(a){let s=lt(a);return{async create(e,n,t){let r=await s.create(e,n,t);return P(r,h,p,a)},async getCashLogs(e,n,t,r,o,i,l,u){let c=await s.getCashLogs(e,n,t,r,o,i,l,u);return P(c,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)}}},zn=function(a,s,e){let n=L(a);return{create(t,r,o){return n.create(t,r,o).then(i=>i(e,s))},getCashLogs(t,r,o,i,l,u,c,A){return n.getCashLogs(t,r,o,i,l,u,c,A).then(x=>x(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))}}},Ae=class extends V{create(s,e,n){return L(this.configuration).create(s,e,n).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,n,t,r,o,i,l){return L(this.configuration).getCashLogs(s,e,n,t,r,o,i,l).then(u=>u(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))}},ut=function(a){return{configManualSync:async(s,e,n={})=>{d("configManualSync","businessId",s),d("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await C(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=f(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(s,e,n,t={})=>{d("configRemovePaymentOption","businessId",s),d("configRemovePaymentOption","id",e),d("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},c={};await C(u,a),n!=null&&(u["x-app-x"]=String(n)),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(s,e,n={})=>{d("configUpsertBusiness","businessId",s),d("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await C(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=f(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(s,e,n,t={})=>{d("configUpsertChannelConfig","businessId",s),d("configUpsertChannelConfig","xAppX",e),d("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await C(u,a),e!=null&&(u["x-app-x"]=String(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=f(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(s,e,n,t={})=>{d("configUpsertGiftCard","businessId",s),d("configUpsertGiftCard","xAppX",e),d("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await C(u,a),e!=null&&(u["x-app-x"]=String(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=f(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(s,e,n={})=>{d("configUpsertLoyalty","businessId",s),d("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await C(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=f(e,i,a),{url:y(r),options:i}},configUpsertNets:async(s,e,n,t={})=>{d("configUpsertNets","businessId",s),d("configUpsertNets","xAppX",e),d("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await C(u,a),e!=null&&(u["x-app-x"]=String(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=f(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(s,e,n,t={})=>{d("configUpsertPaymentOptions","businessId",s),d("configUpsertPaymentOptions","xAppX",e),d("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await C(u,a),e!=null&&(u["x-app-x"]=String(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=f(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(s,e,n,t={})=>{d("configUpsertStripe","businessId",s),d("configUpsertStripe","xAppX",e),d("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await C(u,a),e!=null&&(u["x-app-x"]=String(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=f(n,l,a),{url:y(o),options:l}},configUpsertViva:async(s,e,n,t={})=>{d("configUpsertViva","businessId",s),d("configUpsertViva","xAppX",e),d("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await C(u,a),e!=null&&(u["x-app-x"]=String(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=f(n,l,a),{url:y(o),options:l}}}},M=function(a){let s=ut(a);return{async configManualSync(e,n,t){let r=await s.configManualSync(e,n,t);return P(r,h,p,a)},async configRemovePaymentOption(e,n,t,r){let o=await s.configRemovePaymentOption(e,n,t,r);return P(o,h,p,a)},async configUpsertBusiness(e,n,t){let r=await s.configUpsertBusiness(e,n,t);return P(r,h,p,a)},async configUpsertChannelConfig(e,n,t,r){let o=await s.configUpsertChannelConfig(e,n,t,r);return P(o,h,p,a)},async configUpsertGiftCard(e,n,t,r){let o=await s.configUpsertGiftCard(e,n,t,r);return P(o,h,p,a)},async configUpsertLoyalty(e,n,t){let r=await s.configUpsertLoyalty(e,n,t);return P(r,h,p,a)},async configUpsertNets(e,n,t,r){let o=await s.configUpsertNets(e,n,t,r);return P(o,h,p,a)},async configUpsertPaymentOptions(e,n,t,r){let o=await s.configUpsertPaymentOptions(e,n,t,r);return P(o,h,p,a)},async configUpsertStripe(e,n,t,r){let o=await s.configUpsertStripe(e,n,t,r);return P(o,h,p,a)},async configUpsertViva(e,n,t,r){let o=await s.configUpsertViva(e,n,t,r);return P(o,h,p,a)}}},Yn=function(a,s,e){let n=M(a);return{configManualSync(t,r,o){return n.configManualSync(t,r,o).then(i=>i(e,s))},configRemovePaymentOption(t,r,o,i){return n.configRemovePaymentOption(t,r,o,i).then(l=>l(e,s))},configUpsertBusiness(t,r,o){return n.configUpsertBusiness(t,r,o).then(i=>i(e,s))},configUpsertChannelConfig(t,r,o,i){return n.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,r,o,i){return n.configUpsertGiftCard(t,r,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,r,o){return n.configUpsertLoyalty(t,r,o).then(i=>i(e,s))},configUpsertNets(t,r,o,i){return n.configUpsertNets(t,r,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,r,o,i){return n.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,s))},configUpsertStripe(t,r,o,i){return n.configUpsertStripe(t,r,o,i).then(l=>l(e,s))},configUpsertViva(t,r,o,i){return n.configUpsertViva(t,r,o,i).then(l=>l(e,s))}}},fe=class extends V{configManualSync(s,e,n){return M(this.configuration).configManualSync(s,e,n).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,n,t){return M(this.configuration).configRemovePaymentOption(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(s,e,n){return M(this.configuration).configUpsertBusiness(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,n,t){return M(this.configuration).configUpsertChannelConfig(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(s,e,n,t){return M(this.configuration).configUpsertGiftCard(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(s,e,n){return M(this.configuration).configUpsertLoyalty(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,n,t){return M(this.configuration).configUpsertNets(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,n,t){return M(this.configuration).configUpsertPaymentOptions(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(s,e,n,t){return M(this.configuration).configUpsertStripe(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(s,e,n,t){return M(this.configuration).configUpsertViva(s,e,n,t).then(r=>r(this.axios,this.basePath))}},dt=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=f(e,i,a),{url:y(r),options:i}}}},ze=function(a){let s=dt(a);return{async createAssignment(e,n,t){let r=await s.createAssignment(e,n,t);return P(r,h,p,a)}}},Jn=function(a,s,e){let n=ze(a);return{createAssignment(t,r,o){return n.createAssignment(t,r,o).then(i=>i(e,s))}}},xe=class extends V{createAssignment(s,e,n){return ze(this.configuration).createAssignment(s,e,n).then(t=>t(this.axios,this.basePath))}},ct=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=f(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=f(s,o,a),{url:y(t),options:o}}}},ie=function(a){let s=ct(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)}}},Zn=function(a,s,e){let n=ie(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))}}},Re=class extends V{redeemGiftCard(s,e){return ie(this.configuration).redeemGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(s,e){return ie(this.configuration).validateGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},pt=function(a){return{getInternalOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O={})=>{d("getInternalOrderHistoryOnline","businessIds",s);let I="/api/v1/history/internal/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),c&&(b.paymentStatus=c),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),D!==void 0&&(b.timezone=D),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O={})=>{d("getOrderHistoryOnline","businessIds",s);let I="/api/v1/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),c&&(b.paymentStatus=c),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),D!==void 0&&(b.timezone=D),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O={})=>{d("getOrderHistoryPOSV5","businessIds",s);let I="/api/v5/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},b={};await C(k,a),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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),c&&(b.paymentStatus=c),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),D!==void 0&&(b.timezone=D),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O={})=>{d("getOrderHistoryPOSV5Internal","businessIds",s);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...O},k={},b={};await C(k,a),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.page=r),o!==void 0&&(b.rowPerPage=o),i&&(b.provider=i),l&&(b.paymentType=l),u&&(b.orderStatus=u),c&&(b.paymentStatus=c),A&&(b.orderType=A),x&&(b.paymentTypePos=x),R!==void 0&&(b.invoiceCompanyId=R),D!==void 0&&(b.timezone=D),g(v,b);let N=S&&S.headers?S.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}}}},G=function(a){let s=pt(a);return{async getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I){let v=await s.getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I){let v=await s.getOrderHistoryOnline(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I){let v=await s.getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I){let v=await s.getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,c,A,x,R,D,O,I);return P(v,h,p,a)}}},Xn=function(a,s,e){let n=G(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S){return n.getInternalOrderHistoryOnline(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S).then(E=>E(e,s))},getOrderHistoryOnline(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S){return n.getOrderHistoryOnline(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S).then(E=>E(e,s))},getOrderHistoryPOSV5(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S){return n.getOrderHistoryPOSV5(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S).then(E=>E(e,s))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S){return n.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,c,A,x,R,D,O,I,v,S).then(E=>E(e,s))}}},be=class extends V{getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O){return G(this.configuration).getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O){return G(this.configuration).getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O){return G(this.configuration).getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O){return G(this.configuration).getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,c,A,x,R,D,O).then(I=>I(this.axios,this.basePath))}},mt=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=f(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=f(n,l,a),{url:y(o),options:l}}}},F=function(a){let s=mt(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)}}},er=function(a,s,e){let n=F(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))}}},Ce=class extends V{createInvoiceCompany(s,e,n){return F(this.configuration).createInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,n){return F(this.configuration).deleteInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return F(this.configuration).getInvoiceCompanies(s,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(s,e,n){return F(this.configuration).getInvoiceCompanyById(s,e,n).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,n){return F(this.configuration).searchInvoiceCompanies(s,e,n).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,n,t){return F(this.configuration).updateInvoiceCompany(s,e,n,t).then(r=>r(this.axios,this.basePath))}},gt=function(a){return{kdsGetOrders:async(s,e,n,t={})=>{d("kdsGetOrders","status",s),d("kdsGetOrders","businessIds",e),d("kdsGetOrders","profileId",n);let r="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await C(u,a),e!==void 0&&(c.businessIds=e),n!==void 0&&(c.profileId=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},kdsGetProfiles:async(s,e={})=>{d("kdsGetProfiles","businessId",s);let n="/api/v1/kds/profiles",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await C(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}},kdsMarkOrderReady:async(s,e={})=>{d("kdsMarkOrderReady","id",s);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await C(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(s,e={})=>{d("kdsRevertOrder","id",s);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await C(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Q=function(a){let s=gt(a);return{async kdsGetOrders(e,n,t,r){let o=await s.kdsGetOrders(e,n,t,r);return P(o,h,p,a)},async kdsGetProfiles(e,n){let t=await s.kdsGetProfiles(e,n);return P(t,h,p,a)},async kdsMarkOrderReady(e,n){let t=await s.kdsMarkOrderReady(e,n);return P(t,h,p,a)},async kdsRevertOrder(e,n){let t=await s.kdsRevertOrder(e,n);return P(t,h,p,a)}}},tr=function(a,s,e){let n=Q(a);return{kdsGetOrders(t,r,o,i){return n.kdsGetOrders(t,r,o,i).then(l=>l(e,s))},kdsGetProfiles(t,r){return n.kdsGetProfiles(t,r).then(o=>o(e,s))},kdsMarkOrderReady(t,r){return n.kdsMarkOrderReady(t,r).then(o=>o(e,s))},kdsRevertOrder(t,r){return n.kdsRevertOrder(t,r).then(o=>o(e,s))}}},De=class extends V{kdsGetOrders(s,e,n,t){return Q(this.configuration).kdsGetOrders(s,e,n,t).then(r=>r(this.axios,this.basePath))}kdsGetProfiles(s,e){return Q(this.configuration).kdsGetProfiles(s,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(s,e){return Q(this.configuration).kdsMarkOrderReady(s,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(s,e){return Q(this.configuration).kdsRevertOrder(s,e).then(n=>n(this.axios,this.basePath))}},yt=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}}}},le=function(a){let s=yt(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)}}},sr=function(a,s,e){let n=le(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))}}},Oe=class extends V{getOrderStatus(s,e,n){return le(this.configuration).getOrderStatus(s,e,n).then(t=>t(this.axios,this.basePath))}validate(s,e,n){return le(this.configuration).validate(s,e,n).then(t=>t(this.axios,this.basePath))}},Pt=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 C(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 C(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 C(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 C(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 x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...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 C(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=f(e,i,a),{url:y(r),options:i}}}},W=function(a){let s=Pt(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)}}},nr=function(a,s,e){let n=W(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))}}},Ve=class extends V{getAdminTransactions(s,e,n,t){return W(this.configuration).getAdminTransactions(s,e,n,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(s,e){return W(this.configuration).getLoyaltyInfo(s,e).then(n=>n(this.axios,this.basePath))}getUserById(s,e,n){return W(this.configuration).getUserById(s,e,n).then(t=>t(this.axios,this.basePath))}searchUser(s,e,n,t,r){return W(this.configuration).searchUser(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,n){return W(this.configuration).updatePoints(s,e,n).then(t=>t(this.axios,this.basePath))}},ht=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=f(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=f(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=f(s,o,a),{url:y(t),options:o}}}},K=function(a){let s=ht(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)}}},rr=function(a,s,e){let n=K(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))}}},Ie=class extends V{editBusinessProduct(s,e,n){return K(this.configuration).editBusinessProduct(s,e,n).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,n){return K(this.configuration).editBusinessProductV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return K(this.configuration).getBusinessExtras(s,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,n){return K(this.configuration).getProductsByCategoriesV2(s,e,n).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return K(this.configuration).resetProductEod(s,e).then(n=>n(this.axios,this.basePath))}},At=function(a){return{addBusinessesToMerchant:async(s,e,n={})=>{d("addBusinessesToMerchant","merchantId",s),d("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await C(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=f(e,i,a),{url:y(r),options:i}},createMerchant:async(s,e={})=>{d("createMerchant","createMerchantDto",s);let n="/api/v1/merchants",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await C(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=f(s,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(s,e,n={})=>{d("removeBusinessFromMerchant","merchantId",s),d("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",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 C(l,a),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=At(a);return{async addBusinessesToMerchant(e,n,t){let r=await s.addBusinessesToMerchant(e,n,t);return P(r,h,p,a)},async createMerchant(e,n){let t=await s.createMerchant(e,n);return P(t,h,p,a)},async removeBusinessFromMerchant(e,n,t){let r=await s.removeBusinessFromMerchant(e,n,t);return P(r,h,p,a)}}},or=function(a,s,e){let n=te(a);return{addBusinessesToMerchant(t,r,o){return n.addBusinessesToMerchant(t,r,o).then(i=>i(e,s))},createMerchant(t,r){return n.createMerchant(t,r).then(o=>o(e,s))},removeBusinessFromMerchant(t,r,o){return n.removeBusinessFromMerchant(t,r,o).then(i=>i(e,s))}}},Se=class extends V{addBusinessesToMerchant(s,e,n){return te(this.configuration).addBusinessesToMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return te(this.configuration).createMerchant(s,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,n){return te(this.configuration).removeBusinessFromMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}},ft=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=f(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=f(s,o,a),{url:y(t),options:o}}}},ue=function(a){let s=ft(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)}}},ar=function(a,s,e){let n=ue(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))}}},ve=class extends V{addVenueSubscriptionsV2(s,e){return ue(this.configuration).addVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return ue(this.configuration).removeVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}},xt=function(a){return{findOneByExternalId:async(s,e={})=>{d("findOneByExternalId","externalId",s);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",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}}}},Ye=function(a){let s=xt(a);return{async findOneByExternalId(e,n){let t=await s.findOneByExternalId(e,n);return P(t,h,p,a)}}},ir=function(a,s,e){let n=Ye(a);return{findOneByExternalId(t,r){return n.findOneByExternalId(t,r).then(o=>o(e,s))}}},Te=class extends V{findOneByExternalId(s,e){return Ye(this.configuration).findOneByExternalId(s,e).then(n=>n(this.axios,this.basePath))}},Rt=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=f(s,o,a),{url:y(t),options:o}}}},Je=function(a){let s=Rt(a);return{async updateTaxRate(e,n){let t=await s.updateTaxRate(e,n);return P(t,h,p,a)}}},lr=function(a,s,e){let n=Je(a);return{updateTaxRate(t,r){return n.updateTaxRate(t,r).then(o=>o(e,s))}}},Ee=class extends V{updateTaxRate(s,e){return Je(this.configuration).updateTaxRate(s,e).then(n=>n(this.axios,this.basePath))}},bt=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=f(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=f(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=f(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=f(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={};e!==void 0&&(A.businessIds=e),n!==void 0&&(A.posBusinessId=n),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...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=f(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=f(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=f(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=f(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=f(s,o,a),{url:y(t),options:o}}}},B=function(a){let s=bt(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)}}},ur=function(a,s,e){let n=B(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))}}},qe=class extends V{acceptOrder(s,e){return B(this.configuration).acceptOrder(s,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(s,e){return B(this.configuration).confirmPreOrder(s,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return B(this.configuration).deletePosParkedOrderV2(s,e).then(n=>n(this.axios,this.basePath))}deliverOrder(s,e){return B(this.configuration).deliverOrder(s,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(s,e){return B(this.configuration).getAllOrdersV2(s,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(s,e,n,t,r){return B(this.configuration).getOrdersV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return B(this.configuration).getParkedPosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(s,e){return B(this.configuration).markOrderAsReady(s,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(s,e){return B(this.configuration).placePosOrderV4(s,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(s,e){return B(this.configuration).processPosOrderActions(s,e).then(n=>n(this.axios,this.basePath))}rejectOrder(s,e){return B(this.configuration).rejectOrder(s,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(s,e){return B(this.configuration).updatePosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}},Ct=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}},getPosSessionV2:async(s,e={})=>{d("getPosSessionV2","businessId",s);let n="/api/v2/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}}}},de=function(a){let s=Ct(a);return{async getPosSession(e,n){let t=await s.getPosSession(e,n);return P(t,h,p,a)},async getPosSessionV2(e,n){let t=await s.getPosSessionV2(e,n);return P(t,h,p,a)}}},dr=function(a,s,e){let n=de(a);return{getPosSession(t,r){return n.getPosSession(t,r).then(o=>o(e,s))},getPosSessionV2(t,r){return n.getPosSessionV2(t,r).then(o=>o(e,s))}}},Ue=class extends V{getPosSession(s,e){return de(this.configuration).getPosSession(s,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(s,e){return de(this.configuration).getPosSessionV2(s,e).then(n=>n(this.axios,this.basePath))}},Dt=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=f(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=f(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=f(s,o,a),{url:y(t),options:o}},getPaymentReference:async(s,e={})=>{d("getPaymentReference","getPaymentReferenceDto",s);let n="/api/v1/payment/reference",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=f(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=f(s,o,a),{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=f(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=f(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=f(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=f(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=f(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=f(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=f(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=f(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=f(s,o,a),{url:y(t),options:o}}}},U=function(a){let s=Dt(a);return{async cancelNetsTerminalTransaction(e,n){let t=await s.cancelNetsTerminalTransaction(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 createNetsRefundTransaction(e,n){let t=await s.createNetsRefundTransaction(e,n);return P(t,h,p,a)},async getPaymentReference(e,n){let t=await s.getPaymentReference(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 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)}}},cr=function(a,s,e){let n=U(a);return{cancelNetsTerminalTransaction(t,r){return n.cancelNetsTerminalTransaction(t,r).then(o=>o(e,s))},cancelVivaTransactionV2(t,r){return n.cancelVivaTransactionV2(t,r).then(o=>o(e,s))},createNetsRefundTransaction(t,r){return n.createNetsRefundTransaction(t,r).then(o=>o(e,s))},getPaymentReference(t,r){return n.getPaymentReference(t,r).then(o=>o(e,s))},getPaymentStatus(t,r){return n.getPaymentStatus(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))}}},Be=class extends V{cancelNetsTerminalTransaction(s,e){return U(this.configuration).cancelNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return U(this.configuration).cancelVivaTransactionV2(s,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return U(this.configuration).createNetsRefundTransaction(s,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(s,e){return U(this.configuration).getPaymentReference(s,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(s,e){return U(this.configuration).getPaymentStatus(s,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return U(this.configuration).initiateNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return U(this.configuration).initiateTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return U(this.configuration).processOnlineOrderRefund(s,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(s,e){return U(this.configuration).refundCashPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(s,e){return U(this.configuration).refundManualPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(s,e){return U(this.configuration).refundNetsTransactionV3(s,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return U(this.configuration).refundSingleVivaTransaction(s,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(s,e){return U(this.configuration).refundVivaTransactionV3(s,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(s,e){return U(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}}}},ce=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)}}},pr=function(a,s,e){let n=ce(a);return{loadConfigFile(t){return n.loadConfigFile(t).then(r=>r(e,s))},upsertBusiness(t){return n.upsertBusiness(t).then(r=>r(e,s))}}},Me=class extends V{loadConfigFile(s){return ce(this.configuration).loadConfigFile(s).then(e=>e(this.axios,this.basePath))}upsertBusiness(s){return ce(this.configuration).upsertBusiness(s).then(e=>e(this.axios,this.basePath))}},Vt=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 x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},u.data=f(t,u,a),{url:y(i),options:u}}}},Ze=function(a){let s=Vt(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)}}},mr=function(a,s,e){let n=Ze(a);return{updateChannelInventoryV2(t,r,o,i,l){return n.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,s))}}},ke=class extends V{updateChannelInventoryV2(s,e,n,t,r){return Ze(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=f(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=f(s,o,a),{url:y(t),options:o}}}},se=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)}}},gr=function(a,s,e){let n=se(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))}}},_e=class extends V{getSupportedChannels(s,e){return se(this.configuration).getSupportedChannels(s,e).then(n=>n(this.axios,this.basePath))}registerCredential(s,e){return se(this.configuration).registerCredential(s,e).then(n=>n(this.axios,this.basePath))}registerProvider(s,e){return se(this.configuration).registerProvider(s,e).then(n=>n(this.axios,this.basePath))}},St=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=f(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 x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},u.data=f(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 x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},u.data=f(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}}}},_=function(a){let s=St(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)}}},yr=function(a,s,e){let n=_(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))}}},we=class extends V{cancelPlan(s,e,n,t){return _(this.configuration).cancelPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(s,e,n,t){return _(this.configuration).createRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(s,e,n,t){return _(this.configuration).getRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(s,e,n,t,r){return _(this.configuration).recordRefundPlan(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,n,t){return _(this.configuration).refundOnlineOrder(s,e,n,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(s,e,n,t,r){return _(this.configuration).resolveRefundChoice(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,n,t){return _(this.configuration).startProcessPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}},vt=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},x={},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.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let D=c&&c.headers?c.headers:{};return A.headers={...x,...D,...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={},x={};e!==void 0&&(x.timeSpan=e),n!==void 0&&(x.start=n),t!==void 0&&(x.end=t),s&&(x.businessIds=s),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return c.headers={...A,...R,...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},x={},R={};t!==void 0&&(R.timeSpan=t),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),s&&(R.businessIds=s),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let D=c&&c.headers?c.headers:{};return A.headers={...x,...D,...i.headers},A.data=f(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 x={method:"POST",...A,...l},R={},D={};t!==void 0&&(D.timeSpan=t),r!==void 0&&(D.start=r),o!==void 0&&(D.end=o),s&&(D.businessIds=s),e!==void 0&&(D.timezone=e),i!==void 0&&(D.provider=i),R["Content-Type"]="application/json",g(c,D);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},x.data=f(n,x,a),{url:y(c),options:x}}}},$=function(a){let s=vt(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)}}},Pr=function(a,s,e){let n=$(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(x=>x(e,s))}}},Ne=class extends V{getEndOfDayReportV5(s,e,n,t,r,o,i){return $(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 $(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 $(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 $(this.configuration).sendReportEmailV5(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},Tt=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=f(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=f(e,i,a),{url:y(r),options:i}},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=f(e,i,a),{url:y(r),options:i}}}},z=function(a){let s=Tt(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 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)}}},hr=function(a,s,e){let n=z(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))},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))}}},Le=class extends V{clockIn(s,e,n){return z(this.configuration).clockIn(s,e,n).then(t=>t(this.axios,this.basePath))}clockOut(s,e,n){return z(this.configuration).clockOut(s,e,n).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,n){return z(this.configuration).getTodayShift(s,e,n).then(t=>t(this.axios,this.basePath))}unlock(s,e,n){return z(this.configuration).unlock(s,e,n).then(t=>t(this.axios,this.basePath))}},Et=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=f(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=f(s,o,a),{url:y(t),options:o}}}},Y=function(a){let s=Et(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)}}},Ar=function(a,s,e){let n=Y(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))}}},Fe=class extends V{deactivateStation(s){return Y(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return Y(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return Y(this.configuration).syncStation(s,e).then(n=>n(this.axios,this.basePath))}syncTerminal(s,e){return Y(this.configuration).syncTerminal(s,e).then(n=>n(this.axios,this.basePath))}},qt=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=f(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=f(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}}}},J=function(a){let s=qt(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)}}},fr=function(a,s,e){let n=J(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))}}},je=class extends V{connectTerminal(s,e){return J(this.configuration).connectTerminal(s,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(s){return J(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return J(this.configuration).discoverTerminal(s,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(s,e,n,t){return J(this.configuration).getTerminalStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Ut=function(a){return{getUserBusinessV1: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 C(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await C(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserInfoV1: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 C(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},ne=function(a){let s=Ut(a);return{async getUserBusinessV1(e){let n=await s.getUserBusinessV1(e);return P(n,h,p,a)},async getUserBusinessV2(e){let n=await s.getUserBusinessV2(e);return P(n,h,p,a)},async getUserInfoV1(e){let n=await s.getUserInfoV1(e);return P(n,h,p,a)}}},xr=function(a,s,e){let n=ne(a);return{getUserBusinessV1(t){return n.getUserBusinessV1(t).then(r=>r(e,s))},getUserBusinessV2(t){return n.getUserBusinessV2(t).then(r=>r(e,s))},getUserInfoV1(t){return n.getUserInfoV1(t).then(r=>r(e,s))}}},We=class extends V{getUserBusinessV1(s){return ne(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return ne(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return ne(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},Bt=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 C(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=f(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 C(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=f(n,l,a),{url:y(o),options:l}}}},pe=function(a){let s=Bt(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)}}},Rr=function(a,s,e){let n=pe(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))}}},Ke=class extends V{getUser(s,e){return pe(this.configuration).getUser(s,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(s,e,n,t){return pe(this.configuration).updateUserRewardPoints(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{d("createVivaAppToAppPayment","createTerminalPaymentDto",s);let n="/api/v1/viva/a2a/create-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=f(s,o,a),{url:y(t),options:o}}}},Xe=function(a){let s=Mt(a);return{async createVivaAppToAppPayment(e,n){let t=await s.createVivaAppToAppPayment(e,n);return P(t,h,p,a)}}},br=function(a,s,e){let n=Xe(a);return{createVivaAppToAppPayment(t,r){return n.createVivaAppToAppPayment(t,r).then(o=>o(e,s))}}},He=class extends V{createVivaAppToAppPayment(s,e){return Xe(this.configuration).createVivaAppToAppPayment(s,e).then(n=>n(this.axios,this.basePath))}},kt=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=f(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=f(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=f(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}}}},q=function(a){let s=kt(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)}}},Cr=function(a,s,e){let n=q(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))}}},Ge=class extends V{handleAssignmentWebhook(s){return q(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return q(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return q(this.configuration).handleFoodoraEvent(s,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(s){return q(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return q(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return q(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(s){return q(this.configuration).handleNetsRefundEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return q(this.configuration).handlePreorderReminder(s,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(s){return q(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return q(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return q(this.configuration).handleVivaEvents(s,e).then(n=>n(this.axios,this.basePath))}handleWebhook(s){return q(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return q(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return q(this.configuration).handleWoltDriveEventByCountry(s,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(s){return q(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}updateWoltProduct(s){return q(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return q(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},_t=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=f(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=f(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=f(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 x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...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=f(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=f(e,i,a),{url:y(r),options:i}}}},j=function(a){let s=_t(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)}}},Dr=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))}}},Qe=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))}},wt=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=f(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=f(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}}}},w=function(a){let s=wt(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)}}},Or=function(a,s,e){let n=w(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))}}},$e=class extends V{createPaymentRequest(s,e,n){return w(this.configuration).createPaymentRequest(s,e,n).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,n){return w(this.configuration).createRefundRequest(s,e,n).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return w(this.configuration).getPaymentResult(s,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(s,e,n){return w(this.configuration).getTerminalAuthContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,n){return w(this.configuration).getTerminalContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return w(this.configuration).getTerminalState(s,e).then(n=>n(this.axios,this.basePath))}handleCallback(s){return w(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var et=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 Nt={[Z.Eur]:2,[Z.Aed]:2,[Z.Usd]:2,[Z.Gbp]:2,BHD:3,JPY:0},qr={getMultiplier(a){let s=Nt[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};import re from"lodash";var me=a=>re.orderBy(a,["rank","id"],["asc","asc"]),Lt=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},Ft=(a,s)=>({...a,colorCode:a.colorCode??s}),jt=(a,s)=>re.compact(a.map(e=>s.get(e))),tt=(a,s)=>a.flatMap(e=>{let n=s[e];return n?[e,...tt(n.childIds,s)]:[]}),st=(a,s)=>a.flatMap(e=>{let n=s[e];return n?.enabled?[e,...st(n.childIds,s)]:[]}),Mr=a=>{let s=new Map,e={},n={},t=me(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let c=String(u.id);return s.set(c,Ft(u,l)),c});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,c=o(i.products,u),A=(R,D)=>{let O=String(R.id),I=o(R.products,u),S=me(Lt(R)).map(E=>A(E,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:D,productIds:I,childIds:S},O},x=me(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:c,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},kr=(a,s,e,n)=>{let t=s[a];if(!t)return[];let r=st(t.subcategoryIds,e),o=re.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return jt(o,n)},_r=(a,s,e)=>{let n=s[a];if(!n)return[];let t=tt(n.subcategoryIds,e);return re.compact(t.map(r=>e[r]))};var Wt="1.7.4";export{ge as AblyApi,rt as AblyApiAxiosParamCreator,Hn as AblyApiFactory,ae as AblyApiFp,ss as ActionEnum,ye as ActionPasscodesApi,ot as ActionPasscodesApiAxiosParamCreator,Gn as ActionPasscodesApiFactory,ee as ActionPasscodesApiFp,tn as ActionsEnum,Pe as AuthApi,at as AuthApiAxiosParamCreator,Qn as AuthApiFactory,H as AuthApiFp,he as BusinessApi,it as BusinessApiAxiosParamCreator,$n as BusinessApiFactory,T as BusinessApiFp,os as BusinessBackgroundType,as as BusinessEventAction,is as BusinessEventType,ls as BusinessPaymentIntegrationType,us as BusinessStatusEnum,ds as CashLogReason,cs as CashLogType,Ae as CashManagementApi,lt as CashManagementApiAxiosParamCreator,zn as CashManagementApiFactory,L as CashManagementApiFp,ps as CashSessionDtoEnum,ms as CashSessionStatus,gs as ChannelEnum,ys as CheckoutModelEnum,fe as ConfigManagementApi,ut as ConfigManagementApiAxiosParamCreator,Yn as ConfigManagementApiFactory,M as ConfigManagementApiFp,et as Configuration,Ps as ConsumptionType,Z as CurrencyCode,Bn as CurrencyCodeEnum,qr as CurrencyRegistry,hs as DeliveryStatus,As as DeliveryType,fs as DeviceType,xs as DiscountScope,Rs as DiscountSourceType,bs as DiscountType,xe as EmployeesApi,dt as EmployeesApiAxiosParamCreator,Jn as EmployeesApiFactory,ze as EmployeesApiFp,Cs as EntityType,ns as EntityTypeEnum,rs as EventTypeEnum,Mn as EventTypeIdEnum,Ds as FeeType,Re as GiftcardApi,ct as GiftcardApiAxiosParamCreator,Zn as GiftcardApiFactory,ie as GiftcardApiFp,be as HistoryApi,pt as HistoryApiAxiosParamCreator,Xn as HistoryApiFactory,G as HistoryApiFp,Os as IntegrationType,Ce as InvoiceCompaniesApi,mt as InvoiceCompaniesApiAxiosParamCreator,er as InvoiceCompaniesApiFactory,F as InvoiceCompaniesApiFp,De as KDSApi,gt as KDSApiAxiosParamCreator,tr as KDSApiFactory,Q as KDSApiFp,Vs as KioskEventType,Is as KioskLayout,Oe as KiosksApi,yt as KiosksApiAxiosParamCreator,sr as KiosksApiFactory,le as KiosksApiFp,Ss as KitchenItemStatus,vs as KitchenStatus,Ts as LocatorType,Es as LoyaltyActionKey,Ve as LoyaltyIntegerationsApi,Pt as LoyaltyIntegerationsApiAxiosParamCreator,nr as LoyaltyIntegerationsApiFactory,W as LoyaltyIntegerationsApiFp,Wt as MUNCHI_CORE_VERSION,Ie as MenuApi,ht as MenuApiAxiosParamCreator,rr as MenuApiFactory,K as MenuApiFp,Se as MerchantsApi,At as MerchantsApiAxiosParamCreator,or as MerchantsApiFactory,te as MerchantsApiFp,vn as NameEnum,ve as NotificationApi,ft as NotificationApiAxiosParamCreator,ar as NotificationApiFactory,ue as NotificationApiFp,qs as OperatingMode,In as OperatingModeEnum,Us as OrderFormat,Te as OrderInternalApi,xt as OrderInternalApiAxiosParamCreator,ir as OrderInternalApiFactory,Ye as OrderInternalApiFp,Bs as OrderMode,Ms as OrderRefundStatus,ks as OrderSource,_s as OrderStatus,ws as OrderStatusEnum,Ns as OrderType,Ls as OrderTypePOS,Ee as OrderingCoApi,Rt as OrderingCoApiAxiosParamCreator,lr as OrderingCoApiFactory,Je as OrderingCoApiFp,qe as OrdersApi,bt as OrdersApiAxiosParamCreator,ur as OrdersApiFactory,B as OrdersApiFp,Ue as POSSessionApi,Ct as POSSessionApiAxiosParamCreator,dr as POSSessionApiFactory,de as POSSessionApiFp,Be as PaymentApi,Dt as PaymentApiAxiosParamCreator,cr as PaymentApiFactory,U as PaymentApiFp,Fs as PaymentEventType,js as PaymentFailureCode,Ws as PaymentMethod,Ks as PaymentProvider,Hs as PaymentProviderEnum,Gs as PaymentStatus,Qs as PaymentTypeEnum,Me as PluginApi,Ot as PluginApiAxiosParamCreator,pr as PluginApiFactory,ce as PluginApiFp,$s as PosDiscountTargetType,zs as PosDiscountType,Ys as PosPaymentStatus,Js as PosPaymentType,Zs as PosPermission,Xs as PreorderStatus,en as PrinterTypeEnum,ke as ProductApi,Vt as ProductApiAxiosParamCreator,mr as ProductApiFactory,Ze as ProductApiFp,sn as ProductAvailability,nn as ProductDetailLayout,Sn as ProductDetailLayoutEnum,_e as ProviderApi,It as ProviderApiAxiosParamCreator,gr as ProviderApiFactory,se as ProviderApiFp,rn as ProviderEnum,on as PubSubAction,an as PubSubTarget,ln as RefundFailureReasonKey,un as RefundMode,dn as RefundOverallStatus,cn as RefundStatusEnum,pn as RefundStepStatus,we as RefundsApi,St as RefundsApiAxiosParamCreator,yr as RefundsApiFactory,_ as RefundsApiFp,Ne as ReportApi,vt as ReportApiAxiosParamCreator,Pr as ReportApiFactory,$ as ReportApiFp,mn as ReportLanguage,gn as SYNCKEY,Vn as SelectedPaymentProviderEnum,Le as ShiftTrackingApi,Tt as ShiftTrackingApiAxiosParamCreator,hr as ShiftTrackingApiFactory,z as ShiftTrackingApiFp,yn as SimplePaymentStatus,Pn as SourceType,hn as StaffActivityActionType,An as StationType,Fe as StationsApi,Et as StationsApiAxiosParamCreator,Ar as StationsApiFactory,Y as StationsApiFp,fn as Status,je as TerminalApi,qt as TerminalApiAxiosParamCreator,fr as TerminalApiFactory,J as TerminalApiFp,xn as TerminalConnectionType,Rn as TimeSpan,bn as TransactionEventType,Cn as TransactionType,Dn as Type,On as UpsellMode,We as UserApi,Ut as UserApiAxiosParamCreator,xr as UserApiFactory,ne as UserApiFp,Ke as UsersApi,Bt as UsersApiAxiosParamCreator,Rr as UsersApiFactory,pe as UsersApiFp,He as VivaApi,Mt as VivaApiAxiosParamCreator,br as VivaApiFactory,Xe as VivaApiFp,Tn as VivaAppToAppPaymentMethod,En as VivaCurrencyCode,qn as VivaErrorId,Un as VivaEventId,Ge as WebhookApi,kt as WebhookApiAxiosParamCreator,Cr as WebhookApiFactory,q as WebhookApiFp,Qe as WorldlineApi,_t as WorldlineApiAxiosParamCreator,Dr as WorldlineApiFactory,j as WorldlineApiFp,kn as WorldlineAuthorizationMethod,_n as WorldlineAuthorizationResponder,wn as WorldlineEntryMode,Nn as WorldlineEventType,$e as WorldlineInternalApi,wt as WorldlineInternalApiAxiosParamCreator,Or as WorldlineInternalApiFactory,w as WorldlineInternalApiFp,Ln as WorldlineOutcomeDescription,Fn as WorldlineResponseStatus,jn as WorldlineTransactionOutcome,Wn as WorldlineTransactionType,Kn as WorldlineVerificationMethod,Mr as buildPosCategoryIndex,st as collectEnabledSubcategoryIdsDepthFirst,tt as collectSubcategoryIdsDepthFirst,kr as getCategoryProductsIncludingSubcategories,_r as getSubcategoriesForCategory,jt as mapProductIdsToProducts};
|