@munchi_oy/core 1.9.3 → 1.9.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/index.js CHANGED
@@ -1 +1 @@
1
- var Kt=Object.create;var re=Object.defineProperty;var Ht=Object.getOwnPropertyDescriptor;var Gt=Object.getOwnPropertyNames;var Qt=Object.getPrototypeOf,$t=Object.prototype.hasOwnProperty;var zt=(a,t)=>{for(var e in t)re(a,e,{get:t[e],enumerable:!0})},ot=(a,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Gt(t))!$t.call(a,s)&&s!==e&&re(a,s,{get:()=>t[s],enumerable:!(n=Ht(t,s))||n.enumerable});return a};var me=(a,t,e)=>(e=a!=null?Kt(Qt(a)):{},ot(t||!a||!a.__esModule?re(e,"default",{value:a,enumerable:!0}):e,a)),Yt=a=>ot(re({},"__esModule",{value:!0}),a);var Br={};zt(Br,{ABLYEVENT:()=>Jt,AblyApi:()=>ye,AblyApiAxiosParamCreator:()=>it,AblyApiFactory:()=>Gn,AblyApiFp:()=>ae,ActionEnum:()=>Zt,ActionPasscodesApi:()=>Pe,ActionPasscodesApiAxiosParamCreator:()=>lt,ActionPasscodesApiFactory:()=>Qn,ActionPasscodesApiFp:()=>Z,ActionsEnum:()=>en,AuthApi:()=>he,AuthApiAxiosParamCreator:()=>ut,AuthApiFactory:()=>$n,AuthApiFp:()=>H,BusinessApi:()=>Ae,BusinessApiAxiosParamCreator:()=>dt,BusinessApiFactory:()=>zn,BusinessApiFp:()=>T,BusinessBackgroundType:()=>ts,BusinessEventAction:()=>ss,BusinessEventType:()=>ns,BusinessPaymentIntegrationType:()=>rs,BusinessStatusEnum:()=>os,CashLogReason:()=>as,CashLogType:()=>is,CashManagementApi:()=>fe,CashManagementApiAxiosParamCreator:()=>ct,CashManagementApiFactory:()=>Yn,CashManagementApiFp:()=>N,CashSessionDtoEnum:()=>ls,CashSessionStatus:()=>us,ChannelEnum:()=>ds,CheckoutModelEnum:()=>cs,ConditionType:()=>ps,ConfigManagementApi:()=>xe,ConfigManagementApiAxiosParamCreator:()=>pt,ConfigManagementApiFactory:()=>Jn,ConfigManagementApiFp:()=>M,Configuration:()=>tt,ConsumptionType:()=>ms,CurrencyCode:()=>J,CurrencyCodeEnum:()=>Mn,CurrencyRegistry:()=>Sr,DeliveryStatus:()=>gs,DeliveryType:()=>ys,DeviceType:()=>Ps,DiscountScope:()=>hs,DiscountScopeType:()=>As,DiscountSourceType:()=>fs,DiscountType:()=>xs,EmployeesApi:()=>Re,EmployeesApiAxiosParamCreator:()=>mt,EmployeesApiFactory:()=>Zn,EmployeesApiFp:()=>Ye,EntityType:()=>Rs,EntityTypeEnum:()=>Xt,EventTypeEnum:()=>es,EventTypeIdEnum:()=>kn,FeeType:()=>bs,GiftcardApi:()=>be,GiftcardApiAxiosParamCreator:()=>gt,GiftcardApiFactory:()=>Xn,GiftcardApiFp:()=>ie,HistoryApi:()=>Ce,HistoryApiAxiosParamCreator:()=>yt,HistoryApiFactory:()=>er,HistoryApiFp:()=>G,IntegrationType:()=>Cs,InvoiceCompaniesApi:()=>De,InvoiceCompaniesApiAxiosParamCreator:()=>Pt,InvoiceCompaniesApiFactory:()=>tr,InvoiceCompaniesApiFp:()=>L,KDSApi:()=>Oe,KDSApiAxiosParamCreator:()=>ht,KDSApiFactory:()=>sr,KDSApiFp:()=>Q,KDSEVENTNAME:()=>Ds,KioskEventType:()=>Os,KioskLayout:()=>Vs,KiosksApi:()=>Ve,KiosksApiAxiosParamCreator:()=>At,KiosksApiFactory:()=>nr,KiosksApiFp:()=>le,KitchenItemStatus:()=>Is,KitchenStatus:()=>Ss,LocatorType:()=>vs,LoyaltyActionKey:()=>Ts,LoyaltyIntegerationsApi:()=>Ie,LoyaltyIntegerationsApiAxiosParamCreator:()=>ft,LoyaltyIntegerationsApiFactory:()=>rr,LoyaltyIntegerationsApiFp:()=>F,MUNCHI_CORE_VERSION:()=>Wt,MenuApi:()=>Se,MenuApiAxiosParamCreator:()=>xt,MenuApiFactory:()=>or,MenuApiFp:()=>K,MerchantsApi:()=>ve,MerchantsApiAxiosParamCreator:()=>Rt,MerchantsApiFactory:()=>ar,MerchantsApiFp:()=>X,NameEnum:()=>Tn,NotificationApi:()=>Te,NotificationApiAxiosParamCreator:()=>bt,NotificationApiFactory:()=>ir,NotificationApiFp:()=>ue,OperatingMode:()=>Es,OperatingModeEnum:()=>Sn,OrderFormat:()=>Us,OrderInternalApi:()=>Ee,OrderInternalApiAxiosParamCreator:()=>Ct,OrderInternalApiFactory:()=>lr,OrderInternalApiFp:()=>Je,OrderMode:()=>qs,OrderRefundStatus:()=>Bs,OrderSource:()=>Ms,OrderStatus:()=>ks,OrderStatusEnum:()=>_s,OrderType:()=>ws,OrderTypePOS:()=>Ns,OrderingCoApi:()=>Ue,OrderingCoApiAxiosParamCreator:()=>Dt,OrderingCoApiFactory:()=>ur,OrderingCoApiFp:()=>Ze,OrdersApi:()=>qe,OrdersApiAxiosParamCreator:()=>Ot,OrdersApiFactory:()=>dr,OrdersApiFp:()=>B,POSSessionApi:()=>Be,POSSessionApiAxiosParamCreator:()=>Vt,POSSessionApiFactory:()=>cr,POSSessionApiFp:()=>de,PaymentApi:()=>Me,PaymentApiAxiosParamCreator:()=>It,PaymentApiFactory:()=>pr,PaymentApiFp:()=>q,PaymentEventType:()=>Ls,PaymentFailureCode:()=>Fs,PaymentMethod:()=>js,PaymentProvider:()=>Ws,PaymentProviderEnum:()=>Ks,PaymentStatus:()=>Hs,PaymentTypeEnum:()=>Gs,PluginApi:()=>ke,PluginApiAxiosParamCreator:()=>St,PluginApiFactory:()=>mr,PluginApiFp:()=>ce,PosDiscountTargetType:()=>Qs,PosDiscountType:()=>$s,PosPaymentStatus:()=>zs,PosPaymentType:()=>Ys,PosPermission:()=>Js,PreorderStatus:()=>Zs,PrinterTypeEnum:()=>Xs,ProductApi:()=>_e,ProductApiAxiosParamCreator:()=>vt,ProductApiFactory:()=>gr,ProductApiFp:()=>Xe,ProductAvailability:()=>tn,ProductDetailLayout:()=>sn,ProductDetailLayoutEnum:()=>vn,PromotionDiscountType:()=>nn,ProviderApi:()=>we,ProviderApiAxiosParamCreator:()=>Tt,ProviderApiFactory:()=>yr,ProviderApiFp:()=>ee,ProviderEnum:()=>rn,PubSubAction:()=>on,PubSubTarget:()=>an,RefundFailureReasonKey:()=>ln,RefundMode:()=>un,RefundOverallStatus:()=>dn,RefundStatusEnum:()=>cn,RefundStepStatus:()=>pn,RefundsApi:()=>Ne,RefundsApiAxiosParamCreator:()=>Et,RefundsApiFactory:()=>Pr,RefundsApiFp:()=>_,ReportApi:()=>Le,ReportApiAxiosParamCreator:()=>Ut,ReportApiFactory:()=>hr,ReportApiFp:()=>$,ReportLanguage:()=>mn,SYNCKEY:()=>gn,SelectedPaymentProviderEnum:()=>In,ShiftTrackingApi:()=>Fe,ShiftTrackingApiAxiosParamCreator:()=>qt,ShiftTrackingApiFactory:()=>Ar,ShiftTrackingApiFp:()=>z,SimplePaymentStatus:()=>yn,SourceType:()=>Pn,StaffActivityActionType:()=>hn,StationType:()=>An,StationsApi:()=>je,StationsApiAxiosParamCreator:()=>Bt,StationsApiFactory:()=>fr,StationsApiFp:()=>te,Status:()=>fn,SystemProfileType:()=>xn,TerminalApi:()=>We,TerminalApiAxiosParamCreator:()=>Mt,TerminalApiFactory:()=>xr,TerminalApiFp:()=>Y,TerminalConnectionType:()=>Rn,TimeSpan:()=>bn,TransactionEventType:()=>Cn,TransactionType:()=>Dn,Type:()=>On,UpsellMode:()=>Vn,UserApi:()=>Ke,UserApiAxiosParamCreator:()=>kt,UserApiFactory:()=>Rr,UserApiFp:()=>se,UsersApi:()=>He,UsersApiAxiosParamCreator:()=>_t,UsersApiFactory:()=>br,UsersApiFp:()=>pe,VivaApi:()=>Ge,VivaApiAxiosParamCreator:()=>wt,VivaApiFactory:()=>Cr,VivaApiFp:()=>et,VivaAppToAppPaymentMethod:()=>En,VivaCurrencyCode:()=>Un,VivaErrorId:()=>qn,VivaEventId:()=>Bn,WebhookApi:()=>Qe,WebhookApiAxiosParamCreator:()=>Nt,WebhookApiFactory:()=>Dr,WebhookApiFp:()=>U,WorldlineApi:()=>$e,WorldlineApiAxiosParamCreator:()=>Lt,WorldlineApiFactory:()=>Or,WorldlineApiFp:()=>j,WorldlineAuthorizationMethod:()=>_n,WorldlineAuthorizationResponder:()=>wn,WorldlineEntryMode:()=>Nn,WorldlineEventType:()=>Ln,WorldlineInternalApi:()=>ze,WorldlineInternalApiAxiosParamCreator:()=>Ft,WorldlineInternalApiFactory:()=>Vr,WorldlineInternalApiFp:()=>w,WorldlineOutcomeDescription:()=>Fn,WorldlineResponseStatus:()=>jn,WorldlineTransactionOutcome:()=>Wn,WorldlineTransactionType:()=>Kn,WorldlineVerificationMethod:()=>Hn,buildPosCategoryIndex:()=>Er,collectEnabledSubcategoryIdsDepthFirst:()=>rt,collectSubcategoryIdsDepthFirst:()=>nt,getCategoryProductsIncludingSubcategories:()=>Ur,getSubcategoriesForCategory:()=>qr,mapProductIdsToProducts:()=>jt});module.exports=Yt(Br);var h=me(require("axios"));var at=me(require("axios")),p="http://localhost".replace(/\/+$/,"");var S=class{constructor(t,e=p,n=at.default){this.basePath=e;this.axios=n;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},oe=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",d=function(a,t,e){if(e==null)throw new oe(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var D=async function(a,t){if(t&&t.accessToken){let e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;a.Authorization="Bearer "+e}};function ge(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>ge(a,n,e)):Object.keys(t).forEach(n=>ge(a,t[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,t):a.set(e,t))}var g=function(a,...t){let e=new URLSearchParams(a.search);ge(e,t),a.search=e.toString()},f=function(a,t,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,t,e,n){return(s=t,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return s.request(o)}};var Jt={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},Zt={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Xt={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},es={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ts={Image:"image",Video:"video",Animation:"animation"},ss={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ns={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},rs={GiftCard:"GiftCard"},os={Online:"ONLINE",Offline:"OFFLINE"},as={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"},is={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},ls={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},us={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},ds={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},cs={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},ps={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},ms={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"},gs={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},ys={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Ps={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},hs={Item:"ITEM",Cart:"CART"},As={Business:"BUSINESS",Owner:"OWNER"},fs={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},xs={Percentage:"PERCENTAGE",Fixed:"FIXED"},Rs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},bs={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Cs={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS"},Ds={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},Os={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Vs={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Is={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},Ss={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},vs={Table:"table",Indicator:"indicator"},Ts={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Es={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Us={Open:"OPEN",Instant:"INSTANT"},qs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Bs={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Ms={Platform:"PLATFORM",Pos:"POS"},ks={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},_s={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"},ws={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ns={DineIn:"dine_in",PickUp:"pick_up"},Ls={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},Fs={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"},js={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"},Ws={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Ks={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Hs={Paid:"paid",Pending:"pending"},Gs={Cash:"cash",Card:"card"},Qs={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},$s={Percentage:"percentage",Fixed:"fixed"},zs={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Ys={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Js={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"},Zs={Waiting:"waiting",Confirm:"confirm"},Xs={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},en={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},tn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},sn={Modal:"MODAL",Screen:"SCREEN"},nn={Percentage:"PERCENTAGE",Fixed:"FIXED"},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={NoStation:"NO_STATION"},Rn={Network:"NETWORK"},bn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Cn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Dn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},On={Instant:"instant",Preorder:"preorder"},Vn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},In={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Sn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},vn={Modal:"MODAL",Screen:"SCREEN"},Tn={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"},En={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Un={_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},Bn={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},Mn={_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"},kn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},_n={Online:"Online",Offline:"Offline"},wn={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},Nn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},Ln={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},Fn={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},jn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},Wn={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},Kn={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"},it=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ae=function(a){let t=it(a);return{async refreshConfig(e){let n=await t.refreshConfig(e);return P(n,h.default,p,a)},async requestSettings(e){let n=await t.requestSettings(e);return P(n,h.default,p,a)}}},Gn=function(a,t,e){let n=ae(a);return{refreshConfig(s){return n.refreshConfig(s).then(r=>r(e,t))},requestSettings(s){return n.requestSettings(s).then(r=>r(e,t))}}},ye=class extends S{refreshConfig(t){return ae(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return ae(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},lt=function(a){return{createActionPasscode:async(t,e={})=>{d("createActionPasscode","createActionPasscodeDto",t);let n="/api/v1/action-passcodes",s=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(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},deleteActionPasscode:async(t,e={})=>{d("deleteActionPasscode","id",t);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},updateActionPasscode:async(t,e,n={})=>{d("updateActionPasscode","id",t),d("updateActionPasscode","updateActionPasscodeDto",e);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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 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 t=lt(a);return{async createActionPasscode(e,n){let s=await t.createActionPasscode(e,n);return P(s,h.default,p,a)},async deleteActionPasscode(e,n){let s=await t.deleteActionPasscode(e,n);return P(s,h.default,p,a)},async updateActionPasscode(e,n,s){let r=await t.updateActionPasscode(e,n,s);return P(r,h.default,p,a)}}},Qn=function(a,t,e){let n=Z(a);return{createActionPasscode(s,r){return n.createActionPasscode(s,r).then(o=>o(e,t))},deleteActionPasscode(s,r){return n.deleteActionPasscode(s,r).then(o=>o(e,t))},updateActionPasscode(s,r,o){return n.updateActionPasscode(s,r,o).then(i=>i(e,t))}}},Pe=class extends S{createActionPasscode(t,e){return Z(this.configuration).createActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(t,e){return Z(this.configuration).deleteActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(t,e,n){return Z(this.configuration).updateActionPasscode(t,e,n).then(s=>s(this.axios,this.basePath))}},ut=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},login:async(t,e={})=>{d("login","credentialDto",t);let n="/api/v1/auth/login",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},logout:async(t={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},refreshToken:async(t,e={})=>{d("refreshToken","refreshTokenDto",t);let n="/api/v1/auth/refresh",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},H=function(a){let t=ut(a);return{async firebaseAuth(e){let n=await t.firebaseAuth(e);return P(n,h.default,p,a)},async login(e,n){let s=await t.login(e,n);return P(s,h.default,p,a)},async logout(e){let n=await t.logout(e);return P(n,h.default,p,a)},async refreshToken(e,n){let s=await t.refreshToken(e,n);return P(s,h.default,p,a)}}},$n=function(a,t,e){let n=H(a);return{firebaseAuth(s){return n.firebaseAuth(s).then(r=>r(e,t))},login(s,r){return n.login(s,r).then(o=>o(e,t))},logout(s){return n.logout(s).then(r=>r(e,t))},refreshToken(s,r){return n.refreshToken(s,r).then(o=>o(e,t))}}},he=class extends S{firebaseAuth(t){return H(this.configuration).firebaseAuth(t).then(e=>e(this.axios,this.basePath))}login(t,e){return H(this.configuration).login(t,e).then(n=>n(this.axios,this.basePath))}logout(t){return H(this.configuration).logout(t).then(e=>e(this.axios,this.basePath))}refreshToken(t,e){return H(this.configuration).refreshToken(t,e).then(n=>n(this.axios,this.basePath))}},dt=function(a){return{createBusinessPermission:async(t,e,n={})=>{d("createBusinessPermission","businessId",t),d("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("deleteBusinessPermission","permissionId",t),d("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getAdvancedDiscounts:async(t,e={})=>{d("getAdvancedDiscounts","businessId",t);let n="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessCategoriesByMenuId:async(t,e,n={})=>{d("getBusinessCategoriesByMenuId","businessId",t),d("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("getBusinessCategoriesByMenuIdV2","businessId",t),d("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("getBusinessCategoriesByMenuIdV3","businessId",t),d("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let s="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(t,e,n={})=>{d("getBusinessChannelConfigV2","businessId",t);let s="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfig:async(t,e,n={})=>{d("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigById:async(t,e,n={})=>{d("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(t,e,n={})=>{d("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfiguration:async(t,e,n={})=>{d("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByType:async(t,e,n={})=>{d("getBusinessMenuByType","businessId",t),d("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{d("getBusinessMenuByTypeV2","businessId",t),d("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{d("getBusinessMenuByTypeV3","businessId",t),d("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{d("getBusinessMenuByTypeV4","businessId",t),d("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e={})=>{d("getBusinessProviderStatus","businessId",t);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessProviderStatusExternal:async(t,e,n={})=>{d("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessTax:async(t={})=>{let e="/api/v1/business/tax",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(t,e={})=>{d("getProvidersSupportedIntegrations","businessIds",t);let n="/api/v1/business/providers/supported-integrations",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSingleBusinessProviderStatus:async(t,e,n,s={})=>{d("getSingleBusinessProviderStatus","businessId",t),d("getSingleBusinessProviderStatus","provider",e),d("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={},c={};await D(u,a),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{d("getUnifiedDiscounts","businessId",t);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},setBusinessStatus:async(t,e,n={})=>{d("setBusinessStatus","businessId",t),d("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("setBusinessStatusSchedule","businessId",t),d("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("updateBusinessPermission","permissionId",t),d("updateBusinessPermission","businessId",e),d("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},c={};await D(u,a),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},validateBusiness:async(t,e={})=>{d("validateBusiness","businessId",t);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},T=function(a){let t=dt(a);return{async createBusinessPermission(e,n,s){let r=await t.createBusinessPermission(e,n,s);return P(r,h.default,p,a)},async deleteBusinessPermission(e,n,s){let r=await t.deleteBusinessPermission(e,n,s);return P(r,h.default,p,a)},async getAdvancedDiscounts(e,n){let s=await t.getAdvancedDiscounts(e,n);return P(s,h.default,p,a)},async getBusinessCategoriesByMenuId(e,n,s){let r=await t.getBusinessCategoriesByMenuId(e,n,s);return P(r,h.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV2(e,n,s);return P(r,h.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV3(e,n,s);return P(r,h.default,p,a)},async getBusinessChannelConfig(e,n,s){let r=await t.getBusinessChannelConfig(e,n,s);return P(r,h.default,p,a)},async getBusinessChannelConfigV2(e,n,s){let r=await t.getBusinessChannelConfigV2(e,n,s);return P(r,h.default,p,a)},async getBusinessConfig(e,n,s){let r=await t.getBusinessConfig(e,n,s);return P(r,h.default,p,a)},async getBusinessConfigById(e,n,s){let r=await t.getBusinessConfigById(e,n,s);return P(r,h.default,p,a)},async getBusinessConfigByIdV2(e,n,s){let r=await t.getBusinessConfigByIdV2(e,n,s);return P(r,h.default,p,a)},async getBusinessConfiguration(e,n,s){let r=await t.getBusinessConfiguration(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByType(e,n,s){let r=await t.getBusinessMenuByType(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByTypeV2(e,n,s){let r=await t.getBusinessMenuByTypeV2(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByTypeV3(e,n,s){let r=await t.getBusinessMenuByTypeV3(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByTypeV4(e,n,s){let r=await t.getBusinessMenuByTypeV4(e,n,s);return P(r,h.default,p,a)},async getBusinessProviderStatus(e,n){let s=await t.getBusinessProviderStatus(e,n);return P(s,h.default,p,a)},async getBusinessProviderStatusExternal(e,n,s){let r=await t.getBusinessProviderStatusExternal(e,n,s);return P(r,h.default,p,a)},async getBusinessTax(e){let n=await t.getBusinessTax(e);return P(n,h.default,p,a)},async getProvidersSupportedIntegrations(e,n){let s=await t.getProvidersSupportedIntegrations(e,n);return P(s,h.default,p,a)},async getSingleBusinessProviderStatus(e,n,s,r){let o=await t.getSingleBusinessProviderStatus(e,n,s,r);return P(o,h.default,p,a)},async getUnifiedDiscounts(e,n){let s=await t.getUnifiedDiscounts(e,n);return P(s,h.default,p,a)},async setBusinessStatus(e,n,s){let r=await t.setBusinessStatus(e,n,s);return P(r,h.default,p,a)},async setBusinessStatusSchedule(e,n,s){let r=await t.setBusinessStatusSchedule(e,n,s);return P(r,h.default,p,a)},async updateBusinessPermission(e,n,s,r){let o=await t.updateBusinessPermission(e,n,s,r);return P(o,h.default,p,a)},async validateBusiness(e,n){let s=await t.validateBusiness(e,n);return P(s,h.default,p,a)}}},zn=function(a,t,e){let n=T(a);return{createBusinessPermission(s,r,o){return n.createBusinessPermission(s,r,o).then(i=>i(e,t))},deleteBusinessPermission(s,r,o){return n.deleteBusinessPermission(s,r,o).then(i=>i(e,t))},getAdvancedDiscounts(s,r){return n.getAdvancedDiscounts(s,r).then(o=>o(e,t))},getBusinessCategoriesByMenuId(s,r,o){return n.getBusinessCategoriesByMenuId(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,r,o){return n.getBusinessCategoriesByMenuIdV2(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV3(s,r,o){return n.getBusinessCategoriesByMenuIdV3(s,r,o).then(i=>i(e,t))},getBusinessChannelConfig(s,r,o){return n.getBusinessChannelConfig(s,r,o).then(i=>i(e,t))},getBusinessChannelConfigV2(s,r,o){return n.getBusinessChannelConfigV2(s,r,o).then(i=>i(e,t))},getBusinessConfig(s,r,o){return n.getBusinessConfig(s,r,o).then(i=>i(e,t))},getBusinessConfigById(s,r,o){return n.getBusinessConfigById(s,r,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,r,o){return n.getBusinessConfigByIdV2(s,r,o).then(i=>i(e,t))},getBusinessConfiguration(s,r,o){return n.getBusinessConfiguration(s,r,o).then(i=>i(e,t))},getBusinessMenuByType(s,r,o){return n.getBusinessMenuByType(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,r,o){return n.getBusinessMenuByTypeV2(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,r,o){return n.getBusinessMenuByTypeV3(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,r,o){return n.getBusinessMenuByTypeV4(s,r,o).then(i=>i(e,t))},getBusinessProviderStatus(s,r){return n.getBusinessProviderStatus(s,r).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,r,o){return n.getBusinessProviderStatusExternal(s,r,o).then(i=>i(e,t))},getBusinessTax(s){return n.getBusinessTax(s).then(r=>r(e,t))},getProvidersSupportedIntegrations(s,r){return n.getProvidersSupportedIntegrations(s,r).then(o=>o(e,t))},getSingleBusinessProviderStatus(s,r,o,i){return n.getSingleBusinessProviderStatus(s,r,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,r){return n.getUnifiedDiscounts(s,r).then(o=>o(e,t))},setBusinessStatus(s,r,o){return n.setBusinessStatus(s,r,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,r,o){return n.setBusinessStatusSchedule(s,r,o).then(i=>i(e,t))},updateBusinessPermission(s,r,o,i){return n.updateBusinessPermission(s,r,o,i).then(l=>l(e,t))},validateBusiness(s,r){return n.validateBusiness(s,r).then(o=>o(e,t))}}},Ae=class extends S{createBusinessPermission(t,e,n){return T(this.configuration).createBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,n){return T(this.configuration).deleteBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}getAdvancedDiscounts(t,e){return T(this.configuration).getAdvancedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,n){return T(this.configuration).getBusinessChannelConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfigV2(t,e,n){return T(this.configuration).getBusinessChannelConfigV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,n){return T(this.configuration).getBusinessConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,n){return T(this.configuration).getBusinessConfigById(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,n){return T(this.configuration).getBusinessConfigByIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,n){return T(this.configuration).getBusinessConfiguration(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,n){return T(this.configuration).getBusinessMenuByType(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,n){return T(this.configuration).getBusinessMenuByTypeV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,n){return T(this.configuration).getBusinessMenuByTypeV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,n){return T(this.configuration).getBusinessMenuByTypeV4(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return T(this.configuration).getBusinessProviderStatus(t,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,n){return T(this.configuration).getBusinessProviderStatusExternal(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessTax(t){return T(this.configuration).getBusinessTax(t).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(t,e){return T(this.configuration).getProvidersSupportedIntegrations(t,e).then(n=>n(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,n,s){return T(this.configuration).getSingleBusinessProviderStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return T(this.configuration).getUnifiedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(t,e,n){return T(this.configuration).setBusinessStatus(t,e,n).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,n){return T(this.configuration).setBusinessStatusSchedule(t,e,n).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,n,s){return T(this.configuration).updateBusinessPermission(t,e,n,s).then(r=>r(this.axios,this.basePath))}validateBusiness(t,e){return T(this.configuration).validateBusiness(t,e).then(n=>n(this.axios,this.basePath))}},ct=function(a){return{create:async(t,e,n={})=>{d("create","businessId",t),d("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n,s,r,o,i,l={})=>{d("getCashLogs","businessId",t),d("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(t))),c=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},b={};n!==void 0&&(b.timeSpan=n),s!==void 0&&(b.start=s),r!==void 0&&(b.end=r),o!==void 0&&(b.page=o),i!==void 0&&(b.rowPerPage=i),e!==void 0&&(b.timezone=e),g(c,b);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(c),options:x}},getCashSession:async(t,e={})=>{d("getCashSession","businessId",t);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSessionReport:async(t,e,n={})=>{d("getSessionReport","businessId",t),d("getSessionReport","sessionId",e);let s="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(s,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(t,e,n={})=>{d("recordCashLog","businessId",t),d("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n,s={})=>{d("sendSessionReport","businessId",t),d("sendSessionReport","sessionId",e),d("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},N=function(a){let t=ct(a);return{async create(e,n,s){let r=await t.create(e,n,s);return P(r,h.default,p,a)},async getCashLogs(e,n,s,r,o,i,l,u){let c=await t.getCashLogs(e,n,s,r,o,i,l,u);return P(c,h.default,p,a)},async getCashSession(e,n){let s=await t.getCashSession(e,n);return P(s,h.default,p,a)},async getSessionReport(e,n,s){let r=await t.getSessionReport(e,n,s);return P(r,h.default,p,a)},async recordCashLog(e,n,s){let r=await t.recordCashLog(e,n,s);return P(r,h.default,p,a)},async sendSessionReport(e,n,s,r){let o=await t.sendSessionReport(e,n,s,r);return P(o,h.default,p,a)}}},Yn=function(a,t,e){let n=N(a);return{create(s,r,o){return n.create(s,r,o).then(i=>i(e,t))},getCashLogs(s,r,o,i,l,u,c,A){return n.getCashLogs(s,r,o,i,l,u,c,A).then(x=>x(e,t))},getCashSession(s,r){return n.getCashSession(s,r).then(o=>o(e,t))},getSessionReport(s,r,o){return n.getSessionReport(s,r,o).then(i=>i(e,t))},recordCashLog(s,r,o){return n.recordCashLog(s,r,o).then(i=>i(e,t))},sendSessionReport(s,r,o,i){return n.sendSessionReport(s,r,o,i).then(l=>l(e,t))}}},fe=class extends S{create(t,e,n){return N(this.configuration).create(t,e,n).then(s=>s(this.axios,this.basePath))}getCashLogs(t,e,n,s,r,o,i,l){return N(this.configuration).getCashLogs(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(t,e){return N(this.configuration).getCashSession(t,e).then(n=>n(this.axios,this.basePath))}getSessionReport(t,e,n){return N(this.configuration).getSessionReport(t,e,n).then(s=>s(this.axios,this.basePath))}recordCashLog(t,e,n){return N(this.configuration).recordCashLog(t,e,n).then(s=>s(this.axios,this.basePath))}sendSessionReport(t,e,n,s){return N(this.configuration).sendSessionReport(t,e,n,s).then(r=>r(this.axios,this.basePath))}},pt=function(a){return{configManualSync:async(t,e,n={})=>{d("configManualSync","businessId",t),d("configManualSync","manualSyncDto",e);let s="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("configRemovePaymentOption","businessId",t),d("configRemovePaymentOption","id",e),d("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={},c={};await D(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,...s.headers},{url:y(o),options:l}},configUpsertBusiness:async(t,e,n={})=>{d("configUpsertBusiness","businessId",t),d("configUpsertBusiness","upsertBusinessDto",e);let s="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("configUpsertChannelConfig","businessId",t),d("configUpsertChannelConfig","xAppX",e),d("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(t,e,n,s={})=>{d("configUpsertGiftCard","businessId",t),d("configUpsertGiftCard","xAppX",e),d("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(t,e,n={})=>{d("configUpsertLoyalty","businessId",t),d("configUpsertLoyalty","upsertLoyaltyDto",e);let s="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("configUpsertNets","businessId",t),d("configUpsertNets","xAppX",e),d("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(t,e,n,s={})=>{d("configUpsertPaymentOptions","businessId",t),d("configUpsertPaymentOptions","xAppX",e),d("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(t,e,n,s={})=>{d("configUpsertStripe","businessId",t),d("configUpsertStripe","xAppX",e),d("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertViva:async(t,e,n,s={})=>{d("configUpsertViva","businessId",t),d("configUpsertViva","xAppX",e),d("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},M=function(a){let t=pt(a);return{async configManualSync(e,n,s){let r=await t.configManualSync(e,n,s);return P(r,h.default,p,a)},async configRemovePaymentOption(e,n,s,r){let o=await t.configRemovePaymentOption(e,n,s,r);return P(o,h.default,p,a)},async configUpsertBusiness(e,n,s){let r=await t.configUpsertBusiness(e,n,s);return P(r,h.default,p,a)},async configUpsertChannelConfig(e,n,s,r){let o=await t.configUpsertChannelConfig(e,n,s,r);return P(o,h.default,p,a)},async configUpsertGiftCard(e,n,s,r){let o=await t.configUpsertGiftCard(e,n,s,r);return P(o,h.default,p,a)},async configUpsertLoyalty(e,n,s){let r=await t.configUpsertLoyalty(e,n,s);return P(r,h.default,p,a)},async configUpsertNets(e,n,s,r){let o=await t.configUpsertNets(e,n,s,r);return P(o,h.default,p,a)},async configUpsertPaymentOptions(e,n,s,r){let o=await t.configUpsertPaymentOptions(e,n,s,r);return P(o,h.default,p,a)},async configUpsertStripe(e,n,s,r){let o=await t.configUpsertStripe(e,n,s,r);return P(o,h.default,p,a)},async configUpsertViva(e,n,s,r){let o=await t.configUpsertViva(e,n,s,r);return P(o,h.default,p,a)}}},Jn=function(a,t,e){let n=M(a);return{configManualSync(s,r,o){return n.configManualSync(s,r,o).then(i=>i(e,t))},configRemovePaymentOption(s,r,o,i){return n.configRemovePaymentOption(s,r,o,i).then(l=>l(e,t))},configUpsertBusiness(s,r,o){return n.configUpsertBusiness(s,r,o).then(i=>i(e,t))},configUpsertChannelConfig(s,r,o,i){return n.configUpsertChannelConfig(s,r,o,i).then(l=>l(e,t))},configUpsertGiftCard(s,r,o,i){return n.configUpsertGiftCard(s,r,o,i).then(l=>l(e,t))},configUpsertLoyalty(s,r,o){return n.configUpsertLoyalty(s,r,o).then(i=>i(e,t))},configUpsertNets(s,r,o,i){return n.configUpsertNets(s,r,o,i).then(l=>l(e,t))},configUpsertPaymentOptions(s,r,o,i){return n.configUpsertPaymentOptions(s,r,o,i).then(l=>l(e,t))},configUpsertStripe(s,r,o,i){return n.configUpsertStripe(s,r,o,i).then(l=>l(e,t))},configUpsertViva(s,r,o,i){return n.configUpsertViva(s,r,o,i).then(l=>l(e,t))}}},xe=class extends S{configManualSync(t,e,n){return M(this.configuration).configManualSync(t,e,n).then(s=>s(this.axios,this.basePath))}configRemovePaymentOption(t,e,n,s){return M(this.configuration).configRemovePaymentOption(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(t,e,n){return M(this.configuration).configUpsertBusiness(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertChannelConfig(t,e,n,s){return M(this.configuration).configUpsertChannelConfig(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(t,e,n,s){return M(this.configuration).configUpsertGiftCard(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(t,e,n){return M(this.configuration).configUpsertLoyalty(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertNets(t,e,n,s){return M(this.configuration).configUpsertNets(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(t,e,n,s){return M(this.configuration).configUpsertPaymentOptions(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertStripe(t,e,n,s){return M(this.configuration).configUpsertStripe(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertViva(t,e,n,s){return M(this.configuration).configUpsertViva(t,e,n,s).then(r=>r(this.axios,this.basePath))}},mt=function(a){return{createAssignment:async(t,e,n={})=>{d("createAssignment","businessId",t),d("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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}}}},Ye=function(a){let t=mt(a);return{async createAssignment(e,n,s){let r=await t.createAssignment(e,n,s);return P(r,h.default,p,a)}}},Zn=function(a,t,e){let n=Ye(a);return{createAssignment(s,r,o){return n.createAssignment(s,r,o).then(i=>i(e,t))}}},Re=class extends S{createAssignment(t,e,n){return Ye(this.configuration).createAssignment(t,e,n).then(s=>s(this.axios,this.basePath))}},gt=function(a){return{redeemGiftCard:async(t,e={})=>{d("redeemGiftCard","redeemGiftCardDto",t);let n="/api/v1/giftcard/redeem",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},validateGiftCard:async(t,e={})=>{d("validateGiftCard","validateGiftCardDto",t);let n="/api/v1/giftcard/validate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},ie=function(a){let t=gt(a);return{async redeemGiftCard(e,n){let s=await t.redeemGiftCard(e,n);return P(s,h.default,p,a)},async validateGiftCard(e,n){let s=await t.validateGiftCard(e,n);return P(s,h.default,p,a)}}},Xn=function(a,t,e){let n=ie(a);return{redeemGiftCard(s,r){return n.redeemGiftCard(s,r).then(o=>o(e,t))},validateGiftCard(s,r){return n.validateGiftCard(s,r).then(o=>o(e,t))}}},be=class extends S{redeemGiftCard(t,e){return ie(this.configuration).redeemGiftCard(t,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(t,e){return ie(this.configuration).validateGiftCard(t,e).then(n=>n(this.axios,this.basePath))}},yt=function(a){return{getInternalOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getInternalOrderHistoryOnline","businessIds",t);let I="/api/v1/history/internal/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getOrderHistoryOnline","businessIds",t);let I="/api/v1/history/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getOrderHistoryPOSV5","businessIds",t);let I="/api/v5/history/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getOrderHistoryPOSV5Internal","businessIds",t);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}}}},G=function(a){let t=yt(a);return{async getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I){let v=await t.getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I);return P(v,h.default,p,a)},async getOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I){let v=await t.getOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I);return P(v,h.default,p,a)},async getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I){let v=await t.getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I);return P(v,h.default,p,a)},async getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I){let v=await t.getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,c,A,x,R,b,O,I);return P(v,h.default,p,a)}}},er=function(a,t,e){let n=G(a);return{getInternalOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V){return n.getInternalOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V).then(E=>E(e,t))},getOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V){return n.getOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V){return n.getOrderHistoryPOSV5(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5Internal(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V){return n.getOrderHistoryPOSV5Internal(s,r,o,i,l,u,c,A,x,R,b,O,I,v,V).then(E=>E(e,t))}}},Ce=class extends S{getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(I=>I(this.axios,this.basePath))}},Pt=function(a){return{createInvoiceCompany:async(t,e,n={})=>{d("createInvoiceCompany","businessId",t),d("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),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(t,e,n={})=>{d("deleteInvoiceCompany","id",t),d("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getInvoiceCompanies","businessId",t);let n="/api/v1/invoice-companies",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getInvoiceCompanyById:async(t,e,n={})=>{d("getInvoiceCompanyById","id",t),d("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),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(t,e,n,s={})=>{d("updateInvoiceCompany","id",t),d("updateInvoiceCompany","businessId",e),d("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},L=function(a){let t=Pt(a);return{async createInvoiceCompany(e,n,s){let r=await t.createInvoiceCompany(e,n,s);return P(r,h.default,p,a)},async deleteInvoiceCompany(e,n,s){let r=await t.deleteInvoiceCompany(e,n,s);return P(r,h.default,p,a)},async getInvoiceCompanies(e,n){let s=await t.getInvoiceCompanies(e,n);return P(s,h.default,p,a)},async getInvoiceCompanyById(e,n,s){let r=await t.getInvoiceCompanyById(e,n,s);return P(r,h.default,p,a)},async searchInvoiceCompanies(e,n,s){let r=await t.searchInvoiceCompanies(e,n,s);return P(r,h.default,p,a)},async updateInvoiceCompany(e,n,s,r){let o=await t.updateInvoiceCompany(e,n,s,r);return P(o,h.default,p,a)}}},tr=function(a,t,e){let n=L(a);return{createInvoiceCompany(s,r,o){return n.createInvoiceCompany(s,r,o).then(i=>i(e,t))},deleteInvoiceCompany(s,r,o){return n.deleteInvoiceCompany(s,r,o).then(i=>i(e,t))},getInvoiceCompanies(s,r){return n.getInvoiceCompanies(s,r).then(o=>o(e,t))},getInvoiceCompanyById(s,r,o){return n.getInvoiceCompanyById(s,r,o).then(i=>i(e,t))},searchInvoiceCompanies(s,r,o){return n.searchInvoiceCompanies(s,r,o).then(i=>i(e,t))},updateInvoiceCompany(s,r,o,i){return n.updateInvoiceCompany(s,r,o,i).then(l=>l(e,t))}}},De=class extends S{createInvoiceCompany(t,e,n){return L(this.configuration).createInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,n){return L(this.configuration).deleteInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return L(this.configuration).getInvoiceCompanies(t,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(t,e,n){return L(this.configuration).getInvoiceCompanyById(t,e,n).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,n){return L(this.configuration).searchInvoiceCompanies(t,e,n).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,n,s){return L(this.configuration).updateInvoiceCompany(t,e,n,s).then(r=>r(this.axios,this.basePath))}},ht=function(a){return{kdsGetOrders:async(t,e,n,s,r,o,i,l,u,c,A,x={})=>{d("kdsGetOrders","status",t),d("kdsGetOrders","businessIds",e),d("kdsGetOrders","profileId",n);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(t))),b=new URL(R,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...x},v={},V={};await D(v,a),e!==void 0&&(V.businessIds=e),n!==void 0&&(V.profileId=n),s!==void 0&&(V.page=s),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),c&&(V.provider=c),A&&(V.consumptionType=A),g(b,V);let E=O&&O.headers?O.headers:{};return I.headers={...v,...E,...x.headers},{url:y(b),options:I}},kdsGetProfiles:async(t,e={})=>{d("kdsGetProfiles","businessId",t);let n="/api/v1/kds/profiles",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsMarkOrderReady:async(t,e={})=>{d("kdsMarkOrderReady","id",t);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsRevertOrder:async(t,e={})=>{d("kdsRevertOrder","id",t);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},Q=function(a){let t=ht(a);return{async kdsGetOrders(e,n,s,r,o,i,l,u,c,A,x,R){let b=await t.kdsGetOrders(e,n,s,r,o,i,l,u,c,A,x,R);return P(b,h.default,p,a)},async kdsGetProfiles(e,n){let s=await t.kdsGetProfiles(e,n);return P(s,h.default,p,a)},async kdsMarkOrderReady(e,n){let s=await t.kdsMarkOrderReady(e,n);return P(s,h.default,p,a)},async kdsRevertOrder(e,n){let s=await t.kdsRevertOrder(e,n);return P(s,h.default,p,a)}}},sr=function(a,t,e){let n=Q(a);return{kdsGetOrders(s,r,o,i,l,u,c,A,x,R,b,O){return n.kdsGetOrders(s,r,o,i,l,u,c,A,x,R,b,O).then(I=>I(e,t))},kdsGetProfiles(s,r){return n.kdsGetProfiles(s,r).then(o=>o(e,t))},kdsMarkOrderReady(s,r){return n.kdsMarkOrderReady(s,r).then(o=>o(e,t))},kdsRevertOrder(s,r){return n.kdsRevertOrder(s,r).then(o=>o(e,t))}}},Oe=class extends S{kdsGetOrders(t,e,n,s,r,o,i,l,u,c,A,x){return Q(this.configuration).kdsGetOrders(t,e,n,s,r,o,i,l,u,c,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(t,e){return Q(this.configuration).kdsGetProfiles(t,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(t,e){return Q(this.configuration).kdsMarkOrderReady(t,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(t,e){return Q(this.configuration).kdsRevertOrder(t,e).then(n=>n(this.axios,this.basePath))}},At=function(a){return{getOrderStatus:async(t,e,n={})=>{d("getOrderStatus","orderId",t),d("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,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(t,e,n={})=>{d("validate","terminalId",t),d("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.terminalId=t),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 t=At(a);return{async getOrderStatus(e,n,s){let r=await t.getOrderStatus(e,n,s);return P(r,h.default,p,a)},async validate(e,n,s){let r=await t.validate(e,n,s);return P(r,h.default,p,a)}}},nr=function(a,t,e){let n=le(a);return{getOrderStatus(s,r,o){return n.getOrderStatus(s,r,o).then(i=>i(e,t))},validate(s,r,o){return n.validate(s,r,o).then(i=>i(e,t))}}},Ve=class extends S{getOrderStatus(t,e,n){return le(this.configuration).getOrderStatus(t,e,n).then(s=>s(this.axios,this.basePath))}validate(t,e,n){return le(this.configuration).validate(t,e,n).then(s=>s(this.axios,this.basePath))}},ft=function(a){return{createLoyaltyUser:async(t,e,n={})=>{d("createLoyaltyUser","businessId",t),d("createLoyaltyUser","createLoyaltyProgramUserDto",e);let s="/api/v1/loyalty/users/create",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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}},getAdminTransactions:async(t,e,n,s={})=>{d("getAdminTransactions","businessId",t);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};await D(u,a),t!==void 0&&(c.businessId=t),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,...s.headers},{url:y(o),options:l}},getLoyaltyInfo:async(t,e={})=>{d("getLoyaltyInfo","businessId",t);let n="/api/v1/loyalty/info",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getUserById:async(t,e,n={})=>{d("getUserById","businessId",t),d("getUserById","userId",e);let s="/api/v1/loyalty/users/info",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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(t,e,n,s,r={})=>{d("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};await D(c,a),e!==void 0&&(A.phone=e),n!==void 0&&(A.country_code=n),s!==void 0&&(A.email=s),t!==void 0&&(A.businessId=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(t,e,n={})=>{d("updatePoints","businessId",t),d("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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}}}},F=function(a){let t=ft(a);return{async createLoyaltyUser(e,n,s){let r=await t.createLoyaltyUser(e,n,s);return P(r,h.default,p,a)},async getAdminTransactions(e,n,s,r){let o=await t.getAdminTransactions(e,n,s,r);return P(o,h.default,p,a)},async getLoyaltyInfo(e,n){let s=await t.getLoyaltyInfo(e,n);return P(s,h.default,p,a)},async getUserById(e,n,s){let r=await t.getUserById(e,n,s);return P(r,h.default,p,a)},async searchUser(e,n,s,r,o){let i=await t.searchUser(e,n,s,r,o);return P(i,h.default,p,a)},async updatePoints(e,n,s){let r=await t.updatePoints(e,n,s);return P(r,h.default,p,a)}}},rr=function(a,t,e){let n=F(a);return{createLoyaltyUser(s,r,o){return n.createLoyaltyUser(s,r,o).then(i=>i(e,t))},getAdminTransactions(s,r,o,i){return n.getAdminTransactions(s,r,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,r){return n.getLoyaltyInfo(s,r).then(o=>o(e,t))},getUserById(s,r,o){return n.getUserById(s,r,o).then(i=>i(e,t))},searchUser(s,r,o,i,l){return n.searchUser(s,r,o,i,l).then(u=>u(e,t))},updatePoints(s,r,o){return n.updatePoints(s,r,o).then(i=>i(e,t))}}},Ie=class extends S{createLoyaltyUser(t,e,n){return F(this.configuration).createLoyaltyUser(t,e,n).then(s=>s(this.axios,this.basePath))}getAdminTransactions(t,e,n,s){return F(this.configuration).getAdminTransactions(t,e,n,s).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(t,e){return F(this.configuration).getLoyaltyInfo(t,e).then(n=>n(this.axios,this.basePath))}getUserById(t,e,n){return F(this.configuration).getUserById(t,e,n).then(s=>s(this.axios,this.basePath))}searchUser(t,e,n,s,r){return F(this.configuration).searchUser(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,n){return F(this.configuration).updatePoints(t,e,n).then(s=>s(this.axios,this.basePath))}},xt=function(a){return{editBusinessProduct:async(t,e,n={})=>{d("editBusinessProduct","businessId",t),d("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("editBusinessProductV2","businessId",t),d("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getBusinessExtras","businessId",t);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getProductsByCategoriesV2:async(t,e,n={})=>{d("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("resetProductEod","resetEodDto",t);let n="/api/v1/menu/availability/reset-eod",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},K=function(a){let t=xt(a);return{async editBusinessProduct(e,n,s){let r=await t.editBusinessProduct(e,n,s);return P(r,h.default,p,a)},async editBusinessProductV2(e,n,s){let r=await t.editBusinessProductV2(e,n,s);return P(r,h.default,p,a)},async getBusinessExtras(e,n){let s=await t.getBusinessExtras(e,n);return P(s,h.default,p,a)},async getProductsByCategoriesV2(e,n,s){let r=await t.getProductsByCategoriesV2(e,n,s);return P(r,h.default,p,a)},async resetProductEod(e,n){let s=await t.resetProductEod(e,n);return P(s,h.default,p,a)}}},or=function(a,t,e){let n=K(a);return{editBusinessProduct(s,r,o){return n.editBusinessProduct(s,r,o).then(i=>i(e,t))},editBusinessProductV2(s,r,o){return n.editBusinessProductV2(s,r,o).then(i=>i(e,t))},getBusinessExtras(s,r){return n.getBusinessExtras(s,r).then(o=>o(e,t))},getProductsByCategoriesV2(s,r,o){return n.getProductsByCategoriesV2(s,r,o).then(i=>i(e,t))},resetProductEod(s,r){return n.resetProductEod(s,r).then(o=>o(e,t))}}},Se=class extends S{editBusinessProduct(t,e,n){return K(this.configuration).editBusinessProduct(t,e,n).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,n){return K(this.configuration).editBusinessProductV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return K(this.configuration).getBusinessExtras(t,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,n){return K(this.configuration).getProductsByCategoriesV2(t,e,n).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return K(this.configuration).resetProductEod(t,e).then(n=>n(this.axios,this.basePath))}},Rt=function(a){return{addBusinessesToMerchant:async(t,e,n={})=>{d("addBusinessesToMerchant","merchantId",t),d("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let s="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e={})=>{d("createMerchant","createMerchantDto",t);let n="/api/v1/merchants",s=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(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},removeBusinessFromMerchant:async(t,e,n={})=>{d("removeBusinessFromMerchant","merchantId",t),d("removeBusinessFromMerchant","businessId",e);let s="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}}}},X=function(a){let t=Rt(a);return{async addBusinessesToMerchant(e,n,s){let r=await t.addBusinessesToMerchant(e,n,s);return P(r,h.default,p,a)},async createMerchant(e,n){let s=await t.createMerchant(e,n);return P(s,h.default,p,a)},async removeBusinessFromMerchant(e,n,s){let r=await t.removeBusinessFromMerchant(e,n,s);return P(r,h.default,p,a)}}},ar=function(a,t,e){let n=X(a);return{addBusinessesToMerchant(s,r,o){return n.addBusinessesToMerchant(s,r,o).then(i=>i(e,t))},createMerchant(s,r){return n.createMerchant(s,r).then(o=>o(e,t))},removeBusinessFromMerchant(s,r,o){return n.removeBusinessFromMerchant(s,r,o).then(i=>i(e,t))}}},ve=class extends S{addBusinessesToMerchant(t,e,n){return X(this.configuration).addBusinessesToMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}createMerchant(t,e){return X(this.configuration).createMerchant(t,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(t,e,n){return X(this.configuration).removeBusinessFromMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}},bt=function(a){return{addVenueSubscriptionsV2:async(t,e={})=>{d("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/add-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{d("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/remove-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},ue=function(a){let t=bt(a);return{async addVenueSubscriptionsV2(e,n){let s=await t.addVenueSubscriptionsV2(e,n);return P(s,h.default,p,a)},async removeVenueSubscriptionsV2(e,n){let s=await t.removeVenueSubscriptionsV2(e,n);return P(s,h.default,p,a)}}},ir=function(a,t,e){let n=ue(a);return{addVenueSubscriptionsV2(s,r){return n.addVenueSubscriptionsV2(s,r).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,r){return n.removeVenueSubscriptionsV2(s,r).then(o=>o(e,t))}}},Te=class extends S{addVenueSubscriptionsV2(t,e){return ue(this.configuration).addVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return ue(this.configuration).removeVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}},Ct=function(a){return{findOneByExternalId:async(t,e={})=>{d("findOneByExternalId","externalId",t);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},Je=function(a){let t=Ct(a);return{async findOneByExternalId(e,n){let s=await t.findOneByExternalId(e,n);return P(s,h.default,p,a)}}},lr=function(a,t,e){let n=Je(a);return{findOneByExternalId(s,r){return n.findOneByExternalId(s,r).then(o=>o(e,t))}}},Ee=class extends S{findOneByExternalId(t,e){return Je(this.configuration).findOneByExternalId(t,e).then(n=>n(this.axios,this.basePath))}},Dt=function(a){return{updateTaxRate:async(t,e={})=>{d("updateTaxRate","body",t);let n="/api/v1/ordering/update-tax-rate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},Ze=function(a){let t=Dt(a);return{async updateTaxRate(e,n){let s=await t.updateTaxRate(e,n);return P(s,h.default,p,a)}}},ur=function(a,t,e){let n=Ze(a);return{updateTaxRate(s,r){return n.updateTaxRate(s,r).then(o=>o(e,t))}}},Ue=class extends S{updateTaxRate(t,e){return Ze(this.configuration).updateTaxRate(t,e).then(n=>n(this.axios,this.basePath))}},Ot=function(a){return{acceptOrder:async(t,e={})=>{d("acceptOrder","acceptOrderDto",t);let n="/api/v1/orders/accept",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},confirmPreOrder:async(t,e={})=>{d("confirmPreOrder","confirmPreorderDto",t);let n="/api/v1/orders/confirm/preOrder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{d("deletePosParkedOrderV2","deletePosOrderDto",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},deliverOrder:async(t,e={})=>{d("deliverOrder","deliveredOrderDto",t);let n="/api/v1/orders/delivered",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getAllOrdersV2:async(t,e={})=>{d("getAllOrdersV2","businessIds",t);let n="/api/v2/orders",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getOrdersV2:async(t,e,n,s,r={})=>{d("getOrdersV2","status",t),d("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};e!==void 0&&(A.businessIds=e),n!==void 0&&(A.posBusinessId=n),s!==void 0&&(A.extraProvider=s),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{d("getParkedPosOrderV2","businessId",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},markOrderAsReady:async(t,e={})=>{d("markOrderAsReady","readyOrderDto",t);let n="/api/v1/orders/ready",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},placePosOrderV4:async(t,e={})=>{d("placePosOrderV4","posOrderPayloadDto",t);let n="/api/v4/orders/pos/place",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},processPosOrderActions:async(t,e={})=>{d("processPosOrderActions","processOrderActionsDto",t);let n="/api/v4/orders/pos/actions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},rejectOrder:async(t,e={})=>{d("rejectOrder","rejectOrderDto",t);let n="/api/v1/orders/reject",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},updatePosOrderV2:async(t,e={})=>{d("updatePosOrderV2","posUpdateOrderDto",t);let n="/api/v2/orders/pos/update",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},B=function(a){let t=Ot(a);return{async acceptOrder(e,n){let s=await t.acceptOrder(e,n);return P(s,h.default,p,a)},async confirmPreOrder(e,n){let s=await t.confirmPreOrder(e,n);return P(s,h.default,p,a)},async deletePosParkedOrderV2(e,n){let s=await t.deletePosParkedOrderV2(e,n);return P(s,h.default,p,a)},async deliverOrder(e,n){let s=await t.deliverOrder(e,n);return P(s,h.default,p,a)},async getAllOrdersV2(e,n){let s=await t.getAllOrdersV2(e,n);return P(s,h.default,p,a)},async getOrdersV2(e,n,s,r,o){let i=await t.getOrdersV2(e,n,s,r,o);return P(i,h.default,p,a)},async getParkedPosOrderV2(e,n){let s=await t.getParkedPosOrderV2(e,n);return P(s,h.default,p,a)},async markOrderAsReady(e,n){let s=await t.markOrderAsReady(e,n);return P(s,h.default,p,a)},async placePosOrderV4(e,n){let s=await t.placePosOrderV4(e,n);return P(s,h.default,p,a)},async processPosOrderActions(e,n){let s=await t.processPosOrderActions(e,n);return P(s,h.default,p,a)},async rejectOrder(e,n){let s=await t.rejectOrder(e,n);return P(s,h.default,p,a)},async updatePosOrderV2(e,n){let s=await t.updatePosOrderV2(e,n);return P(s,h.default,p,a)}}},dr=function(a,t,e){let n=B(a);return{acceptOrder(s,r){return n.acceptOrder(s,r).then(o=>o(e,t))},confirmPreOrder(s,r){return n.confirmPreOrder(s,r).then(o=>o(e,t))},deletePosParkedOrderV2(s,r){return n.deletePosParkedOrderV2(s,r).then(o=>o(e,t))},deliverOrder(s,r){return n.deliverOrder(s,r).then(o=>o(e,t))},getAllOrdersV2(s,r){return n.getAllOrdersV2(s,r).then(o=>o(e,t))},getOrdersV2(s,r,o,i,l){return n.getOrdersV2(s,r,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,r){return n.getParkedPosOrderV2(s,r).then(o=>o(e,t))},markOrderAsReady(s,r){return n.markOrderAsReady(s,r).then(o=>o(e,t))},placePosOrderV4(s,r){return n.placePosOrderV4(s,r).then(o=>o(e,t))},processPosOrderActions(s,r){return n.processPosOrderActions(s,r).then(o=>o(e,t))},rejectOrder(s,r){return n.rejectOrder(s,r).then(o=>o(e,t))},updatePosOrderV2(s,r){return n.updatePosOrderV2(s,r).then(o=>o(e,t))}}},qe=class extends S{acceptOrder(t,e){return B(this.configuration).acceptOrder(t,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(t,e){return B(this.configuration).confirmPreOrder(t,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return B(this.configuration).deletePosParkedOrderV2(t,e).then(n=>n(this.axios,this.basePath))}deliverOrder(t,e){return B(this.configuration).deliverOrder(t,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(t,e){return B(this.configuration).getAllOrdersV2(t,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(t,e,n,s,r){return B(this.configuration).getOrdersV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return B(this.configuration).getParkedPosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(t,e){return B(this.configuration).markOrderAsReady(t,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(t,e){return B(this.configuration).placePosOrderV4(t,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(t,e){return B(this.configuration).processPosOrderActions(t,e).then(n=>n(this.axios,this.basePath))}rejectOrder(t,e){return B(this.configuration).rejectOrder(t,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(t,e){return B(this.configuration).updatePosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}},Vt=function(a){return{getPosSession:async(t,e={})=>{d("getPosSession","businessId",t);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getPosSessionV2:async(t,e={})=>{d("getPosSessionV2","businessId",t);let n="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},de=function(a){let t=Vt(a);return{async getPosSession(e,n){let s=await t.getPosSession(e,n);return P(s,h.default,p,a)},async getPosSessionV2(e,n){let s=await t.getPosSessionV2(e,n);return P(s,h.default,p,a)}}},cr=function(a,t,e){let n=de(a);return{getPosSession(s,r){return n.getPosSession(s,r).then(o=>o(e,t))},getPosSessionV2(s,r){return n.getPosSessionV2(s,r).then(o=>o(e,t))}}},Be=class extends S{getPosSession(t,e){return de(this.configuration).getPosSession(t,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(t,e){return de(this.configuration).getPosSessionV2(t,e).then(n=>n(this.axios,this.basePath))}},It=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{d("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let n="/api/v3/payment/nets/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{d("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let n="/api/v2/payment/viva/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{d("createNetsRefundTransaction","createRefundDto",t);let n="/api/v4/payment/nets/refund/transaction",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getPaymentReference:async(t,e={})=>{d("getPaymentReference","getPaymentReferenceDto",t);let n="/api/v1/payment/reference",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getPaymentStatus:async(t,e={})=>{d("getPaymentStatus","getPaymentStatusDto",t);let n="/api/v1/payment/status",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{d("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let n="/api/v3/payment/nets/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{d("initiateTerminalTransaction","createTerminalPaymentDto",t);let n="/api/v4/payment/viva/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{d("processOnlineOrderRefund","orderResponseDto",t);let n="/api/v1/payment/online-orders/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundCashPaymentV3:async(t,e={})=>{d("refundCashPaymentV3","cashRefundPayload",t);let n="/api/v3/payment/cash/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundManualPaymentV3:async(t,e={})=>{d("refundManualPaymentV3","manualRefundPayload",t);let n="/api/v3/payment/manual/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{d("refundNetsTransactionV3","refundPayloadDtoV4",t);let n="/api/v3/payment/nets/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{d("refundSingleVivaTransaction","createRefundDto",t);let n="/api/v4/payment/viva/refund/single",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{d("refundVivaTransactionV3","refundPayloadDto",t);let n="/api/v3/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{d("refundVivaTransactionV4","refundPayloadDtoV4",t);let n="/api/v4/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},q=function(a){let t=It(a);return{async cancelNetsTerminalTransaction(e,n){let s=await t.cancelNetsTerminalTransaction(e,n);return P(s,h.default,p,a)},async cancelVivaTransactionV2(e,n){let s=await t.cancelVivaTransactionV2(e,n);return P(s,h.default,p,a)},async createNetsRefundTransaction(e,n){let s=await t.createNetsRefundTransaction(e,n);return P(s,h.default,p,a)},async getPaymentReference(e,n){let s=await t.getPaymentReference(e,n);return P(s,h.default,p,a)},async getPaymentStatus(e,n){let s=await t.getPaymentStatus(e,n);return P(s,h.default,p,a)},async initiateNetsTerminalTransaction(e,n){let s=await t.initiateNetsTerminalTransaction(e,n);return P(s,h.default,p,a)},async initiateTerminalTransaction(e,n){let s=await t.initiateTerminalTransaction(e,n);return P(s,h.default,p,a)},async processOnlineOrderRefund(e,n){let s=await t.processOnlineOrderRefund(e,n);return P(s,h.default,p,a)},async refundCashPaymentV3(e,n){let s=await t.refundCashPaymentV3(e,n);return P(s,h.default,p,a)},async refundManualPaymentV3(e,n){let s=await t.refundManualPaymentV3(e,n);return P(s,h.default,p,a)},async refundNetsTransactionV3(e,n){let s=await t.refundNetsTransactionV3(e,n);return P(s,h.default,p,a)},async refundSingleVivaTransaction(e,n){let s=await t.refundSingleVivaTransaction(e,n);return P(s,h.default,p,a)},async refundVivaTransactionV3(e,n){let s=await t.refundVivaTransactionV3(e,n);return P(s,h.default,p,a)},async refundVivaTransactionV4(e,n){let s=await t.refundVivaTransactionV4(e,n);return P(s,h.default,p,a)}}},pr=function(a,t,e){let n=q(a);return{cancelNetsTerminalTransaction(s,r){return n.cancelNetsTerminalTransaction(s,r).then(o=>o(e,t))},cancelVivaTransactionV2(s,r){return n.cancelVivaTransactionV2(s,r).then(o=>o(e,t))},createNetsRefundTransaction(s,r){return n.createNetsRefundTransaction(s,r).then(o=>o(e,t))},getPaymentReference(s,r){return n.getPaymentReference(s,r).then(o=>o(e,t))},getPaymentStatus(s,r){return n.getPaymentStatus(s,r).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,r){return n.initiateNetsTerminalTransaction(s,r).then(o=>o(e,t))},initiateTerminalTransaction(s,r){return n.initiateTerminalTransaction(s,r).then(o=>o(e,t))},processOnlineOrderRefund(s,r){return n.processOnlineOrderRefund(s,r).then(o=>o(e,t))},refundCashPaymentV3(s,r){return n.refundCashPaymentV3(s,r).then(o=>o(e,t))},refundManualPaymentV3(s,r){return n.refundManualPaymentV3(s,r).then(o=>o(e,t))},refundNetsTransactionV3(s,r){return n.refundNetsTransactionV3(s,r).then(o=>o(e,t))},refundSingleVivaTransaction(s,r){return n.refundSingleVivaTransaction(s,r).then(o=>o(e,t))},refundVivaTransactionV3(s,r){return n.refundVivaTransactionV3(s,r).then(o=>o(e,t))},refundVivaTransactionV4(s,r){return n.refundVivaTransactionV4(s,r).then(o=>o(e,t))}}},Me=class extends S{cancelNetsTerminalTransaction(t,e){return q(this.configuration).cancelNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return q(this.configuration).cancelVivaTransactionV2(t,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return q(this.configuration).createNetsRefundTransaction(t,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(t,e){return q(this.configuration).getPaymentReference(t,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(t,e){return q(this.configuration).getPaymentStatus(t,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return q(this.configuration).initiateNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return q(this.configuration).initiateTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return q(this.configuration).processOnlineOrderRefund(t,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(t,e){return q(this.configuration).refundCashPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(t,e){return q(this.configuration).refundManualPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return q(this.configuration).refundNetsTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return q(this.configuration).refundSingleVivaTransaction(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return q(this.configuration).refundVivaTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return q(this.configuration).refundVivaTransactionV4(t,e).then(n=>n(this.axios,this.basePath))}},St=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ce=function(a){let t=St(a);return{async loadConfigFile(e){let n=await t.loadConfigFile(e);return P(n,h.default,p,a)},async upsertBusiness(e){let n=await t.upsertBusiness(e);return P(n,h.default,p,a)}}},mr=function(a,t,e){let n=ce(a);return{loadConfigFile(s){return n.loadConfigFile(s).then(r=>r(e,t))},upsertBusiness(s){return n.upsertBusiness(s).then(r=>r(e,t))}}},ke=class extends S{loadConfigFile(t){return ce(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return ce(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},vt=function(a){return{updateChannelInventoryV2:async(t,e,n,s,r={})=>{d("updateChannelInventoryV2","businessId",t),d("updateChannelInventoryV2","categoryId",e),d("updateChannelInventoryV2","productId",n),d("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(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(s,u,a),{url:y(i),options:u}}}},Xe=function(a){let t=vt(a);return{async updateChannelInventoryV2(e,n,s,r,o){let i=await t.updateChannelInventoryV2(e,n,s,r,o);return P(i,h.default,p,a)}}},gr=function(a,t,e){let n=Xe(a);return{updateChannelInventoryV2(s,r,o,i,l){return n.updateChannelInventoryV2(s,r,o,i,l).then(u=>u(e,t))}}},_e=class extends S{updateChannelInventoryV2(t,e,n,s,r){return Xe(this.configuration).updateChannelInventoryV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}},Tt=function(a){return{getSupportedChannels:async(t,e={})=>{d("getSupportedChannels","businessId",t);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},registerCredential:async(t,e={})=>{d("registerCredential","body",t);let n="/api/v1/provider/credentials",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},registerProvider:async(t,e={})=>{d("registerProvider","body",t);let n="/api/v1/provider",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},ee=function(a){let t=Tt(a);return{async getSupportedChannels(e,n){let s=await t.getSupportedChannels(e,n);return P(s,h.default,p,a)},async registerCredential(e,n){let s=await t.registerCredential(e,n);return P(s,h.default,p,a)},async registerProvider(e,n){let s=await t.registerProvider(e,n);return P(s,h.default,p,a)}}},yr=function(a,t,e){let n=ee(a);return{getSupportedChannels(s,r){return n.getSupportedChannels(s,r).then(o=>o(e,t))},registerCredential(s,r){return n.registerCredential(s,r).then(o=>o(e,t))},registerProvider(s,r){return n.registerProvider(s,r).then(o=>o(e,t))}}},we=class extends S{getSupportedChannels(t,e){return ee(this.configuration).getSupportedChannels(t,e).then(n=>n(this.axios,this.basePath))}registerCredential(t,e){return ee(this.configuration).registerCredential(t,e).then(n=>n(this.axios,this.basePath))}registerProvider(t,e){return ee(this.configuration).registerProvider(t,e).then(n=>n(this.axios,this.basePath))}},Et=function(a){return{cancelPlan:async(t,e,n,s={})=>{d("cancelPlan","businessId",t),d("cancelPlan","orderId",e),d("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},createRefundPlan:async(t,e,n,s={})=>{d("createRefundPlan","businessId",t),d("createRefundPlan","orderId",e),d("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},getRefundPlan:async(t,e,n,s={})=>{d("getRefundPlan","businessId",t),d("getRefundPlan","orderId",e),d("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};n!==void 0&&(c.status=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},recordRefundPlan:async(t,e,n,s,r={})=>{d("recordRefundPlan","businessId",t),d("recordRefundPlan","orderId",e),d("recordRefundPlan","refundId",n),d("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(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(s,u,a),{url:y(i),options:u}},refundOnlineOrder:async(t,e,n,s={})=>{d("refundOnlineOrder","businessId",t),d("refundOnlineOrder","orderId",e),d("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};n!==void 0&&(c.provider=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},resolveRefundChoice:async(t,e,n,s,r={})=>{d("resolveRefundChoice","businessId",t),d("resolveRefundChoice","orderId",e),d("resolveRefundChoice","refundId",n),d("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(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(s,u,a),{url:y(i),options:u}},startProcessPlan:async(t,e,n,s={})=>{d("startProcessPlan","businessId",t),d("startProcessPlan","orderId",e),d("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}}}},_=function(a){let t=Et(a);return{async cancelPlan(e,n,s,r){let o=await t.cancelPlan(e,n,s,r);return P(o,h.default,p,a)},async createRefundPlan(e,n,s,r){let o=await t.createRefundPlan(e,n,s,r);return P(o,h.default,p,a)},async getRefundPlan(e,n,s,r){let o=await t.getRefundPlan(e,n,s,r);return P(o,h.default,p,a)},async recordRefundPlan(e,n,s,r,o){let i=await t.recordRefundPlan(e,n,s,r,o);return P(i,h.default,p,a)},async refundOnlineOrder(e,n,s,r){let o=await t.refundOnlineOrder(e,n,s,r);return P(o,h.default,p,a)},async resolveRefundChoice(e,n,s,r,o){let i=await t.resolveRefundChoice(e,n,s,r,o);return P(i,h.default,p,a)},async startProcessPlan(e,n,s,r){let o=await t.startProcessPlan(e,n,s,r);return P(o,h.default,p,a)}}},Pr=function(a,t,e){let n=_(a);return{cancelPlan(s,r,o,i){return n.cancelPlan(s,r,o,i).then(l=>l(e,t))},createRefundPlan(s,r,o,i){return n.createRefundPlan(s,r,o,i).then(l=>l(e,t))},getRefundPlan(s,r,o,i){return n.getRefundPlan(s,r,o,i).then(l=>l(e,t))},recordRefundPlan(s,r,o,i,l){return n.recordRefundPlan(s,r,o,i,l).then(u=>u(e,t))},refundOnlineOrder(s,r,o,i){return n.refundOnlineOrder(s,r,o,i).then(l=>l(e,t))},resolveRefundChoice(s,r,o,i,l){return n.resolveRefundChoice(s,r,o,i,l).then(u=>u(e,t))},startProcessPlan(s,r,o,i){return n.startProcessPlan(s,r,o,i).then(l=>l(e,t))}}},Ne=class extends S{cancelPlan(t,e,n,s){return _(this.configuration).cancelPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}createRefundPlan(t,e,n,s){return _(this.configuration).createRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}getRefundPlan(t,e,n,s){return _(this.configuration).getRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}recordRefundPlan(t,e,n,s,r){return _(this.configuration).recordRefundPlan(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(t,e,n,s){return _(this.configuration).refundOnlineOrder(t,e,n,s).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(t,e,n,s,r){return _(this.configuration).resolveRefundChoice(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,n,s){return _(this.configuration).startProcessPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Ut=function(a){return{getEndOfDayReportV5:async(t,e,n,s,r,o,i={})=>{d("getEndOfDayReportV5","businessIds",t);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),s!==void 0&&(R.end=s),t&&(R.businessIds=t),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let b=c&&c.headers?c.headers:{};return A.headers={...x,...b,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(t,e,n,s,r,o={})=>{d("getPOSEndOfDayReportV4","businessIds",t);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),s!==void 0&&(x.end=s),t&&(x.businessIds=t),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(t,e,n,s,r,o,i={})=>{d("sendReportEmailV4","businessIds",t),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={};s!==void 0&&(R.timeSpan=s),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),t&&(R.businessIds=t),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let b=c&&c.headers?c.headers:{};return A.headers={...x,...b,...i.headers},A.data=f(n,A,a),{url:y(u),options:A}},sendReportEmailV5:async(t,e,n,s,r,o,i,l={})=>{d("sendReportEmailV5","businessIds",t),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={},b={};s!==void 0&&(b.timeSpan=s),r!==void 0&&(b.start=r),o!==void 0&&(b.end=o),t&&(b.businessIds=t),e!==void 0&&(b.timezone=e),i!==void 0&&(b.provider=i),R["Content-Type"]="application/json",g(c,b);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 t=Ut(a);return{async getEndOfDayReportV5(e,n,s,r,o,i,l){let u=await t.getEndOfDayReportV5(e,n,s,r,o,i,l);return P(u,h.default,p,a)},async getPOSEndOfDayReportV4(e,n,s,r,o,i){let l=await t.getPOSEndOfDayReportV4(e,n,s,r,o,i);return P(l,h.default,p,a)},async sendReportEmailV4(e,n,s,r,o,i,l){let u=await t.sendReportEmailV4(e,n,s,r,o,i,l);return P(u,h.default,p,a)},async sendReportEmailV5(e,n,s,r,o,i,l,u){let c=await t.sendReportEmailV5(e,n,s,r,o,i,l,u);return P(c,h.default,p,a)}}},hr=function(a,t,e){let n=$(a);return{getEndOfDayReportV5(s,r,o,i,l,u,c){return n.getEndOfDayReportV5(s,r,o,i,l,u,c).then(A=>A(e,t))},getPOSEndOfDayReportV4(s,r,o,i,l,u){return n.getPOSEndOfDayReportV4(s,r,o,i,l,u).then(c=>c(e,t))},sendReportEmailV4(s,r,o,i,l,u,c){return n.sendReportEmailV4(s,r,o,i,l,u,c).then(A=>A(e,t))},sendReportEmailV5(s,r,o,i,l,u,c,A){return n.sendReportEmailV5(s,r,o,i,l,u,c,A).then(x=>x(e,t))}}},Le=class extends S{getEndOfDayReportV5(t,e,n,s,r,o,i){return $(this.configuration).getEndOfDayReportV5(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,n,s,r,o){return $(this.configuration).getPOSEndOfDayReportV4(t,e,n,s,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,n,s,r,o,i){return $(this.configuration).sendReportEmailV4(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,n,s,r,o,i,l){return $(this.configuration).sendReportEmailV5(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}},qt=function(a){return{clockIn:async(t,e,n={})=>{d("clockIn","businessId",t),d("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("clockOut","businessId",t),d("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("getTodayShift","businessId",t),d("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("unlock","businessId",t),d("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 t=qt(a);return{async clockIn(e,n,s){let r=await t.clockIn(e,n,s);return P(r,h.default,p,a)},async clockOut(e,n,s){let r=await t.clockOut(e,n,s);return P(r,h.default,p,a)},async getTodayShift(e,n,s){let r=await t.getTodayShift(e,n,s);return P(r,h.default,p,a)},async unlock(e,n,s){let r=await t.unlock(e,n,s);return P(r,h.default,p,a)}}},Ar=function(a,t,e){let n=z(a);return{clockIn(s,r,o){return n.clockIn(s,r,o).then(i=>i(e,t))},clockOut(s,r,o){return n.clockOut(s,r,o).then(i=>i(e,t))},getTodayShift(s,r,o){return n.getTodayShift(s,r,o).then(i=>i(e,t))},unlock(s,r,o){return n.unlock(s,r,o).then(i=>i(e,t))}}},Fe=class extends S{clockIn(t,e,n){return z(this.configuration).clockIn(t,e,n).then(s=>s(this.axios,this.basePath))}clockOut(t,e,n){return z(this.configuration).clockOut(t,e,n).then(s=>s(this.axios,this.basePath))}getTodayShift(t,e,n){return z(this.configuration).getTodayShift(t,e,n).then(s=>s(this.axios,this.basePath))}unlock(t,e,n){return z(this.configuration).unlock(t,e,n).then(s=>s(this.axios,this.basePath))}},Bt=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getStation:async(t={})=>{let e="/api/v1/station",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},syncStation:async(t,e={})=>{d("syncStation","syncStationDto",t);let n="/api/v1/station/sync",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},te=function(a){let t=Bt(a);return{async deactivateStation(e){let n=await t.deactivateStation(e);return P(n,h.default,p,a)},async getStation(e){let n=await t.getStation(e);return P(n,h.default,p,a)},async syncStation(e,n){let s=await t.syncStation(e,n);return P(s,h.default,p,a)}}},fr=function(a,t,e){let n=te(a);return{deactivateStation(s){return n.deactivateStation(s).then(r=>r(e,t))},getStation(s){return n.getStation(s).then(r=>r(e,t))},syncStation(s,r){return n.syncStation(s,r).then(o=>o(e,t))}}},je=class extends S{deactivateStation(t){return te(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return te(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return te(this.configuration).syncStation(t,e).then(n=>n(this.axios,this.basePath))}},Mt=function(a){return{connectTerminal:async(t,e={})=>{d("connectTerminal","connectTerminalDto",t);let n="/api/v1/terminal/connect",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},discoverTerminal:async(t,e={})=>{d("discoverTerminal","discoverTerminalDto",t);let n="/api/v1/terminal/discover",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getTerminalStatus:async(t,e,n,s={})=>{d("getTerminalStatus","businessId",t),d("getTerminalStatus","provider",e),d("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},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,...s.headers},{url:y(o),options:l}}}},Y=function(a){let t=Mt(a);return{async connectTerminal(e,n){let s=await t.connectTerminal(e,n);return P(s,h.default,p,a)},async disconnectTerminal(e){let n=await t.disconnectTerminal(e);return P(n,h.default,p,a)},async discoverTerminal(e,n){let s=await t.discoverTerminal(e,n);return P(s,h.default,p,a)},async getTerminalStatus(e,n,s,r){let o=await t.getTerminalStatus(e,n,s,r);return P(o,h.default,p,a)}}},xr=function(a,t,e){let n=Y(a);return{connectTerminal(s,r){return n.connectTerminal(s,r).then(o=>o(e,t))},disconnectTerminal(s){return n.disconnectTerminal(s).then(r=>r(e,t))},discoverTerminal(s,r){return n.discoverTerminal(s,r).then(o=>o(e,t))},getTerminalStatus(s,r,o,i){return n.getTerminalStatus(s,r,o,i).then(l=>l(e,t))}}},We=class extends S{connectTerminal(t,e){return Y(this.configuration).connectTerminal(t,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(t){return Y(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return Y(this.configuration).discoverTerminal(t,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(t,e,n,s){return Y(this.configuration).getTerminalStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}},kt=function(a){return{getUserBusinessV1:async(t={})=>{let e="/api/v1/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserBusinessV2:async(t={})=>{let e="/api/v2/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserInfoV1:async(t={})=>{let e="/api/v1/user",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},se=function(a){let t=kt(a);return{async getUserBusinessV1(e){let n=await t.getUserBusinessV1(e);return P(n,h.default,p,a)},async getUserBusinessV2(e){let n=await t.getUserBusinessV2(e);return P(n,h.default,p,a)},async getUserInfoV1(e){let n=await t.getUserInfoV1(e);return P(n,h.default,p,a)}}},Rr=function(a,t,e){let n=se(a);return{getUserBusinessV1(s){return n.getUserBusinessV1(s).then(r=>r(e,t))},getUserBusinessV2(s){return n.getUserBusinessV2(s).then(r=>r(e,t))},getUserInfoV1(s){return n.getUserInfoV1(s).then(r=>r(e,t))}}},Ke=class extends S{getUserBusinessV1(t){return se(this.configuration).getUserBusinessV1(t).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(t){return se(this.configuration).getUserBusinessV2(t).then(e=>e(this.axios,this.basePath))}getUserInfoV1(t){return se(this.configuration).getUserInfoV1(t).then(e=>e(this.axios,this.basePath))}},_t=function(a){return{getUser:async(t,e={})=>{d("getUser","userValidation",t);let n="/api/v1/users",s=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(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},updateUserRewardPoints:async(t,e,n,s={})=>{d("updateUserRewardPoints","userId",t),d("updateUserRewardPoints","walletId",e),d("updateUserRewardPoints","rewardPointPayload",n);let r="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},pe=function(a){let t=_t(a);return{async getUser(e,n){let s=await t.getUser(e,n);return P(s,h.default,p,a)},async updateUserRewardPoints(e,n,s,r){let o=await t.updateUserRewardPoints(e,n,s,r);return P(o,h.default,p,a)}}},br=function(a,t,e){let n=pe(a);return{getUser(s,r){return n.getUser(s,r).then(o=>o(e,t))},updateUserRewardPoints(s,r,o,i){return n.updateUserRewardPoints(s,r,o,i).then(l=>l(e,t))}}},He=class extends S{getUser(t,e){return pe(this.configuration).getUser(t,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(t,e,n,s){return pe(this.configuration).updateUserRewardPoints(t,e,n,s).then(r=>r(this.axios,this.basePath))}},wt=function(a){return{createVivaAppToAppPayment:async(t,e={})=>{d("createVivaAppToAppPayment","createTerminalPaymentDto",t);let n="/api/v1/viva/a2a/create-payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},et=function(a){let t=wt(a);return{async createVivaAppToAppPayment(e,n){let s=await t.createVivaAppToAppPayment(e,n);return P(s,h.default,p,a)}}},Cr=function(a,t,e){let n=et(a);return{createVivaAppToAppPayment(s,r){return n.createVivaAppToAppPayment(s,r).then(o=>o(e,t))}}},Ge=class extends S{createVivaAppToAppPayment(t,e){return et(this.configuration).createVivaAppToAppPayment(t,e).then(n=>n(this.axios,this.basePath))}},Nt=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleFoodoraEvent:async(t,e={})=>{d("handleFoodoraEvent","orderUpdateDto",t);let n="/api/webhook/order/event",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handlePreorderReminder:async(t,e={})=>{d("handlePreorderReminder","preOrderReminderDto",t);let n="/api/webhook/preorder-reminder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleVivaEvents:async(t,e={})=>{d("handleVivaEvents","vivaWebhookPayloadDto",t);let n="/api/webhook/viva/verification",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(t,e={})=>{d("handleWoltDriveEventByCountry","country",t);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleWorldlineEvents:async(t={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},U=function(a){let t=Nt(a);return{async handleAssignmentWebhook(e){let n=await t.handleAssignmentWebhook(e);return P(n,h.default,p,a)},async handleBusinessWebhook(e){let n=await t.handleBusinessWebhook(e);return P(n,h.default,p,a)},async handleFoodoraEvent(e,n){let s=await t.handleFoodoraEvent(e,n);return P(s,h.default,p,a)},async handleLoadEmployee(e){let n=await t.handleLoadEmployee(e);return P(n,h.default,p,a)},async handleNetsEvents(e){let n=await t.handleNetsEvents(e);return P(n,h.default,p,a)},async handleNetsEventsV2(e){let n=await t.handleNetsEventsV2(e);return P(n,h.default,p,a)},async handleNetsRefundEvents(e){let n=await t.handleNetsRefundEvents(e);return P(n,h.default,p,a)},async handlePreorderReminder(e,n){let s=await t.handlePreorderReminder(e,n);return P(s,h.default,p,a)},async handleRoleWebhook(e){let n=await t.handleRoleWebhook(e);return P(n,h.default,p,a)},async handleShiftWebhook(e){let n=await t.handleShiftWebhook(e);return P(n,h.default,p,a)},async handleVivaEvents(e,n){let s=await t.handleVivaEvents(e,n);return P(s,h.default,p,a)},async handleWebhook(e){let n=await t.handleWebhook(e);return P(n,h.default,p,a)},async handleWoltDriveEvent(e){let n=await t.handleWoltDriveEvent(e);return P(n,h.default,p,a)},async handleWoltDriveEventByCountry(e,n){let s=await t.handleWoltDriveEventByCountry(e,n);return P(s,h.default,p,a)},async handleWorldlineEvents(e){let n=await t.handleWorldlineEvents(e);return P(n,h.default,p,a)},async updateWoltProduct(e){let n=await t.updateWoltProduct(e);return P(n,h.default,p,a)},async verifyVivaWebhook(e){let n=await t.verifyVivaWebhook(e);return P(n,h.default,p,a)}}},Dr=function(a,t,e){let n=U(a);return{handleAssignmentWebhook(s){return n.handleAssignmentWebhook(s).then(r=>r(e,t))},handleBusinessWebhook(s){return n.handleBusinessWebhook(s).then(r=>r(e,t))},handleFoodoraEvent(s,r){return n.handleFoodoraEvent(s,r).then(o=>o(e,t))},handleLoadEmployee(s){return n.handleLoadEmployee(s).then(r=>r(e,t))},handleNetsEvents(s){return n.handleNetsEvents(s).then(r=>r(e,t))},handleNetsEventsV2(s){return n.handleNetsEventsV2(s).then(r=>r(e,t))},handleNetsRefundEvents(s){return n.handleNetsRefundEvents(s).then(r=>r(e,t))},handlePreorderReminder(s,r){return n.handlePreorderReminder(s,r).then(o=>o(e,t))},handleRoleWebhook(s){return n.handleRoleWebhook(s).then(r=>r(e,t))},handleShiftWebhook(s){return n.handleShiftWebhook(s).then(r=>r(e,t))},handleVivaEvents(s,r){return n.handleVivaEvents(s,r).then(o=>o(e,t))},handleWebhook(s){return n.handleWebhook(s).then(r=>r(e,t))},handleWoltDriveEvent(s){return n.handleWoltDriveEvent(s).then(r=>r(e,t))},handleWoltDriveEventByCountry(s,r){return n.handleWoltDriveEventByCountry(s,r).then(o=>o(e,t))},handleWorldlineEvents(s){return n.handleWorldlineEvents(s).then(r=>r(e,t))},updateWoltProduct(s){return n.updateWoltProduct(s).then(r=>r(e,t))},verifyVivaWebhook(s){return n.verifyVivaWebhook(s).then(r=>r(e,t))}}},Qe=class extends S{handleAssignmentWebhook(t){return U(this.configuration).handleAssignmentWebhook(t).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(t){return U(this.configuration).handleBusinessWebhook(t).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(t,e){return U(this.configuration).handleFoodoraEvent(t,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(t){return U(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return U(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return U(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return U(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return U(this.configuration).handlePreorderReminder(t,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(t){return U(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return U(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return U(this.configuration).handleVivaEvents(t,e).then(n=>n(this.axios,this.basePath))}handleWebhook(t){return U(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return U(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return U(this.configuration).handleWoltDriveEventByCountry(t,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(t){return U(this.configuration).handleWorldlineEvents(t).then(e=>e(this.axios,this.basePath))}updateWoltProduct(t){return U(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return U(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}},Lt=function(a){return{cancelPayment:async(t,e={})=>{d("cancelPayment","cancelWorldlinePaymentDto",t);let n="/api/v1/worldline/payment/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},createPayment:async(t,e={})=>{d("createPayment","createWorldlineTerminalPaymentDto",t);let n="/api/v1/worldline/payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},createRefund:async(t,e={})=>{d("createRefund","createWorldlineRefundDto",t);let n="/api/v1/worldline/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getNextRequest:async(t,e,n,s,r={})=>{d("getNextRequest","terminalId",t),d("getNextRequest","authorization",e),d("getNextRequest","sessionID",n),d("getNextRequest","protocolVersion",s);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(t))),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)),s!=null&&(c["Protocol-Version"]=String(s)),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},submitEvent:async(t,e,n={})=>{d("submitEvent","terminalId",t),d("submitEvent","worldlineEventEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("submitResponse","terminalId",t),d("submitResponse","worldlineResponseEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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 t=Lt(a);return{async cancelPayment(e,n){let s=await t.cancelPayment(e,n);return P(s,h.default,p,a)},async createPayment(e,n){let s=await t.createPayment(e,n);return P(s,h.default,p,a)},async createRefund(e,n){let s=await t.createRefund(e,n);return P(s,h.default,p,a)},async getNextRequest(e,n,s,r,o){let i=await t.getNextRequest(e,n,s,r,o);return P(i,h.default,p,a)},async submitEvent(e,n,s){let r=await t.submitEvent(e,n,s);return P(r,h.default,p,a)},async submitResponse(e,n,s){let r=await t.submitResponse(e,n,s);return P(r,h.default,p,a)}}},Or=function(a,t,e){let n=j(a);return{cancelPayment(s,r){return n.cancelPayment(s,r).then(o=>o(e,t))},createPayment(s,r){return n.createPayment(s,r).then(o=>o(e,t))},createRefund(s,r){return n.createRefund(s,r).then(o=>o(e,t))},getNextRequest(s,r,o,i,l){return n.getNextRequest(s,r,o,i,l).then(u=>u(e,t))},submitEvent(s,r,o){return n.submitEvent(s,r,o).then(i=>i(e,t))},submitResponse(s,r,o){return n.submitResponse(s,r,o).then(i=>i(e,t))}}},$e=class extends S{cancelPayment(t,e){return j(this.configuration).cancelPayment(t,e).then(n=>n(this.axios,this.basePath))}createPayment(t,e){return j(this.configuration).createPayment(t,e).then(n=>n(this.axios,this.basePath))}createRefund(t,e){return j(this.configuration).createRefund(t,e).then(n=>n(this.axios,this.basePath))}getNextRequest(t,e,n,s,r){return j(this.configuration).getNextRequest(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}submitEvent(t,e,n){return j(this.configuration).submitEvent(t,e,n).then(s=>s(this.axios,this.basePath))}submitResponse(t,e,n){return j(this.configuration).submitResponse(t,e,n).then(s=>s(this.axios,this.basePath))}},Ft=function(a){return{createPaymentRequest:async(t,e,n={})=>{d("createPaymentRequest","terminalId",t),d("createPaymentRequest","worldlinePaymentRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("createRefundRequest","terminalId",t),d("createRefundRequest","worldlineRefundRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getPaymentResult","operationId",t);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getTerminalAuthContext:async(t,e,n={})=>{d("getTerminalAuthContext","terminalId",t),d("getTerminalAuthContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("getTerminalContext","terminalId",t),d("getTerminalContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getTerminalState","terminalId",t);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleCallback:async(t={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},w=function(a){let t=Ft(a);return{async createPaymentRequest(e,n,s){let r=await t.createPaymentRequest(e,n,s);return P(r,h.default,p,a)},async createRefundRequest(e,n,s){let r=await t.createRefundRequest(e,n,s);return P(r,h.default,p,a)},async getPaymentResult(e,n){let s=await t.getPaymentResult(e,n);return P(s,h.default,p,a)},async getTerminalAuthContext(e,n,s){let r=await t.getTerminalAuthContext(e,n,s);return P(r,h.default,p,a)},async getTerminalContext(e,n,s){let r=await t.getTerminalContext(e,n,s);return P(r,h.default,p,a)},async getTerminalState(e,n){let s=await t.getTerminalState(e,n);return P(s,h.default,p,a)},async handleCallback(e){let n=await t.handleCallback(e);return P(n,h.default,p,a)}}},Vr=function(a,t,e){let n=w(a);return{createPaymentRequest(s,r,o){return n.createPaymentRequest(s,r,o).then(i=>i(e,t))},createRefundRequest(s,r,o){return n.createRefundRequest(s,r,o).then(i=>i(e,t))},getPaymentResult(s,r){return n.getPaymentResult(s,r).then(o=>o(e,t))},getTerminalAuthContext(s,r,o){return n.getTerminalAuthContext(s,r,o).then(i=>i(e,t))},getTerminalContext(s,r,o){return n.getTerminalContext(s,r,o).then(i=>i(e,t))},getTerminalState(s,r){return n.getTerminalState(s,r).then(o=>o(e,t))},handleCallback(s){return n.handleCallback(s).then(r=>r(e,t))}}},ze=class extends S{createPaymentRequest(t,e,n){return w(this.configuration).createPaymentRequest(t,e,n).then(s=>s(this.axios,this.basePath))}createRefundRequest(t,e,n){return w(this.configuration).createRefundRequest(t,e,n).then(s=>s(this.axios,this.basePath))}getPaymentResult(t,e){return w(this.configuration).getPaymentResult(t,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(t,e,n){return w(this.configuration).getTerminalAuthContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalContext(t,e,n){return w(this.configuration).getTerminalContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalState(t,e){return w(this.configuration).getTerminalState(t,e).then(n=>n(this.axios,this.basePath))}handleCallback(t){return w(this.configuration).handleCallback(t).then(e=>e(this.axios,this.basePath))}};var tt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}};var Ir={[J.Eur]:2,[J.Aed]:2,[J.Usd]:2,[J.Gbp]:2,BHD:3,JPY:0},Sr={getMultiplier(a){let t=Ir[a.toUpperCase()];return typeof t!="number"?100:Math.round(10**t)}};var ne=me(require("lodash")),st=a=>ne.default.orderBy(a,["rank","id"],["asc","asc"]),vr=a=>{let t=a.subcategories;return Array.isArray(t)?t:[]},Tr=(a,t)=>({...a,colorCode:a.colorCode??t}),jt=(a,t)=>ne.default.compact(a.map(e=>t.get(e))),nt=(a,t)=>a.flatMap(e=>{let n=t[e];return n?[e,...nt(n.childIds,t)]:[]}),rt=(a,t)=>a.flatMap(e=>{let n=t[e];return n?.enabled?[e,...rt(n.childIds,t)]:[]}),Er=a=>{let t=new Map,e={},n={},s=st(a),r=s.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let c=String(u.id);return t.set(c,Tr(u,l)),c});return s.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,c=o(i.products,u),A=(R,b)=>{let O=String(R.id),I=o(R.products,u),V=st(vr(R)).map(E=>A(E,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:b,productIds:I,childIds:V},O},x=st(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:c,subcategoryIds:x}}),{sortedCategories:s,productMap:t,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},Ur=(a,t,e,n)=>{let s=t[a];if(!s)return[];let r=rt(s.subcategoryIds,e),o=ne.default.uniq([...s.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return jt(o,n)},qr=(a,t,e)=>{let n=t[a];if(!n)return[];let s=nt(n.subcategoryIds,e);return ne.default.compact(s.map(r=>e[r]))};var Wt="1.9.3";0&&(module.exports={ABLYEVENT,AblyApi,AblyApiAxiosParamCreator,AblyApiFactory,AblyApiFp,ActionEnum,ActionPasscodesApi,ActionPasscodesApiAxiosParamCreator,ActionPasscodesApiFactory,ActionPasscodesApiFp,ActionsEnum,AuthApi,AuthApiAxiosParamCreator,AuthApiFactory,AuthApiFp,BusinessApi,BusinessApiAxiosParamCreator,BusinessApiFactory,BusinessApiFp,BusinessBackgroundType,BusinessEventAction,BusinessEventType,BusinessPaymentIntegrationType,BusinessStatusEnum,CashLogReason,CashLogType,CashManagementApi,CashManagementApiAxiosParamCreator,CashManagementApiFactory,CashManagementApiFp,CashSessionDtoEnum,CashSessionStatus,ChannelEnum,CheckoutModelEnum,ConditionType,ConfigManagementApi,ConfigManagementApiAxiosParamCreator,ConfigManagementApiFactory,ConfigManagementApiFp,Configuration,ConsumptionType,CurrencyCode,CurrencyCodeEnum,CurrencyRegistry,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,EmployeesApi,EmployeesApiAxiosParamCreator,EmployeesApiFactory,EmployeesApiFp,EntityType,EntityTypeEnum,EventTypeEnum,EventTypeIdEnum,FeeType,GiftcardApi,GiftcardApiAxiosParamCreator,GiftcardApiFactory,GiftcardApiFp,HistoryApi,HistoryApiAxiosParamCreator,HistoryApiFactory,HistoryApiFp,IntegrationType,InvoiceCompaniesApi,InvoiceCompaniesApiAxiosParamCreator,InvoiceCompaniesApiFactory,InvoiceCompaniesApiFp,KDSApi,KDSApiAxiosParamCreator,KDSApiFactory,KDSApiFp,KDSEVENTNAME,KioskEventType,KioskLayout,KiosksApi,KiosksApiAxiosParamCreator,KiosksApiFactory,KiosksApiFp,KitchenItemStatus,KitchenStatus,LocatorType,LoyaltyActionKey,LoyaltyIntegerationsApi,LoyaltyIntegerationsApiAxiosParamCreator,LoyaltyIntegerationsApiFactory,LoyaltyIntegerationsApiFp,MUNCHI_CORE_VERSION,MenuApi,MenuApiAxiosParamCreator,MenuApiFactory,MenuApiFp,MerchantsApi,MerchantsApiAxiosParamCreator,MerchantsApiFactory,MerchantsApiFp,NameEnum,NotificationApi,NotificationApiAxiosParamCreator,NotificationApiFactory,NotificationApiFp,OperatingMode,OperatingModeEnum,OrderFormat,OrderInternalApi,OrderInternalApiAxiosParamCreator,OrderInternalApiFactory,OrderInternalApiFp,OrderMode,OrderRefundStatus,OrderSource,OrderStatus,OrderStatusEnum,OrderType,OrderTypePOS,OrderingCoApi,OrderingCoApiAxiosParamCreator,OrderingCoApiFactory,OrderingCoApiFp,OrdersApi,OrdersApiAxiosParamCreator,OrdersApiFactory,OrdersApiFp,POSSessionApi,POSSessionApiAxiosParamCreator,POSSessionApiFactory,POSSessionApiFp,PaymentApi,PaymentApiAxiosParamCreator,PaymentApiFactory,PaymentApiFp,PaymentEventType,PaymentFailureCode,PaymentMethod,PaymentProvider,PaymentProviderEnum,PaymentStatus,PaymentTypeEnum,PluginApi,PluginApiAxiosParamCreator,PluginApiFactory,PluginApiFp,PosDiscountTargetType,PosDiscountType,PosPaymentStatus,PosPaymentType,PosPermission,PreorderStatus,PrinterTypeEnum,ProductApi,ProductApiAxiosParamCreator,ProductApiFactory,ProductApiFp,ProductAvailability,ProductDetailLayout,ProductDetailLayoutEnum,PromotionDiscountType,ProviderApi,ProviderApiAxiosParamCreator,ProviderApiFactory,ProviderApiFp,ProviderEnum,PubSubAction,PubSubTarget,RefundFailureReasonKey,RefundMode,RefundOverallStatus,RefundStatusEnum,RefundStepStatus,RefundsApi,RefundsApiAxiosParamCreator,RefundsApiFactory,RefundsApiFp,ReportApi,ReportApiAxiosParamCreator,ReportApiFactory,ReportApiFp,ReportLanguage,SYNCKEY,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,SystemProfileType,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,UsersApi,UsersApiAxiosParamCreator,UsersApiFactory,UsersApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WebhookApi,WebhookApiAxiosParamCreator,WebhookApiFactory,WebhookApiFp,WorldlineApi,WorldlineApiAxiosParamCreator,WorldlineApiFactory,WorldlineApiFp,WorldlineAuthorizationMethod,WorldlineAuthorizationResponder,WorldlineEntryMode,WorldlineEventType,WorldlineInternalApi,WorldlineInternalApiAxiosParamCreator,WorldlineInternalApiFactory,WorldlineInternalApiFp,WorldlineOutcomeDescription,WorldlineResponseStatus,WorldlineTransactionOutcome,WorldlineTransactionType,WorldlineVerificationMethod,buildPosCategoryIndex,collectEnabledSubcategoryIdsDepthFirst,collectSubcategoryIdsDepthFirst,getCategoryProductsIncludingSubcategories,getSubcategoriesForCategory,mapProductIdsToProducts});
1
+ var Qt=Object.create;var re=Object.defineProperty;var $t=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Yt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Zt=(a,t)=>{for(var e in t)re(a,e,{get:t[e],enumerable:!0})},it=(a,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Jt.call(a,s)&&s!==e&&re(a,s,{get:()=>t[s],enumerable:!(n=$t(t,s))||n.enumerable});return a};var me=(a,t,e)=>(e=a!=null?Qt(Yt(a)):{},it(t||!a||!a.__esModule?re(e,"default",{value:a,enumerable:!0}):e,a)),Xt=a=>it(re({},"__esModule",{value:!0}),a);var Nr={};Zt(Nr,{ABLYEVENT:()=>es,AblyApi:()=>ye,AblyApiAxiosParamCreator:()=>ut,AblyApiFactory:()=>Yn,AblyApiFp:()=>ae,ActionEnum:()=>ts,ActionPasscodesApi:()=>Pe,ActionPasscodesApiAxiosParamCreator:()=>dt,ActionPasscodesApiFactory:()=>Jn,ActionPasscodesApiFp:()=>Z,ActionsEnum:()=>rn,AuthApi:()=>he,AuthApiAxiosParamCreator:()=>ct,AuthApiFactory:()=>Zn,AuthApiFp:()=>H,BusinessApi:()=>Ae,BusinessApiAxiosParamCreator:()=>pt,BusinessApiFactory:()=>Xn,BusinessApiFp:()=>T,BusinessBackgroundType:()=>rs,BusinessEventAction:()=>as,BusinessEventType:()=>is,BusinessPaymentIntegrationType:()=>ls,BusinessProviderPolicyApi:()=>fe,BusinessProviderPolicyApiAxiosParamCreator:()=>mt,BusinessProviderPolicyApiFactory:()=>er,BusinessProviderPolicyApiFp:()=>Je,BusinessStatusEnum:()=>us,CashLogReason:()=>ds,CashLogType:()=>cs,CashManagementApi:()=>xe,CashManagementApiAxiosParamCreator:()=>gt,CashManagementApiFactory:()=>tr,CashManagementApiFp:()=>N,CashSessionDtoEnum:()=>ps,CashSessionStatus:()=>ms,ChannelEnum:()=>gs,CheckoutModelEnum:()=>ys,ConditionType:()=>Ps,ConfigManagementApi:()=>Re,ConfigManagementApiAxiosParamCreator:()=>yt,ConfigManagementApiFactory:()=>sr,ConfigManagementApiFp:()=>M,Configuration:()=>nt,ConsumptionType:()=>hs,CurrencyCode:()=>J,CurrencyCodeEnum:()=>Nn,CurrencyRegistry:()=>qr,DeliveryStatus:()=>As,DeliveryType:()=>fs,DeviceType:()=>xs,DiscountScope:()=>Rs,DiscountScopeType:()=>bs,DiscountSourceType:()=>Cs,DiscountType:()=>Ds,EmployeesApi:()=>be,EmployeesApiAxiosParamCreator:()=>Pt,EmployeesApiFactory:()=>nr,EmployeesApiFp:()=>Ze,EntityType:()=>Os,EntityTypeEnum:()=>ss,EventTypeEnum:()=>ns,EventTypeIdEnum:()=>Ln,FeeType:()=>Vs,GiftcardApi:()=>Ce,GiftcardApiAxiosParamCreator:()=>ht,GiftcardApiFactory:()=>rr,GiftcardApiFp:()=>ie,HistoryApi:()=>De,HistoryApiAxiosParamCreator:()=>At,HistoryApiFactory:()=>or,HistoryApiFp:()=>G,IntegrationType:()=>Is,InvoiceCompaniesApi:()=>Oe,InvoiceCompaniesApiAxiosParamCreator:()=>ft,InvoiceCompaniesApiFactory:()=>ar,InvoiceCompaniesApiFp:()=>L,KDSApi:()=>Ve,KDSApiAxiosParamCreator:()=>xt,KDSApiFactory:()=>ir,KDSApiFp:()=>Q,KDSEVENTNAME:()=>Ss,KioskEventType:()=>vs,KioskLayout:()=>Ts,KiosksApi:()=>Ie,KiosksApiAxiosParamCreator:()=>Rt,KiosksApiFactory:()=>lr,KiosksApiFp:()=>le,KitchenItemStatus:()=>Es,KitchenStatus:()=>Us,LocatorType:()=>qs,LoyaltyActionKey:()=>Bs,LoyaltyIntegerationsApi:()=>Se,LoyaltyIntegerationsApiAxiosParamCreator:()=>bt,LoyaltyIntegerationsApiFactory:()=>ur,LoyaltyIntegerationsApiFp:()=>F,MUNCHI_CORE_VERSION:()=>Gt,MenuApi:()=>ve,MenuApiAxiosParamCreator:()=>Ct,MenuApiFactory:()=>dr,MenuApiFp:()=>K,MenuTypeEnum:()=>os,MerchantsApi:()=>Te,MerchantsApiAxiosParamCreator:()=>Dt,MerchantsApiFactory:()=>cr,MerchantsApiFp:()=>X,NameEnum:()=>Bn,NotificationApi:()=>Ee,NotificationApiAxiosParamCreator:()=>Ot,NotificationApiFactory:()=>pr,NotificationApiFp:()=>ue,OperatingMode:()=>Ms,OperatingModeEnum:()=>Un,OrderFormat:()=>ks,OrderInternalApi:()=>Ue,OrderInternalApiAxiosParamCreator:()=>Vt,OrderInternalApiFactory:()=>mr,OrderInternalApiFp:()=>Xe,OrderMode:()=>_s,OrderRefundStatus:()=>ws,OrderSource:()=>Ns,OrderStatus:()=>Ls,OrderStatusEnum:()=>Fs,OrderType:()=>js,OrderTypePOS:()=>Ws,OrderingCoApi:()=>qe,OrderingCoApiAxiosParamCreator:()=>It,OrderingCoApiFactory:()=>gr,OrderingCoApiFp:()=>et,OrdersApi:()=>Be,OrdersApiAxiosParamCreator:()=>St,OrdersApiFactory:()=>yr,OrdersApiFp:()=>B,POSSessionApi:()=>Me,POSSessionApiAxiosParamCreator:()=>vt,POSSessionApiFactory:()=>Pr,POSSessionApiFp:()=>de,PaymentApi:()=>ke,PaymentApiAxiosParamCreator:()=>Tt,PaymentApiFactory:()=>hr,PaymentApiFp:()=>q,PaymentEventType:()=>Ks,PaymentFailureCode:()=>Hs,PaymentMethod:()=>Gs,PaymentProvider:()=>Qs,PaymentProviderEnum:()=>$s,PaymentStatus:()=>zs,PaymentTypeEnum:()=>Ys,PluginApi:()=>_e,PluginApiAxiosParamCreator:()=>Et,PluginApiFactory:()=>Ar,PluginApiFp:()=>ce,PosDiscountTargetType:()=>Js,PosDiscountType:()=>Zs,PosPaymentStatus:()=>Xs,PosPaymentType:()=>en,PosPermission:()=>tn,PreorderStatus:()=>sn,PrinterTypeEnum:()=>nn,ProductApi:()=>we,ProductApiAxiosParamCreator:()=>Ut,ProductApiFactory:()=>fr,ProductApiFp:()=>tt,ProductAvailability:()=>on,ProductDetailLayout:()=>an,ProductDetailLayoutEnum:()=>qn,PromotionDiscountType:()=>ln,ProviderApi:()=>Ne,ProviderApiAxiosParamCreator:()=>qt,ProviderApiFactory:()=>xr,ProviderApiFp:()=>ee,ProviderEnum:()=>un,PubSubAction:()=>dn,PubSubTarget:()=>cn,RefundFailureReasonKey:()=>pn,RefundMode:()=>mn,RefundOverallStatus:()=>gn,RefundStatusEnum:()=>yn,RefundStepStatus:()=>Pn,RefundsApi:()=>Le,RefundsApiAxiosParamCreator:()=>Bt,RefundsApiFactory:()=>Rr,RefundsApiFp:()=>_,ReportApi:()=>Fe,ReportApiAxiosParamCreator:()=>Mt,ReportApiFactory:()=>br,ReportApiFp:()=>$,ReportLanguage:()=>hn,SYNCKEY:()=>An,SelectedPaymentProviderEnum:()=>En,ShiftTrackingApi:()=>je,ShiftTrackingApiAxiosParamCreator:()=>kt,ShiftTrackingApiFactory:()=>Cr,ShiftTrackingApiFp:()=>z,SimplePaymentStatus:()=>fn,SourceType:()=>xn,StaffActivityActionType:()=>Rn,StationType:()=>bn,StationsApi:()=>We,StationsApiAxiosParamCreator:()=>_t,StationsApiFactory:()=>Dr,StationsApiFp:()=>te,Status:()=>Cn,SystemProfileType:()=>Dn,TerminalApi:()=>Ke,TerminalApiAxiosParamCreator:()=>wt,TerminalApiFactory:()=>Or,TerminalApiFp:()=>Y,TerminalConnectionType:()=>On,TimeSpan:()=>Vn,TransactionEventType:()=>In,TransactionType:()=>Sn,Type:()=>vn,UpsellMode:()=>Tn,UserApi:()=>He,UserApiAxiosParamCreator:()=>Nt,UserApiFactory:()=>Vr,UserApiFp:()=>se,UsersApi:()=>Ge,UsersApiAxiosParamCreator:()=>Lt,UsersApiFactory:()=>Ir,UsersApiFp:()=>pe,VivaApi:()=>Qe,VivaApiAxiosParamCreator:()=>Ft,VivaApiFactory:()=>Sr,VivaApiFp:()=>st,VivaAppToAppPaymentMethod:()=>Mn,VivaCurrencyCode:()=>kn,VivaErrorId:()=>_n,VivaEventId:()=>wn,WebhookApi:()=>$e,WebhookApiAxiosParamCreator:()=>jt,WebhookApiFactory:()=>vr,WebhookApiFp:()=>U,WorldlineApi:()=>ze,WorldlineApiAxiosParamCreator:()=>Wt,WorldlineApiFactory:()=>Tr,WorldlineApiFp:()=>j,WorldlineAuthorizationMethod:()=>Fn,WorldlineAuthorizationResponder:()=>jn,WorldlineEntryMode:()=>Wn,WorldlineEventType:()=>Kn,WorldlineInternalApi:()=>Ye,WorldlineInternalApiAxiosParamCreator:()=>Kt,WorldlineInternalApiFactory:()=>Er,WorldlineInternalApiFp:()=>w,WorldlineOutcomeDescription:()=>Hn,WorldlineResponseStatus:()=>Gn,WorldlineTransactionOutcome:()=>Qn,WorldlineTransactionType:()=>$n,WorldlineVerificationMethod:()=>zn,buildPosCategoryIndex:()=>kr,collectEnabledSubcategoryIdsDepthFirst:()=>at,collectSubcategoryIdsDepthFirst:()=>ot,getCategoryProductsIncludingSubcategories:()=>_r,getSubcategoriesForCategory:()=>wr,mapProductIdsToProducts:()=>Ht});module.exports=Xt(Nr);var h=me(require("axios"));var lt=me(require("axios")),p="http://localhost".replace(/\/+$/,"");var I=class{constructor(t,e=p,n=lt.default){this.basePath=e;this.axios=n;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},oe=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",d=function(a,t,e){if(e==null)throw new oe(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var D=async function(a,t){if(t&&t.accessToken){let e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;a.Authorization="Bearer "+e}};function ge(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>ge(a,n,e)):Object.keys(t).forEach(n=>ge(a,t[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,t):a.set(e,t))}var g=function(a,...t){let e=new URLSearchParams(a.search);ge(e,t),a.search=e.toString()},f=function(a,t,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,t,e,n){return(s=t,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return s.request(o)}};var es={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},ts={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ss={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ns={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},rs={Image:"image",Video:"video",Animation:"animation"},os={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce"},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={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},hs={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"},As={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},fs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},xs={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Rs={Item:"ITEM",Cart:"CART"},bs={Business:"BUSINESS",Owner:"OWNER"},Cs={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Ds={Percentage:"PERCENTAGE",Fixed:"FIXED"},Os={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Vs={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Is={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS"},Ss={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},vs={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Ts={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Es={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},Us={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},qs={Table:"table",Indicator:"indicator"},Bs={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Ms={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},ks={Open:"OPEN",Instant:"INSTANT"},_s={Instant:"INSTANT",PreOrder:"PRE_ORDER"},ws={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Ns={Platform:"PLATFORM",Pos:"POS"},Ls={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Fs={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"},js={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ws={DineIn:"dine_in",PickUp:"pick_up"},Ks={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},Hs={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"},Gs={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"},Qs={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},$s={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},zs={Paid:"paid",Pending:"pending"},Ys={Cash:"cash",Card:"card"},Js={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Zs={Percentage:"percentage",Fixed:"fixed"},Xs={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},en={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},tn={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"},sn={Waiting:"waiting",Confirm:"confirm"},nn={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},rn={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},on={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},an={Modal:"MODAL",Screen:"SCREEN"},ln={Percentage:"PERCENTAGE",Fixed:"FIXED"},un={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},dn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},cn={Kds:"KDS"},pn={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"},mn={Full:"FULL",Item:"ITEM"},gn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},yn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Pn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},hn={Fi:"fi",En:"en"},An={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"},fn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},xn={Order:"ORDER",Ticket:"TICKET"},Rn={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"},bn={Kiosk:"KIOSK",Pos:"POS"},Cn={Active:"ACTIVE",Inactive:"INACTIVE"},Dn={NoStation:"NO_STATION"},On={Network:"NETWORK"},Vn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},In={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Sn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},vn={Instant:"instant",Preorder:"preorder"},Tn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},En={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Un={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},qn={Modal:"MODAL",Screen:"SCREEN"},Bn={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"},Mn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},kn={_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"},_n={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},wn={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},Nn={_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"},Ln={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Fn={Online:"Online",Offline:"Offline"},jn={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"},Kn={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},Hn={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},Gn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},Qn={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},$n={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},zn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},ut=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ae=function(a){let t=ut(a);return{async refreshConfig(e){let n=await t.refreshConfig(e);return P(n,h.default,p,a)},async requestSettings(e){let n=await t.requestSettings(e);return P(n,h.default,p,a)}}},Yn=function(a,t,e){let n=ae(a);return{refreshConfig(s){return n.refreshConfig(s).then(r=>r(e,t))},requestSettings(s){return n.requestSettings(s).then(r=>r(e,t))}}},ye=class extends I{refreshConfig(t){return ae(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return ae(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},dt=function(a){return{createActionPasscode:async(t,e={})=>{d("createActionPasscode","createActionPasscodeDto",t);let n="/api/v1/action-passcodes",s=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(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},deleteActionPasscode:async(t,e={})=>{d("deleteActionPasscode","id",t);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},updateActionPasscode:async(t,e,n={})=>{d("updateActionPasscode","id",t),d("updateActionPasscode","updateActionPasscodeDto",e);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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 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 t=dt(a);return{async createActionPasscode(e,n){let s=await t.createActionPasscode(e,n);return P(s,h.default,p,a)},async deleteActionPasscode(e,n){let s=await t.deleteActionPasscode(e,n);return P(s,h.default,p,a)},async updateActionPasscode(e,n,s){let r=await t.updateActionPasscode(e,n,s);return P(r,h.default,p,a)}}},Jn=function(a,t,e){let n=Z(a);return{createActionPasscode(s,r){return n.createActionPasscode(s,r).then(o=>o(e,t))},deleteActionPasscode(s,r){return n.deleteActionPasscode(s,r).then(o=>o(e,t))},updateActionPasscode(s,r,o){return n.updateActionPasscode(s,r,o).then(i=>i(e,t))}}},Pe=class extends I{createActionPasscode(t,e){return Z(this.configuration).createActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(t,e){return Z(this.configuration).deleteActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(t,e,n){return Z(this.configuration).updateActionPasscode(t,e,n).then(s=>s(this.axios,this.basePath))}},ct=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},login:async(t,e={})=>{d("login","credentialDto",t);let n="/api/v1/auth/login",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},logout:async(t={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},refreshToken:async(t,e={})=>{d("refreshToken","refreshTokenDto",t);let n="/api/v1/auth/refresh",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},H=function(a){let t=ct(a);return{async firebaseAuth(e){let n=await t.firebaseAuth(e);return P(n,h.default,p,a)},async login(e,n){let s=await t.login(e,n);return P(s,h.default,p,a)},async logout(e){let n=await t.logout(e);return P(n,h.default,p,a)},async refreshToken(e,n){let s=await t.refreshToken(e,n);return P(s,h.default,p,a)}}},Zn=function(a,t,e){let n=H(a);return{firebaseAuth(s){return n.firebaseAuth(s).then(r=>r(e,t))},login(s,r){return n.login(s,r).then(o=>o(e,t))},logout(s){return n.logout(s).then(r=>r(e,t))},refreshToken(s,r){return n.refreshToken(s,r).then(o=>o(e,t))}}},he=class extends I{firebaseAuth(t){return H(this.configuration).firebaseAuth(t).then(e=>e(this.axios,this.basePath))}login(t,e){return H(this.configuration).login(t,e).then(n=>n(this.axios,this.basePath))}logout(t){return H(this.configuration).logout(t).then(e=>e(this.axios,this.basePath))}refreshToken(t,e){return H(this.configuration).refreshToken(t,e).then(n=>n(this.axios,this.basePath))}},pt=function(a){return{createBusinessPermission:async(t,e,n={})=>{d("createBusinessPermission","businessId",t),d("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("deleteBusinessPermission","permissionId",t),d("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getAdvancedDiscounts:async(t,e={})=>{d("getAdvancedDiscounts","businessId",t);let n="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessCategoriesByMenuId:async(t,e,n={})=>{d("getBusinessCategoriesByMenuId","businessId",t),d("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("getBusinessCategoriesByMenuIdV2","businessId",t),d("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("getBusinessCategoriesByMenuIdV3","businessId",t),d("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let s="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(t,e,n={})=>{d("getBusinessChannelConfigV2","businessId",t);let s="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfig:async(t,e,n={})=>{d("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigById:async(t,e,n={})=>{d("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(t,e,n={})=>{d("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfiguration:async(t,e,n={})=>{d("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByType:async(t,e,n={})=>{d("getBusinessMenuByType","businessId",t),d("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{d("getBusinessMenuByTypeV2","businessId",t),d("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{d("getBusinessMenuByTypeV3","businessId",t),d("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{d("getBusinessMenuByTypeV4","businessId",t),d("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e={})=>{d("getBusinessProviderStatus","businessId",t);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessProviderStatusExternal:async(t,e,n={})=>{d("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessTax:async(t={})=>{let e="/api/v1/business/tax",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(t,e={})=>{d("getProvidersSupportedIntegrations","businessIds",t);let n="/api/v1/business/providers/supported-integrations",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSingleBusinessProviderStatus:async(t,e,n,s={})=>{d("getSingleBusinessProviderStatus","businessId",t),d("getSingleBusinessProviderStatus","provider",e),d("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={},c={};await D(u,a),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{d("getUnifiedDiscounts","businessId",t);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},setBusinessStatus:async(t,e,n={})=>{d("setBusinessStatus","businessId",t),d("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n={})=>{d("setBusinessStatusSchedule","businessId",t),d("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("updateBusinessPermission","permissionId",t),d("updateBusinessPermission","businessId",e),d("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},c={};await D(u,a),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},validateBusiness:async(t,e={})=>{d("validateBusiness","businessId",t);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},T=function(a){let t=pt(a);return{async createBusinessPermission(e,n,s){let r=await t.createBusinessPermission(e,n,s);return P(r,h.default,p,a)},async deleteBusinessPermission(e,n,s){let r=await t.deleteBusinessPermission(e,n,s);return P(r,h.default,p,a)},async getAdvancedDiscounts(e,n){let s=await t.getAdvancedDiscounts(e,n);return P(s,h.default,p,a)},async getBusinessCategoriesByMenuId(e,n,s){let r=await t.getBusinessCategoriesByMenuId(e,n,s);return P(r,h.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV2(e,n,s);return P(r,h.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV3(e,n,s);return P(r,h.default,p,a)},async getBusinessChannelConfig(e,n,s){let r=await t.getBusinessChannelConfig(e,n,s);return P(r,h.default,p,a)},async getBusinessChannelConfigV2(e,n,s){let r=await t.getBusinessChannelConfigV2(e,n,s);return P(r,h.default,p,a)},async getBusinessConfig(e,n,s){let r=await t.getBusinessConfig(e,n,s);return P(r,h.default,p,a)},async getBusinessConfigById(e,n,s){let r=await t.getBusinessConfigById(e,n,s);return P(r,h.default,p,a)},async getBusinessConfigByIdV2(e,n,s){let r=await t.getBusinessConfigByIdV2(e,n,s);return P(r,h.default,p,a)},async getBusinessConfiguration(e,n,s){let r=await t.getBusinessConfiguration(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByType(e,n,s){let r=await t.getBusinessMenuByType(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByTypeV2(e,n,s){let r=await t.getBusinessMenuByTypeV2(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByTypeV3(e,n,s){let r=await t.getBusinessMenuByTypeV3(e,n,s);return P(r,h.default,p,a)},async getBusinessMenuByTypeV4(e,n,s){let r=await t.getBusinessMenuByTypeV4(e,n,s);return P(r,h.default,p,a)},async getBusinessProviderStatus(e,n){let s=await t.getBusinessProviderStatus(e,n);return P(s,h.default,p,a)},async getBusinessProviderStatusExternal(e,n,s){let r=await t.getBusinessProviderStatusExternal(e,n,s);return P(r,h.default,p,a)},async getBusinessTax(e){let n=await t.getBusinessTax(e);return P(n,h.default,p,a)},async getProvidersSupportedIntegrations(e,n){let s=await t.getProvidersSupportedIntegrations(e,n);return P(s,h.default,p,a)},async getSingleBusinessProviderStatus(e,n,s,r){let o=await t.getSingleBusinessProviderStatus(e,n,s,r);return P(o,h.default,p,a)},async getUnifiedDiscounts(e,n){let s=await t.getUnifiedDiscounts(e,n);return P(s,h.default,p,a)},async setBusinessStatus(e,n,s){let r=await t.setBusinessStatus(e,n,s);return P(r,h.default,p,a)},async setBusinessStatusSchedule(e,n,s){let r=await t.setBusinessStatusSchedule(e,n,s);return P(r,h.default,p,a)},async updateBusinessPermission(e,n,s,r){let o=await t.updateBusinessPermission(e,n,s,r);return P(o,h.default,p,a)},async validateBusiness(e,n){let s=await t.validateBusiness(e,n);return P(s,h.default,p,a)}}},Xn=function(a,t,e){let n=T(a);return{createBusinessPermission(s,r,o){return n.createBusinessPermission(s,r,o).then(i=>i(e,t))},deleteBusinessPermission(s,r,o){return n.deleteBusinessPermission(s,r,o).then(i=>i(e,t))},getAdvancedDiscounts(s,r){return n.getAdvancedDiscounts(s,r).then(o=>o(e,t))},getBusinessCategoriesByMenuId(s,r,o){return n.getBusinessCategoriesByMenuId(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,r,o){return n.getBusinessCategoriesByMenuIdV2(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV3(s,r,o){return n.getBusinessCategoriesByMenuIdV3(s,r,o).then(i=>i(e,t))},getBusinessChannelConfig(s,r,o){return n.getBusinessChannelConfig(s,r,o).then(i=>i(e,t))},getBusinessChannelConfigV2(s,r,o){return n.getBusinessChannelConfigV2(s,r,o).then(i=>i(e,t))},getBusinessConfig(s,r,o){return n.getBusinessConfig(s,r,o).then(i=>i(e,t))},getBusinessConfigById(s,r,o){return n.getBusinessConfigById(s,r,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,r,o){return n.getBusinessConfigByIdV2(s,r,o).then(i=>i(e,t))},getBusinessConfiguration(s,r,o){return n.getBusinessConfiguration(s,r,o).then(i=>i(e,t))},getBusinessMenuByType(s,r,o){return n.getBusinessMenuByType(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,r,o){return n.getBusinessMenuByTypeV2(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,r,o){return n.getBusinessMenuByTypeV3(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,r,o){return n.getBusinessMenuByTypeV4(s,r,o).then(i=>i(e,t))},getBusinessProviderStatus(s,r){return n.getBusinessProviderStatus(s,r).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,r,o){return n.getBusinessProviderStatusExternal(s,r,o).then(i=>i(e,t))},getBusinessTax(s){return n.getBusinessTax(s).then(r=>r(e,t))},getProvidersSupportedIntegrations(s,r){return n.getProvidersSupportedIntegrations(s,r).then(o=>o(e,t))},getSingleBusinessProviderStatus(s,r,o,i){return n.getSingleBusinessProviderStatus(s,r,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,r){return n.getUnifiedDiscounts(s,r).then(o=>o(e,t))},setBusinessStatus(s,r,o){return n.setBusinessStatus(s,r,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,r,o){return n.setBusinessStatusSchedule(s,r,o).then(i=>i(e,t))},updateBusinessPermission(s,r,o,i){return n.updateBusinessPermission(s,r,o,i).then(l=>l(e,t))},validateBusiness(s,r){return n.validateBusiness(s,r).then(o=>o(e,t))}}},Ae=class extends I{createBusinessPermission(t,e,n){return T(this.configuration).createBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,n){return T(this.configuration).deleteBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}getAdvancedDiscounts(t,e){return T(this.configuration).getAdvancedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,n){return T(this.configuration).getBusinessChannelConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfigV2(t,e,n){return T(this.configuration).getBusinessChannelConfigV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,n){return T(this.configuration).getBusinessConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,n){return T(this.configuration).getBusinessConfigById(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,n){return T(this.configuration).getBusinessConfigByIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,n){return T(this.configuration).getBusinessConfiguration(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,n){return T(this.configuration).getBusinessMenuByType(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,n){return T(this.configuration).getBusinessMenuByTypeV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,n){return T(this.configuration).getBusinessMenuByTypeV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,n){return T(this.configuration).getBusinessMenuByTypeV4(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return T(this.configuration).getBusinessProviderStatus(t,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,n){return T(this.configuration).getBusinessProviderStatusExternal(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessTax(t){return T(this.configuration).getBusinessTax(t).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(t,e){return T(this.configuration).getProvidersSupportedIntegrations(t,e).then(n=>n(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,n,s){return T(this.configuration).getSingleBusinessProviderStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return T(this.configuration).getUnifiedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(t,e,n){return T(this.configuration).setBusinessStatus(t,e,n).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,n){return T(this.configuration).setBusinessStatusSchedule(t,e,n).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,n,s){return T(this.configuration).updateBusinessPermission(t,e,n,s).then(r=>r(this.axios,this.basePath))}validateBusiness(t,e){return T(this.configuration).validateBusiness(t,e).then(n=>n(this.axios,this.basePath))}},mt=function(a){return{updatePosGlobalSettings:async(t,e,n={})=>{d("updatePosGlobalSettings","businessId",t),d("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let s="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=f(e,i,a),{url:y(r),options:i}}}},Je=function(a){let t=mt(a);return{async updatePosGlobalSettings(e,n,s){let r=await t.updatePosGlobalSettings(e,n,s);return P(r,h.default,p,a)}}},er=function(a,t,e){let n=Je(a);return{updatePosGlobalSettings(s,r,o){return n.updatePosGlobalSettings(s,r,o).then(i=>i(e,t))}}},fe=class extends I{updatePosGlobalSettings(t,e,n){return Je(this.configuration).updatePosGlobalSettings(t,e,n).then(s=>s(this.axios,this.basePath))}},gt=function(a){return{create:async(t,e,n={})=>{d("create","businessId",t),d("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n,s,r,o,i,l={})=>{d("getCashLogs","businessId",t),d("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(t))),c=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},b={};n!==void 0&&(b.timeSpan=n),s!==void 0&&(b.start=s),r!==void 0&&(b.end=r),o!==void 0&&(b.page=o),i!==void 0&&(b.rowPerPage=i),e!==void 0&&(b.timezone=e),g(c,b);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(c),options:x}},getCashSession:async(t,e={})=>{d("getCashSession","businessId",t);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSessionReport:async(t,e,n={})=>{d("getSessionReport","businessId",t),d("getSessionReport","sessionId",e);let s="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(s,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(t,e,n={})=>{d("recordCashLog","businessId",t),d("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n,s={})=>{d("sendSessionReport","businessId",t),d("sendSessionReport","sessionId",e),d("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},N=function(a){let t=gt(a);return{async create(e,n,s){let r=await t.create(e,n,s);return P(r,h.default,p,a)},async getCashLogs(e,n,s,r,o,i,l,u){let c=await t.getCashLogs(e,n,s,r,o,i,l,u);return P(c,h.default,p,a)},async getCashSession(e,n){let s=await t.getCashSession(e,n);return P(s,h.default,p,a)},async getSessionReport(e,n,s){let r=await t.getSessionReport(e,n,s);return P(r,h.default,p,a)},async recordCashLog(e,n,s){let r=await t.recordCashLog(e,n,s);return P(r,h.default,p,a)},async sendSessionReport(e,n,s,r){let o=await t.sendSessionReport(e,n,s,r);return P(o,h.default,p,a)}}},tr=function(a,t,e){let n=N(a);return{create(s,r,o){return n.create(s,r,o).then(i=>i(e,t))},getCashLogs(s,r,o,i,l,u,c,A){return n.getCashLogs(s,r,o,i,l,u,c,A).then(x=>x(e,t))},getCashSession(s,r){return n.getCashSession(s,r).then(o=>o(e,t))},getSessionReport(s,r,o){return n.getSessionReport(s,r,o).then(i=>i(e,t))},recordCashLog(s,r,o){return n.recordCashLog(s,r,o).then(i=>i(e,t))},sendSessionReport(s,r,o,i){return n.sendSessionReport(s,r,o,i).then(l=>l(e,t))}}},xe=class extends I{create(t,e,n){return N(this.configuration).create(t,e,n).then(s=>s(this.axios,this.basePath))}getCashLogs(t,e,n,s,r,o,i,l){return N(this.configuration).getCashLogs(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(t,e){return N(this.configuration).getCashSession(t,e).then(n=>n(this.axios,this.basePath))}getSessionReport(t,e,n){return N(this.configuration).getSessionReport(t,e,n).then(s=>s(this.axios,this.basePath))}recordCashLog(t,e,n){return N(this.configuration).recordCashLog(t,e,n).then(s=>s(this.axios,this.basePath))}sendSessionReport(t,e,n,s){return N(this.configuration).sendSessionReport(t,e,n,s).then(r=>r(this.axios,this.basePath))}},yt=function(a){return{configManualSync:async(t,e,n={})=>{d("configManualSync","businessId",t),d("configManualSync","manualSyncDto",e);let s="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("configRemovePaymentOption","businessId",t),d("configRemovePaymentOption","id",e),d("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={},c={};await D(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,...s.headers},{url:y(o),options:l}},configUpsertBusiness:async(t,e,n={})=>{d("configUpsertBusiness","businessId",t),d("configUpsertBusiness","upsertBusinessDto",e);let s="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("configUpsertChannelConfig","businessId",t),d("configUpsertChannelConfig","xAppX",e),d("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(t,e,n,s={})=>{d("configUpsertGiftCard","businessId",t),d("configUpsertGiftCard","xAppX",e),d("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(t,e,n={})=>{d("configUpsertLoyalty","businessId",t),d("configUpsertLoyalty","upsertLoyaltyDto",e);let s="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e,n,s={})=>{d("configUpsertNets","businessId",t),d("configUpsertNets","xAppX",e),d("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(t,e,n,s={})=>{d("configUpsertPaymentOptions","businessId",t),d("configUpsertPaymentOptions","xAppX",e),d("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(t,e,n,s={})=>{d("configUpsertStripe","businessId",t),d("configUpsertStripe","xAppX",e),d("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},configUpsertViva:async(t,e,n,s={})=>{d("configUpsertViva","businessId",t),d("configUpsertViva","xAppX",e),d("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},M=function(a){let t=yt(a);return{async configManualSync(e,n,s){let r=await t.configManualSync(e,n,s);return P(r,h.default,p,a)},async configRemovePaymentOption(e,n,s,r){let o=await t.configRemovePaymentOption(e,n,s,r);return P(o,h.default,p,a)},async configUpsertBusiness(e,n,s){let r=await t.configUpsertBusiness(e,n,s);return P(r,h.default,p,a)},async configUpsertChannelConfig(e,n,s,r){let o=await t.configUpsertChannelConfig(e,n,s,r);return P(o,h.default,p,a)},async configUpsertGiftCard(e,n,s,r){let o=await t.configUpsertGiftCard(e,n,s,r);return P(o,h.default,p,a)},async configUpsertLoyalty(e,n,s){let r=await t.configUpsertLoyalty(e,n,s);return P(r,h.default,p,a)},async configUpsertNets(e,n,s,r){let o=await t.configUpsertNets(e,n,s,r);return P(o,h.default,p,a)},async configUpsertPaymentOptions(e,n,s,r){let o=await t.configUpsertPaymentOptions(e,n,s,r);return P(o,h.default,p,a)},async configUpsertStripe(e,n,s,r){let o=await t.configUpsertStripe(e,n,s,r);return P(o,h.default,p,a)},async configUpsertViva(e,n,s,r){let o=await t.configUpsertViva(e,n,s,r);return P(o,h.default,p,a)}}},sr=function(a,t,e){let n=M(a);return{configManualSync(s,r,o){return n.configManualSync(s,r,o).then(i=>i(e,t))},configRemovePaymentOption(s,r,o,i){return n.configRemovePaymentOption(s,r,o,i).then(l=>l(e,t))},configUpsertBusiness(s,r,o){return n.configUpsertBusiness(s,r,o).then(i=>i(e,t))},configUpsertChannelConfig(s,r,o,i){return n.configUpsertChannelConfig(s,r,o,i).then(l=>l(e,t))},configUpsertGiftCard(s,r,o,i){return n.configUpsertGiftCard(s,r,o,i).then(l=>l(e,t))},configUpsertLoyalty(s,r,o){return n.configUpsertLoyalty(s,r,o).then(i=>i(e,t))},configUpsertNets(s,r,o,i){return n.configUpsertNets(s,r,o,i).then(l=>l(e,t))},configUpsertPaymentOptions(s,r,o,i){return n.configUpsertPaymentOptions(s,r,o,i).then(l=>l(e,t))},configUpsertStripe(s,r,o,i){return n.configUpsertStripe(s,r,o,i).then(l=>l(e,t))},configUpsertViva(s,r,o,i){return n.configUpsertViva(s,r,o,i).then(l=>l(e,t))}}},Re=class extends I{configManualSync(t,e,n){return M(this.configuration).configManualSync(t,e,n).then(s=>s(this.axios,this.basePath))}configRemovePaymentOption(t,e,n,s){return M(this.configuration).configRemovePaymentOption(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(t,e,n){return M(this.configuration).configUpsertBusiness(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertChannelConfig(t,e,n,s){return M(this.configuration).configUpsertChannelConfig(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(t,e,n,s){return M(this.configuration).configUpsertGiftCard(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(t,e,n){return M(this.configuration).configUpsertLoyalty(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertNets(t,e,n,s){return M(this.configuration).configUpsertNets(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(t,e,n,s){return M(this.configuration).configUpsertPaymentOptions(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertStripe(t,e,n,s){return M(this.configuration).configUpsertStripe(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertViva(t,e,n,s){return M(this.configuration).configUpsertViva(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Pt=function(a){return{createAssignment:async(t,e,n={})=>{d("createAssignment","businessId",t),d("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 t=Pt(a);return{async createAssignment(e,n,s){let r=await t.createAssignment(e,n,s);return P(r,h.default,p,a)}}},nr=function(a,t,e){let n=Ze(a);return{createAssignment(s,r,o){return n.createAssignment(s,r,o).then(i=>i(e,t))}}},be=class extends I{createAssignment(t,e,n){return Ze(this.configuration).createAssignment(t,e,n).then(s=>s(this.axios,this.basePath))}},ht=function(a){return{redeemGiftCard:async(t,e={})=>{d("redeemGiftCard","redeemGiftCardDto",t);let n="/api/v1/giftcard/redeem",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},validateGiftCard:async(t,e={})=>{d("validateGiftCard","validateGiftCardDto",t);let n="/api/v1/giftcard/validate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},ie=function(a){let t=ht(a);return{async redeemGiftCard(e,n){let s=await t.redeemGiftCard(e,n);return P(s,h.default,p,a)},async validateGiftCard(e,n){let s=await t.validateGiftCard(e,n);return P(s,h.default,p,a)}}},rr=function(a,t,e){let n=ie(a);return{redeemGiftCard(s,r){return n.redeemGiftCard(s,r).then(o=>o(e,t))},validateGiftCard(s,r){return n.validateGiftCard(s,r).then(o=>o(e,t))}}},Ce=class extends I{redeemGiftCard(t,e){return ie(this.configuration).redeemGiftCard(t,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(t,e){return ie(this.configuration).validateGiftCard(t,e).then(n=>n(this.axios,this.basePath))}},At=function(a){return{getInternalOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getInternalOrderHistoryOnline","businessIds",t);let S="/api/v1/history/internal/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getOrderHistoryOnline","businessIds",t);let S="/api/v1/history/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getOrderHistoryPOSV5","businessIds",t);let S="/api/v5/history/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O={})=>{d("getOrderHistoryPOSV5Internal","businessIds",t);let S="/api/v5/history/internal/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),A&&(C.orderType=A),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}}}},G=function(a){let t=At(a);return{async getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S){let v=await t.getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S);return P(v,h.default,p,a)},async getOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S){let v=await t.getOrderHistoryOnline(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S);return P(v,h.default,p,a)},async getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S){let v=await t.getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S);return P(v,h.default,p,a)},async getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S){let v=await t.getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,c,A,x,R,b,O,S);return P(v,h.default,p,a)}}},or=function(a,t,e){let n=G(a);return{getInternalOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V){return n.getInternalOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V){return n.getOrderHistoryOnline(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5Internal(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5Internal(s,r,o,i,l,u,c,A,x,R,b,O,S,v,V).then(E=>E(e,t))}}},De=class extends I{getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O){return G(this.configuration).getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,c,A,x,R,b,O).then(S=>S(this.axios,this.basePath))}},ft=function(a){return{createInvoiceCompany:async(t,e,n={})=>{d("createInvoiceCompany","businessId",t),d("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),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(t,e,n={})=>{d("deleteInvoiceCompany","id",t),d("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getInvoiceCompanies","businessId",t);let n="/api/v1/invoice-companies",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getInvoiceCompanyById:async(t,e,n={})=>{d("getInvoiceCompanyById","id",t),d("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),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(t,e,n,s={})=>{d("updateInvoiceCompany","id",t),d("updateInvoiceCompany","businessId",e),d("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},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,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},L=function(a){let t=ft(a);return{async createInvoiceCompany(e,n,s){let r=await t.createInvoiceCompany(e,n,s);return P(r,h.default,p,a)},async deleteInvoiceCompany(e,n,s){let r=await t.deleteInvoiceCompany(e,n,s);return P(r,h.default,p,a)},async getInvoiceCompanies(e,n){let s=await t.getInvoiceCompanies(e,n);return P(s,h.default,p,a)},async getInvoiceCompanyById(e,n,s){let r=await t.getInvoiceCompanyById(e,n,s);return P(r,h.default,p,a)},async searchInvoiceCompanies(e,n,s){let r=await t.searchInvoiceCompanies(e,n,s);return P(r,h.default,p,a)},async updateInvoiceCompany(e,n,s,r){let o=await t.updateInvoiceCompany(e,n,s,r);return P(o,h.default,p,a)}}},ar=function(a,t,e){let n=L(a);return{createInvoiceCompany(s,r,o){return n.createInvoiceCompany(s,r,o).then(i=>i(e,t))},deleteInvoiceCompany(s,r,o){return n.deleteInvoiceCompany(s,r,o).then(i=>i(e,t))},getInvoiceCompanies(s,r){return n.getInvoiceCompanies(s,r).then(o=>o(e,t))},getInvoiceCompanyById(s,r,o){return n.getInvoiceCompanyById(s,r,o).then(i=>i(e,t))},searchInvoiceCompanies(s,r,o){return n.searchInvoiceCompanies(s,r,o).then(i=>i(e,t))},updateInvoiceCompany(s,r,o,i){return n.updateInvoiceCompany(s,r,o,i).then(l=>l(e,t))}}},Oe=class extends I{createInvoiceCompany(t,e,n){return L(this.configuration).createInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,n){return L(this.configuration).deleteInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return L(this.configuration).getInvoiceCompanies(t,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(t,e,n){return L(this.configuration).getInvoiceCompanyById(t,e,n).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,n){return L(this.configuration).searchInvoiceCompanies(t,e,n).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,n,s){return L(this.configuration).updateInvoiceCompany(t,e,n,s).then(r=>r(this.axios,this.basePath))}},xt=function(a){return{kdsGetOrders:async(t,e,n,s,r,o,i,l,u,c,A,x={})=>{d("kdsGetOrders","status",t),d("kdsGetOrders","businessIds",e),d("kdsGetOrders","profileId",n);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(t))),b=new URL(R,m),O;a&&(O=a.baseOptions);let S={method:"GET",...O,...x},v={},V={};await D(v,a),e!==void 0&&(V.businessIds=e),n!==void 0&&(V.profileId=n),s!==void 0&&(V.page=s),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),c&&(V.provider=c),A&&(V.consumptionType=A),g(b,V);let E=O&&O.headers?O.headers:{};return S.headers={...v,...E,...x.headers},{url:y(b),options:S}},kdsGetProfiles:async(t,e={})=>{d("kdsGetProfiles","businessId",t);let n="/api/v1/kds/profiles",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsMarkOrderReady:async(t,e={})=>{d("kdsMarkOrderReady","id",t);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsRevertOrder:async(t,e={})=>{d("kdsRevertOrder","id",t);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},Q=function(a){let t=xt(a);return{async kdsGetOrders(e,n,s,r,o,i,l,u,c,A,x,R){let b=await t.kdsGetOrders(e,n,s,r,o,i,l,u,c,A,x,R);return P(b,h.default,p,a)},async kdsGetProfiles(e,n){let s=await t.kdsGetProfiles(e,n);return P(s,h.default,p,a)},async kdsMarkOrderReady(e,n){let s=await t.kdsMarkOrderReady(e,n);return P(s,h.default,p,a)},async kdsRevertOrder(e,n){let s=await t.kdsRevertOrder(e,n);return P(s,h.default,p,a)}}},ir=function(a,t,e){let n=Q(a);return{kdsGetOrders(s,r,o,i,l,u,c,A,x,R,b,O){return n.kdsGetOrders(s,r,o,i,l,u,c,A,x,R,b,O).then(S=>S(e,t))},kdsGetProfiles(s,r){return n.kdsGetProfiles(s,r).then(o=>o(e,t))},kdsMarkOrderReady(s,r){return n.kdsMarkOrderReady(s,r).then(o=>o(e,t))},kdsRevertOrder(s,r){return n.kdsRevertOrder(s,r).then(o=>o(e,t))}}},Ve=class extends I{kdsGetOrders(t,e,n,s,r,o,i,l,u,c,A,x){return Q(this.configuration).kdsGetOrders(t,e,n,s,r,o,i,l,u,c,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(t,e){return Q(this.configuration).kdsGetProfiles(t,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(t,e){return Q(this.configuration).kdsMarkOrderReady(t,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(t,e){return Q(this.configuration).kdsRevertOrder(t,e).then(n=>n(this.axios,this.basePath))}},Rt=function(a){return{getOrderStatus:async(t,e,n={})=>{d("getOrderStatus","orderId",t),d("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,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(t,e,n={})=>{d("validate","terminalId",t),d("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.terminalId=t),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 t=Rt(a);return{async getOrderStatus(e,n,s){let r=await t.getOrderStatus(e,n,s);return P(r,h.default,p,a)},async validate(e,n,s){let r=await t.validate(e,n,s);return P(r,h.default,p,a)}}},lr=function(a,t,e){let n=le(a);return{getOrderStatus(s,r,o){return n.getOrderStatus(s,r,o).then(i=>i(e,t))},validate(s,r,o){return n.validate(s,r,o).then(i=>i(e,t))}}},Ie=class extends I{getOrderStatus(t,e,n){return le(this.configuration).getOrderStatus(t,e,n).then(s=>s(this.axios,this.basePath))}validate(t,e,n){return le(this.configuration).validate(t,e,n).then(s=>s(this.axios,this.basePath))}},bt=function(a){return{createLoyaltyUser:async(t,e,n={})=>{d("createLoyaltyUser","businessId",t),d("createLoyaltyUser","createLoyaltyProgramUserDto",e);let s="/api/v1/loyalty/users/create",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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}},getAdminTransactions:async(t,e,n,s={})=>{d("getAdminTransactions","businessId",t);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};await D(u,a),t!==void 0&&(c.businessId=t),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,...s.headers},{url:y(o),options:l}},getLoyaltyInfo:async(t,e={})=>{d("getLoyaltyInfo","businessId",t);let n="/api/v1/loyalty/info",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getUserById:async(t,e,n={})=>{d("getUserById","businessId",t),d("getUserById","userId",e);let s="/api/v1/loyalty/users/info",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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(t,e,n,s,r={})=>{d("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};await D(c,a),e!==void 0&&(A.phone=e),n!==void 0&&(A.country_code=n),s!==void 0&&(A.email=s),t!==void 0&&(A.businessId=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(t,e,n={})=>{d("updatePoints","businessId",t),d("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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}}}},F=function(a){let t=bt(a);return{async createLoyaltyUser(e,n,s){let r=await t.createLoyaltyUser(e,n,s);return P(r,h.default,p,a)},async getAdminTransactions(e,n,s,r){let o=await t.getAdminTransactions(e,n,s,r);return P(o,h.default,p,a)},async getLoyaltyInfo(e,n){let s=await t.getLoyaltyInfo(e,n);return P(s,h.default,p,a)},async getUserById(e,n,s){let r=await t.getUserById(e,n,s);return P(r,h.default,p,a)},async searchUser(e,n,s,r,o){let i=await t.searchUser(e,n,s,r,o);return P(i,h.default,p,a)},async updatePoints(e,n,s){let r=await t.updatePoints(e,n,s);return P(r,h.default,p,a)}}},ur=function(a,t,e){let n=F(a);return{createLoyaltyUser(s,r,o){return n.createLoyaltyUser(s,r,o).then(i=>i(e,t))},getAdminTransactions(s,r,o,i){return n.getAdminTransactions(s,r,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,r){return n.getLoyaltyInfo(s,r).then(o=>o(e,t))},getUserById(s,r,o){return n.getUserById(s,r,o).then(i=>i(e,t))},searchUser(s,r,o,i,l){return n.searchUser(s,r,o,i,l).then(u=>u(e,t))},updatePoints(s,r,o){return n.updatePoints(s,r,o).then(i=>i(e,t))}}},Se=class extends I{createLoyaltyUser(t,e,n){return F(this.configuration).createLoyaltyUser(t,e,n).then(s=>s(this.axios,this.basePath))}getAdminTransactions(t,e,n,s){return F(this.configuration).getAdminTransactions(t,e,n,s).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(t,e){return F(this.configuration).getLoyaltyInfo(t,e).then(n=>n(this.axios,this.basePath))}getUserById(t,e,n){return F(this.configuration).getUserById(t,e,n).then(s=>s(this.axios,this.basePath))}searchUser(t,e,n,s,r){return F(this.configuration).searchUser(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,n){return F(this.configuration).updatePoints(t,e,n).then(s=>s(this.axios,this.basePath))}},Ct=function(a){return{editBusinessProduct:async(t,e,n={})=>{d("editBusinessProduct","businessId",t),d("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("editBusinessProductV2","businessId",t),d("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getBusinessExtras","businessId",t);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getProductsByCategoriesV2:async(t,e,n={})=>{d("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("resetProductEod","resetEodDto",t);let n="/api/v1/menu/availability/reset-eod",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},K=function(a){let t=Ct(a);return{async editBusinessProduct(e,n,s){let r=await t.editBusinessProduct(e,n,s);return P(r,h.default,p,a)},async editBusinessProductV2(e,n,s){let r=await t.editBusinessProductV2(e,n,s);return P(r,h.default,p,a)},async getBusinessExtras(e,n){let s=await t.getBusinessExtras(e,n);return P(s,h.default,p,a)},async getProductsByCategoriesV2(e,n,s){let r=await t.getProductsByCategoriesV2(e,n,s);return P(r,h.default,p,a)},async resetProductEod(e,n){let s=await t.resetProductEod(e,n);return P(s,h.default,p,a)}}},dr=function(a,t,e){let n=K(a);return{editBusinessProduct(s,r,o){return n.editBusinessProduct(s,r,o).then(i=>i(e,t))},editBusinessProductV2(s,r,o){return n.editBusinessProductV2(s,r,o).then(i=>i(e,t))},getBusinessExtras(s,r){return n.getBusinessExtras(s,r).then(o=>o(e,t))},getProductsByCategoriesV2(s,r,o){return n.getProductsByCategoriesV2(s,r,o).then(i=>i(e,t))},resetProductEod(s,r){return n.resetProductEod(s,r).then(o=>o(e,t))}}},ve=class extends I{editBusinessProduct(t,e,n){return K(this.configuration).editBusinessProduct(t,e,n).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,n){return K(this.configuration).editBusinessProductV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return K(this.configuration).getBusinessExtras(t,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,n){return K(this.configuration).getProductsByCategoriesV2(t,e,n).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return K(this.configuration).resetProductEod(t,e).then(n=>n(this.axios,this.basePath))}},Dt=function(a){return{addBusinessesToMerchant:async(t,e,n={})=>{d("addBusinessesToMerchant","merchantId",t),d("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let s="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(t))),r=new URL(s,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 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(t,e={})=>{d("createMerchant","createMerchantDto",t);let n="/api/v1/merchants",s=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(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},removeBusinessFromMerchant:async(t,e,n={})=>{d("removeBusinessFromMerchant","merchantId",t),d("removeBusinessFromMerchant","businessId",e);let s="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}}}},X=function(a){let t=Dt(a);return{async addBusinessesToMerchant(e,n,s){let r=await t.addBusinessesToMerchant(e,n,s);return P(r,h.default,p,a)},async createMerchant(e,n){let s=await t.createMerchant(e,n);return P(s,h.default,p,a)},async removeBusinessFromMerchant(e,n,s){let r=await t.removeBusinessFromMerchant(e,n,s);return P(r,h.default,p,a)}}},cr=function(a,t,e){let n=X(a);return{addBusinessesToMerchant(s,r,o){return n.addBusinessesToMerchant(s,r,o).then(i=>i(e,t))},createMerchant(s,r){return n.createMerchant(s,r).then(o=>o(e,t))},removeBusinessFromMerchant(s,r,o){return n.removeBusinessFromMerchant(s,r,o).then(i=>i(e,t))}}},Te=class extends I{addBusinessesToMerchant(t,e,n){return X(this.configuration).addBusinessesToMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}createMerchant(t,e){return X(this.configuration).createMerchant(t,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(t,e,n){return X(this.configuration).removeBusinessFromMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}},Ot=function(a){return{addVenueSubscriptionsV2:async(t,e={})=>{d("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/add-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{d("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/remove-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},ue=function(a){let t=Ot(a);return{async addVenueSubscriptionsV2(e,n){let s=await t.addVenueSubscriptionsV2(e,n);return P(s,h.default,p,a)},async removeVenueSubscriptionsV2(e,n){let s=await t.removeVenueSubscriptionsV2(e,n);return P(s,h.default,p,a)}}},pr=function(a,t,e){let n=ue(a);return{addVenueSubscriptionsV2(s,r){return n.addVenueSubscriptionsV2(s,r).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,r){return n.removeVenueSubscriptionsV2(s,r).then(o=>o(e,t))}}},Ee=class extends I{addVenueSubscriptionsV2(t,e){return ue(this.configuration).addVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return ue(this.configuration).removeVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}},Vt=function(a){return{findOneByExternalId:async(t,e={})=>{d("findOneByExternalId","externalId",t);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},Xe=function(a){let t=Vt(a);return{async findOneByExternalId(e,n){let s=await t.findOneByExternalId(e,n);return P(s,h.default,p,a)}}},mr=function(a,t,e){let n=Xe(a);return{findOneByExternalId(s,r){return n.findOneByExternalId(s,r).then(o=>o(e,t))}}},Ue=class extends I{findOneByExternalId(t,e){return Xe(this.configuration).findOneByExternalId(t,e).then(n=>n(this.axios,this.basePath))}},It=function(a){return{updateTaxRate:async(t,e={})=>{d("updateTaxRate","body",t);let n="/api/v1/ordering/update-tax-rate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},et=function(a){let t=It(a);return{async updateTaxRate(e,n){let s=await t.updateTaxRate(e,n);return P(s,h.default,p,a)}}},gr=function(a,t,e){let n=et(a);return{updateTaxRate(s,r){return n.updateTaxRate(s,r).then(o=>o(e,t))}}},qe=class extends I{updateTaxRate(t,e){return et(this.configuration).updateTaxRate(t,e).then(n=>n(this.axios,this.basePath))}},St=function(a){return{acceptOrder:async(t,e={})=>{d("acceptOrder","acceptOrderDto",t);let n="/api/v1/orders/accept",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},confirmPreOrder:async(t,e={})=>{d("confirmPreOrder","confirmPreorderDto",t);let n="/api/v1/orders/confirm/preOrder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{d("deletePosParkedOrderV2","deletePosOrderDto",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},deliverOrder:async(t,e={})=>{d("deliverOrder","deliveredOrderDto",t);let n="/api/v1/orders/delivered",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getAllOrdersV2:async(t,e={})=>{d("getAllOrdersV2","businessIds",t);let n="/api/v2/orders",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getOrdersV2:async(t,e,n,s,r={})=>{d("getOrdersV2","status",t),d("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},A={};e!==void 0&&(A.businessIds=e),n!==void 0&&(A.posBusinessId=n),s!==void 0&&(A.extraProvider=s),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{d("getParkedPosOrderV2","businessId",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},markOrderAsReady:async(t,e={})=>{d("markOrderAsReady","readyOrderDto",t);let n="/api/v1/orders/ready",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},placePosOrderV4:async(t,e={})=>{d("placePosOrderV4","posOrderPayloadDto",t);let n="/api/v4/orders/pos/place",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},processPosOrderActions:async(t,e={})=>{d("processPosOrderActions","processOrderActionsDto",t);let n="/api/v4/orders/pos/actions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},rejectOrder:async(t,e={})=>{d("rejectOrder","rejectOrderDto",t);let n="/api/v1/orders/reject",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},updatePosOrderV2:async(t,e={})=>{d("updatePosOrderV2","posUpdateOrderDto",t);let n="/api/v2/orders/pos/update",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},B=function(a){let t=St(a);return{async acceptOrder(e,n){let s=await t.acceptOrder(e,n);return P(s,h.default,p,a)},async confirmPreOrder(e,n){let s=await t.confirmPreOrder(e,n);return P(s,h.default,p,a)},async deletePosParkedOrderV2(e,n){let s=await t.deletePosParkedOrderV2(e,n);return P(s,h.default,p,a)},async deliverOrder(e,n){let s=await t.deliverOrder(e,n);return P(s,h.default,p,a)},async getAllOrdersV2(e,n){let s=await t.getAllOrdersV2(e,n);return P(s,h.default,p,a)},async getOrdersV2(e,n,s,r,o){let i=await t.getOrdersV2(e,n,s,r,o);return P(i,h.default,p,a)},async getParkedPosOrderV2(e,n){let s=await t.getParkedPosOrderV2(e,n);return P(s,h.default,p,a)},async markOrderAsReady(e,n){let s=await t.markOrderAsReady(e,n);return P(s,h.default,p,a)},async placePosOrderV4(e,n){let s=await t.placePosOrderV4(e,n);return P(s,h.default,p,a)},async processPosOrderActions(e,n){let s=await t.processPosOrderActions(e,n);return P(s,h.default,p,a)},async rejectOrder(e,n){let s=await t.rejectOrder(e,n);return P(s,h.default,p,a)},async updatePosOrderV2(e,n){let s=await t.updatePosOrderV2(e,n);return P(s,h.default,p,a)}}},yr=function(a,t,e){let n=B(a);return{acceptOrder(s,r){return n.acceptOrder(s,r).then(o=>o(e,t))},confirmPreOrder(s,r){return n.confirmPreOrder(s,r).then(o=>o(e,t))},deletePosParkedOrderV2(s,r){return n.deletePosParkedOrderV2(s,r).then(o=>o(e,t))},deliverOrder(s,r){return n.deliverOrder(s,r).then(o=>o(e,t))},getAllOrdersV2(s,r){return n.getAllOrdersV2(s,r).then(o=>o(e,t))},getOrdersV2(s,r,o,i,l){return n.getOrdersV2(s,r,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,r){return n.getParkedPosOrderV2(s,r).then(o=>o(e,t))},markOrderAsReady(s,r){return n.markOrderAsReady(s,r).then(o=>o(e,t))},placePosOrderV4(s,r){return n.placePosOrderV4(s,r).then(o=>o(e,t))},processPosOrderActions(s,r){return n.processPosOrderActions(s,r).then(o=>o(e,t))},rejectOrder(s,r){return n.rejectOrder(s,r).then(o=>o(e,t))},updatePosOrderV2(s,r){return n.updatePosOrderV2(s,r).then(o=>o(e,t))}}},Be=class extends I{acceptOrder(t,e){return B(this.configuration).acceptOrder(t,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(t,e){return B(this.configuration).confirmPreOrder(t,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return B(this.configuration).deletePosParkedOrderV2(t,e).then(n=>n(this.axios,this.basePath))}deliverOrder(t,e){return B(this.configuration).deliverOrder(t,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(t,e){return B(this.configuration).getAllOrdersV2(t,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(t,e,n,s,r){return B(this.configuration).getOrdersV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return B(this.configuration).getParkedPosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(t,e){return B(this.configuration).markOrderAsReady(t,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(t,e){return B(this.configuration).placePosOrderV4(t,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(t,e){return B(this.configuration).processPosOrderActions(t,e).then(n=>n(this.axios,this.basePath))}rejectOrder(t,e){return B(this.configuration).rejectOrder(t,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(t,e){return B(this.configuration).updatePosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}},vt=function(a){return{getPosSession:async(t,e={})=>{d("getPosSession","businessId",t);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getPosSessionV2:async(t,e={})=>{d("getPosSessionV2","businessId",t);let n="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},de=function(a){let t=vt(a);return{async getPosSession(e,n){let s=await t.getPosSession(e,n);return P(s,h.default,p,a)},async getPosSessionV2(e,n){let s=await t.getPosSessionV2(e,n);return P(s,h.default,p,a)}}},Pr=function(a,t,e){let n=de(a);return{getPosSession(s,r){return n.getPosSession(s,r).then(o=>o(e,t))},getPosSessionV2(s,r){return n.getPosSessionV2(s,r).then(o=>o(e,t))}}},Me=class extends I{getPosSession(t,e){return de(this.configuration).getPosSession(t,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(t,e){return de(this.configuration).getPosSessionV2(t,e).then(n=>n(this.axios,this.basePath))}},Tt=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{d("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let n="/api/v3/payment/nets/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{d("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let n="/api/v2/payment/viva/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{d("createNetsRefundTransaction","createRefundDto",t);let n="/api/v4/payment/nets/refund/transaction",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getPaymentReference:async(t,e={})=>{d("getPaymentReference","getPaymentReferenceDto",t);let n="/api/v1/payment/reference",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getPaymentStatus:async(t,e={})=>{d("getPaymentStatus","getPaymentStatusDto",t);let n="/api/v1/payment/status",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{d("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let n="/api/v3/payment/nets/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{d("initiateTerminalTransaction","createTerminalPaymentDto",t);let n="/api/v4/payment/viva/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{d("processOnlineOrderRefund","orderResponseDto",t);let n="/api/v1/payment/online-orders/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundCashPaymentV3:async(t,e={})=>{d("refundCashPaymentV3","cashRefundPayload",t);let n="/api/v3/payment/cash/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundManualPaymentV3:async(t,e={})=>{d("refundManualPaymentV3","manualRefundPayload",t);let n="/api/v3/payment/manual/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{d("refundNetsTransactionV3","refundPayloadDtoV4",t);let n="/api/v3/payment/nets/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{d("refundSingleVivaTransaction","createRefundDto",t);let n="/api/v4/payment/viva/refund/single",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{d("refundVivaTransactionV3","refundPayloadDto",t);let n="/api/v3/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{d("refundVivaTransactionV4","refundPayloadDtoV4",t);let n="/api/v4/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},q=function(a){let t=Tt(a);return{async cancelNetsTerminalTransaction(e,n){let s=await t.cancelNetsTerminalTransaction(e,n);return P(s,h.default,p,a)},async cancelVivaTransactionV2(e,n){let s=await t.cancelVivaTransactionV2(e,n);return P(s,h.default,p,a)},async createNetsRefundTransaction(e,n){let s=await t.createNetsRefundTransaction(e,n);return P(s,h.default,p,a)},async getPaymentReference(e,n){let s=await t.getPaymentReference(e,n);return P(s,h.default,p,a)},async getPaymentStatus(e,n){let s=await t.getPaymentStatus(e,n);return P(s,h.default,p,a)},async initiateNetsTerminalTransaction(e,n){let s=await t.initiateNetsTerminalTransaction(e,n);return P(s,h.default,p,a)},async initiateTerminalTransaction(e,n){let s=await t.initiateTerminalTransaction(e,n);return P(s,h.default,p,a)},async processOnlineOrderRefund(e,n){let s=await t.processOnlineOrderRefund(e,n);return P(s,h.default,p,a)},async refundCashPaymentV3(e,n){let s=await t.refundCashPaymentV3(e,n);return P(s,h.default,p,a)},async refundManualPaymentV3(e,n){let s=await t.refundManualPaymentV3(e,n);return P(s,h.default,p,a)},async refundNetsTransactionV3(e,n){let s=await t.refundNetsTransactionV3(e,n);return P(s,h.default,p,a)},async refundSingleVivaTransaction(e,n){let s=await t.refundSingleVivaTransaction(e,n);return P(s,h.default,p,a)},async refundVivaTransactionV3(e,n){let s=await t.refundVivaTransactionV3(e,n);return P(s,h.default,p,a)},async refundVivaTransactionV4(e,n){let s=await t.refundVivaTransactionV4(e,n);return P(s,h.default,p,a)}}},hr=function(a,t,e){let n=q(a);return{cancelNetsTerminalTransaction(s,r){return n.cancelNetsTerminalTransaction(s,r).then(o=>o(e,t))},cancelVivaTransactionV2(s,r){return n.cancelVivaTransactionV2(s,r).then(o=>o(e,t))},createNetsRefundTransaction(s,r){return n.createNetsRefundTransaction(s,r).then(o=>o(e,t))},getPaymentReference(s,r){return n.getPaymentReference(s,r).then(o=>o(e,t))},getPaymentStatus(s,r){return n.getPaymentStatus(s,r).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,r){return n.initiateNetsTerminalTransaction(s,r).then(o=>o(e,t))},initiateTerminalTransaction(s,r){return n.initiateTerminalTransaction(s,r).then(o=>o(e,t))},processOnlineOrderRefund(s,r){return n.processOnlineOrderRefund(s,r).then(o=>o(e,t))},refundCashPaymentV3(s,r){return n.refundCashPaymentV3(s,r).then(o=>o(e,t))},refundManualPaymentV3(s,r){return n.refundManualPaymentV3(s,r).then(o=>o(e,t))},refundNetsTransactionV3(s,r){return n.refundNetsTransactionV3(s,r).then(o=>o(e,t))},refundSingleVivaTransaction(s,r){return n.refundSingleVivaTransaction(s,r).then(o=>o(e,t))},refundVivaTransactionV3(s,r){return n.refundVivaTransactionV3(s,r).then(o=>o(e,t))},refundVivaTransactionV4(s,r){return n.refundVivaTransactionV4(s,r).then(o=>o(e,t))}}},ke=class extends I{cancelNetsTerminalTransaction(t,e){return q(this.configuration).cancelNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return q(this.configuration).cancelVivaTransactionV2(t,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return q(this.configuration).createNetsRefundTransaction(t,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(t,e){return q(this.configuration).getPaymentReference(t,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(t,e){return q(this.configuration).getPaymentStatus(t,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return q(this.configuration).initiateNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return q(this.configuration).initiateTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return q(this.configuration).processOnlineOrderRefund(t,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(t,e){return q(this.configuration).refundCashPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(t,e){return q(this.configuration).refundManualPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return q(this.configuration).refundNetsTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return q(this.configuration).refundSingleVivaTransaction(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return q(this.configuration).refundVivaTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return q(this.configuration).refundVivaTransactionV4(t,e).then(n=>n(this.axios,this.basePath))}},Et=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ce=function(a){let t=Et(a);return{async loadConfigFile(e){let n=await t.loadConfigFile(e);return P(n,h.default,p,a)},async upsertBusiness(e){let n=await t.upsertBusiness(e);return P(n,h.default,p,a)}}},Ar=function(a,t,e){let n=ce(a);return{loadConfigFile(s){return n.loadConfigFile(s).then(r=>r(e,t))},upsertBusiness(s){return n.upsertBusiness(s).then(r=>r(e,t))}}},_e=class extends I{loadConfigFile(t){return ce(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return ce(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},Ut=function(a){return{updateChannelInventoryV2:async(t,e,n,s,r={})=>{d("updateChannelInventoryV2","businessId",t),d("updateChannelInventoryV2","categoryId",e),d("updateChannelInventoryV2","productId",n),d("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(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(s,u,a),{url:y(i),options:u}}}},tt=function(a){let t=Ut(a);return{async updateChannelInventoryV2(e,n,s,r,o){let i=await t.updateChannelInventoryV2(e,n,s,r,o);return P(i,h.default,p,a)}}},fr=function(a,t,e){let n=tt(a);return{updateChannelInventoryV2(s,r,o,i,l){return n.updateChannelInventoryV2(s,r,o,i,l).then(u=>u(e,t))}}},we=class extends I{updateChannelInventoryV2(t,e,n,s,r){return tt(this.configuration).updateChannelInventoryV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}},qt=function(a){return{getSupportedChannels:async(t,e={})=>{d("getSupportedChannels","businessId",t);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},registerCredential:async(t,e={})=>{d("registerCredential","body",t);let n="/api/v1/provider/credentials",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},registerProvider:async(t,e={})=>{d("registerProvider","body",t);let n="/api/v1/provider",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},ee=function(a){let t=qt(a);return{async getSupportedChannels(e,n){let s=await t.getSupportedChannels(e,n);return P(s,h.default,p,a)},async registerCredential(e,n){let s=await t.registerCredential(e,n);return P(s,h.default,p,a)},async registerProvider(e,n){let s=await t.registerProvider(e,n);return P(s,h.default,p,a)}}},xr=function(a,t,e){let n=ee(a);return{getSupportedChannels(s,r){return n.getSupportedChannels(s,r).then(o=>o(e,t))},registerCredential(s,r){return n.registerCredential(s,r).then(o=>o(e,t))},registerProvider(s,r){return n.registerProvider(s,r).then(o=>o(e,t))}}},Ne=class extends I{getSupportedChannels(t,e){return ee(this.configuration).getSupportedChannels(t,e).then(n=>n(this.axios,this.basePath))}registerCredential(t,e){return ee(this.configuration).registerCredential(t,e).then(n=>n(this.axios,this.basePath))}registerProvider(t,e){return ee(this.configuration).registerProvider(t,e).then(n=>n(this.axios,this.basePath))}},Bt=function(a){return{cancelPlan:async(t,e,n,s={})=>{d("cancelPlan","businessId",t),d("cancelPlan","orderId",e),d("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},createRefundPlan:async(t,e,n,s={})=>{d("createRefundPlan","businessId",t),d("createRefundPlan","orderId",e),d("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}},getRefundPlan:async(t,e,n,s={})=>{d("getRefundPlan","businessId",t),d("getRefundPlan","orderId",e),d("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};n!==void 0&&(c.status=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},recordRefundPlan:async(t,e,n,s,r={})=>{d("recordRefundPlan","businessId",t),d("recordRefundPlan","orderId",e),d("recordRefundPlan","refundId",n),d("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(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(s,u,a),{url:y(i),options:u}},refundOnlineOrder:async(t,e,n,s={})=>{d("refundOnlineOrder","businessId",t),d("refundOnlineOrder","orderId",e),d("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};n!==void 0&&(c.provider=n),g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}},resolveRefundChoice:async(t,e,n,s,r={})=>{d("resolveRefundChoice","businessId",t),d("resolveRefundChoice","orderId",e),d("resolveRefundChoice","refundId",n),d("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(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(s,u,a),{url:y(i),options:u}},startProcessPlan:async(t,e,n,s={})=>{d("startProcessPlan","businessId",t),d("startProcessPlan","orderId",e),d("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},{url:y(o),options:l}}}},_=function(a){let t=Bt(a);return{async cancelPlan(e,n,s,r){let o=await t.cancelPlan(e,n,s,r);return P(o,h.default,p,a)},async createRefundPlan(e,n,s,r){let o=await t.createRefundPlan(e,n,s,r);return P(o,h.default,p,a)},async getRefundPlan(e,n,s,r){let o=await t.getRefundPlan(e,n,s,r);return P(o,h.default,p,a)},async recordRefundPlan(e,n,s,r,o){let i=await t.recordRefundPlan(e,n,s,r,o);return P(i,h.default,p,a)},async refundOnlineOrder(e,n,s,r){let o=await t.refundOnlineOrder(e,n,s,r);return P(o,h.default,p,a)},async resolveRefundChoice(e,n,s,r,o){let i=await t.resolveRefundChoice(e,n,s,r,o);return P(i,h.default,p,a)},async startProcessPlan(e,n,s,r){let o=await t.startProcessPlan(e,n,s,r);return P(o,h.default,p,a)}}},Rr=function(a,t,e){let n=_(a);return{cancelPlan(s,r,o,i){return n.cancelPlan(s,r,o,i).then(l=>l(e,t))},createRefundPlan(s,r,o,i){return n.createRefundPlan(s,r,o,i).then(l=>l(e,t))},getRefundPlan(s,r,o,i){return n.getRefundPlan(s,r,o,i).then(l=>l(e,t))},recordRefundPlan(s,r,o,i,l){return n.recordRefundPlan(s,r,o,i,l).then(u=>u(e,t))},refundOnlineOrder(s,r,o,i){return n.refundOnlineOrder(s,r,o,i).then(l=>l(e,t))},resolveRefundChoice(s,r,o,i,l){return n.resolveRefundChoice(s,r,o,i,l).then(u=>u(e,t))},startProcessPlan(s,r,o,i){return n.startProcessPlan(s,r,o,i).then(l=>l(e,t))}}},Le=class extends I{cancelPlan(t,e,n,s){return _(this.configuration).cancelPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}createRefundPlan(t,e,n,s){return _(this.configuration).createRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}getRefundPlan(t,e,n,s){return _(this.configuration).getRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}recordRefundPlan(t,e,n,s,r){return _(this.configuration).recordRefundPlan(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(t,e,n,s){return _(this.configuration).refundOnlineOrder(t,e,n,s).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(t,e,n,s,r){return _(this.configuration).resolveRefundChoice(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,n,s){return _(this.configuration).startProcessPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{getEndOfDayReportV5:async(t,e,n,s,r,o,i={})=>{d("getEndOfDayReportV5","businessIds",t);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),s!==void 0&&(R.end=s),t&&(R.businessIds=t),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let b=c&&c.headers?c.headers:{};return A.headers={...x,...b,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(t,e,n,s,r,o={})=>{d("getPOSEndOfDayReportV4","businessIds",t);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),s!==void 0&&(x.end=s),t&&(x.businessIds=t),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(t,e,n,s,r,o,i={})=>{d("sendReportEmailV4","businessIds",t),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={};s!==void 0&&(R.timeSpan=s),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),t&&(R.businessIds=t),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let b=c&&c.headers?c.headers:{};return A.headers={...x,...b,...i.headers},A.data=f(n,A,a),{url:y(u),options:A}},sendReportEmailV5:async(t,e,n,s,r,o,i,l={})=>{d("sendReportEmailV5","businessIds",t),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={},b={};s!==void 0&&(b.timeSpan=s),r!==void 0&&(b.start=r),o!==void 0&&(b.end=o),t&&(b.businessIds=t),e!==void 0&&(b.timezone=e),i!==void 0&&(b.provider=i),R["Content-Type"]="application/json",g(c,b);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 t=Mt(a);return{async getEndOfDayReportV5(e,n,s,r,o,i,l){let u=await t.getEndOfDayReportV5(e,n,s,r,o,i,l);return P(u,h.default,p,a)},async getPOSEndOfDayReportV4(e,n,s,r,o,i){let l=await t.getPOSEndOfDayReportV4(e,n,s,r,o,i);return P(l,h.default,p,a)},async sendReportEmailV4(e,n,s,r,o,i,l){let u=await t.sendReportEmailV4(e,n,s,r,o,i,l);return P(u,h.default,p,a)},async sendReportEmailV5(e,n,s,r,o,i,l,u){let c=await t.sendReportEmailV5(e,n,s,r,o,i,l,u);return P(c,h.default,p,a)}}},br=function(a,t,e){let n=$(a);return{getEndOfDayReportV5(s,r,o,i,l,u,c){return n.getEndOfDayReportV5(s,r,o,i,l,u,c).then(A=>A(e,t))},getPOSEndOfDayReportV4(s,r,o,i,l,u){return n.getPOSEndOfDayReportV4(s,r,o,i,l,u).then(c=>c(e,t))},sendReportEmailV4(s,r,o,i,l,u,c){return n.sendReportEmailV4(s,r,o,i,l,u,c).then(A=>A(e,t))},sendReportEmailV5(s,r,o,i,l,u,c,A){return n.sendReportEmailV5(s,r,o,i,l,u,c,A).then(x=>x(e,t))}}},Fe=class extends I{getEndOfDayReportV5(t,e,n,s,r,o,i){return $(this.configuration).getEndOfDayReportV5(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,n,s,r,o){return $(this.configuration).getPOSEndOfDayReportV4(t,e,n,s,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,n,s,r,o,i){return $(this.configuration).sendReportEmailV4(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,n,s,r,o,i,l){return $(this.configuration).sendReportEmailV5(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}},kt=function(a){return{clockIn:async(t,e,n={})=>{d("clockIn","businessId",t),d("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("clockOut","businessId",t),d("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("getTodayShift","businessId",t),d("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("unlock","businessId",t),d("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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 t=kt(a);return{async clockIn(e,n,s){let r=await t.clockIn(e,n,s);return P(r,h.default,p,a)},async clockOut(e,n,s){let r=await t.clockOut(e,n,s);return P(r,h.default,p,a)},async getTodayShift(e,n,s){let r=await t.getTodayShift(e,n,s);return P(r,h.default,p,a)},async unlock(e,n,s){let r=await t.unlock(e,n,s);return P(r,h.default,p,a)}}},Cr=function(a,t,e){let n=z(a);return{clockIn(s,r,o){return n.clockIn(s,r,o).then(i=>i(e,t))},clockOut(s,r,o){return n.clockOut(s,r,o).then(i=>i(e,t))},getTodayShift(s,r,o){return n.getTodayShift(s,r,o).then(i=>i(e,t))},unlock(s,r,o){return n.unlock(s,r,o).then(i=>i(e,t))}}},je=class extends I{clockIn(t,e,n){return z(this.configuration).clockIn(t,e,n).then(s=>s(this.axios,this.basePath))}clockOut(t,e,n){return z(this.configuration).clockOut(t,e,n).then(s=>s(this.axios,this.basePath))}getTodayShift(t,e,n){return z(this.configuration).getTodayShift(t,e,n).then(s=>s(this.axios,this.basePath))}unlock(t,e,n){return z(this.configuration).unlock(t,e,n).then(s=>s(this.axios,this.basePath))}},_t=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getStation:async(t={})=>{let e="/api/v1/station",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},syncStation:async(t,e={})=>{d("syncStation","syncStationDto",t);let n="/api/v1/station/sync",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},te=function(a){let t=_t(a);return{async deactivateStation(e){let n=await t.deactivateStation(e);return P(n,h.default,p,a)},async getStation(e){let n=await t.getStation(e);return P(n,h.default,p,a)},async syncStation(e,n){let s=await t.syncStation(e,n);return P(s,h.default,p,a)}}},Dr=function(a,t,e){let n=te(a);return{deactivateStation(s){return n.deactivateStation(s).then(r=>r(e,t))},getStation(s){return n.getStation(s).then(r=>r(e,t))},syncStation(s,r){return n.syncStation(s,r).then(o=>o(e,t))}}},We=class extends I{deactivateStation(t){return te(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return te(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return te(this.configuration).syncStation(t,e).then(n=>n(this.axios,this.basePath))}},wt=function(a){return{connectTerminal:async(t,e={})=>{d("connectTerminal","connectTerminalDto",t);let n="/api/v1/terminal/connect",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},discoverTerminal:async(t,e={})=>{d("discoverTerminal","discoverTerminalDto",t);let n="/api/v1/terminal/discover",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getTerminalStatus:async(t,e,n,s={})=>{d("getTerminalStatus","businessId",t),d("getTerminalStatus","provider",e),d("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},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,...s.headers},{url:y(o),options:l}}}},Y=function(a){let t=wt(a);return{async connectTerminal(e,n){let s=await t.connectTerminal(e,n);return P(s,h.default,p,a)},async disconnectTerminal(e){let n=await t.disconnectTerminal(e);return P(n,h.default,p,a)},async discoverTerminal(e,n){let s=await t.discoverTerminal(e,n);return P(s,h.default,p,a)},async getTerminalStatus(e,n,s,r){let o=await t.getTerminalStatus(e,n,s,r);return P(o,h.default,p,a)}}},Or=function(a,t,e){let n=Y(a);return{connectTerminal(s,r){return n.connectTerminal(s,r).then(o=>o(e,t))},disconnectTerminal(s){return n.disconnectTerminal(s).then(r=>r(e,t))},discoverTerminal(s,r){return n.discoverTerminal(s,r).then(o=>o(e,t))},getTerminalStatus(s,r,o,i){return n.getTerminalStatus(s,r,o,i).then(l=>l(e,t))}}},Ke=class extends I{connectTerminal(t,e){return Y(this.configuration).connectTerminal(t,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(t){return Y(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return Y(this.configuration).discoverTerminal(t,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(t,e,n,s){return Y(this.configuration).getTerminalStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Nt=function(a){return{getUserBusinessV1:async(t={})=>{let e="/api/v1/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserBusinessV2:async(t={})=>{let e="/api/v2/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserInfoV1:async(t={})=>{let e="/api/v1/user",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},se=function(a){let t=Nt(a);return{async getUserBusinessV1(e){let n=await t.getUserBusinessV1(e);return P(n,h.default,p,a)},async getUserBusinessV2(e){let n=await t.getUserBusinessV2(e);return P(n,h.default,p,a)},async getUserInfoV1(e){let n=await t.getUserInfoV1(e);return P(n,h.default,p,a)}}},Vr=function(a,t,e){let n=se(a);return{getUserBusinessV1(s){return n.getUserBusinessV1(s).then(r=>r(e,t))},getUserBusinessV2(s){return n.getUserBusinessV2(s).then(r=>r(e,t))},getUserInfoV1(s){return n.getUserInfoV1(s).then(r=>r(e,t))}}},He=class extends I{getUserBusinessV1(t){return se(this.configuration).getUserBusinessV1(t).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(t){return se(this.configuration).getUserBusinessV2(t).then(e=>e(this.axios,this.basePath))}getUserInfoV1(t){return se(this.configuration).getUserInfoV1(t).then(e=>e(this.axios,this.basePath))}},Lt=function(a){return{getUser:async(t,e={})=>{d("getUser","userValidation",t);let n="/api/v1/users",s=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(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},updateUserRewardPoints:async(t,e,n,s={})=>{d("updateUserRewardPoints","userId",t),d("updateUserRewardPoints","walletId",e),d("updateUserRewardPoints","rewardPointPayload",n);let r="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),u["Content-Type"]="application/json",g(o,c);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...s.headers},l.data=f(n,l,a),{url:y(o),options:l}}}},pe=function(a){let t=Lt(a);return{async getUser(e,n){let s=await t.getUser(e,n);return P(s,h.default,p,a)},async updateUserRewardPoints(e,n,s,r){let o=await t.updateUserRewardPoints(e,n,s,r);return P(o,h.default,p,a)}}},Ir=function(a,t,e){let n=pe(a);return{getUser(s,r){return n.getUser(s,r).then(o=>o(e,t))},updateUserRewardPoints(s,r,o,i){return n.updateUserRewardPoints(s,r,o,i).then(l=>l(e,t))}}},Ge=class extends I{getUser(t,e){return pe(this.configuration).getUser(t,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(t,e,n,s){return pe(this.configuration).updateUserRewardPoints(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Ft=function(a){return{createVivaAppToAppPayment:async(t,e={})=>{d("createVivaAppToAppPayment","createTerminalPaymentDto",t);let n="/api/v1/viva/a2a/create-payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}}}},st=function(a){let t=Ft(a);return{async createVivaAppToAppPayment(e,n){let s=await t.createVivaAppToAppPayment(e,n);return P(s,h.default,p,a)}}},Sr=function(a,t,e){let n=st(a);return{createVivaAppToAppPayment(s,r){return n.createVivaAppToAppPayment(s,r).then(o=>o(e,t))}}},Qe=class extends I{createVivaAppToAppPayment(t,e){return st(this.configuration).createVivaAppToAppPayment(t,e).then(n=>n(this.axios,this.basePath))}},jt=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleFoodoraEvent:async(t,e={})=>{d("handleFoodoraEvent","orderUpdateDto",t);let n="/api/webhook/order/event",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handlePreorderReminder:async(t,e={})=>{d("handlePreorderReminder","preOrderReminderDto",t);let n="/api/webhook/preorder-reminder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleVivaEvents:async(t,e={})=>{d("handleVivaEvents","vivaWebhookPayloadDto",t);let n="/api/webhook/viva/verification",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(t,e={})=>{d("handleWoltDriveEventByCountry","country",t);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleWorldlineEvents:async(t={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},U=function(a){let t=jt(a);return{async handleAssignmentWebhook(e){let n=await t.handleAssignmentWebhook(e);return P(n,h.default,p,a)},async handleBusinessWebhook(e){let n=await t.handleBusinessWebhook(e);return P(n,h.default,p,a)},async handleFoodoraEvent(e,n){let s=await t.handleFoodoraEvent(e,n);return P(s,h.default,p,a)},async handleLoadEmployee(e){let n=await t.handleLoadEmployee(e);return P(n,h.default,p,a)},async handleNetsEvents(e){let n=await t.handleNetsEvents(e);return P(n,h.default,p,a)},async handleNetsEventsV2(e){let n=await t.handleNetsEventsV2(e);return P(n,h.default,p,a)},async handleNetsRefundEvents(e){let n=await t.handleNetsRefundEvents(e);return P(n,h.default,p,a)},async handlePreorderReminder(e,n){let s=await t.handlePreorderReminder(e,n);return P(s,h.default,p,a)},async handleRoleWebhook(e){let n=await t.handleRoleWebhook(e);return P(n,h.default,p,a)},async handleShiftWebhook(e){let n=await t.handleShiftWebhook(e);return P(n,h.default,p,a)},async handleVivaEvents(e,n){let s=await t.handleVivaEvents(e,n);return P(s,h.default,p,a)},async handleWebhook(e){let n=await t.handleWebhook(e);return P(n,h.default,p,a)},async handleWoltDriveEvent(e){let n=await t.handleWoltDriveEvent(e);return P(n,h.default,p,a)},async handleWoltDriveEventByCountry(e,n){let s=await t.handleWoltDriveEventByCountry(e,n);return P(s,h.default,p,a)},async handleWorldlineEvents(e){let n=await t.handleWorldlineEvents(e);return P(n,h.default,p,a)},async updateWoltProduct(e){let n=await t.updateWoltProduct(e);return P(n,h.default,p,a)},async verifyVivaWebhook(e){let n=await t.verifyVivaWebhook(e);return P(n,h.default,p,a)}}},vr=function(a,t,e){let n=U(a);return{handleAssignmentWebhook(s){return n.handleAssignmentWebhook(s).then(r=>r(e,t))},handleBusinessWebhook(s){return n.handleBusinessWebhook(s).then(r=>r(e,t))},handleFoodoraEvent(s,r){return n.handleFoodoraEvent(s,r).then(o=>o(e,t))},handleLoadEmployee(s){return n.handleLoadEmployee(s).then(r=>r(e,t))},handleNetsEvents(s){return n.handleNetsEvents(s).then(r=>r(e,t))},handleNetsEventsV2(s){return n.handleNetsEventsV2(s).then(r=>r(e,t))},handleNetsRefundEvents(s){return n.handleNetsRefundEvents(s).then(r=>r(e,t))},handlePreorderReminder(s,r){return n.handlePreorderReminder(s,r).then(o=>o(e,t))},handleRoleWebhook(s){return n.handleRoleWebhook(s).then(r=>r(e,t))},handleShiftWebhook(s){return n.handleShiftWebhook(s).then(r=>r(e,t))},handleVivaEvents(s,r){return n.handleVivaEvents(s,r).then(o=>o(e,t))},handleWebhook(s){return n.handleWebhook(s).then(r=>r(e,t))},handleWoltDriveEvent(s){return n.handleWoltDriveEvent(s).then(r=>r(e,t))},handleWoltDriveEventByCountry(s,r){return n.handleWoltDriveEventByCountry(s,r).then(o=>o(e,t))},handleWorldlineEvents(s){return n.handleWorldlineEvents(s).then(r=>r(e,t))},updateWoltProduct(s){return n.updateWoltProduct(s).then(r=>r(e,t))},verifyVivaWebhook(s){return n.verifyVivaWebhook(s).then(r=>r(e,t))}}},$e=class extends I{handleAssignmentWebhook(t){return U(this.configuration).handleAssignmentWebhook(t).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(t){return U(this.configuration).handleBusinessWebhook(t).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(t,e){return U(this.configuration).handleFoodoraEvent(t,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(t){return U(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return U(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return U(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return U(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return U(this.configuration).handlePreorderReminder(t,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(t){return U(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return U(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return U(this.configuration).handleVivaEvents(t,e).then(n=>n(this.axios,this.basePath))}handleWebhook(t){return U(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return U(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return U(this.configuration).handleWoltDriveEventByCountry(t,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(t){return U(this.configuration).handleWorldlineEvents(t).then(e=>e(this.axios,this.basePath))}updateWoltProduct(t){return U(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return U(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}},Wt=function(a){return{cancelPayment:async(t,e={})=>{d("cancelPayment","cancelWorldlinePaymentDto",t);let n="/api/v1/worldline/payment/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},createPayment:async(t,e={})=>{d("createPayment","createWorldlineTerminalPaymentDto",t);let n="/api/v1/worldline/payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},createRefund:async(t,e={})=>{d("createRefund","createWorldlineRefundDto",t);let n="/api/v1/worldline/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=f(t,o,a),{url:y(s),options:o}},getNextRequest:async(t,e,n,s,r={})=>{d("getNextRequest","terminalId",t),d("getNextRequest","authorization",e),d("getNextRequest","sessionID",n),d("getNextRequest","protocolVersion",s);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(t))),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)),s!=null&&(c["Protocol-Version"]=String(s)),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},submitEvent:async(t,e,n={})=>{d("submitEvent","terminalId",t),d("submitEvent","worldlineEventEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("submitResponse","terminalId",t),d("submitResponse","worldlineResponseEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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 t=Wt(a);return{async cancelPayment(e,n){let s=await t.cancelPayment(e,n);return P(s,h.default,p,a)},async createPayment(e,n){let s=await t.createPayment(e,n);return P(s,h.default,p,a)},async createRefund(e,n){let s=await t.createRefund(e,n);return P(s,h.default,p,a)},async getNextRequest(e,n,s,r,o){let i=await t.getNextRequest(e,n,s,r,o);return P(i,h.default,p,a)},async submitEvent(e,n,s){let r=await t.submitEvent(e,n,s);return P(r,h.default,p,a)},async submitResponse(e,n,s){let r=await t.submitResponse(e,n,s);return P(r,h.default,p,a)}}},Tr=function(a,t,e){let n=j(a);return{cancelPayment(s,r){return n.cancelPayment(s,r).then(o=>o(e,t))},createPayment(s,r){return n.createPayment(s,r).then(o=>o(e,t))},createRefund(s,r){return n.createRefund(s,r).then(o=>o(e,t))},getNextRequest(s,r,o,i,l){return n.getNextRequest(s,r,o,i,l).then(u=>u(e,t))},submitEvent(s,r,o){return n.submitEvent(s,r,o).then(i=>i(e,t))},submitResponse(s,r,o){return n.submitResponse(s,r,o).then(i=>i(e,t))}}},ze=class extends I{cancelPayment(t,e){return j(this.configuration).cancelPayment(t,e).then(n=>n(this.axios,this.basePath))}createPayment(t,e){return j(this.configuration).createPayment(t,e).then(n=>n(this.axios,this.basePath))}createRefund(t,e){return j(this.configuration).createRefund(t,e).then(n=>n(this.axios,this.basePath))}getNextRequest(t,e,n,s,r){return j(this.configuration).getNextRequest(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}submitEvent(t,e,n){return j(this.configuration).submitEvent(t,e,n).then(s=>s(this.axios,this.basePath))}submitResponse(t,e,n){return j(this.configuration).submitResponse(t,e,n).then(s=>s(this.axios,this.basePath))}},Kt=function(a){return{createPaymentRequest:async(t,e,n={})=>{d("createPaymentRequest","terminalId",t),d("createPaymentRequest","worldlinePaymentRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("createRefundRequest","terminalId",t),d("createRefundRequest","worldlineRefundRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getPaymentResult","operationId",t);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getTerminalAuthContext:async(t,e,n={})=>{d("getTerminalAuthContext","terminalId",t),d("getTerminalAuthContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{d("getTerminalContext","terminalId",t),d("getTerminalContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{d("getTerminalState","terminalId",t);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleCallback:async(t={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},w=function(a){let t=Kt(a);return{async createPaymentRequest(e,n,s){let r=await t.createPaymentRequest(e,n,s);return P(r,h.default,p,a)},async createRefundRequest(e,n,s){let r=await t.createRefundRequest(e,n,s);return P(r,h.default,p,a)},async getPaymentResult(e,n){let s=await t.getPaymentResult(e,n);return P(s,h.default,p,a)},async getTerminalAuthContext(e,n,s){let r=await t.getTerminalAuthContext(e,n,s);return P(r,h.default,p,a)},async getTerminalContext(e,n,s){let r=await t.getTerminalContext(e,n,s);return P(r,h.default,p,a)},async getTerminalState(e,n){let s=await t.getTerminalState(e,n);return P(s,h.default,p,a)},async handleCallback(e){let n=await t.handleCallback(e);return P(n,h.default,p,a)}}},Er=function(a,t,e){let n=w(a);return{createPaymentRequest(s,r,o){return n.createPaymentRequest(s,r,o).then(i=>i(e,t))},createRefundRequest(s,r,o){return n.createRefundRequest(s,r,o).then(i=>i(e,t))},getPaymentResult(s,r){return n.getPaymentResult(s,r).then(o=>o(e,t))},getTerminalAuthContext(s,r,o){return n.getTerminalAuthContext(s,r,o).then(i=>i(e,t))},getTerminalContext(s,r,o){return n.getTerminalContext(s,r,o).then(i=>i(e,t))},getTerminalState(s,r){return n.getTerminalState(s,r).then(o=>o(e,t))},handleCallback(s){return n.handleCallback(s).then(r=>r(e,t))}}},Ye=class extends I{createPaymentRequest(t,e,n){return w(this.configuration).createPaymentRequest(t,e,n).then(s=>s(this.axios,this.basePath))}createRefundRequest(t,e,n){return w(this.configuration).createRefundRequest(t,e,n).then(s=>s(this.axios,this.basePath))}getPaymentResult(t,e){return w(this.configuration).getPaymentResult(t,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(t,e,n){return w(this.configuration).getTerminalAuthContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalContext(t,e,n){return w(this.configuration).getTerminalContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalState(t,e){return w(this.configuration).getTerminalState(t,e).then(n=>n(this.axios,this.basePath))}handleCallback(t){return w(this.configuration).handleCallback(t).then(e=>e(this.axios,this.basePath))}};var nt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}};var Ur={[J.Eur]:2,[J.Aed]:2,[J.Usd]:2,[J.Gbp]:2,BHD:3,JPY:0},qr={getMultiplier(a){let t=Ur[a.toUpperCase()];return typeof t!="number"?100:Math.round(10**t)}};var ne=me(require("lodash")),rt=a=>ne.default.orderBy(a,["rank","id"],["asc","asc"]),Br=a=>{let t=a.subcategories;return Array.isArray(t)?t:[]},Mr=(a,t)=>({...a,colorCode:a.colorCode??t}),Ht=(a,t)=>ne.default.compact(a.map(e=>t.get(e))),ot=(a,t)=>a.flatMap(e=>{let n=t[e];return n?[e,...ot(n.childIds,t)]:[]}),at=(a,t)=>a.flatMap(e=>{let n=t[e];return n?.enabled?[e,...at(n.childIds,t)]:[]}),kr=a=>{let t=new Map,e={},n={},s=rt(a),r=s.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let c=String(u.id);return t.set(c,Mr(u,l)),c});return s.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,c=o(i.products,u),A=(R,b)=>{let O=String(R.id),S=o(R.products,u),V=rt(Br(R)).map(E=>A(E,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:b,productIds:S,childIds:V},O},x=rt(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:c,subcategoryIds:x}}),{sortedCategories:s,productMap:t,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},_r=(a,t,e,n)=>{let s=t[a];if(!s)return[];let r=at(s.subcategoryIds,e),o=ne.default.uniq([...s.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return Ht(o,n)},wr=(a,t,e)=>{let n=t[a];if(!n)return[];let s=ot(n.subcategoryIds,e);return ne.default.compact(s.map(r=>e[r]))};var Gt="1.9.4";0&&(module.exports={ABLYEVENT,AblyApi,AblyApiAxiosParamCreator,AblyApiFactory,AblyApiFp,ActionEnum,ActionPasscodesApi,ActionPasscodesApiAxiosParamCreator,ActionPasscodesApiFactory,ActionPasscodesApiFp,ActionsEnum,AuthApi,AuthApiAxiosParamCreator,AuthApiFactory,AuthApiFp,BusinessApi,BusinessApiAxiosParamCreator,BusinessApiFactory,BusinessApiFp,BusinessBackgroundType,BusinessEventAction,BusinessEventType,BusinessPaymentIntegrationType,BusinessProviderPolicyApi,BusinessProviderPolicyApiAxiosParamCreator,BusinessProviderPolicyApiFactory,BusinessProviderPolicyApiFp,BusinessStatusEnum,CashLogReason,CashLogType,CashManagementApi,CashManagementApiAxiosParamCreator,CashManagementApiFactory,CashManagementApiFp,CashSessionDtoEnum,CashSessionStatus,ChannelEnum,CheckoutModelEnum,ConditionType,ConfigManagementApi,ConfigManagementApiAxiosParamCreator,ConfigManagementApiFactory,ConfigManagementApiFp,Configuration,ConsumptionType,CurrencyCode,CurrencyCodeEnum,CurrencyRegistry,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,EmployeesApi,EmployeesApiAxiosParamCreator,EmployeesApiFactory,EmployeesApiFp,EntityType,EntityTypeEnum,EventTypeEnum,EventTypeIdEnum,FeeType,GiftcardApi,GiftcardApiAxiosParamCreator,GiftcardApiFactory,GiftcardApiFp,HistoryApi,HistoryApiAxiosParamCreator,HistoryApiFactory,HistoryApiFp,IntegrationType,InvoiceCompaniesApi,InvoiceCompaniesApiAxiosParamCreator,InvoiceCompaniesApiFactory,InvoiceCompaniesApiFp,KDSApi,KDSApiAxiosParamCreator,KDSApiFactory,KDSApiFp,KDSEVENTNAME,KioskEventType,KioskLayout,KiosksApi,KiosksApiAxiosParamCreator,KiosksApiFactory,KiosksApiFp,KitchenItemStatus,KitchenStatus,LocatorType,LoyaltyActionKey,LoyaltyIntegerationsApi,LoyaltyIntegerationsApiAxiosParamCreator,LoyaltyIntegerationsApiFactory,LoyaltyIntegerationsApiFp,MUNCHI_CORE_VERSION,MenuApi,MenuApiAxiosParamCreator,MenuApiFactory,MenuApiFp,MenuTypeEnum,MerchantsApi,MerchantsApiAxiosParamCreator,MerchantsApiFactory,MerchantsApiFp,NameEnum,NotificationApi,NotificationApiAxiosParamCreator,NotificationApiFactory,NotificationApiFp,OperatingMode,OperatingModeEnum,OrderFormat,OrderInternalApi,OrderInternalApiAxiosParamCreator,OrderInternalApiFactory,OrderInternalApiFp,OrderMode,OrderRefundStatus,OrderSource,OrderStatus,OrderStatusEnum,OrderType,OrderTypePOS,OrderingCoApi,OrderingCoApiAxiosParamCreator,OrderingCoApiFactory,OrderingCoApiFp,OrdersApi,OrdersApiAxiosParamCreator,OrdersApiFactory,OrdersApiFp,POSSessionApi,POSSessionApiAxiosParamCreator,POSSessionApiFactory,POSSessionApiFp,PaymentApi,PaymentApiAxiosParamCreator,PaymentApiFactory,PaymentApiFp,PaymentEventType,PaymentFailureCode,PaymentMethod,PaymentProvider,PaymentProviderEnum,PaymentStatus,PaymentTypeEnum,PluginApi,PluginApiAxiosParamCreator,PluginApiFactory,PluginApiFp,PosDiscountTargetType,PosDiscountType,PosPaymentStatus,PosPaymentType,PosPermission,PreorderStatus,PrinterTypeEnum,ProductApi,ProductApiAxiosParamCreator,ProductApiFactory,ProductApiFp,ProductAvailability,ProductDetailLayout,ProductDetailLayoutEnum,PromotionDiscountType,ProviderApi,ProviderApiAxiosParamCreator,ProviderApiFactory,ProviderApiFp,ProviderEnum,PubSubAction,PubSubTarget,RefundFailureReasonKey,RefundMode,RefundOverallStatus,RefundStatusEnum,RefundStepStatus,RefundsApi,RefundsApiAxiosParamCreator,RefundsApiFactory,RefundsApiFp,ReportApi,ReportApiAxiosParamCreator,ReportApiFactory,ReportApiFp,ReportLanguage,SYNCKEY,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,SystemProfileType,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,UsersApi,UsersApiAxiosParamCreator,UsersApiFactory,UsersApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WebhookApi,WebhookApiAxiosParamCreator,WebhookApiFactory,WebhookApiFp,WorldlineApi,WorldlineApiAxiosParamCreator,WorldlineApiFactory,WorldlineApiFp,WorldlineAuthorizationMethod,WorldlineAuthorizationResponder,WorldlineEntryMode,WorldlineEventType,WorldlineInternalApi,WorldlineInternalApiAxiosParamCreator,WorldlineInternalApiFactory,WorldlineInternalApiFp,WorldlineOutcomeDescription,WorldlineResponseStatus,WorldlineTransactionOutcome,WorldlineTransactionType,WorldlineVerificationMethod,buildPosCategoryIndex,collectEnabledSubcategoryIdsDepthFirst,collectSubcategoryIdsDepthFirst,getCategoryProductsIncludingSubcategories,getSubcategoriesForCategory,mapProductIdsToProducts});