@munchi_oy/core 1.9.23 → 1.9.24

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 ss=Object.create;var le=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var os=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty;var is=(a,t)=>{for(var e in t)le(a,e,{get:t[e],enumerable:!0})},mt=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ns(t))!as.call(a,s)&&s!==e&&le(a,s,{get:()=>t[s],enumerable:!(r=rs(t,s))||r.enumerable});return a};var Pe=(a,t,e)=>(e=a!=null?ss(os(a)):{},mt(t||!a||!a.__esModule?le(e,"default",{value:a,enumerable:!0}):e,a)),ls=a=>mt(le({},"__esModule",{value:!0}),a);var no={};is(no,{ABLYEVENT:()=>us,AblyApi:()=>fe,AblyApiAxiosParamCreator:()=>yt,AblyApiFactory:()=>pn,AblyApiFp:()=>ce,ActionEnum:()=>cs,ActionPasscodesApi:()=>Ae,ActionPasscodesApiAxiosParamCreator:()=>Pt,ActionPasscodesApiFactory:()=>mn,ActionPasscodesApiFp:()=>ee,ActionsEnum:()=>Pr,AuthApi:()=>xe,AuthApiAxiosParamCreator:()=>ht,AuthApiFactory:()=>gn,AuthApiFp:()=>H,AutonomousVehicleType:()=>ms,BusinessApi:()=>be,BusinessApiAxiosParamCreator:()=>ft,BusinessApiFactory:()=>yn,BusinessApiFp:()=>T,BusinessBackgroundType:()=>gs,BusinessEventAction:()=>Ps,BusinessEventType:()=>hs,BusinessPaymentIntegrationType:()=>fs,BusinessProviderPolicyApi:()=>Re,BusinessProviderPolicyApiAxiosParamCreator:()=>At,BusinessProviderPolicyApiFactory:()=>Pn,BusinessProviderPolicyApiFp:()=>rt,BusinessStatusEnum:()=>As,CashLogReason:()=>xs,CashLogType:()=>bs,CashManagementApi:()=>Ce,CashManagementApiAxiosParamCreator:()=>xt,CashManagementApiFactory:()=>hn,CashManagementApiFp:()=>F,CashSessionDtoEnum:()=>Rs,CashSessionStatus:()=>Cs,ChannelEnum:()=>Ds,CheckoutModelEnum:()=>Os,ConditionType:()=>Vs,ConfigManagementApi:()=>De,ConfigManagementApiAxiosParamCreator:()=>bt,ConfigManagementApiFactory:()=>fn,ConfigManagementApiFp:()=>M,Configuration:()=>ut,ConsumptionType:()=>Is,CurrencyCode:()=>X,CurrencyCodeEnum:()=>Xr,CurrencyRegistry:()=>Zn,DeliveryStatus:()=>Ss,DeliveryType:()=>vs,DeviceType:()=>Ts,DiscountScope:()=>Es,DiscountScopeType:()=>qs,DiscountSourceType:()=>Us,DiscountType:()=>Bs,DiscountTypeEnum:()=>Tr,EmployeesApi:()=>Oe,EmployeesApiAxiosParamCreator:()=>Rt,EmployeesApiFactory:()=>An,EmployeesApiFp:()=>nt,EntityType:()=>Ms,EntityTypeEnum:()=>ds,EventTypeEnum:()=>ps,EventTypeIdEnum:()=>en,FeeType:()=>ks,GiftcardApi:()=>Ve,GiftcardApiAxiosParamCreator:()=>Ct,GiftcardApiFactory:()=>xn,GiftcardApiFp:()=>de,HistoryApi:()=>Ie,HistoryApiAxiosParamCreator:()=>Dt,HistoryApiFactory:()=>bn,HistoryApiFp:()=>Q,IntegrationType:()=>ws,InvoiceCompaniesApi:()=>Se,InvoiceCompaniesApiAxiosParamCreator:()=>Ot,InvoiceCompaniesApiFactory:()=>Rn,InvoiceCompaniesApiFp:()=>j,KDSApi:()=>ve,KDSApiAxiosParamCreator:()=>Vt,KDSApiFactory:()=>Cn,KDSApiFp:()=>$,KDSEVENTNAME:()=>_s,KioskEventType:()=>Ns,KioskLayout:()=>Ls,KiosksApi:()=>Te,KiosksApiAxiosParamCreator:()=>It,KiosksApiFactory:()=>Dn,KiosksApiFp:()=>te,KitchenItemStatus:()=>Fs,KitchenStatus:()=>js,LocatorType:()=>Ws,LoyaltyActionKey:()=>Ks,LoyaltyIntegerationsApi:()=>Ee,LoyaltyIntegerationsApiAxiosParamCreator:()=>St,LoyaltyIntegerationsApiFactory:()=>On,LoyaltyIntegerationsApiFp:()=>k,MUNCHI_CORE_VERSION:()=>ts,MenuApi:()=>qe,MenuApiAxiosParamCreator:()=>vt,MenuApiFactory:()=>Vn,MenuApiFp:()=>G,MenuTypeEnum:()=>ys,MerchantsApi:()=>Ue,MerchantsApiAxiosParamCreator:()=>Tt,MerchantsApiFactory:()=>In,MerchantsApiFp:()=>se,MunchiGiftCardApi:()=>Be,MunchiGiftCardApiAxiosParamCreator:()=>Et,MunchiGiftCardApiFactory:()=>Sn,MunchiGiftCardApiFp:()=>z,NameEnum:()=>$r,NotificationApi:()=>Me,NotificationApiAxiosParamCreator:()=>qt,NotificationApiFactory:()=>vn,NotificationApiFp:()=>pe,OperatingMode:()=>Gs,OperatingModeEnum:()=>Hr,OrderFormat:()=>Hs,OrderInternalApi:()=>ke,OrderInternalApiAxiosParamCreator:()=>Ut,OrderInternalApiFactory:()=>Tn,OrderInternalApiFp:()=>ot,OrderMode:()=>Qs,OrderRefundStatus:()=>$s,OrderSource:()=>zs,OrderStatus:()=>Ys,OrderStatusEnum:()=>Js,OrderType:()=>Zs,OrderTypePOS:()=>Xs,OrderingCoApi:()=>we,OrderingCoApiAxiosParamCreator:()=>Bt,OrderingCoApiFactory:()=>En,OrderingCoApiFp:()=>at,OrdersApi:()=>_e,OrdersApiAxiosParamCreator:()=>Mt,OrdersApiFactory:()=>qn,OrdersApiFp:()=>B,POSSessionApi:()=>Ne,POSSessionApiAxiosParamCreator:()=>kt,POSSessionApiFactory:()=>Un,POSSessionApiFp:()=>me,PaymentApi:()=>Le,PaymentApiAxiosParamCreator:()=>wt,PaymentApiFactory:()=>Bn,PaymentApiFp:()=>U,PaymentEventType:()=>er,PaymentFailureCode:()=>tr,PaymentMethod:()=>sr,PaymentProvider:()=>rr,PaymentProviderEnum:()=>nr,PaymentStatus:()=>or,PaymentTypeEnum:()=>ar,PluginApi:()=>Fe,PluginApiAxiosParamCreator:()=>_t,PluginApiFactory:()=>Mn,PluginApiFp:()=>ge,PosDiscountTargetType:()=>ir,PosDiscountType:()=>lr,PosPaymentStatus:()=>ur,PosPaymentType:()=>cr,PosPermission:()=>dr,PreorderStatus:()=>pr,PrinterConnectionType:()=>mr,PrinterModelType:()=>gr,PrinterTypeEnum:()=>yr,PrintersApi:()=>je,PrintersApiAxiosParamCreator:()=>Nt,PrintersApiFactory:()=>kn,PrintersApiFp:()=>w,ProductApi:()=>We,ProductApiAxiosParamCreator:()=>Lt,ProductApiFactory:()=>wn,ProductApiFp:()=>re,ProductAvailability:()=>hr,ProductDetailLayout:()=>fr,ProductDetailLayoutEnum:()=>Qr,PromotionDiscountType:()=>Ar,ProviderApi:()=>Ke,ProviderApiAxiosParamCreator:()=>Ft,ProviderApiFactory:()=>_n,ProviderApiFp:()=>ne,ProviderEnum:()=>xr,PubSubAction:()=>br,PubSubTarget:()=>Rr,RefundFailureReasonKey:()=>Cr,RefundMode:()=>Dr,RefundOverallStatus:()=>Or,RefundStatusEnum:()=>Vr,RefundStepStatus:()=>Ir,RefundsApi:()=>Ge,RefundsApiAxiosParamCreator:()=>jt,RefundsApiFactory:()=>Nn,RefundsApiFp:()=>N,ReportApi:()=>He,ReportApiAxiosParamCreator:()=>Wt,ReportApiFactory:()=>Ln,ReportApiFp:()=>Y,ReportLanguage:()=>Sr,SYNCKEY:()=>qr,ScopeEnum:()=>Er,SelectedPaymentProviderEnum:()=>Gr,ShiftTrackingApi:()=>Qe,ShiftTrackingApiAxiosParamCreator:()=>Kt,ShiftTrackingApiFactory:()=>Fn,ShiftTrackingApiFp:()=>J,SimplePaymentStatus:()=>Ur,SourceType:()=>Br,StaffActivityActionType:()=>Mr,StationType:()=>kr,StationsApi:()=>$e,StationsApiAxiosParamCreator:()=>Gt,StationsApiFactory:()=>jn,StationsApiFp:()=>oe,Status:()=>wr,StatusEnum:()=>tn,SystemProfileType:()=>_r,TerminalApi:()=>ze,TerminalApiAxiosParamCreator:()=>Ht,TerminalApiFactory:()=>Wn,TerminalApiFp:()=>Z,TerminalConnectionType:()=>Nr,TimeSpan:()=>Lr,TransactionEventType:()=>Fr,TransactionType:()=>jr,Type:()=>Wr,UpsellMode:()=>Kr,UserApi:()=>Ye,UserApiAxiosParamCreator:()=>Qt,UserApiFactory:()=>Kn,UserApiFp:()=>ae,UsersApi:()=>Je,UsersApiAxiosParamCreator:()=>$t,UsersApiFactory:()=>Gn,UsersApiFp:()=>ye,VendureSellerApi:()=>Ze,VendureSellerApiAxiosParamCreator:()=>zt,VendureSellerApiFactory:()=>Hn,VendureSellerApiFp:()=>it,VivaApi:()=>Xe,VivaApiAxiosParamCreator:()=>Yt,VivaApiFactory:()=>Qn,VivaApiFp:()=>lt,VivaAppToAppPaymentMethod:()=>zr,VivaCurrencyCode:()=>Yr,VivaErrorId:()=>Jr,VivaEventId:()=>Zr,WalletStatusEnum:()=>vr,WebhookApi:()=>et,WebhookApiAxiosParamCreator:()=>Jt,WebhookApiFactory:()=>$n,WebhookApiFp:()=>q,WorldlineApi:()=>tt,WorldlineApiAxiosParamCreator:()=>Zt,WorldlineApiFactory:()=>zn,WorldlineApiFp:()=>W,WorldlineAuthorizationMethod:()=>sn,WorldlineAuthorizationResponder:()=>rn,WorldlineEntryMode:()=>nn,WorldlineEventType:()=>on,WorldlineInternalApi:()=>st,WorldlineInternalApiAxiosParamCreator:()=>Xt,WorldlineInternalApiFactory:()=>Yn,WorldlineInternalApiFp:()=>L,WorldlineOutcomeDescription:()=>an,WorldlineResponseStatus:()=>ln,WorldlineTransactionOutcome:()=>un,WorldlineTransactionType:()=>cn,WorldlineVerificationMethod:()=>dn,buildPosCategoryIndex:()=>to,collectEnabledSubcategoryIdsDepthFirst:()=>pt,collectSubcategoryIdsDepthFirst:()=>dt,getCategoryProductsIncludingSubcategories:()=>so,getSubcategoriesForCategory:()=>ro,mapProductIdsToProducts:()=>es});module.exports=ls(no);var h=Pe(require("axios"));var gt=Pe(require("axios")),p="http://localhost".replace(/\/+$/,"");var I=class{constructor(t,e=p,r=gt.default){this.basePath=e;this.axios=r;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},ue=class extends Error{constructor(e,r){super(r);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,t,e){if(e==null)throw new ue(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var R=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 he(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>he(a,r,e)):Object.keys(t).forEach(r=>he(a,t[r],`${e}${e!==""?".":""}${r}`)):a.has(e)?a.append(e,t):a.set(e,t))}var g=function(a,...t){let e=new URLSearchParams(a.search);he(e,t),a.search=e.toString()},A=function(a,t,e){let r=typeof a!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,t,e,r){return(s=t,n=e)=>{let o={...a.options,url:(r?.basePath||n)+a.url};return s.request(o)}};var us={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},cs={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ds={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ps={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ms={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},gs={Image:"image",Video:"video",Animation:"animation"},ys={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ps={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},hs={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},fs={GiftCard:"GiftCard"},As={Online:"ONLINE",Offline:"OFFLINE"},xs={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"},bs={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Rs={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Cs={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",Storefront:"Storefront"},Os={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Vs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Is={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},X={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"},Ss={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},vs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Ts={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Es={Item:"ITEM",Cart:"CART"},qs={Business:"BUSINESS",Owner:"OWNER"},Us={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Bs={Percentage:"PERCENTAGE",Fixed:"FIXED"},Ms={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ks={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},ws={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},_s={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},Ns={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Ls={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Fs={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},js={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Ws={Table:"table",Indicator:"indicator"},Ks={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Gs={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Hs={Open:"OPEN",Instant:"INSTANT"},Qs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},$s={None:"NONE",Partial:"PARTIAL",Full:"FULL"},zs={Platform:"PLATFORM",Pos:"POS"},Ys={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Js={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"},Zs={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Xs={DineIn:"dine_in",PickUp:"pick_up"},er={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},tr={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"},sr={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",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},rr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},nr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},or={Paid:"paid",Pending:"pending"},ar={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},ir={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},lr={Percentage:"percentage",Fixed:"fixed"},ur={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},cr={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},dr={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"},pr={Waiting:"waiting",Confirm:"confirm"},mr={Bluetooth:"bluetooth",Network:"network"},gr={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},yr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Pr={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},hr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},fr={Modal:"MODAL",Screen:"SCREEN"},Ar={Percentage:"PERCENTAGE",Fixed:"FIXED"},xr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},br={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},Rr={Kds:"KDS"},Cr={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"},Dr={Full:"FULL",Item:"ITEM"},Or={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Vr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Ir={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Sr={Fi:"fi",En:"en"},vr={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Tr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Er={Item:"ITEM",Cart:"CART"},qr={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"},Ur={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Br={Order:"ORDER",Ticket:"TICKET"},Mr={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"},kr={Kiosk:"KIOSK",Pos:"POS"},wr={Active:"ACTIVE",Inactive:"INACTIVE"},_r={NoStation:"NO_STATION"},Nr={Network:"NETWORK"},Lr={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Fr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},jr={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Wr={Instant:"instant",Preorder:"preorder"},Kr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Gr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Hr={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Qr={Modal:"MODAL",Screen:"SCREEN"},$r={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",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},zr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Yr={_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"},Jr={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},Zr={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},Xr={_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"},en={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},tn={Claimed:"Claimed",Redeemed:"Redeemed"},sn={Online:"Online",Offline:"Offline"},rn={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"},on={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},an={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},ln={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},un={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},cn={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},dn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},yt=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},ce=function(a){let t=yt(a);return{async refreshConfig(e){let r=await t.refreshConfig(e);return P(r,h.default,p,a)},async requestSettings(e){let r=await t.requestSettings(e);return P(r,h.default,p,a)}}},pn=function(a,t,e){let r=ce(a);return{refreshConfig(s){return r.refreshConfig(s).then(n=>n(e,t))},requestSettings(s){return r.requestSettings(s).then(n=>n(e,t))}}},fe=class extends I{refreshConfig(t){return ce(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return ce(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},Pt=function(a){return{createActionPasscode:async(t,e={})=>{c("createActionPasscode","createActionPasscodeDto",t);let r="/api/v1/action-passcodes",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deleteActionPasscode:async(t,e={})=>{c("deleteActionPasscode","id",t);let r="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},updateActionPasscode:async(t,e,r={})=>{c("updateActionPasscode","id",t),c("updateActionPasscode","updateActionPasscodeDto",e);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},ee=function(a){let t=Pt(a);return{async createActionPasscode(e,r){let s=await t.createActionPasscode(e,r);return P(s,h.default,p,a)},async deleteActionPasscode(e,r){let s=await t.deleteActionPasscode(e,r);return P(s,h.default,p,a)},async updateActionPasscode(e,r,s){let n=await t.updateActionPasscode(e,r,s);return P(n,h.default,p,a)}}},mn=function(a,t,e){let r=ee(a);return{createActionPasscode(s,n){return r.createActionPasscode(s,n).then(o=>o(e,t))},deleteActionPasscode(s,n){return r.deleteActionPasscode(s,n).then(o=>o(e,t))},updateActionPasscode(s,n,o){return r.updateActionPasscode(s,n,o).then(i=>i(e,t))}}},Ae=class extends I{createActionPasscode(t,e){return ee(this.configuration).createActionPasscode(t,e).then(r=>r(this.axios,this.basePath))}deleteActionPasscode(t,e){return ee(this.configuration).deleteActionPasscode(t,e).then(r=>r(this.axios,this.basePath))}updateActionPasscode(t,e,r){return ee(this.configuration).updateActionPasscode(t,e,r).then(s=>s(this.axios,this.basePath))}},ht=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},login:async(t,e={})=>{c("login","credentialDto",t);let r="/api/v1/auth/login",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},logout:async(t={})=>{let e="/api/v1/auth/logout",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},refreshToken:async(t,e={})=>{c("refreshToken","refreshTokenDto",t);let r="/api/v1/auth/refresh",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},H=function(a){let t=ht(a);return{async firebaseAuth(e){let r=await t.firebaseAuth(e);return P(r,h.default,p,a)},async login(e,r){let s=await t.login(e,r);return P(s,h.default,p,a)},async logout(e){let r=await t.logout(e);return P(r,h.default,p,a)},async refreshToken(e,r){let s=await t.refreshToken(e,r);return P(s,h.default,p,a)}}},gn=function(a,t,e){let r=H(a);return{firebaseAuth(s){return r.firebaseAuth(s).then(n=>n(e,t))},login(s,n){return r.login(s,n).then(o=>o(e,t))},logout(s){return r.logout(s).then(n=>n(e,t))},refreshToken(s,n){return r.refreshToken(s,n).then(o=>o(e,t))}}},xe=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(r=>r(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(r=>r(this.axios,this.basePath))}},ft=function(a){return{createBusinessPermission:async(t,e,r={})=>{c("createBusinessPermission","businessId",t),c("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},deleteBusinessPermission:async(t,e,r={})=>{c("deleteBusinessPermission","permissionId",t),c("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await R(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getAdvancedDiscounts:async(t,e={})=>{c("getAdvancedDiscounts","businessId",t);let r="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessCategoriesByMenuId:async(t,e,r={})=>{c("getBusinessCategoriesByMenuId","businessId",t),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV2:async(t,e,r={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",t),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV3:async(t,e,r={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",t),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let s="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessChannelConfig:async(t,e,r={})=>{c("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessChannelConfigV2:async(t,e,r={})=>{c("getBusinessChannelConfigV2","businessId",t);let s="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfig:async(t,e,r={})=>{c("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigById:async(t,e,r={})=>{c("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigByIdV2:async(t,e,r={})=>{c("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfiguration:async(t,e,r={})=>{c("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByType:async(t,e,r={})=>{c("getBusinessMenuByType","businessId",t),c("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV2:async(t,e,r={})=>{c("getBusinessMenuByTypeV2","businessId",t),c("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV3:async(t,e,r={})=>{c("getBusinessMenuByTypeV3","businessId",t),c("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV4:async(t,e,r={})=>{c("getBusinessMenuByTypeV4","businessId",t),c("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessProviderStatus:async(t,e={})=>{c("getBusinessProviderStatus","businessId",t);let r="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessProviderStatusExternal:async(t,e,r={})=>{c("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessTax:async(t={})=>{let e="/api/v1/business/tax",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await R(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getProvidersSupportedIntegrations:async(t,e={})=>{c("getProvidersSupportedIntegrations","businessIds",t);let r="/api/v1/business/providers/supported-integrations",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),t&&(l.businessIds=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSingleBusinessProviderStatus:async(t,e,r,s={})=>{c("getSingleBusinessProviderStatus","businessId",t),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",r);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await R(u,a),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{c("getUnifiedDiscounts","businessId",t);let r="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},setBusinessStatus:async(t,e,r={})=>{c("setBusinessStatus","businessId",t),c("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},setBusinessStatusSchedule:async(t,e,r={})=>{c("setBusinessStatusSchedule","businessId",t),c("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},updateBusinessPermission:async(t,e,r,s={})=>{c("updateBusinessPermission","permissionId",t),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",r);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},d={};await R(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},validateBusiness:async(t,e={})=>{c("validateBusiness","businessId",t);let r="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},T=function(a){let t=ft(a);return{async createBusinessPermission(e,r,s){let n=await t.createBusinessPermission(e,r,s);return P(n,h.default,p,a)},async deleteBusinessPermission(e,r,s){let n=await t.deleteBusinessPermission(e,r,s);return P(n,h.default,p,a)},async getAdvancedDiscounts(e,r){let s=await t.getAdvancedDiscounts(e,r);return P(s,h.default,p,a)},async getBusinessCategoriesByMenuId(e,r,s){let n=await t.getBusinessCategoriesByMenuId(e,r,s);return P(n,h.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,r,s){let n=await t.getBusinessCategoriesByMenuIdV2(e,r,s);return P(n,h.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,r,s){let n=await t.getBusinessCategoriesByMenuIdV3(e,r,s);return P(n,h.default,p,a)},async getBusinessChannelConfig(e,r,s){let n=await t.getBusinessChannelConfig(e,r,s);return P(n,h.default,p,a)},async getBusinessChannelConfigV2(e,r,s){let n=await t.getBusinessChannelConfigV2(e,r,s);return P(n,h.default,p,a)},async getBusinessConfig(e,r,s){let n=await t.getBusinessConfig(e,r,s);return P(n,h.default,p,a)},async getBusinessConfigById(e,r,s){let n=await t.getBusinessConfigById(e,r,s);return P(n,h.default,p,a)},async getBusinessConfigByIdV2(e,r,s){let n=await t.getBusinessConfigByIdV2(e,r,s);return P(n,h.default,p,a)},async getBusinessConfiguration(e,r,s){let n=await t.getBusinessConfiguration(e,r,s);return P(n,h.default,p,a)},async getBusinessMenuByType(e,r,s){let n=await t.getBusinessMenuByType(e,r,s);return P(n,h.default,p,a)},async getBusinessMenuByTypeV2(e,r,s){let n=await t.getBusinessMenuByTypeV2(e,r,s);return P(n,h.default,p,a)},async getBusinessMenuByTypeV3(e,r,s){let n=await t.getBusinessMenuByTypeV3(e,r,s);return P(n,h.default,p,a)},async getBusinessMenuByTypeV4(e,r,s){let n=await t.getBusinessMenuByTypeV4(e,r,s);return P(n,h.default,p,a)},async getBusinessProviderStatus(e,r){let s=await t.getBusinessProviderStatus(e,r);return P(s,h.default,p,a)},async getBusinessProviderStatusExternal(e,r,s){let n=await t.getBusinessProviderStatusExternal(e,r,s);return P(n,h.default,p,a)},async getBusinessTax(e){let r=await t.getBusinessTax(e);return P(r,h.default,p,a)},async getProvidersSupportedIntegrations(e,r){let s=await t.getProvidersSupportedIntegrations(e,r);return P(s,h.default,p,a)},async getSingleBusinessProviderStatus(e,r,s,n){let o=await t.getSingleBusinessProviderStatus(e,r,s,n);return P(o,h.default,p,a)},async getUnifiedDiscounts(e,r){let s=await t.getUnifiedDiscounts(e,r);return P(s,h.default,p,a)},async setBusinessStatus(e,r,s){let n=await t.setBusinessStatus(e,r,s);return P(n,h.default,p,a)},async setBusinessStatusSchedule(e,r,s){let n=await t.setBusinessStatusSchedule(e,r,s);return P(n,h.default,p,a)},async updateBusinessPermission(e,r,s,n){let o=await t.updateBusinessPermission(e,r,s,n);return P(o,h.default,p,a)},async validateBusiness(e,r){let s=await t.validateBusiness(e,r);return P(s,h.default,p,a)}}},yn=function(a,t,e){let r=T(a);return{createBusinessPermission(s,n,o){return r.createBusinessPermission(s,n,o).then(i=>i(e,t))},deleteBusinessPermission(s,n,o){return r.deleteBusinessPermission(s,n,o).then(i=>i(e,t))},getAdvancedDiscounts(s,n){return r.getAdvancedDiscounts(s,n).then(o=>o(e,t))},getBusinessCategoriesByMenuId(s,n,o){return r.getBusinessCategoriesByMenuId(s,n,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,n,o){return r.getBusinessCategoriesByMenuIdV2(s,n,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV3(s,n,o){return r.getBusinessCategoriesByMenuIdV3(s,n,o).then(i=>i(e,t))},getBusinessChannelConfig(s,n,o){return r.getBusinessChannelConfig(s,n,o).then(i=>i(e,t))},getBusinessChannelConfigV2(s,n,o){return r.getBusinessChannelConfigV2(s,n,o).then(i=>i(e,t))},getBusinessConfig(s,n,o){return r.getBusinessConfig(s,n,o).then(i=>i(e,t))},getBusinessConfigById(s,n,o){return r.getBusinessConfigById(s,n,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,n,o){return r.getBusinessConfigByIdV2(s,n,o).then(i=>i(e,t))},getBusinessConfiguration(s,n,o){return r.getBusinessConfiguration(s,n,o).then(i=>i(e,t))},getBusinessMenuByType(s,n,o){return r.getBusinessMenuByType(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,n,o){return r.getBusinessMenuByTypeV2(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,n,o){return r.getBusinessMenuByTypeV3(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,n,o){return r.getBusinessMenuByTypeV4(s,n,o).then(i=>i(e,t))},getBusinessProviderStatus(s,n){return r.getBusinessProviderStatus(s,n).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,n,o){return r.getBusinessProviderStatusExternal(s,n,o).then(i=>i(e,t))},getBusinessTax(s){return r.getBusinessTax(s).then(n=>n(e,t))},getProvidersSupportedIntegrations(s,n){return r.getProvidersSupportedIntegrations(s,n).then(o=>o(e,t))},getSingleBusinessProviderStatus(s,n,o,i){return r.getSingleBusinessProviderStatus(s,n,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,n){return r.getUnifiedDiscounts(s,n).then(o=>o(e,t))},setBusinessStatus(s,n,o){return r.setBusinessStatus(s,n,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,n,o){return r.setBusinessStatusSchedule(s,n,o).then(i=>i(e,t))},updateBusinessPermission(s,n,o,i){return r.updateBusinessPermission(s,n,o,i).then(l=>l(e,t))},validateBusiness(s,n){return r.validateBusiness(s,n).then(o=>o(e,t))}}},be=class extends I{createBusinessPermission(t,e,r){return T(this.configuration).createBusinessPermission(t,e,r).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,r){return T(this.configuration).deleteBusinessPermission(t,e,r).then(s=>s(this.axios,this.basePath))}getAdvancedDiscounts(t,e){return T(this.configuration).getAdvancedDiscounts(t,e).then(r=>r(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,r){return T(this.configuration).getBusinessCategoriesByMenuId(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(t,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV3(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,r){return T(this.configuration).getBusinessChannelConfig(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfigV2(t,e,r){return T(this.configuration).getBusinessChannelConfigV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,r){return T(this.configuration).getBusinessConfig(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,r){return T(this.configuration).getBusinessConfigById(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,r){return T(this.configuration).getBusinessConfigByIdV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,r){return T(this.configuration).getBusinessConfiguration(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,r){return T(this.configuration).getBusinessMenuByType(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,r){return T(this.configuration).getBusinessMenuByTypeV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,r){return T(this.configuration).getBusinessMenuByTypeV3(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,r){return T(this.configuration).getBusinessMenuByTypeV4(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return T(this.configuration).getBusinessProviderStatus(t,e).then(r=>r(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,r){return T(this.configuration).getBusinessProviderStatusExternal(t,e,r).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(r=>r(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,r,s){return T(this.configuration).getSingleBusinessProviderStatus(t,e,r,s).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return T(this.configuration).getUnifiedDiscounts(t,e).then(r=>r(this.axios,this.basePath))}setBusinessStatus(t,e,r){return T(this.configuration).setBusinessStatus(t,e,r).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,r){return T(this.configuration).setBusinessStatusSchedule(t,e,r).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,r,s){return T(this.configuration).updateBusinessPermission(t,e,r,s).then(n=>n(this.axios,this.basePath))}validateBusiness(t,e){return T(this.configuration).validateBusiness(t,e).then(r=>r(this.axios,this.basePath))}},At=function(a){return{updatePosGlobalSettings:async(t,e,r={})=>{c("updatePosGlobalSettings","businessId",t),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let s="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},rt=function(a){let t=At(a);return{async updatePosGlobalSettings(e,r,s){let n=await t.updatePosGlobalSettings(e,r,s);return P(n,h.default,p,a)}}},Pn=function(a,t,e){let r=rt(a);return{updatePosGlobalSettings(s,n,o){return r.updatePosGlobalSettings(s,n,o).then(i=>i(e,t))}}},Re=class extends I{updatePosGlobalSettings(t,e,r){return rt(this.configuration).updatePosGlobalSettings(t,e,r).then(s=>s(this.axios,this.basePath))}},xt=function(a){return{create:async(t,e,r={})=>{c("create","businessId",t),c("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getCashLogs:async(t,e,r,s,n,o,i,l={})=>{c("getCashLogs","businessId",t),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(t))),d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"GET",...f,...l},b={},C={};r!==void 0&&(C.timeSpan=r),s!==void 0&&(C.start=s),n!==void 0&&(C.end=n),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=f&&f.headers?f.headers:{};return x.headers={...b,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(t,e={})=>{c("getCashSession","businessId",t);let r="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSessionReport:async(t,e,r={})=>{c("getSessionReport","businessId",t),c("getSessionReport","sessionId",e);let s="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recordCashLog:async(t,e,r={})=>{c("recordCashLog","businessId",t),c("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},sendSessionReport:async(t,e,r,s={})=>{c("sendSessionReport","businessId",t),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",r);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},F=function(a){let t=xt(a);return{async create(e,r,s){let n=await t.create(e,r,s);return P(n,h.default,p,a)},async getCashLogs(e,r,s,n,o,i,l,u){let d=await t.getCashLogs(e,r,s,n,o,i,l,u);return P(d,h.default,p,a)},async getCashSession(e,r){let s=await t.getCashSession(e,r);return P(s,h.default,p,a)},async getSessionReport(e,r,s){let n=await t.getSessionReport(e,r,s);return P(n,h.default,p,a)},async recordCashLog(e,r,s){let n=await t.recordCashLog(e,r,s);return P(n,h.default,p,a)},async sendSessionReport(e,r,s,n){let o=await t.sendSessionReport(e,r,s,n);return P(o,h.default,p,a)}}},hn=function(a,t,e){let r=F(a);return{create(s,n,o){return r.create(s,n,o).then(i=>i(e,t))},getCashLogs(s,n,o,i,l,u,d,f){return r.getCashLogs(s,n,o,i,l,u,d,f).then(x=>x(e,t))},getCashSession(s,n){return r.getCashSession(s,n).then(o=>o(e,t))},getSessionReport(s,n,o){return r.getSessionReport(s,n,o).then(i=>i(e,t))},recordCashLog(s,n,o){return r.recordCashLog(s,n,o).then(i=>i(e,t))},sendSessionReport(s,n,o,i){return r.sendSessionReport(s,n,o,i).then(l=>l(e,t))}}},Ce=class extends I{create(t,e,r){return F(this.configuration).create(t,e,r).then(s=>s(this.axios,this.basePath))}getCashLogs(t,e,r,s,n,o,i,l){return F(this.configuration).getCashLogs(t,e,r,s,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(t,e){return F(this.configuration).getCashSession(t,e).then(r=>r(this.axios,this.basePath))}getSessionReport(t,e,r){return F(this.configuration).getSessionReport(t,e,r).then(s=>s(this.axios,this.basePath))}recordCashLog(t,e,r){return F(this.configuration).recordCashLog(t,e,r).then(s=>s(this.axios,this.basePath))}sendSessionReport(t,e,r,s){return F(this.configuration).sendSessionReport(t,e,r,s).then(n=>n(this.axios,this.basePath))}},bt=function(a){return{configConfigureMunchiGiftCard:async(t,e,r,s={})=>{c("configConfigureMunchiGiftCard","businessId",t),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configManualSync:async(t,e,r={})=>{c("configManualSync","businessId",t),c("configManualSync","manualSyncDto",e);let s="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configRemovePaymentOption:async(t,e,r,s={})=>{c("configRemovePaymentOption","businessId",t),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={},d={};await R(u,a),r!=null&&(u["x-app-x"]=String(r)),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},configUpsertBusiness:async(t,e,r={})=>{c("configUpsertBusiness","businessId",t),c("configUpsertBusiness","upsertBusinessDto",e);let s="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configUpsertChannelConfig:async(t,e,r,s={})=>{c("configUpsertChannelConfig","businessId",t),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",r);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(t,e,r,s={})=>{c("configUpsertGiftCard","businessId",t),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(t,e,r={})=>{c("configUpsertLoyalty","businessId",t),c("configUpsertLoyalty","upsertLoyaltyDto",e);let s="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configUpsertNets:async(t,e,r,s={})=>{c("configUpsertNets","businessId",t),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",r);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(t,e,r,s={})=>{c("configUpsertPaymentOptions","businessId",t),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertStripe:async(t,e,r,s={})=>{c("configUpsertStripe","businessId",t),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",r);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertViva:async(t,e,r,s={})=>{c("configUpsertViva","businessId",t),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",r);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},M=function(a){let t=bt(a);return{async configConfigureMunchiGiftCard(e,r,s,n){let o=await t.configConfigureMunchiGiftCard(e,r,s,n);return P(o,h.default,p,a)},async configManualSync(e,r,s){let n=await t.configManualSync(e,r,s);return P(n,h.default,p,a)},async configRemovePaymentOption(e,r,s,n){let o=await t.configRemovePaymentOption(e,r,s,n);return P(o,h.default,p,a)},async configUpsertBusiness(e,r,s){let n=await t.configUpsertBusiness(e,r,s);return P(n,h.default,p,a)},async configUpsertChannelConfig(e,r,s,n){let o=await t.configUpsertChannelConfig(e,r,s,n);return P(o,h.default,p,a)},async configUpsertGiftCard(e,r,s,n){let o=await t.configUpsertGiftCard(e,r,s,n);return P(o,h.default,p,a)},async configUpsertLoyalty(e,r,s){let n=await t.configUpsertLoyalty(e,r,s);return P(n,h.default,p,a)},async configUpsertNets(e,r,s,n){let o=await t.configUpsertNets(e,r,s,n);return P(o,h.default,p,a)},async configUpsertPaymentOptions(e,r,s,n){let o=await t.configUpsertPaymentOptions(e,r,s,n);return P(o,h.default,p,a)},async configUpsertStripe(e,r,s,n){let o=await t.configUpsertStripe(e,r,s,n);return P(o,h.default,p,a)},async configUpsertViva(e,r,s,n){let o=await t.configUpsertViva(e,r,s,n);return P(o,h.default,p,a)}}},fn=function(a,t,e){let r=M(a);return{configConfigureMunchiGiftCard(s,n,o,i){return r.configConfigureMunchiGiftCard(s,n,o,i).then(l=>l(e,t))},configManualSync(s,n,o){return r.configManualSync(s,n,o).then(i=>i(e,t))},configRemovePaymentOption(s,n,o,i){return r.configRemovePaymentOption(s,n,o,i).then(l=>l(e,t))},configUpsertBusiness(s,n,o){return r.configUpsertBusiness(s,n,o).then(i=>i(e,t))},configUpsertChannelConfig(s,n,o,i){return r.configUpsertChannelConfig(s,n,o,i).then(l=>l(e,t))},configUpsertGiftCard(s,n,o,i){return r.configUpsertGiftCard(s,n,o,i).then(l=>l(e,t))},configUpsertLoyalty(s,n,o){return r.configUpsertLoyalty(s,n,o).then(i=>i(e,t))},configUpsertNets(s,n,o,i){return r.configUpsertNets(s,n,o,i).then(l=>l(e,t))},configUpsertPaymentOptions(s,n,o,i){return r.configUpsertPaymentOptions(s,n,o,i).then(l=>l(e,t))},configUpsertStripe(s,n,o,i){return r.configUpsertStripe(s,n,o,i).then(l=>l(e,t))},configUpsertViva(s,n,o,i){return r.configUpsertViva(s,n,o,i).then(l=>l(e,t))}}},De=class extends I{configConfigureMunchiGiftCard(t,e,r,s){return M(this.configuration).configConfigureMunchiGiftCard(t,e,r,s).then(n=>n(this.axios,this.basePath))}configManualSync(t,e,r){return M(this.configuration).configManualSync(t,e,r).then(s=>s(this.axios,this.basePath))}configRemovePaymentOption(t,e,r,s){return M(this.configuration).configRemovePaymentOption(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(t,e,r){return M(this.configuration).configUpsertBusiness(t,e,r).then(s=>s(this.axios,this.basePath))}configUpsertChannelConfig(t,e,r,s){return M(this.configuration).configUpsertChannelConfig(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(t,e,r,s){return M(this.configuration).configUpsertGiftCard(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(t,e,r){return M(this.configuration).configUpsertLoyalty(t,e,r).then(s=>s(this.axios,this.basePath))}configUpsertNets(t,e,r,s){return M(this.configuration).configUpsertNets(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(t,e,r,s){return M(this.configuration).configUpsertPaymentOptions(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertStripe(t,e,r,s){return M(this.configuration).configUpsertStripe(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertViva(t,e,r,s){return M(this.configuration).configUpsertViva(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Rt=function(a){return{createAssignment:async(t,e,r={})=>{c("createAssignment","businessId",t),c("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},nt=function(a){let t=Rt(a);return{async createAssignment(e,r,s){let n=await t.createAssignment(e,r,s);return P(n,h.default,p,a)}}},An=function(a,t,e){let r=nt(a);return{createAssignment(s,n,o){return r.createAssignment(s,n,o).then(i=>i(e,t))}}},Oe=class extends I{createAssignment(t,e,r){return nt(this.configuration).createAssignment(t,e,r).then(s=>s(this.axios,this.basePath))}},Ct=function(a){return{redeemGiftCard:async(t,e={})=>{c("redeemGiftCard","redeemGiftCardDto",t);let r="/api/v1/giftcard/redeem",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateGiftCard:async(t,e={})=>{c("validateGiftCard","validateGiftCardDto",t);let r="/api/v1/giftcard/validate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},de=function(a){let t=Ct(a);return{async redeemGiftCard(e,r){let s=await t.redeemGiftCard(e,r);return P(s,h.default,p,a)},async validateGiftCard(e,r){let s=await t.validateGiftCard(e,r);return P(s,h.default,p,a)}}},xn=function(a,t,e){let r=de(a);return{redeemGiftCard(s,n){return r.redeemGiftCard(s,n).then(o=>o(e,t))},validateGiftCard(s,n){return r.validateGiftCard(s,n).then(o=>o(e,t))}}},Ve=class extends I{redeemGiftCard(t,e){return de(this.configuration).redeemGiftCard(t,e).then(r=>r(this.axios,this.basePath))}validateGiftCard(t,e){return de(this.configuration).validateGiftCard(t,e).then(r=>r(this.axios,this.basePath))}},Dt=function(a){return{getInternalOrderHistoryOnline:async(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O={})=>{c("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},_={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),b!==void 0&&(D.invoiceCompanyId=b),C!==void 0&&(D.timezone=C),g(v,D);let K=V&&V.headers?V.headers:{};return E.headers={..._,...K,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O={})=>{c("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},_={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),b!==void 0&&(D.invoiceCompanyId=b),C!==void 0&&(D.timezone=C),g(v,D);let K=V&&V.headers?V.headers:{};return E.headers={..._,...K,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O={})=>{c("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},_={},D={};await R(_,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),b!==void 0&&(D.invoiceCompanyId=b),C!==void 0&&(D.timezone=C),g(v,D);let K=V&&V.headers?V.headers:{};return E.headers={..._,...K,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O={})=>{c("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},_={},D={};await R(_,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),b!==void 0&&(D.invoiceCompanyId=b),C!==void 0&&(D.timezone=C),g(v,D);let K=V&&V.headers?V.headers:{};return E.headers={..._,...K,...O.headers},{url:y(v),options:E}}}},Q=function(a){let t=Dt(a);return{async getInternalOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S){let v=await t.getInternalOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S);return P(v,h.default,p,a)},async getOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S){let v=await t.getOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S);return P(v,h.default,p,a)},async getOrderHistoryPOSV5(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S){let v=await t.getOrderHistoryPOSV5(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S);return P(v,h.default,p,a)},async getOrderHistoryPOSV5Internal(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S){let v=await t.getOrderHistoryPOSV5Internal(e,r,s,n,o,i,l,u,d,f,x,b,C,O,S);return P(v,h.default,p,a)}}},bn=function(a,t,e){let r=Q(a);return{getInternalOrderHistoryOnline(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V){return r.getInternalOrderHistoryOnline(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V).then(E=>E(e,t))},getOrderHistoryOnline(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V){return r.getOrderHistoryOnline(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V){return r.getOrderHistoryPOSV5(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5Internal(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V){return r.getOrderHistoryPOSV5Internal(s,n,o,i,l,u,d,f,x,b,C,O,S,v,V).then(E=>E(e,t))}}},Ie=class extends I{getInternalOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O){return Q(this.configuration).getInternalOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O){return Q(this.configuration).getOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O){return Q(this.configuration).getOrderHistoryPOSV5(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O){return Q(this.configuration).getOrderHistoryPOSV5Internal(t,e,r,s,n,o,i,l,u,d,f,x,b,C,O).then(S=>S(this.axios,this.basePath))}},Ot=function(a){return{createInvoiceCompany:async(t,e,r={})=>{c("createInvoiceCompany","businessId",t),c("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},deleteInvoiceCompany:async(t,e,r={})=>{c("deleteInvoiceCompany","id",t),c("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getInvoiceCompanies:async(t,e={})=>{c("getInvoiceCompanies","businessId",t);let r="/api/v1/invoice-companies",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getInvoiceCompanyById:async(t,e,r={})=>{c("getInvoiceCompanyById","id",t),c("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},searchInvoiceCompanies:async(t,e,r={})=>{c("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),e!==void 0&&(u.search=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},updateInvoiceCompany:async(t,e,r,s={})=>{c("updateInvoiceCompany","id",t),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",r);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},j=function(a){let t=Ot(a);return{async createInvoiceCompany(e,r,s){let n=await t.createInvoiceCompany(e,r,s);return P(n,h.default,p,a)},async deleteInvoiceCompany(e,r,s){let n=await t.deleteInvoiceCompany(e,r,s);return P(n,h.default,p,a)},async getInvoiceCompanies(e,r){let s=await t.getInvoiceCompanies(e,r);return P(s,h.default,p,a)},async getInvoiceCompanyById(e,r,s){let n=await t.getInvoiceCompanyById(e,r,s);return P(n,h.default,p,a)},async searchInvoiceCompanies(e,r,s){let n=await t.searchInvoiceCompanies(e,r,s);return P(n,h.default,p,a)},async updateInvoiceCompany(e,r,s,n){let o=await t.updateInvoiceCompany(e,r,s,n);return P(o,h.default,p,a)}}},Rn=function(a,t,e){let r=j(a);return{createInvoiceCompany(s,n,o){return r.createInvoiceCompany(s,n,o).then(i=>i(e,t))},deleteInvoiceCompany(s,n,o){return r.deleteInvoiceCompany(s,n,o).then(i=>i(e,t))},getInvoiceCompanies(s,n){return r.getInvoiceCompanies(s,n).then(o=>o(e,t))},getInvoiceCompanyById(s,n,o){return r.getInvoiceCompanyById(s,n,o).then(i=>i(e,t))},searchInvoiceCompanies(s,n,o){return r.searchInvoiceCompanies(s,n,o).then(i=>i(e,t))},updateInvoiceCompany(s,n,o,i){return r.updateInvoiceCompany(s,n,o,i).then(l=>l(e,t))}}},Se=class extends I{createInvoiceCompany(t,e,r){return j(this.configuration).createInvoiceCompany(t,e,r).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,r){return j(this.configuration).deleteInvoiceCompany(t,e,r).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return j(this.configuration).getInvoiceCompanies(t,e).then(r=>r(this.axios,this.basePath))}getInvoiceCompanyById(t,e,r){return j(this.configuration).getInvoiceCompanyById(t,e,r).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,r){return j(this.configuration).searchInvoiceCompanies(t,e,r).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,r,s){return j(this.configuration).updateInvoiceCompany(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Vt=function(a){return{kdsGetOrders:async(t,e,r,s,n,o,i,l,u,d,f,x={})=>{c("kdsGetOrders","status",t),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",r);let b="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(t))),C=new URL(b,m),O;a&&(O=a.baseOptions);let S={method:"GET",...O,...x},v={},V={};await R(v,a),e!==void 0&&(V.businessIds=e),r!==void 0&&(V.profileId=r),s!==void 0&&(V.page=s),n!==void 0&&(V.rowPerPage=n),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),f&&(V.consumptionType=f),g(C,V);let E=O&&O.headers?O.headers:{};return S.headers={...v,...E,...x.headers},{url:y(C),options:S}},kdsGetProfiles:async(t,e={})=>{c("kdsGetProfiles","businessId",t);let r="/api/v1/kds/profiles",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsMarkOrderReady:async(t,e={})=>{c("kdsMarkOrderReady","id",t);let r="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsRevertOrder:async(t,e={})=>{c("kdsRevertOrder","id",t);let r="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await R(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},$=function(a){let t=Vt(a);return{async kdsGetOrders(e,r,s,n,o,i,l,u,d,f,x,b){let C=await t.kdsGetOrders(e,r,s,n,o,i,l,u,d,f,x,b);return P(C,h.default,p,a)},async kdsGetProfiles(e,r){let s=await t.kdsGetProfiles(e,r);return P(s,h.default,p,a)},async kdsMarkOrderReady(e,r){let s=await t.kdsMarkOrderReady(e,r);return P(s,h.default,p,a)},async kdsRevertOrder(e,r){let s=await t.kdsRevertOrder(e,r);return P(s,h.default,p,a)}}},Cn=function(a,t,e){let r=$(a);return{kdsGetOrders(s,n,o,i,l,u,d,f,x,b,C,O){return r.kdsGetOrders(s,n,o,i,l,u,d,f,x,b,C,O).then(S=>S(e,t))},kdsGetProfiles(s,n){return r.kdsGetProfiles(s,n).then(o=>o(e,t))},kdsMarkOrderReady(s,n){return r.kdsMarkOrderReady(s,n).then(o=>o(e,t))},kdsRevertOrder(s,n){return r.kdsRevertOrder(s,n).then(o=>o(e,t))}}},ve=class extends I{kdsGetOrders(t,e,r,s,n,o,i,l,u,d,f,x){return $(this.configuration).kdsGetOrders(t,e,r,s,n,o,i,l,u,d,f,x).then(b=>b(this.axios,this.basePath))}kdsGetProfiles(t,e){return $(this.configuration).kdsGetProfiles(t,e).then(r=>r(this.axios,this.basePath))}kdsMarkOrderReady(t,e){return $(this.configuration).kdsMarkOrderReady(t,e).then(r=>r(this.axios,this.basePath))}kdsRevertOrder(t,e){return $(this.configuration).kdsRevertOrder(t,e).then(r=>r(this.axios,this.basePath))}},It=function(a){return{getOrderStatus:async(t,e,r={})=>{c("getOrderStatus","orderId",t),c("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recoverOrder:async(t,e,r={})=>{c("recoverOrder","orderId",t),c("recoverOrder","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},validate:async(t,e,r={})=>{c("validate","terminalId",t),c("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};t!==void 0&&(u.terminalId=t),e!==void 0&&(u.provider=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},te=function(a){let t=It(a);return{async getOrderStatus(e,r,s){let n=await t.getOrderStatus(e,r,s);return P(n,h.default,p,a)},async recoverOrder(e,r,s){let n=await t.recoverOrder(e,r,s);return P(n,h.default,p,a)},async validate(e,r,s){let n=await t.validate(e,r,s);return P(n,h.default,p,a)}}},Dn=function(a,t,e){let r=te(a);return{getOrderStatus(s,n,o){return r.getOrderStatus(s,n,o).then(i=>i(e,t))},recoverOrder(s,n,o){return r.recoverOrder(s,n,o).then(i=>i(e,t))},validate(s,n,o){return r.validate(s,n,o).then(i=>i(e,t))}}},Te=class extends I{getOrderStatus(t,e,r){return te(this.configuration).getOrderStatus(t,e,r).then(s=>s(this.axios,this.basePath))}recoverOrder(t,e,r){return te(this.configuration).recoverOrder(t,e,r).then(s=>s(this.axios,this.basePath))}validate(t,e,r){return te(this.configuration).validate(t,e,r).then(s=>s(this.axios,this.basePath))}},St=function(a){return{activateKioskOffer:async(t,e={})=>{c("activateKioskOffer","activateKioskOfferDto",t);let r="/api/v1/loyalty/users/activate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},claimKioskOffer:async(t,e={})=>{c("claimKioskOffer","claimKioskOfferDto",t);let r="/api/v1/loyalty/users/claim",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createLoyaltyUser:async(t,e,r={})=>{c("createLoyaltyUser","businessId",t),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let s="/api/v1/loyalty/users/create",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getAdminTransactions:async(t,e,r,s={})=>{c("getAdminTransactions","businessId",t);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await R(u,a),t!==void 0&&(d.businessId=t),e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getLoyaltyInfo:async(t,e={})=>{c("getLoyaltyInfo","businessId",t);let r="/api/v1/loyalty/info",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getUserById:async(t,e,r={})=>{c("getUserById","businessId",t),c("getUserById","userId",e);let s="/api/v1/loyalty/users/info",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserPerks:async(t,e,r={})=>{c("getUserPerks","businessId",t),c("getUserPerks","userId",e);let s="/api/v1/loyalty/users/perks",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserWallet:async(t,e,r={})=>{c("getUserWallet","businessId",t),c("getUserWallet","userId",e);let s="/api/v1/loyalty/users/wallet",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await R(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resolvePerks:async(t,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",t);let r="/api/v1/loyalty/resolve",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},searchUser:async(t,e,r,s,n={})=>{c("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};await R(d,a),e!==void 0&&(f.phone=e),r!==void 0&&(f.country_code=r),s!==void 0&&(f.email=s),t!==void 0&&(f.businessId=t),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},updatePoints:async(t,e,r={})=>{c("updatePoints","businessId",t),c("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},k=function(a){let t=St(a);return{async activateKioskOffer(e,r){let s=await t.activateKioskOffer(e,r);return P(s,h.default,p,a)},async claimKioskOffer(e,r){let s=await t.claimKioskOffer(e,r);return P(s,h.default,p,a)},async createLoyaltyUser(e,r,s){let n=await t.createLoyaltyUser(e,r,s);return P(n,h.default,p,a)},async getAdminTransactions(e,r,s,n){let o=await t.getAdminTransactions(e,r,s,n);return P(o,h.default,p,a)},async getLoyaltyInfo(e,r){let s=await t.getLoyaltyInfo(e,r);return P(s,h.default,p,a)},async getUserById(e,r,s){let n=await t.getUserById(e,r,s);return P(n,h.default,p,a)},async getUserPerks(e,r,s){let n=await t.getUserPerks(e,r,s);return P(n,h.default,p,a)},async getUserWallet(e,r,s){let n=await t.getUserWallet(e,r,s);return P(n,h.default,p,a)},async resolvePerks(e,r){let s=await t.resolvePerks(e,r);return P(s,h.default,p,a)},async searchUser(e,r,s,n,o){let i=await t.searchUser(e,r,s,n,o);return P(i,h.default,p,a)},async updatePoints(e,r,s){let n=await t.updatePoints(e,r,s);return P(n,h.default,p,a)}}},On=function(a,t,e){let r=k(a);return{activateKioskOffer(s,n){return r.activateKioskOffer(s,n).then(o=>o(e,t))},claimKioskOffer(s,n){return r.claimKioskOffer(s,n).then(o=>o(e,t))},createLoyaltyUser(s,n,o){return r.createLoyaltyUser(s,n,o).then(i=>i(e,t))},getAdminTransactions(s,n,o,i){return r.getAdminTransactions(s,n,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,n){return r.getLoyaltyInfo(s,n).then(o=>o(e,t))},getUserById(s,n,o){return r.getUserById(s,n,o).then(i=>i(e,t))},getUserPerks(s,n,o){return r.getUserPerks(s,n,o).then(i=>i(e,t))},getUserWallet(s,n,o){return r.getUserWallet(s,n,o).then(i=>i(e,t))},resolvePerks(s,n){return r.resolvePerks(s,n).then(o=>o(e,t))},searchUser(s,n,o,i,l){return r.searchUser(s,n,o,i,l).then(u=>u(e,t))},updatePoints(s,n,o){return r.updatePoints(s,n,o).then(i=>i(e,t))}}},Ee=class extends I{activateKioskOffer(t,e){return k(this.configuration).activateKioskOffer(t,e).then(r=>r(this.axios,this.basePath))}claimKioskOffer(t,e){return k(this.configuration).claimKioskOffer(t,e).then(r=>r(this.axios,this.basePath))}createLoyaltyUser(t,e,r){return k(this.configuration).createLoyaltyUser(t,e,r).then(s=>s(this.axios,this.basePath))}getAdminTransactions(t,e,r,s){return k(this.configuration).getAdminTransactions(t,e,r,s).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(t,e){return k(this.configuration).getLoyaltyInfo(t,e).then(r=>r(this.axios,this.basePath))}getUserById(t,e,r){return k(this.configuration).getUserById(t,e,r).then(s=>s(this.axios,this.basePath))}getUserPerks(t,e,r){return k(this.configuration).getUserPerks(t,e,r).then(s=>s(this.axios,this.basePath))}getUserWallet(t,e,r){return k(this.configuration).getUserWallet(t,e,r).then(s=>s(this.axios,this.basePath))}resolvePerks(t,e){return k(this.configuration).resolvePerks(t,e).then(r=>r(this.axios,this.basePath))}searchUser(t,e,r,s,n){return k(this.configuration).searchUser(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,r){return k(this.configuration).updatePoints(t,e,r).then(s=>s(this.axios,this.basePath))}},vt=function(a){return{editBusinessProduct:async(t,e,r={})=>{c("editBusinessProduct","businessId",t),c("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},editBusinessProductV2:async(t,e,r={})=>{c("editBusinessProductV2","businessId",t),c("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessExtras:async(t,e={})=>{c("getBusinessExtras","businessId",t);let r="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getProductsByCategoriesV2:async(t,e,r={})=>{c("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resetProductEod:async(t,e={})=>{c("resetProductEod","resetEodDto",t);let r="/api/v1/menu/availability/reset-eod",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},G=function(a){let t=vt(a);return{async editBusinessProduct(e,r,s){let n=await t.editBusinessProduct(e,r,s);return P(n,h.default,p,a)},async editBusinessProductV2(e,r,s){let n=await t.editBusinessProductV2(e,r,s);return P(n,h.default,p,a)},async getBusinessExtras(e,r){let s=await t.getBusinessExtras(e,r);return P(s,h.default,p,a)},async getProductsByCategoriesV2(e,r,s){let n=await t.getProductsByCategoriesV2(e,r,s);return P(n,h.default,p,a)},async resetProductEod(e,r){let s=await t.resetProductEod(e,r);return P(s,h.default,p,a)}}},Vn=function(a,t,e){let r=G(a);return{editBusinessProduct(s,n,o){return r.editBusinessProduct(s,n,o).then(i=>i(e,t))},editBusinessProductV2(s,n,o){return r.editBusinessProductV2(s,n,o).then(i=>i(e,t))},getBusinessExtras(s,n){return r.getBusinessExtras(s,n).then(o=>o(e,t))},getProductsByCategoriesV2(s,n,o){return r.getProductsByCategoriesV2(s,n,o).then(i=>i(e,t))},resetProductEod(s,n){return r.resetProductEod(s,n).then(o=>o(e,t))}}},qe=class extends I{editBusinessProduct(t,e,r){return G(this.configuration).editBusinessProduct(t,e,r).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,r){return G(this.configuration).editBusinessProductV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return G(this.configuration).getBusinessExtras(t,e).then(r=>r(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,r){return G(this.configuration).getProductsByCategoriesV2(t,e,r).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return G(this.configuration).resetProductEod(t,e).then(r=>r(this.axios,this.basePath))}},Tt=function(a){return{addBusinessesToMerchant:async(t,e,r={})=>{c("addBusinessesToMerchant","merchantId",t),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let s="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await R(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},createMerchant:async(t,e={})=>{c("createMerchant","createMerchantDto",t);let r="/api/v1/merchants",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeBusinessFromMerchant:async(t,e,r={})=>{c("removeBusinessFromMerchant","merchantId",t),c("removeBusinessFromMerchant","businessId",e);let s="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await R(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},se=function(a){let t=Tt(a);return{async addBusinessesToMerchant(e,r,s){let n=await t.addBusinessesToMerchant(e,r,s);return P(n,h.default,p,a)},async createMerchant(e,r){let s=await t.createMerchant(e,r);return P(s,h.default,p,a)},async removeBusinessFromMerchant(e,r,s){let n=await t.removeBusinessFromMerchant(e,r,s);return P(n,h.default,p,a)}}},In=function(a,t,e){let r=se(a);return{addBusinessesToMerchant(s,n,o){return r.addBusinessesToMerchant(s,n,o).then(i=>i(e,t))},createMerchant(s,n){return r.createMerchant(s,n).then(o=>o(e,t))},removeBusinessFromMerchant(s,n,o){return r.removeBusinessFromMerchant(s,n,o).then(i=>i(e,t))}}},Ue=class extends I{addBusinessesToMerchant(t,e,r){return se(this.configuration).addBusinessesToMerchant(t,e,r).then(s=>s(this.axios,this.basePath))}createMerchant(t,e){return se(this.configuration).createMerchant(t,e).then(r=>r(this.axios,this.basePath))}removeBusinessFromMerchant(t,e,r){return se(this.configuration).removeBusinessFromMerchant(t,e,r).then(s=>s(this.axios,this.basePath))}},Et=function(a){return{createMunchiGiftCard:async(t,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",t);let r="/api/v1/munchi-giftcard/create",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getMunchiGiftCardData:async(t,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",t);let r="/api/v1/munchi-giftcard/data",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},redeemMunchiGiftCard:async(t,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",t);let r="/api/v1/munchi-giftcard/redeem",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateMunchiGiftCard:async(t,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",t);let r="/api/v1/munchi-giftcard/validate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},z=function(a){let t=Et(a);return{async createMunchiGiftCard(e,r){let s=await t.createMunchiGiftCard(e,r);return P(s,h.default,p,a)},async getMunchiGiftCardData(e,r){let s=await t.getMunchiGiftCardData(e,r);return P(s,h.default,p,a)},async redeemMunchiGiftCard(e,r){let s=await t.redeemMunchiGiftCard(e,r);return P(s,h.default,p,a)},async validateMunchiGiftCard(e,r){let s=await t.validateMunchiGiftCard(e,r);return P(s,h.default,p,a)}}},Sn=function(a,t,e){let r=z(a);return{createMunchiGiftCard(s,n){return r.createMunchiGiftCard(s,n).then(o=>o(e,t))},getMunchiGiftCardData(s,n){return r.getMunchiGiftCardData(s,n).then(o=>o(e,t))},redeemMunchiGiftCard(s,n){return r.redeemMunchiGiftCard(s,n).then(o=>o(e,t))},validateMunchiGiftCard(s,n){return r.validateMunchiGiftCard(s,n).then(o=>o(e,t))}}},Be=class extends I{createMunchiGiftCard(t,e){return z(this.configuration).createMunchiGiftCard(t,e).then(r=>r(this.axios,this.basePath))}getMunchiGiftCardData(t,e){return z(this.configuration).getMunchiGiftCardData(t,e).then(r=>r(this.axios,this.basePath))}redeemMunchiGiftCard(t,e){return z(this.configuration).redeemMunchiGiftCard(t,e).then(r=>r(this.axios,this.basePath))}validateMunchiGiftCard(t,e){return z(this.configuration).validateMunchiGiftCard(t,e).then(r=>r(this.axios,this.basePath))}},qt=function(a){return{addVenueSubscriptionsV2:async(t,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let r="/api/v2/notification/add-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let r="/api/v2/notification/remove-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},pe=function(a){let t=qt(a);return{async addVenueSubscriptionsV2(e,r){let s=await t.addVenueSubscriptionsV2(e,r);return P(s,h.default,p,a)},async removeVenueSubscriptionsV2(e,r){let s=await t.removeVenueSubscriptionsV2(e,r);return P(s,h.default,p,a)}}},vn=function(a,t,e){let r=pe(a);return{addVenueSubscriptionsV2(s,n){return r.addVenueSubscriptionsV2(s,n).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,n){return r.removeVenueSubscriptionsV2(s,n).then(o=>o(e,t))}}},Me=class extends I{addVenueSubscriptionsV2(t,e){return pe(this.configuration).addVenueSubscriptionsV2(t,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return pe(this.configuration).removeVenueSubscriptionsV2(t,e).then(r=>r(this.axios,this.basePath))}},Ut=function(a){return{findOneByExternalId:async(t,e={})=>{c("findOneByExternalId","externalId",t);let r="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},ot=function(a){let t=Ut(a);return{async findOneByExternalId(e,r){let s=await t.findOneByExternalId(e,r);return P(s,h.default,p,a)}}},Tn=function(a,t,e){let r=ot(a);return{findOneByExternalId(s,n){return r.findOneByExternalId(s,n).then(o=>o(e,t))}}},ke=class extends I{findOneByExternalId(t,e){return ot(this.configuration).findOneByExternalId(t,e).then(r=>r(this.axios,this.basePath))}},Bt=function(a){return{updateTaxRate:async(t,e={})=>{c("updateTaxRate","body",t);let r="/api/v1/ordering/update-tax-rate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},at=function(a){let t=Bt(a);return{async updateTaxRate(e,r){let s=await t.updateTaxRate(e,r);return P(s,h.default,p,a)}}},En=function(a,t,e){let r=at(a);return{updateTaxRate(s,n){return r.updateTaxRate(s,n).then(o=>o(e,t))}}},we=class extends I{updateTaxRate(t,e){return at(this.configuration).updateTaxRate(t,e).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{acceptOrder:async(t,e={})=>{c("acceptOrder","acceptOrderDto",t);let r="/api/v1/orders/accept",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},confirmPreOrder:async(t,e={})=>{c("confirmPreOrder","confirmPreorderDto",t);let r="/api/v1/orders/confirm/preOrder",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",t);let r="/api/v2/orders/pos/park",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deliverOrder:async(t,e={})=>{c("deliverOrder","deliveredOrderDto",t);let r="/api/v1/orders/delivered",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getAllOrdersV2:async(t,e={})=>{c("getAllOrdersV2","businessIds",t);let r="/api/v2/orders",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessIds=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getOrdersV2:async(t,e,r,s,n={})=>{c("getOrdersV2","status",t),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};e!==void 0&&(f.businessIds=e),r!==void 0&&(f.posBusinessId=r),s!==void 0&&(f.extraProvider=s),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{c("getParkedPosOrderV2","businessId",t);let r="/api/v2/orders/pos/park",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},markOrderAsReady:async(t,e={})=>{c("markOrderAsReady","readyOrderDto",t);let r="/api/v1/orders/ready",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},placePosOrderV4:async(t,e={})=>{c("placePosOrderV4","posOrderPayloadDto",t);let r="/api/v4/orders/pos/place",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processPosOrderActions:async(t,e={})=>{c("processPosOrderActions","processOrderActionsDto",t);let r="/api/v4/orders/pos/actions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},rejectOrder:async(t,e={})=>{c("rejectOrder","rejectOrderDto",t);let r="/api/v1/orders/reject",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updatePosOrderV2:async(t,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",t);let r="/api/v2/orders/pos/update",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},B=function(a){let t=Mt(a);return{async acceptOrder(e,r){let s=await t.acceptOrder(e,r);return P(s,h.default,p,a)},async confirmPreOrder(e,r){let s=await t.confirmPreOrder(e,r);return P(s,h.default,p,a)},async deletePosParkedOrderV2(e,r){let s=await t.deletePosParkedOrderV2(e,r);return P(s,h.default,p,a)},async deliverOrder(e,r){let s=await t.deliverOrder(e,r);return P(s,h.default,p,a)},async getAllOrdersV2(e,r){let s=await t.getAllOrdersV2(e,r);return P(s,h.default,p,a)},async getOrdersV2(e,r,s,n,o){let i=await t.getOrdersV2(e,r,s,n,o);return P(i,h.default,p,a)},async getParkedPosOrderV2(e,r){let s=await t.getParkedPosOrderV2(e,r);return P(s,h.default,p,a)},async markOrderAsReady(e,r){let s=await t.markOrderAsReady(e,r);return P(s,h.default,p,a)},async placePosOrderV4(e,r){let s=await t.placePosOrderV4(e,r);return P(s,h.default,p,a)},async processPosOrderActions(e,r){let s=await t.processPosOrderActions(e,r);return P(s,h.default,p,a)},async rejectOrder(e,r){let s=await t.rejectOrder(e,r);return P(s,h.default,p,a)},async updatePosOrderV2(e,r){let s=await t.updatePosOrderV2(e,r);return P(s,h.default,p,a)}}},qn=function(a,t,e){let r=B(a);return{acceptOrder(s,n){return r.acceptOrder(s,n).then(o=>o(e,t))},confirmPreOrder(s,n){return r.confirmPreOrder(s,n).then(o=>o(e,t))},deletePosParkedOrderV2(s,n){return r.deletePosParkedOrderV2(s,n).then(o=>o(e,t))},deliverOrder(s,n){return r.deliverOrder(s,n).then(o=>o(e,t))},getAllOrdersV2(s,n){return r.getAllOrdersV2(s,n).then(o=>o(e,t))},getOrdersV2(s,n,o,i,l){return r.getOrdersV2(s,n,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,n){return r.getParkedPosOrderV2(s,n).then(o=>o(e,t))},markOrderAsReady(s,n){return r.markOrderAsReady(s,n).then(o=>o(e,t))},placePosOrderV4(s,n){return r.placePosOrderV4(s,n).then(o=>o(e,t))},processPosOrderActions(s,n){return r.processPosOrderActions(s,n).then(o=>o(e,t))},rejectOrder(s,n){return r.rejectOrder(s,n).then(o=>o(e,t))},updatePosOrderV2(s,n){return r.updatePosOrderV2(s,n).then(o=>o(e,t))}}},_e=class extends I{acceptOrder(t,e){return B(this.configuration).acceptOrder(t,e).then(r=>r(this.axios,this.basePath))}confirmPreOrder(t,e){return B(this.configuration).confirmPreOrder(t,e).then(r=>r(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return B(this.configuration).deletePosParkedOrderV2(t,e).then(r=>r(this.axios,this.basePath))}deliverOrder(t,e){return B(this.configuration).deliverOrder(t,e).then(r=>r(this.axios,this.basePath))}getAllOrdersV2(t,e){return B(this.configuration).getAllOrdersV2(t,e).then(r=>r(this.axios,this.basePath))}getOrdersV2(t,e,r,s,n){return B(this.configuration).getOrdersV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return B(this.configuration).getParkedPosOrderV2(t,e).then(r=>r(this.axios,this.basePath))}markOrderAsReady(t,e){return B(this.configuration).markOrderAsReady(t,e).then(r=>r(this.axios,this.basePath))}placePosOrderV4(t,e){return B(this.configuration).placePosOrderV4(t,e).then(r=>r(this.axios,this.basePath))}processPosOrderActions(t,e){return B(this.configuration).processPosOrderActions(t,e).then(r=>r(this.axios,this.basePath))}rejectOrder(t,e){return B(this.configuration).rejectOrder(t,e).then(r=>r(this.axios,this.basePath))}updatePosOrderV2(t,e){return B(this.configuration).updatePosOrderV2(t,e).then(r=>r(this.axios,this.basePath))}},kt=function(a){return{getPosSession:async(t,e={})=>{c("getPosSession","businessId",t);let r="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getPosSessionV2:async(t,e={})=>{c("getPosSessionV2","businessId",t);let r="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},me=function(a){let t=kt(a);return{async getPosSession(e,r){let s=await t.getPosSession(e,r);return P(s,h.default,p,a)},async getPosSessionV2(e,r){let s=await t.getPosSessionV2(e,r);return P(s,h.default,p,a)}}},Un=function(a,t,e){let r=me(a);return{getPosSession(s,n){return r.getPosSession(s,n).then(o=>o(e,t))},getPosSessionV2(s,n){return r.getPosSessionV2(s,n).then(o=>o(e,t))}}},Ne=class extends I{getPosSession(t,e){return me(this.configuration).getPosSession(t,e).then(r=>r(this.axios,this.basePath))}getPosSessionV2(t,e){return me(this.configuration).getPosSessionV2(t,e).then(r=>r(this.axios,this.basePath))}},wt=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let r="/api/v3/payment/nets/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let r="/api/v2/payment/viva/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{c("createNetsRefundTransaction","createRefundDto",t);let r="/api/v4/payment/nets/refund/transaction",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentReference:async(t,e={})=>{c("getPaymentReference","getPaymentReferenceDto",t);let r="/api/v1/payment/reference",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentStatus:async(t,e={})=>{c("getPaymentStatus","getPaymentStatusDto",t);let r="/api/v1/payment/status",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let r="/api/v3/payment/nets/terminal/initiate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",t);let r="/api/v4/payment/viva/terminal/initiate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{c("processOnlineOrderRefund","orderResponseDto",t);let r="/api/v1/payment/online-orders/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundCashPaymentV3:async(t,e={})=>{c("refundCashPaymentV3","cashRefundPayload",t);let r="/api/v3/payment/cash/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundManualPaymentV3:async(t,e={})=>{c("refundManualPaymentV3","manualRefundPayload",t);let r="/api/v3/payment/manual/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{c("refundNetsTransactionV3","refundPayloadDtoV4",t);let r="/api/v3/payment/nets/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{c("refundSingleVivaTransaction","createRefundDto",t);let r="/api/v4/payment/viva/refund/single",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{c("refundVivaTransactionV3","refundPayloadDto",t);let r="/api/v3/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{c("refundVivaTransactionV4","refundPayloadDtoV4",t);let r="/api/v4/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},U=function(a){let t=wt(a);return{async cancelNetsTerminalTransaction(e,r){let s=await t.cancelNetsTerminalTransaction(e,r);return P(s,h.default,p,a)},async cancelVivaTransactionV2(e,r){let s=await t.cancelVivaTransactionV2(e,r);return P(s,h.default,p,a)},async createNetsRefundTransaction(e,r){let s=await t.createNetsRefundTransaction(e,r);return P(s,h.default,p,a)},async getPaymentReference(e,r){let s=await t.getPaymentReference(e,r);return P(s,h.default,p,a)},async getPaymentStatus(e,r){let s=await t.getPaymentStatus(e,r);return P(s,h.default,p,a)},async initiateNetsTerminalTransaction(e,r){let s=await t.initiateNetsTerminalTransaction(e,r);return P(s,h.default,p,a)},async initiateTerminalTransaction(e,r){let s=await t.initiateTerminalTransaction(e,r);return P(s,h.default,p,a)},async processOnlineOrderRefund(e,r){let s=await t.processOnlineOrderRefund(e,r);return P(s,h.default,p,a)},async refundCashPaymentV3(e,r){let s=await t.refundCashPaymentV3(e,r);return P(s,h.default,p,a)},async refundManualPaymentV3(e,r){let s=await t.refundManualPaymentV3(e,r);return P(s,h.default,p,a)},async refundNetsTransactionV3(e,r){let s=await t.refundNetsTransactionV3(e,r);return P(s,h.default,p,a)},async refundSingleVivaTransaction(e,r){let s=await t.refundSingleVivaTransaction(e,r);return P(s,h.default,p,a)},async refundVivaTransactionV3(e,r){let s=await t.refundVivaTransactionV3(e,r);return P(s,h.default,p,a)},async refundVivaTransactionV4(e,r){let s=await t.refundVivaTransactionV4(e,r);return P(s,h.default,p,a)}}},Bn=function(a,t,e){let r=U(a);return{cancelNetsTerminalTransaction(s,n){return r.cancelNetsTerminalTransaction(s,n).then(o=>o(e,t))},cancelVivaTransactionV2(s,n){return r.cancelVivaTransactionV2(s,n).then(o=>o(e,t))},createNetsRefundTransaction(s,n){return r.createNetsRefundTransaction(s,n).then(o=>o(e,t))},getPaymentReference(s,n){return r.getPaymentReference(s,n).then(o=>o(e,t))},getPaymentStatus(s,n){return r.getPaymentStatus(s,n).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,n){return r.initiateNetsTerminalTransaction(s,n).then(o=>o(e,t))},initiateTerminalTransaction(s,n){return r.initiateTerminalTransaction(s,n).then(o=>o(e,t))},processOnlineOrderRefund(s,n){return r.processOnlineOrderRefund(s,n).then(o=>o(e,t))},refundCashPaymentV3(s,n){return r.refundCashPaymentV3(s,n).then(o=>o(e,t))},refundManualPaymentV3(s,n){return r.refundManualPaymentV3(s,n).then(o=>o(e,t))},refundNetsTransactionV3(s,n){return r.refundNetsTransactionV3(s,n).then(o=>o(e,t))},refundSingleVivaTransaction(s,n){return r.refundSingleVivaTransaction(s,n).then(o=>o(e,t))},refundVivaTransactionV3(s,n){return r.refundVivaTransactionV3(s,n).then(o=>o(e,t))},refundVivaTransactionV4(s,n){return r.refundVivaTransactionV4(s,n).then(o=>o(e,t))}}},Le=class extends I{cancelNetsTerminalTransaction(t,e){return U(this.configuration).cancelNetsTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return U(this.configuration).cancelVivaTransactionV2(t,e).then(r=>r(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return U(this.configuration).createNetsRefundTransaction(t,e).then(r=>r(this.axios,this.basePath))}getPaymentReference(t,e){return U(this.configuration).getPaymentReference(t,e).then(r=>r(this.axios,this.basePath))}getPaymentStatus(t,e){return U(this.configuration).getPaymentStatus(t,e).then(r=>r(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return U(this.configuration).initiateNetsTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return U(this.configuration).initiateTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return U(this.configuration).processOnlineOrderRefund(t,e).then(r=>r(this.axios,this.basePath))}refundCashPaymentV3(t,e){return U(this.configuration).refundCashPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}refundManualPaymentV3(t,e){return U(this.configuration).refundManualPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return U(this.configuration).refundNetsTransactionV3(t,e).then(r=>r(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return U(this.configuration).refundSingleVivaTransaction(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return U(this.configuration).refundVivaTransactionV3(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return U(this.configuration).refundVivaTransactionV4(t,e).then(r=>r(this.axios,this.basePath))}},_t=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},ge=function(a){let t=_t(a);return{async loadConfigFile(e){let r=await t.loadConfigFile(e);return P(r,h.default,p,a)},async upsertBusiness(e){let r=await t.upsertBusiness(e);return P(r,h.default,p,a)}}},Mn=function(a,t,e){let r=ge(a);return{loadConfigFile(s){return r.loadConfigFile(s).then(n=>n(e,t))},upsertBusiness(s){return r.upsertBusiness(s).then(n=>n(e,t))}}},Fe=class extends I{loadConfigFile(t){return ge(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return ge(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},Nt=function(a){return{deleteCategoryPolicy:async(t,e,r={})=>{c("deleteCategoryPolicy","businessId",t),c("deleteCategoryPolicy","categoryId",e);let s="/api/v1/printer/policies/category",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),e!==void 0&&(u.categoryId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},deletePrinter:async(t,e={})=>{c("deletePrinter","id",t);let r="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},deleteProductPolicy:async(t,e,r={})=>{c("deleteProductPolicy","businessId",t),c("deleteProductPolicy","productId",e);let s="/api/v1/printer/policies/product",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),e!==void 0&&(u.productId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},listCategoryPolicies:async(t,e={})=>{c("listCategoryPolicies","businessId",t);let r="/api/v1/printer/policies/category",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},listPrinters:async(t,e={})=>{c("listPrinters","businessId",t);let r="/api/v1/printer",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},listProductPolicies:async(t,e={})=>{c("listProductPolicies","businessId",t);let r="/api/v1/printer/policies/product",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},upsertCategoryPolicy:async(t,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",t);let r="/api/v1/printer/policies/category",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},upsertPrinter:async(t,e={})=>{c("upsertPrinter","upsertPrinterDto",t);let r="/api/v1/printer",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},upsertProductPolicy:async(t,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",t);let r="/api/v1/printer/policies/product",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},w=function(a){let t=Nt(a);return{async deleteCategoryPolicy(e,r,s){let n=await t.deleteCategoryPolicy(e,r,s);return P(n,h.default,p,a)},async deletePrinter(e,r){let s=await t.deletePrinter(e,r);return P(s,h.default,p,a)},async deleteProductPolicy(e,r,s){let n=await t.deleteProductPolicy(e,r,s);return P(n,h.default,p,a)},async listCategoryPolicies(e,r){let s=await t.listCategoryPolicies(e,r);return P(s,h.default,p,a)},async listPrinters(e,r){let s=await t.listPrinters(e,r);return P(s,h.default,p,a)},async listProductPolicies(e,r){let s=await t.listProductPolicies(e,r);return P(s,h.default,p,a)},async upsertCategoryPolicy(e,r){let s=await t.upsertCategoryPolicy(e,r);return P(s,h.default,p,a)},async upsertPrinter(e,r){let s=await t.upsertPrinter(e,r);return P(s,h.default,p,a)},async upsertProductPolicy(e,r){let s=await t.upsertProductPolicy(e,r);return P(s,h.default,p,a)}}},kn=function(a,t,e){let r=w(a);return{deleteCategoryPolicy(s,n,o){return r.deleteCategoryPolicy(s,n,o).then(i=>i(e,t))},deletePrinter(s,n){return r.deletePrinter(s,n).then(o=>o(e,t))},deleteProductPolicy(s,n,o){return r.deleteProductPolicy(s,n,o).then(i=>i(e,t))},listCategoryPolicies(s,n){return r.listCategoryPolicies(s,n).then(o=>o(e,t))},listPrinters(s,n){return r.listPrinters(s,n).then(o=>o(e,t))},listProductPolicies(s,n){return r.listProductPolicies(s,n).then(o=>o(e,t))},upsertCategoryPolicy(s,n){return r.upsertCategoryPolicy(s,n).then(o=>o(e,t))},upsertPrinter(s,n){return r.upsertPrinter(s,n).then(o=>o(e,t))},upsertProductPolicy(s,n){return r.upsertProductPolicy(s,n).then(o=>o(e,t))}}},je=class extends I{deleteCategoryPolicy(t,e,r){return w(this.configuration).deleteCategoryPolicy(t,e,r).then(s=>s(this.axios,this.basePath))}deletePrinter(t,e){return w(this.configuration).deletePrinter(t,e).then(r=>r(this.axios,this.basePath))}deleteProductPolicy(t,e,r){return w(this.configuration).deleteProductPolicy(t,e,r).then(s=>s(this.axios,this.basePath))}listCategoryPolicies(t,e){return w(this.configuration).listCategoryPolicies(t,e).then(r=>r(this.axios,this.basePath))}listPrinters(t,e){return w(this.configuration).listPrinters(t,e).then(r=>r(this.axios,this.basePath))}listProductPolicies(t,e){return w(this.configuration).listProductPolicies(t,e).then(r=>r(this.axios,this.basePath))}upsertCategoryPolicy(t,e){return w(this.configuration).upsertCategoryPolicy(t,e).then(r=>r(this.axios,this.basePath))}upsertPrinter(t,e){return w(this.configuration).upsertPrinter(t,e).then(r=>r(this.axios,this.basePath))}upsertProductPolicy(t,e){return w(this.configuration).upsertProductPolicy(t,e).then(r=>r(this.axios,this.basePath))}},Lt=function(a){return{generateProductSkuV2:async(t,e,r,s={})=>{c("generateProductSkuV2","businessId",t),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(t,e,r,s,n={})=>{c("updateChannelInventoryV2","businessId",t),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",r),c("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}},updateProductSkuV2:async(t,e,r,s,n={})=>{c("updateProductSkuV2","businessId",t),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",r),c("updateProductSkuV2","updateProductSkuDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}}}},re=function(a){let t=Lt(a);return{async generateProductSkuV2(e,r,s,n){let o=await t.generateProductSkuV2(e,r,s,n);return P(o,h.default,p,a)},async updateChannelInventoryV2(e,r,s,n,o){let i=await t.updateChannelInventoryV2(e,r,s,n,o);return P(i,h.default,p,a)},async updateProductSkuV2(e,r,s,n,o){let i=await t.updateProductSkuV2(e,r,s,n,o);return P(i,h.default,p,a)}}},wn=function(a,t,e){let r=re(a);return{generateProductSkuV2(s,n,o,i){return r.generateProductSkuV2(s,n,o,i).then(l=>l(e,t))},updateChannelInventoryV2(s,n,o,i,l){return r.updateChannelInventoryV2(s,n,o,i,l).then(u=>u(e,t))},updateProductSkuV2(s,n,o,i,l){return r.updateProductSkuV2(s,n,o,i,l).then(u=>u(e,t))}}},We=class extends I{generateProductSkuV2(t,e,r,s){return re(this.configuration).generateProductSkuV2(t,e,r,s).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(t,e,r,s,n){return re(this.configuration).updateChannelInventoryV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(t,e,r,s,n){return re(this.configuration).updateProductSkuV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}},Ft=function(a){return{getSupportedChannels:async(t,e={})=>{c("getSupportedChannels","businessId",t);let r="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},registerCredential:async(t,e={})=>{c("registerCredential","body",t);let r="/api/v1/provider/credentials",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},registerProvider:async(t,e={})=>{c("registerProvider","body",t);let r="/api/v1/provider",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},ne=function(a){let t=Ft(a);return{async getSupportedChannels(e,r){let s=await t.getSupportedChannels(e,r);return P(s,h.default,p,a)},async registerCredential(e,r){let s=await t.registerCredential(e,r);return P(s,h.default,p,a)},async registerProvider(e,r){let s=await t.registerProvider(e,r);return P(s,h.default,p,a)}}},_n=function(a,t,e){let r=ne(a);return{getSupportedChannels(s,n){return r.getSupportedChannels(s,n).then(o=>o(e,t))},registerCredential(s,n){return r.registerCredential(s,n).then(o=>o(e,t))},registerProvider(s,n){return r.registerProvider(s,n).then(o=>o(e,t))}}},Ke=class extends I{getSupportedChannels(t,e){return ne(this.configuration).getSupportedChannels(t,e).then(r=>r(this.axios,this.basePath))}registerCredential(t,e){return ne(this.configuration).registerCredential(t,e).then(r=>r(this.axios,this.basePath))}registerProvider(t,e){return ne(this.configuration).registerProvider(t,e).then(r=>r(this.axios,this.basePath))}},jt=function(a){return{cancelPlan:async(t,e,r,s={})=>{c("cancelPlan","businessId",t),c("cancelPlan","orderId",e),c("cancelPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},createRefundPlan:async(t,e,r,s={})=>{c("createRefundPlan","businessId",t),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},getRefundPlan:async(t,e,r,s={})=>{c("getRefundPlan","businessId",t),c("getRefundPlan","orderId",e),c("getRefundPlan","status",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};r!==void 0&&(d.status=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},recordRefundPlan:async(t,e,r,s,n={})=>{c("recordRefundPlan","businessId",t),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",r),c("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}},refundOnlineOrder:async(t,e,r,s={})=>{c("refundOnlineOrder","businessId",t),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};r!==void 0&&(d.provider=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},resolveRefundChoice:async(t,e,r,s,n={})=>{c("resolveRefundChoice","businessId",t),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",r),c("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}},startProcessPlan:async(t,e,r,s={})=>{c("startProcessPlan","businessId",t),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},N=function(a){let t=jt(a);return{async cancelPlan(e,r,s,n){let o=await t.cancelPlan(e,r,s,n);return P(o,h.default,p,a)},async createRefundPlan(e,r,s,n){let o=await t.createRefundPlan(e,r,s,n);return P(o,h.default,p,a)},async getRefundPlan(e,r,s,n){let o=await t.getRefundPlan(e,r,s,n);return P(o,h.default,p,a)},async recordRefundPlan(e,r,s,n,o){let i=await t.recordRefundPlan(e,r,s,n,o);return P(i,h.default,p,a)},async refundOnlineOrder(e,r,s,n){let o=await t.refundOnlineOrder(e,r,s,n);return P(o,h.default,p,a)},async resolveRefundChoice(e,r,s,n,o){let i=await t.resolveRefundChoice(e,r,s,n,o);return P(i,h.default,p,a)},async startProcessPlan(e,r,s,n){let o=await t.startProcessPlan(e,r,s,n);return P(o,h.default,p,a)}}},Nn=function(a,t,e){let r=N(a);return{cancelPlan(s,n,o,i){return r.cancelPlan(s,n,o,i).then(l=>l(e,t))},createRefundPlan(s,n,o,i){return r.createRefundPlan(s,n,o,i).then(l=>l(e,t))},getRefundPlan(s,n,o,i){return r.getRefundPlan(s,n,o,i).then(l=>l(e,t))},recordRefundPlan(s,n,o,i,l){return r.recordRefundPlan(s,n,o,i,l).then(u=>u(e,t))},refundOnlineOrder(s,n,o,i){return r.refundOnlineOrder(s,n,o,i).then(l=>l(e,t))},resolveRefundChoice(s,n,o,i,l){return r.resolveRefundChoice(s,n,o,i,l).then(u=>u(e,t))},startProcessPlan(s,n,o,i){return r.startProcessPlan(s,n,o,i).then(l=>l(e,t))}}},Ge=class extends I{cancelPlan(t,e,r,s){return N(this.configuration).cancelPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}createRefundPlan(t,e,r,s){return N(this.configuration).createRefundPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}getRefundPlan(t,e,r,s){return N(this.configuration).getRefundPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}recordRefundPlan(t,e,r,s,n){return N(this.configuration).recordRefundPlan(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(t,e,r,s){return N(this.configuration).refundOnlineOrder(t,e,r,s).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(t,e,r,s,n){return N(this.configuration).resolveRefundChoice(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,r,s){return N(this.configuration).startProcessPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Wt=function(a){return{getEndOfDayReportV5:async(t,e,r,s,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",t);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"GET",...d,...i},x={},b={};e!==void 0&&(b.timeSpan=e),r!==void 0&&(b.start=r),s!==void 0&&(b.end=s),t&&(b.businessIds=t),n!==void 0&&(b.timezone=n),o!==void 0&&(b.provider=o),g(u,b);let C=d&&d.headers?d.headers:{};return f.headers={...x,...C,...i.headers},{url:y(u),options:f}},getPOSEndOfDayReportV4:async(t,e,r,s,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",t);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},f={},x={};e!==void 0&&(x.timeSpan=e),r!==void 0&&(x.start=r),s!==void 0&&(x.end=s),t&&(x.businessIds=t),n!==void 0&&(x.timezone=n),g(l,x);let b=u&&u.headers?u.headers:{};return d.headers={...f,...b,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(t,e,r,s,n,o,i={})=>{c("sendReportEmailV4","businessIds",t),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",r);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"POST",...d,...i},x={},b={};s!==void 0&&(b.timeSpan=s),n!==void 0&&(b.start=n),o!==void 0&&(b.end=o),t&&(b.businessIds=t),e!==void 0&&(b.timezone=e),x["Content-Type"]="application/json",g(u,b);let C=d&&d.headers?d.headers:{};return f.headers={...x,...C,...i.headers},f.data=A(r,f,a),{url:y(u),options:f}},sendReportEmailV5:async(t,e,r,s,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",t),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",r);let u="/api/v5/report/email",d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"POST",...f,...l},b={},C={};s!==void 0&&(C.timeSpan=s),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),t&&(C.businessIds=t),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),b["Content-Type"]="application/json",g(d,C);let O=f&&f.headers?f.headers:{};return x.headers={...b,...O,...l.headers},x.data=A(r,x,a),{url:y(d),options:x}}}},Y=function(a){let t=Wt(a);return{async getEndOfDayReportV5(e,r,s,n,o,i,l){let u=await t.getEndOfDayReportV5(e,r,s,n,o,i,l);return P(u,h.default,p,a)},async getPOSEndOfDayReportV4(e,r,s,n,o,i){let l=await t.getPOSEndOfDayReportV4(e,r,s,n,o,i);return P(l,h.default,p,a)},async sendReportEmailV4(e,r,s,n,o,i,l){let u=await t.sendReportEmailV4(e,r,s,n,o,i,l);return P(u,h.default,p,a)},async sendReportEmailV5(e,r,s,n,o,i,l,u){let d=await t.sendReportEmailV5(e,r,s,n,o,i,l,u);return P(d,h.default,p,a)}}},Ln=function(a,t,e){let r=Y(a);return{getEndOfDayReportV5(s,n,o,i,l,u,d){return r.getEndOfDayReportV5(s,n,o,i,l,u,d).then(f=>f(e,t))},getPOSEndOfDayReportV4(s,n,o,i,l,u){return r.getPOSEndOfDayReportV4(s,n,o,i,l,u).then(d=>d(e,t))},sendReportEmailV4(s,n,o,i,l,u,d){return r.sendReportEmailV4(s,n,o,i,l,u,d).then(f=>f(e,t))},sendReportEmailV5(s,n,o,i,l,u,d,f){return r.sendReportEmailV5(s,n,o,i,l,u,d,f).then(x=>x(e,t))}}},He=class extends I{getEndOfDayReportV5(t,e,r,s,n,o,i){return Y(this.configuration).getEndOfDayReportV5(t,e,r,s,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,r,s,n,o){return Y(this.configuration).getPOSEndOfDayReportV4(t,e,r,s,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,r,s,n,o,i){return Y(this.configuration).sendReportEmailV4(t,e,r,s,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,r,s,n,o,i,l){return Y(this.configuration).sendReportEmailV5(t,e,r,s,n,o,i,l).then(u=>u(this.axios,this.basePath))}},Kt=function(a){return{clockIn:async(t,e,r={})=>{c("clockIn","businessId",t),c("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},clockOut:async(t,e,r={})=>{c("clockOut","businessId",t),c("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getTodayShift:async(t,e,r={})=>{c("getTodayShift","businessId",t),c("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.employeeId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},unlock:async(t,e,r={})=>{c("unlock","businessId",t),c("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},J=function(a){let t=Kt(a);return{async clockIn(e,r,s){let n=await t.clockIn(e,r,s);return P(n,h.default,p,a)},async clockOut(e,r,s){let n=await t.clockOut(e,r,s);return P(n,h.default,p,a)},async getTodayShift(e,r,s){let n=await t.getTodayShift(e,r,s);return P(n,h.default,p,a)},async unlock(e,r,s){let n=await t.unlock(e,r,s);return P(n,h.default,p,a)}}},Fn=function(a,t,e){let r=J(a);return{clockIn(s,n,o){return r.clockIn(s,n,o).then(i=>i(e,t))},clockOut(s,n,o){return r.clockOut(s,n,o).then(i=>i(e,t))},getTodayShift(s,n,o){return r.getTodayShift(s,n,o).then(i=>i(e,t))},unlock(s,n,o){return r.unlock(s,n,o).then(i=>i(e,t))}}},Qe=class extends I{clockIn(t,e,r){return J(this.configuration).clockIn(t,e,r).then(s=>s(this.axios,this.basePath))}clockOut(t,e,r){return J(this.configuration).clockOut(t,e,r).then(s=>s(this.axios,this.basePath))}getTodayShift(t,e,r){return J(this.configuration).getTodayShift(t,e,r).then(s=>s(this.axios,this.basePath))}unlock(t,e,r){return J(this.configuration).unlock(t,e,r).then(s=>s(this.axios,this.basePath))}},Gt=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getStation:async(t={})=>{let e="/api/v1/station",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},syncStation:async(t,e={})=>{c("syncStation","syncStationDto",t);let r="/api/v1/station/sync",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},oe=function(a){let t=Gt(a);return{async deactivateStation(e){let r=await t.deactivateStation(e);return P(r,h.default,p,a)},async getStation(e){let r=await t.getStation(e);return P(r,h.default,p,a)},async syncStation(e,r){let s=await t.syncStation(e,r);return P(s,h.default,p,a)}}},jn=function(a,t,e){let r=oe(a);return{deactivateStation(s){return r.deactivateStation(s).then(n=>n(e,t))},getStation(s){return r.getStation(s).then(n=>n(e,t))},syncStation(s,n){return r.syncStation(s,n).then(o=>o(e,t))}}},$e=class extends I{deactivateStation(t){return oe(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return oe(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return oe(this.configuration).syncStation(t,e).then(r=>r(this.axios,this.basePath))}},Ht=function(a){return{connectTerminal:async(t,e={})=>{c("connectTerminal","connectTerminalDto",t);let r="/api/v1/terminal/connect",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},discoverTerminal:async(t,e={})=>{c("discoverTerminal","discoverTerminalDto",t);let r="/api/v1/terminal/discover",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getTerminalStatus:async(t,e,r,s={})=>{c("getTerminalStatus","businessId",t),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",r);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};e!==void 0&&(d.provider=e),r!==void 0&&(d.terminalId=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},Z=function(a){let t=Ht(a);return{async connectTerminal(e,r){let s=await t.connectTerminal(e,r);return P(s,h.default,p,a)},async disconnectTerminal(e){let r=await t.disconnectTerminal(e);return P(r,h.default,p,a)},async discoverTerminal(e,r){let s=await t.discoverTerminal(e,r);return P(s,h.default,p,a)},async getTerminalStatus(e,r,s,n){let o=await t.getTerminalStatus(e,r,s,n);return P(o,h.default,p,a)}}},Wn=function(a,t,e){let r=Z(a);return{connectTerminal(s,n){return r.connectTerminal(s,n).then(o=>o(e,t))},disconnectTerminal(s){return r.disconnectTerminal(s).then(n=>n(e,t))},discoverTerminal(s,n){return r.discoverTerminal(s,n).then(o=>o(e,t))},getTerminalStatus(s,n,o,i){return r.getTerminalStatus(s,n,o,i).then(l=>l(e,t))}}},ze=class extends I{connectTerminal(t,e){return Z(this.configuration).connectTerminal(t,e).then(r=>r(this.axios,this.basePath))}disconnectTerminal(t){return Z(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return Z(this.configuration).discoverTerminal(t,e).then(r=>r(this.axios,this.basePath))}getTerminalStatus(t,e,r,s){return Z(this.configuration).getTerminalStatus(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Qt=function(a){return{getUserBusinessV1:async(t={})=>{let e="/api/v1/user/business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await R(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getUserBusinessV2:async(t={})=>{let e="/api/v2/user/business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await R(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getUserInfoV1:async(t={})=>{let e="/api/v1/user",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await R(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},ae=function(a){let t=Qt(a);return{async getUserBusinessV1(e){let r=await t.getUserBusinessV1(e);return P(r,h.default,p,a)},async getUserBusinessV2(e){let r=await t.getUserBusinessV2(e);return P(r,h.default,p,a)},async getUserInfoV1(e){let r=await t.getUserInfoV1(e);return P(r,h.default,p,a)}}},Kn=function(a,t,e){let r=ae(a);return{getUserBusinessV1(s){return r.getUserBusinessV1(s).then(n=>n(e,t))},getUserBusinessV2(s){return r.getUserBusinessV2(s).then(n=>n(e,t))},getUserInfoV1(s){return r.getUserInfoV1(s).then(n=>n(e,t))}}},Ye=class extends I{getUserBusinessV1(t){return ae(this.configuration).getUserBusinessV1(t).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(t){return ae(this.configuration).getUserBusinessV2(t).then(e=>e(this.axios,this.basePath))}getUserInfoV1(t){return ae(this.configuration).getUserInfoV1(t).then(e=>e(this.axios,this.basePath))}},$t=function(a){return{getUser:async(t,e={})=>{c("getUser","userValidation",t);let r="/api/v1/users",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updateUserRewardPoints:async(t,e,r,s={})=>{c("updateUserRewardPoints","userId",t),c("updateUserRewardPoints","walletId",e),c("updateUserRewardPoints","rewardPointPayload",r);let n="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await R(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},ye=function(a){let t=$t(a);return{async getUser(e,r){let s=await t.getUser(e,r);return P(s,h.default,p,a)},async updateUserRewardPoints(e,r,s,n){let o=await t.updateUserRewardPoints(e,r,s,n);return P(o,h.default,p,a)}}},Gn=function(a,t,e){let r=ye(a);return{getUser(s,n){return r.getUser(s,n).then(o=>o(e,t))},updateUserRewardPoints(s,n,o,i){return r.updateUserRewardPoints(s,n,o,i).then(l=>l(e,t))}}},Je=class extends I{getUser(t,e){return ye(this.configuration).getUser(t,e).then(r=>r(this.axios,this.basePath))}updateUserRewardPoints(t,e,r,s){return ye(this.configuration).updateUserRewardPoints(t,e,r,s).then(n=>n(this.axios,this.basePath))}},zt=function(a){return{upsert:async(t,e={})=>{c("upsert","body",t);let r="/api/v1/vendure/seller/upsert",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},it=function(a){let t=zt(a);return{async upsert(e,r){let s=await t.upsert(e,r);return P(s,h.default,p,a)}}},Hn=function(a,t,e){let r=it(a);return{upsert(s,n){return r.upsert(s,n).then(o=>o(e,t))}}},Ze=class extends I{upsert(t,e){return it(this.configuration).upsert(t,e).then(r=>r(this.axios,this.basePath))}},Yt=function(a){return{createVivaAppToAppPayment:async(t,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",t);let r="/api/v1/viva/a2a/create-payment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},lt=function(a){let t=Yt(a);return{async createVivaAppToAppPayment(e,r){let s=await t.createVivaAppToAppPayment(e,r);return P(s,h.default,p,a)}}},Qn=function(a,t,e){let r=lt(a);return{createVivaAppToAppPayment(s,n){return r.createVivaAppToAppPayment(s,n).then(o=>o(e,t))}}},Xe=class extends I{createVivaAppToAppPayment(t,e){return lt(this.configuration).createVivaAppToAppPayment(t,e).then(r=>r(this.axios,this.basePath))}},Jt=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleFoodoraEvent:async(t,e={})=>{c("handleFoodoraEvent","orderUpdateDto",t);let r="/api/webhook/order/event",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handlePreorderReminder:async(t,e={})=>{c("handlePreorderReminder","preOrderReminderDto",t);let r="/api/webhook/preorder-reminder",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleVivaEvents:async(t,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",t);let r="/api/webhook/viva/verification",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleWoltDriveEventByCountry:async(t,e={})=>{c("handleWoltDriveEventByCountry","country",t);let r="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleWorldlineEvents:async(t={})=>{let e="/api/webhook/worldline/events",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},processKioskRecoveryQueue:async(t,e={})=>{c("processKioskRecoveryQueue","processKioskRecoveryQueueDto",t);let r="/api/webhook/kiosk/recovery/process",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},q=function(a){let t=Jt(a);return{async handleAssignmentWebhook(e){let r=await t.handleAssignmentWebhook(e);return P(r,h.default,p,a)},async handleBusinessWebhook(e){let r=await t.handleBusinessWebhook(e);return P(r,h.default,p,a)},async handleFoodoraEvent(e,r){let s=await t.handleFoodoraEvent(e,r);return P(s,h.default,p,a)},async handleLoadEmployee(e){let r=await t.handleLoadEmployee(e);return P(r,h.default,p,a)},async handleNetsEvents(e){let r=await t.handleNetsEvents(e);return P(r,h.default,p,a)},async handleNetsEventsV2(e){let r=await t.handleNetsEventsV2(e);return P(r,h.default,p,a)},async handleNetsRefundEvents(e){let r=await t.handleNetsRefundEvents(e);return P(r,h.default,p,a)},async handlePreorderReminder(e,r){let s=await t.handlePreorderReminder(e,r);return P(s,h.default,p,a)},async handleRoleWebhook(e){let r=await t.handleRoleWebhook(e);return P(r,h.default,p,a)},async handleShiftWebhook(e){let r=await t.handleShiftWebhook(e);return P(r,h.default,p,a)},async handleVivaEvents(e,r){let s=await t.handleVivaEvents(e,r);return P(s,h.default,p,a)},async handleWebhook(e){let r=await t.handleWebhook(e);return P(r,h.default,p,a)},async handleWoltDriveEvent(e){let r=await t.handleWoltDriveEvent(e);return P(r,h.default,p,a)},async handleWoltDriveEventByCountry(e,r){let s=await t.handleWoltDriveEventByCountry(e,r);return P(s,h.default,p,a)},async handleWorldlineEvents(e){let r=await t.handleWorldlineEvents(e);return P(r,h.default,p,a)},async processKioskRecoveryQueue(e,r){let s=await t.processKioskRecoveryQueue(e,r);return P(s,h.default,p,a)},async updateWoltProduct(e){let r=await t.updateWoltProduct(e);return P(r,h.default,p,a)},async verifyVivaWebhook(e){let r=await t.verifyVivaWebhook(e);return P(r,h.default,p,a)}}},$n=function(a,t,e){let r=q(a);return{handleAssignmentWebhook(s){return r.handleAssignmentWebhook(s).then(n=>n(e,t))},handleBusinessWebhook(s){return r.handleBusinessWebhook(s).then(n=>n(e,t))},handleFoodoraEvent(s,n){return r.handleFoodoraEvent(s,n).then(o=>o(e,t))},handleLoadEmployee(s){return r.handleLoadEmployee(s).then(n=>n(e,t))},handleNetsEvents(s){return r.handleNetsEvents(s).then(n=>n(e,t))},handleNetsEventsV2(s){return r.handleNetsEventsV2(s).then(n=>n(e,t))},handleNetsRefundEvents(s){return r.handleNetsRefundEvents(s).then(n=>n(e,t))},handlePreorderReminder(s,n){return r.handlePreorderReminder(s,n).then(o=>o(e,t))},handleRoleWebhook(s){return r.handleRoleWebhook(s).then(n=>n(e,t))},handleShiftWebhook(s){return r.handleShiftWebhook(s).then(n=>n(e,t))},handleVivaEvents(s,n){return r.handleVivaEvents(s,n).then(o=>o(e,t))},handleWebhook(s){return r.handleWebhook(s).then(n=>n(e,t))},handleWoltDriveEvent(s){return r.handleWoltDriveEvent(s).then(n=>n(e,t))},handleWoltDriveEventByCountry(s,n){return r.handleWoltDriveEventByCountry(s,n).then(o=>o(e,t))},handleWorldlineEvents(s){return r.handleWorldlineEvents(s).then(n=>n(e,t))},processKioskRecoveryQueue(s,n){return r.processKioskRecoveryQueue(s,n).then(o=>o(e,t))},updateWoltProduct(s){return r.updateWoltProduct(s).then(n=>n(e,t))},verifyVivaWebhook(s){return r.verifyVivaWebhook(s).then(n=>n(e,t))}}},et=class extends I{handleAssignmentWebhook(t){return q(this.configuration).handleAssignmentWebhook(t).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(t){return q(this.configuration).handleBusinessWebhook(t).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(t,e){return q(this.configuration).handleFoodoraEvent(t,e).then(r=>r(this.axios,this.basePath))}handleLoadEmployee(t){return q(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return q(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return q(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return q(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return q(this.configuration).handlePreorderReminder(t,e).then(r=>r(this.axios,this.basePath))}handleRoleWebhook(t){return q(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return q(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return q(this.configuration).handleVivaEvents(t,e).then(r=>r(this.axios,this.basePath))}handleWebhook(t){return q(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return q(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return q(this.configuration).handleWoltDriveEventByCountry(t,e).then(r=>r(this.axios,this.basePath))}handleWorldlineEvents(t){return q(this.configuration).handleWorldlineEvents(t).then(e=>e(this.axios,this.basePath))}processKioskRecoveryQueue(t,e){return q(this.configuration).processKioskRecoveryQueue(t,e).then(r=>r(this.axios,this.basePath))}updateWoltProduct(t){return q(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return q(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}},Zt=function(a){return{cancelPayment:async(t,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",t);let r="/api/v1/worldline/payment/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createPayment:async(t,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",t);let r="/api/v1/worldline/payment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createRefund:async(t,e={})=>{c("createRefund","createWorldlineRefundDto",t);let r="/api/v1/worldline/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getNextRequest:async(t,e,r,s,n={})=>{c("getNextRequest","terminalId",t),c("getNextRequest","authorization",e),c("getNextRequest","sessionID",r),c("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,...n},d={},f={};e!=null&&(d.Authorization=String(e)),r!=null&&(d["Session-ID"]=String(r)),s!=null&&(d["Protocol-Version"]=String(s)),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},submitEvent:async(t,e,r={})=>{c("submitEvent","terminalId",t),c("submitEvent","worldlineEventEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},submitResponse:async(t,e,r={})=>{c("submitResponse","terminalId",t),c("submitResponse","worldlineResponseEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},W=function(a){let t=Zt(a);return{async cancelPayment(e,r){let s=await t.cancelPayment(e,r);return P(s,h.default,p,a)},async createPayment(e,r){let s=await t.createPayment(e,r);return P(s,h.default,p,a)},async createRefund(e,r){let s=await t.createRefund(e,r);return P(s,h.default,p,a)},async getNextRequest(e,r,s,n,o){let i=await t.getNextRequest(e,r,s,n,o);return P(i,h.default,p,a)},async submitEvent(e,r,s){let n=await t.submitEvent(e,r,s);return P(n,h.default,p,a)},async submitResponse(e,r,s){let n=await t.submitResponse(e,r,s);return P(n,h.default,p,a)}}},zn=function(a,t,e){let r=W(a);return{cancelPayment(s,n){return r.cancelPayment(s,n).then(o=>o(e,t))},createPayment(s,n){return r.createPayment(s,n).then(o=>o(e,t))},createRefund(s,n){return r.createRefund(s,n).then(o=>o(e,t))},getNextRequest(s,n,o,i,l){return r.getNextRequest(s,n,o,i,l).then(u=>u(e,t))},submitEvent(s,n,o){return r.submitEvent(s,n,o).then(i=>i(e,t))},submitResponse(s,n,o){return r.submitResponse(s,n,o).then(i=>i(e,t))}}},tt=class extends I{cancelPayment(t,e){return W(this.configuration).cancelPayment(t,e).then(r=>r(this.axios,this.basePath))}createPayment(t,e){return W(this.configuration).createPayment(t,e).then(r=>r(this.axios,this.basePath))}createRefund(t,e){return W(this.configuration).createRefund(t,e).then(r=>r(this.axios,this.basePath))}getNextRequest(t,e,r,s,n){return W(this.configuration).getNextRequest(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}submitEvent(t,e,r){return W(this.configuration).submitEvent(t,e,r).then(s=>s(this.axios,this.basePath))}submitResponse(t,e,r){return W(this.configuration).submitResponse(t,e,r).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{createPaymentRequest:async(t,e,r={})=>{c("createPaymentRequest","terminalId",t),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},createRefundRequest:async(t,e,r={})=>{c("createRefundRequest","terminalId",t),c("createRefundRequest","worldlineRefundRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getPaymentResult:async(t,e={})=>{c("getPaymentResult","operationId",t);let r="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getTerminalAuthContext:async(t,e,r={})=>{c("getTerminalAuthContext","terminalId",t),c("getTerminalAuthContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalContext:async(t,e,r={})=>{c("getTerminalContext","terminalId",t),c("getTerminalContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalState:async(t,e={})=>{c("getTerminalState","terminalId",t);let r="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleCallback:async(t={})=>{let e="/api/v2/worldline/internal/callback",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},L=function(a){let t=Xt(a);return{async createPaymentRequest(e,r,s){let n=await t.createPaymentRequest(e,r,s);return P(n,h.default,p,a)},async createRefundRequest(e,r,s){let n=await t.createRefundRequest(e,r,s);return P(n,h.default,p,a)},async getPaymentResult(e,r){let s=await t.getPaymentResult(e,r);return P(s,h.default,p,a)},async getTerminalAuthContext(e,r,s){let n=await t.getTerminalAuthContext(e,r,s);return P(n,h.default,p,a)},async getTerminalContext(e,r,s){let n=await t.getTerminalContext(e,r,s);return P(n,h.default,p,a)},async getTerminalState(e,r){let s=await t.getTerminalState(e,r);return P(s,h.default,p,a)},async handleCallback(e){let r=await t.handleCallback(e);return P(r,h.default,p,a)}}},Yn=function(a,t,e){let r=L(a);return{createPaymentRequest(s,n,o){return r.createPaymentRequest(s,n,o).then(i=>i(e,t))},createRefundRequest(s,n,o){return r.createRefundRequest(s,n,o).then(i=>i(e,t))},getPaymentResult(s,n){return r.getPaymentResult(s,n).then(o=>o(e,t))},getTerminalAuthContext(s,n,o){return r.getTerminalAuthContext(s,n,o).then(i=>i(e,t))},getTerminalContext(s,n,o){return r.getTerminalContext(s,n,o).then(i=>i(e,t))},getTerminalState(s,n){return r.getTerminalState(s,n).then(o=>o(e,t))},handleCallback(s){return r.handleCallback(s).then(n=>n(e,t))}}},st=class extends I{createPaymentRequest(t,e,r){return L(this.configuration).createPaymentRequest(t,e,r).then(s=>s(this.axios,this.basePath))}createRefundRequest(t,e,r){return L(this.configuration).createRefundRequest(t,e,r).then(s=>s(this.axios,this.basePath))}getPaymentResult(t,e){return L(this.configuration).getPaymentResult(t,e).then(r=>r(this.axios,this.basePath))}getTerminalAuthContext(t,e,r){return L(this.configuration).getTerminalAuthContext(t,e,r).then(s=>s(this.axios,this.basePath))}getTerminalContext(t,e,r){return L(this.configuration).getTerminalContext(t,e,r).then(s=>s(this.axios,this.basePath))}getTerminalState(t,e){return L(this.configuration).getTerminalState(t,e).then(r=>r(this.axios,this.basePath))}handleCallback(t){return L(this.configuration).handleCallback(t).then(e=>e(this.axios,this.basePath))}};var ut=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 Jn={[X.Eur]:2,[X.Aed]:2,[X.Usd]:2,[X.Gbp]:2,BHD:3,JPY:0},Zn={getMultiplier(a){let t=Jn[a.toUpperCase()];return typeof t!="number"?100:Math.round(10**t)}};var ie=Pe(require("lodash")),ct=a=>ie.default.orderBy(a,["rank","id"],["asc","asc"]),Xn=a=>{let t=a.subcategories;return Array.isArray(t)?t:[]},eo=(a,t)=>({...a,colorCode:a.colorCode??t}),es=(a,t)=>ie.default.compact(a.map(e=>t.get(e))),dt=(a,t)=>a.flatMap(e=>{let r=t[e];return r?[e,...dt(r.childIds,t)]:[]}),pt=(a,t)=>a.flatMap(e=>{let r=t[e];return r?.enabled?[e,...pt(r.childIds,t)]:[]}),to=a=>{let t=new Map,e={},r={},s=ct(a),n=s.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return t.set(d,eo(u,l)),d});return s.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),f=(b,C)=>{let O=String(b.id),S=o(b.products,u),V=ct(Xn(b)).map(E=>f(E,O));return r[O]={id:O,name:b.name,rank:b.rank??0,enabled:!!b.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:S,childIds:V},O},x=ct(i.subcategories??[]).map(b=>f(b,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:s,productMap:t,categoriesById:e,subcategoriesById:r,categoryIdsOrder:n}},so=(a,t,e,r)=>{let s=t[a];if(!s)return[];let n=pt(s.subcategoryIds,e),o=ie.default.uniq([...s.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return es(o,r)},ro=(a,t,e)=>{let r=t[a];if(!r)return[];let s=dt(r.subcategoryIds,e);return ie.default.compact(s.map(n=>e[n]))};var ts="1.9.23";0&&(module.exports={ABLYEVENT,AblyApi,AblyApiAxiosParamCreator,AblyApiFactory,AblyApiFp,ActionEnum,ActionPasscodesApi,ActionPasscodesApiAxiosParamCreator,ActionPasscodesApiFactory,ActionPasscodesApiFp,ActionsEnum,AuthApi,AuthApiAxiosParamCreator,AuthApiFactory,AuthApiFp,AutonomousVehicleType,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,DiscountTypeEnum,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,MunchiGiftCardApi,MunchiGiftCardApiAxiosParamCreator,MunchiGiftCardApiFactory,MunchiGiftCardApiFp,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,PrinterConnectionType,PrinterModelType,PrinterTypeEnum,PrintersApi,PrintersApiAxiosParamCreator,PrintersApiFactory,PrintersApiFp,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,ScopeEnum,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,StatusEnum,SystemProfileType,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,UsersApi,UsersApiAxiosParamCreator,UsersApiFactory,UsersApiFp,VendureSellerApi,VendureSellerApiAxiosParamCreator,VendureSellerApiFactory,VendureSellerApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WalletStatusEnum,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 ss=Object.create;var ie=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var os=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty;var is=(a,t)=>{for(var e in t)ie(a,e,{get:t[e],enumerable:!0})},mt=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ns(t))!as.call(a,s)&&s!==e&&ie(a,s,{get:()=>t[s],enumerable:!(r=rs(t,s))||r.enumerable});return a};var ye=(a,t,e)=>(e=a!=null?ss(os(a)):{},mt(t||!a||!a.__esModule?ie(e,"default",{value:a,enumerable:!0}):e,a)),ls=a=>mt(ie({},"__esModule",{value:!0}),a);var so={};is(so,{ABLYEVENT:()=>us,AblyApi:()=>Pe,AblyApiAxiosParamCreator:()=>yt,AblyApiFactory:()=>cn,AblyApiFp:()=>ue,ActionEnum:()=>cs,ActionPasscodesApi:()=>fe,ActionPasscodesApiAxiosParamCreator:()=>ht,ActionPasscodesApiFactory:()=>dn,ActionPasscodesApiFp:()=>X,ActionsEnum:()=>gr,AuthApi:()=>Ae,AuthApiAxiosParamCreator:()=>Pt,AuthApiFactory:()=>pn,AuthApiFp:()=>G,AutonomousVehicleType:()=>ms,BusinessApi:()=>xe,BusinessApiAxiosParamCreator:()=>ft,BusinessApiFactory:()=>mn,BusinessApiFp:()=>T,BusinessBackgroundType:()=>gs,BusinessEventAction:()=>hs,BusinessEventType:()=>Ps,BusinessPaymentIntegrationType:()=>fs,BusinessProviderPolicyApi:()=>Re,BusinessProviderPolicyApiAxiosParamCreator:()=>At,BusinessProviderPolicyApiFactory:()=>gn,BusinessProviderPolicyApiFp:()=>st,BusinessStatusEnum:()=>As,CashLogReason:()=>xs,CashLogType:()=>Rs,CashManagementApi:()=>be,CashManagementApiAxiosParamCreator:()=>xt,CashManagementApiFactory:()=>yn,CashManagementApiFp:()=>L,CashSessionDtoEnum:()=>bs,CashSessionStatus:()=>Cs,ChannelEnum:()=>Ds,CheckoutModelEnum:()=>Os,ConditionType:()=>Vs,ConfigManagementApi:()=>Ce,ConfigManagementApiAxiosParamCreator:()=>Rt,ConfigManagementApiFactory:()=>hn,ConfigManagementApiFp:()=>M,Configuration:()=>ut,ConsumptionType:()=>Is,CoursesApi:()=>De,CoursesApiAxiosParamCreator:()=>bt,CoursesApiFactory:()=>Pn,CoursesApiFp:()=>rt,CurrencyCode:()=>Z,CurrencyCodeEnum:()=>Jr,CurrencyRegistry:()=>Yn,DeliveryStatus:()=>Ss,DeliveryType:()=>vs,DeviceType:()=>Ts,DiscountScope:()=>Es,DiscountScopeType:()=>Us,DiscountSourceType:()=>qs,DiscountType:()=>Bs,DiscountTypeEnum:()=>Sr,EmployeesApi:()=>Oe,EmployeesApiAxiosParamCreator:()=>Ct,EmployeesApiFactory:()=>fn,EmployeesApiFp:()=>nt,EntityType:()=>Ms,EntityTypeEnum:()=>ds,EventTypeEnum:()=>ps,EventTypeIdEnum:()=>Zr,FeeType:()=>ks,GiftcardApi:()=>Ve,GiftcardApiAxiosParamCreator:()=>Dt,GiftcardApiFactory:()=>An,GiftcardApiFp:()=>ce,HistoryApi:()=>Ie,HistoryApiAxiosParamCreator:()=>Ot,HistoryApiFactory:()=>xn,HistoryApiFp:()=>H,IntegrationType:()=>_s,InvoiceCompaniesApi:()=>Se,InvoiceCompaniesApiAxiosParamCreator:()=>Vt,InvoiceCompaniesApiFactory:()=>Rn,InvoiceCompaniesApiFp:()=>F,KDSApi:()=>ve,KDSApiAxiosParamCreator:()=>It,KDSApiFactory:()=>bn,KDSApiFp:()=>Q,KDSEVENTNAME:()=>ws,KioskEventType:()=>Ns,KioskLayout:()=>Ls,KiosksApi:()=>Te,KiosksApiAxiosParamCreator:()=>St,KiosksApiFactory:()=>Cn,KiosksApiFp:()=>ee,KitchenItemStatus:()=>Fs,KitchenStatus:()=>js,LocatorType:()=>Ws,LoyaltyActionKey:()=>Ks,LoyaltyIntegerationsApi:()=>Ee,LoyaltyIntegerationsApiAxiosParamCreator:()=>vt,LoyaltyIntegerationsApiFactory:()=>Dn,LoyaltyIntegerationsApiFp:()=>k,MUNCHI_CORE_VERSION:()=>ts,MenuApi:()=>Ue,MenuApiAxiosParamCreator:()=>Tt,MenuApiFactory:()=>On,MenuApiFp:()=>K,MenuTypeEnum:()=>ys,MerchantsApi:()=>qe,MerchantsApiAxiosParamCreator:()=>Et,MerchantsApiFactory:()=>Vn,MerchantsApiFp:()=>te,MunchiGiftCardApi:()=>Be,MunchiGiftCardApiAxiosParamCreator:()=>Ut,MunchiGiftCardApiFactory:()=>In,MunchiGiftCardApiFp:()=>$,NameEnum:()=>Hr,NotificationApi:()=>Me,NotificationApiAxiosParamCreator:()=>qt,NotificationApiFactory:()=>Sn,NotificationApiFp:()=>de,OperatingMode:()=>Gs,OperatingModeEnum:()=>Kr,OrderFormat:()=>Hs,OrderInternalApi:()=>ke,OrderInternalApiAxiosParamCreator:()=>Bt,OrderInternalApiFactory:()=>vn,OrderInternalApiFp:()=>ot,OrderMode:()=>Qs,OrderRefundStatus:()=>$s,OrderSource:()=>zs,OrderStatus:()=>Ys,OrderStatusEnum:()=>Js,OrderType:()=>Zs,OrderTypePOS:()=>Xs,OrderingCoApi:()=>_e,OrderingCoApiAxiosParamCreator:()=>Mt,OrderingCoApiFactory:()=>Tn,OrderingCoApiFp:()=>at,OrdersApi:()=>we,OrdersApiAxiosParamCreator:()=>kt,OrdersApiFactory:()=>En,OrdersApiFp:()=>B,POSSessionApi:()=>Ne,POSSessionApiAxiosParamCreator:()=>_t,POSSessionApiFactory:()=>Un,POSSessionApiFp:()=>pe,PaymentApi:()=>Le,PaymentApiAxiosParamCreator:()=>wt,PaymentApiFactory:()=>qn,PaymentApiFp:()=>q,PaymentEventType:()=>er,PaymentFailureCode:()=>tr,PaymentMethod:()=>sr,PaymentProvider:()=>rr,PaymentProviderEnum:()=>nr,PaymentStatus:()=>or,PaymentTypeEnum:()=>ar,PluginApi:()=>Fe,PluginApiAxiosParamCreator:()=>Nt,PluginApiFactory:()=>Bn,PluginApiFp:()=>me,PosDiscountTargetType:()=>ir,PosDiscountType:()=>lr,PosPaymentStatus:()=>ur,PosPaymentType:()=>cr,PosPermission:()=>dr,PreorderStatus:()=>pr,PrinterTypeEnum:()=>mr,ProductApi:()=>je,ProductApiAxiosParamCreator:()=>Lt,ProductApiFactory:()=>Mn,ProductApiFp:()=>se,ProductAvailability:()=>yr,ProductDetailLayout:()=>hr,ProductDetailLayoutEnum:()=>Gr,PromotionDiscountType:()=>Pr,ProviderApi:()=>We,ProviderApiAxiosParamCreator:()=>Ft,ProviderApiFactory:()=>kn,ProviderApiFp:()=>re,ProviderEnum:()=>fr,PubSubAction:()=>Ar,PubSubTarget:()=>xr,RefundFailureReasonKey:()=>Rr,RefundMode:()=>br,RefundOverallStatus:()=>Cr,RefundStatusEnum:()=>Dr,RefundStepStatus:()=>Or,RefundsApi:()=>Ke,RefundsApiAxiosParamCreator:()=>jt,RefundsApiFactory:()=>_n,RefundsApiFp:()=>w,ReportApi:()=>Ge,ReportApiAxiosParamCreator:()=>Wt,ReportApiFactory:()=>wn,ReportApiFp:()=>z,ReportLanguage:()=>Vr,SYNCKEY:()=>Tr,ScopeEnum:()=>vr,SelectedPaymentProviderEnum:()=>Wr,ShiftTrackingApi:()=>He,ShiftTrackingApiAxiosParamCreator:()=>Kt,ShiftTrackingApiFactory:()=>Nn,ShiftTrackingApiFp:()=>Y,SimplePaymentStatus:()=>Er,SourceType:()=>Ur,StaffActivityActionType:()=>qr,StationType:()=>Br,StationsApi:()=>Qe,StationsApiAxiosParamCreator:()=>Gt,StationsApiFactory:()=>Ln,StationsApiFp:()=>ne,Status:()=>Mr,StatusEnum:()=>Xr,SystemProfileType:()=>kr,TerminalApi:()=>$e,TerminalApiAxiosParamCreator:()=>Ht,TerminalApiFactory:()=>Fn,TerminalApiFp:()=>J,TerminalConnectionType:()=>_r,TimeSpan:()=>wr,TransactionEventType:()=>Nr,TransactionType:()=>Lr,Type:()=>Fr,UpsellMode:()=>jr,UserApi:()=>ze,UserApiAxiosParamCreator:()=>Qt,UserApiFactory:()=>jn,UserApiFp:()=>oe,UsersApi:()=>Ye,UsersApiAxiosParamCreator:()=>$t,UsersApiFactory:()=>Wn,UsersApiFp:()=>ge,VendureSellerApi:()=>Je,VendureSellerApiAxiosParamCreator:()=>zt,VendureSellerApiFactory:()=>Kn,VendureSellerApiFp:()=>it,VivaApi:()=>Ze,VivaApiAxiosParamCreator:()=>Yt,VivaApiFactory:()=>Gn,VivaApiFp:()=>lt,VivaAppToAppPaymentMethod:()=>Qr,VivaCurrencyCode:()=>$r,VivaErrorId:()=>zr,VivaEventId:()=>Yr,WalletStatusEnum:()=>Ir,WebhookApi:()=>Xe,WebhookApiAxiosParamCreator:()=>Jt,WebhookApiFactory:()=>Hn,WebhookApiFp:()=>U,WorldlineApi:()=>et,WorldlineApiAxiosParamCreator:()=>Zt,WorldlineApiFactory:()=>Qn,WorldlineApiFp:()=>j,WorldlineAuthorizationMethod:()=>en,WorldlineAuthorizationResponder:()=>tn,WorldlineEntryMode:()=>sn,WorldlineEventType:()=>rn,WorldlineInternalApi:()=>tt,WorldlineInternalApiAxiosParamCreator:()=>Xt,WorldlineInternalApiFactory:()=>$n,WorldlineInternalApiFp:()=>N,WorldlineOutcomeDescription:()=>nn,WorldlineResponseStatus:()=>on,WorldlineTransactionOutcome:()=>an,WorldlineTransactionType:()=>ln,WorldlineVerificationMethod:()=>un,buildPosCategoryIndex:()=>Xn,collectEnabledSubcategoryIdsDepthFirst:()=>pt,collectSubcategoryIdsDepthFirst:()=>dt,getCategoryProductsIncludingSubcategories:()=>eo,getSubcategoriesForCategory:()=>to,mapProductIdsToProducts:()=>es});module.exports=ls(so);var P=ye(require("axios"));var gt=ye(require("axios")),p="http://localhost".replace(/\/+$/,"");var I=class{constructor(t,e=p,r=gt.default){this.basePath=e;this.axios=r;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},le=class extends Error{constructor(e,r){super(r);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,t,e){if(e==null)throw new le(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var b=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 he(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>he(a,r,e)):Object.keys(t).forEach(r=>he(a,t[r],`${e}${e!==""?".":""}${r}`)):a.has(e)?a.append(e,t):a.set(e,t))}var g=function(a,...t){let e=new URLSearchParams(a.search);he(e,t),a.search=e.toString()},A=function(a,t,e){let r=typeof a!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},h=function(a,t,e,r){return(s=t,n=e)=>{let o={...a.options,url:(r?.basePath||n)+a.url};return s.request(o)}};var us={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},cs={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ds={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ps={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ms={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},gs={Image:"image",Video:"video",Animation:"animation"},ys={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},hs={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Ps={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},fs={GiftCard:"GiftCard"},As={Online:"ONLINE",Offline:"OFFLINE"},xs={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"},Rs={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},bs={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Cs={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",Storefront:"Storefront"},Os={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Vs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Is={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},Z={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},Ss={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},vs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Ts={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Es={Item:"ITEM",Cart:"CART"},Us={Business:"BUSINESS",Owner:"OWNER"},qs={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Bs={Percentage:"PERCENTAGE",Fixed:"FIXED"},Ms={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ks={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},_s={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},ws={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},Ns={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Ls={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Fs={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},js={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Ws={Table:"table",Indicator:"indicator"},Ks={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Gs={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Hs={Open:"OPEN",Instant:"INSTANT"},Qs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},$s={None:"NONE",Partial:"PARTIAL",Full:"FULL"},zs={Platform:"PLATFORM",Pos:"POS"},Ys={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Js={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"},Zs={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Xs={DineIn:"dine_in",PickUp:"pick_up"},er={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},tr={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"},sr={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",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},rr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},nr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},or={Paid:"paid",Pending:"pending"},ar={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},ir={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},lr={Percentage:"percentage",Fixed:"fixed"},ur={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},cr={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},dr={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"},pr={Waiting:"waiting",Confirm:"confirm"},mr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},gr={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},yr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},hr={Modal:"MODAL",Screen:"SCREEN"},Pr={Percentage:"PERCENTAGE",Fixed:"FIXED"},fr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Ar={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},xr={Kds:"KDS"},Rr={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"},br={Full:"FULL",Item:"ITEM"},Cr={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Dr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Or={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Vr={Fi:"fi",En:"en"},Ir={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Sr={Percentage:"PERCENTAGE",Fixed:"FIXED"},vr={Item:"ITEM",Cart:"CART"},Tr={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"},Er={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Ur={Order:"ORDER",Ticket:"TICKET"},qr={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"},Br={Kiosk:"KIOSK",Pos:"POS"},Mr={Active:"ACTIVE",Inactive:"INACTIVE"},kr={NoStation:"NO_STATION"},_r={Network:"NETWORK"},wr={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Nr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Lr={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Fr={Instant:"instant",Preorder:"preorder"},jr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Wr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Kr={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Gr={Modal:"MODAL",Screen:"SCREEN"},Hr={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",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},Qr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},$r={_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"},zr={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},Yr={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},Jr={_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"},Zr={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Xr={Claimed:"Claimed",Redeemed:"Redeemed"},en={Online:"Online",Offline:"Offline"},tn={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},sn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},rn={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},nn={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},on={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},an={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},ln={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},un={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},yt=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},ue=function(a){let t=yt(a);return{async refreshConfig(e){let r=await t.refreshConfig(e);return h(r,P.default,p,a)},async requestSettings(e){let r=await t.requestSettings(e);return h(r,P.default,p,a)}}},cn=function(a,t,e){let r=ue(a);return{refreshConfig(s){return r.refreshConfig(s).then(n=>n(e,t))},requestSettings(s){return r.requestSettings(s).then(n=>n(e,t))}}},Pe=class extends I{refreshConfig(t){return ue(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return ue(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},ht=function(a){return{createActionPasscode:async(t,e={})=>{c("createActionPasscode","createActionPasscodeDto",t);let r="/api/v1/action-passcodes",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deleteActionPasscode:async(t,e={})=>{c("deleteActionPasscode","id",t);let r="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},updateActionPasscode:async(t,e,r={})=>{c("updateActionPasscode","id",t),c("updateActionPasscode","updateActionPasscodeDto",e);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},X=function(a){let t=ht(a);return{async createActionPasscode(e,r){let s=await t.createActionPasscode(e,r);return h(s,P.default,p,a)},async deleteActionPasscode(e,r){let s=await t.deleteActionPasscode(e,r);return h(s,P.default,p,a)},async updateActionPasscode(e,r,s){let n=await t.updateActionPasscode(e,r,s);return h(n,P.default,p,a)}}},dn=function(a,t,e){let r=X(a);return{createActionPasscode(s,n){return r.createActionPasscode(s,n).then(o=>o(e,t))},deleteActionPasscode(s,n){return r.deleteActionPasscode(s,n).then(o=>o(e,t))},updateActionPasscode(s,n,o){return r.updateActionPasscode(s,n,o).then(i=>i(e,t))}}},fe=class extends I{createActionPasscode(t,e){return X(this.configuration).createActionPasscode(t,e).then(r=>r(this.axios,this.basePath))}deleteActionPasscode(t,e){return X(this.configuration).deleteActionPasscode(t,e).then(r=>r(this.axios,this.basePath))}updateActionPasscode(t,e,r){return X(this.configuration).updateActionPasscode(t,e,r).then(s=>s(this.axios,this.basePath))}},Pt=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},login:async(t,e={})=>{c("login","credentialDto",t);let r="/api/v1/auth/login",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},logout:async(t={})=>{let e="/api/v1/auth/logout",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},refreshToken:async(t,e={})=>{c("refreshToken","refreshTokenDto",t);let r="/api/v1/auth/refresh",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},G=function(a){let t=Pt(a);return{async firebaseAuth(e){let r=await t.firebaseAuth(e);return h(r,P.default,p,a)},async login(e,r){let s=await t.login(e,r);return h(s,P.default,p,a)},async logout(e){let r=await t.logout(e);return h(r,P.default,p,a)},async refreshToken(e,r){let s=await t.refreshToken(e,r);return h(s,P.default,p,a)}}},pn=function(a,t,e){let r=G(a);return{firebaseAuth(s){return r.firebaseAuth(s).then(n=>n(e,t))},login(s,n){return r.login(s,n).then(o=>o(e,t))},logout(s){return r.logout(s).then(n=>n(e,t))},refreshToken(s,n){return r.refreshToken(s,n).then(o=>o(e,t))}}},Ae=class extends I{firebaseAuth(t){return G(this.configuration).firebaseAuth(t).then(e=>e(this.axios,this.basePath))}login(t,e){return G(this.configuration).login(t,e).then(r=>r(this.axios,this.basePath))}logout(t){return G(this.configuration).logout(t).then(e=>e(this.axios,this.basePath))}refreshToken(t,e){return G(this.configuration).refreshToken(t,e).then(r=>r(this.axios,this.basePath))}},ft=function(a){return{createBusinessPermission:async(t,e,r={})=>{c("createBusinessPermission","businessId",t),c("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},deleteBusinessPermission:async(t,e,r={})=>{c("deleteBusinessPermission","permissionId",t),c("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getAdvancedDiscounts:async(t,e={})=>{c("getAdvancedDiscounts","businessId",t);let r="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessCategoriesByMenuId:async(t,e,r={})=>{c("getBusinessCategoriesByMenuId","businessId",t),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV2:async(t,e,r={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",t),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV3:async(t,e,r={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",t),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let s="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessChannelConfig:async(t,e,r={})=>{c("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessChannelConfigV2:async(t,e,r={})=>{c("getBusinessChannelConfigV2","businessId",t);let s="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfig:async(t,e,r={})=>{c("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigById:async(t,e,r={})=>{c("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigByIdV2:async(t,e,r={})=>{c("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfiguration:async(t,e,r={})=>{c("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByType:async(t,e,r={})=>{c("getBusinessMenuByType","businessId",t),c("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV2:async(t,e,r={})=>{c("getBusinessMenuByTypeV2","businessId",t),c("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV3:async(t,e,r={})=>{c("getBusinessMenuByTypeV3","businessId",t),c("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV4:async(t,e,r={})=>{c("getBusinessMenuByTypeV4","businessId",t),c("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessProviderStatus:async(t,e={})=>{c("getBusinessProviderStatus","businessId",t);let r="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessProviderStatusExternal:async(t,e,r={})=>{c("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessTax:async(t={})=>{let e="/api/v1/business/tax",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await b(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getProvidersSupportedIntegrations:async(t,e={})=>{c("getProvidersSupportedIntegrations","businessIds",t);let r="/api/v1/business/providers/supported-integrations",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),t&&(l.businessIds=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSingleBusinessProviderStatus:async(t,e,r,s={})=>{c("getSingleBusinessProviderStatus","businessId",t),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",r);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await b(u,a),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{c("getUnifiedDiscounts","businessId",t);let r="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},setBusinessStatus:async(t,e,r={})=>{c("setBusinessStatus","businessId",t),c("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},setBusinessStatusSchedule:async(t,e,r={})=>{c("setBusinessStatusSchedule","businessId",t),c("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},updateBusinessPermission:async(t,e,r,s={})=>{c("updateBusinessPermission","permissionId",t),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",r);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},d={};await b(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},validateBusiness:async(t,e={})=>{c("validateBusiness","businessId",t);let r="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},T=function(a){let t=ft(a);return{async createBusinessPermission(e,r,s){let n=await t.createBusinessPermission(e,r,s);return h(n,P.default,p,a)},async deleteBusinessPermission(e,r,s){let n=await t.deleteBusinessPermission(e,r,s);return h(n,P.default,p,a)},async getAdvancedDiscounts(e,r){let s=await t.getAdvancedDiscounts(e,r);return h(s,P.default,p,a)},async getBusinessCategoriesByMenuId(e,r,s){let n=await t.getBusinessCategoriesByMenuId(e,r,s);return h(n,P.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,r,s){let n=await t.getBusinessCategoriesByMenuIdV2(e,r,s);return h(n,P.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,r,s){let n=await t.getBusinessCategoriesByMenuIdV3(e,r,s);return h(n,P.default,p,a)},async getBusinessChannelConfig(e,r,s){let n=await t.getBusinessChannelConfig(e,r,s);return h(n,P.default,p,a)},async getBusinessChannelConfigV2(e,r,s){let n=await t.getBusinessChannelConfigV2(e,r,s);return h(n,P.default,p,a)},async getBusinessConfig(e,r,s){let n=await t.getBusinessConfig(e,r,s);return h(n,P.default,p,a)},async getBusinessConfigById(e,r,s){let n=await t.getBusinessConfigById(e,r,s);return h(n,P.default,p,a)},async getBusinessConfigByIdV2(e,r,s){let n=await t.getBusinessConfigByIdV2(e,r,s);return h(n,P.default,p,a)},async getBusinessConfiguration(e,r,s){let n=await t.getBusinessConfiguration(e,r,s);return h(n,P.default,p,a)},async getBusinessMenuByType(e,r,s){let n=await t.getBusinessMenuByType(e,r,s);return h(n,P.default,p,a)},async getBusinessMenuByTypeV2(e,r,s){let n=await t.getBusinessMenuByTypeV2(e,r,s);return h(n,P.default,p,a)},async getBusinessMenuByTypeV3(e,r,s){let n=await t.getBusinessMenuByTypeV3(e,r,s);return h(n,P.default,p,a)},async getBusinessMenuByTypeV4(e,r,s){let n=await t.getBusinessMenuByTypeV4(e,r,s);return h(n,P.default,p,a)},async getBusinessProviderStatus(e,r){let s=await t.getBusinessProviderStatus(e,r);return h(s,P.default,p,a)},async getBusinessProviderStatusExternal(e,r,s){let n=await t.getBusinessProviderStatusExternal(e,r,s);return h(n,P.default,p,a)},async getBusinessTax(e){let r=await t.getBusinessTax(e);return h(r,P.default,p,a)},async getProvidersSupportedIntegrations(e,r){let s=await t.getProvidersSupportedIntegrations(e,r);return h(s,P.default,p,a)},async getSingleBusinessProviderStatus(e,r,s,n){let o=await t.getSingleBusinessProviderStatus(e,r,s,n);return h(o,P.default,p,a)},async getUnifiedDiscounts(e,r){let s=await t.getUnifiedDiscounts(e,r);return h(s,P.default,p,a)},async setBusinessStatus(e,r,s){let n=await t.setBusinessStatus(e,r,s);return h(n,P.default,p,a)},async setBusinessStatusSchedule(e,r,s){let n=await t.setBusinessStatusSchedule(e,r,s);return h(n,P.default,p,a)},async updateBusinessPermission(e,r,s,n){let o=await t.updateBusinessPermission(e,r,s,n);return h(o,P.default,p,a)},async validateBusiness(e,r){let s=await t.validateBusiness(e,r);return h(s,P.default,p,a)}}},mn=function(a,t,e){let r=T(a);return{createBusinessPermission(s,n,o){return r.createBusinessPermission(s,n,o).then(i=>i(e,t))},deleteBusinessPermission(s,n,o){return r.deleteBusinessPermission(s,n,o).then(i=>i(e,t))},getAdvancedDiscounts(s,n){return r.getAdvancedDiscounts(s,n).then(o=>o(e,t))},getBusinessCategoriesByMenuId(s,n,o){return r.getBusinessCategoriesByMenuId(s,n,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,n,o){return r.getBusinessCategoriesByMenuIdV2(s,n,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV3(s,n,o){return r.getBusinessCategoriesByMenuIdV3(s,n,o).then(i=>i(e,t))},getBusinessChannelConfig(s,n,o){return r.getBusinessChannelConfig(s,n,o).then(i=>i(e,t))},getBusinessChannelConfigV2(s,n,o){return r.getBusinessChannelConfigV2(s,n,o).then(i=>i(e,t))},getBusinessConfig(s,n,o){return r.getBusinessConfig(s,n,o).then(i=>i(e,t))},getBusinessConfigById(s,n,o){return r.getBusinessConfigById(s,n,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,n,o){return r.getBusinessConfigByIdV2(s,n,o).then(i=>i(e,t))},getBusinessConfiguration(s,n,o){return r.getBusinessConfiguration(s,n,o).then(i=>i(e,t))},getBusinessMenuByType(s,n,o){return r.getBusinessMenuByType(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,n,o){return r.getBusinessMenuByTypeV2(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,n,o){return r.getBusinessMenuByTypeV3(s,n,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,n,o){return r.getBusinessMenuByTypeV4(s,n,o).then(i=>i(e,t))},getBusinessProviderStatus(s,n){return r.getBusinessProviderStatus(s,n).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,n,o){return r.getBusinessProviderStatusExternal(s,n,o).then(i=>i(e,t))},getBusinessTax(s){return r.getBusinessTax(s).then(n=>n(e,t))},getProvidersSupportedIntegrations(s,n){return r.getProvidersSupportedIntegrations(s,n).then(o=>o(e,t))},getSingleBusinessProviderStatus(s,n,o,i){return r.getSingleBusinessProviderStatus(s,n,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,n){return r.getUnifiedDiscounts(s,n).then(o=>o(e,t))},setBusinessStatus(s,n,o){return r.setBusinessStatus(s,n,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,n,o){return r.setBusinessStatusSchedule(s,n,o).then(i=>i(e,t))},updateBusinessPermission(s,n,o,i){return r.updateBusinessPermission(s,n,o,i).then(l=>l(e,t))},validateBusiness(s,n){return r.validateBusiness(s,n).then(o=>o(e,t))}}},xe=class extends I{createBusinessPermission(t,e,r){return T(this.configuration).createBusinessPermission(t,e,r).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,r){return T(this.configuration).deleteBusinessPermission(t,e,r).then(s=>s(this.axios,this.basePath))}getAdvancedDiscounts(t,e){return T(this.configuration).getAdvancedDiscounts(t,e).then(r=>r(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,r){return T(this.configuration).getBusinessCategoriesByMenuId(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(t,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV3(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,r){return T(this.configuration).getBusinessChannelConfig(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfigV2(t,e,r){return T(this.configuration).getBusinessChannelConfigV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,r){return T(this.configuration).getBusinessConfig(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,r){return T(this.configuration).getBusinessConfigById(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,r){return T(this.configuration).getBusinessConfigByIdV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,r){return T(this.configuration).getBusinessConfiguration(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,r){return T(this.configuration).getBusinessMenuByType(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,r){return T(this.configuration).getBusinessMenuByTypeV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,r){return T(this.configuration).getBusinessMenuByTypeV3(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,r){return T(this.configuration).getBusinessMenuByTypeV4(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return T(this.configuration).getBusinessProviderStatus(t,e).then(r=>r(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,r){return T(this.configuration).getBusinessProviderStatusExternal(t,e,r).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(r=>r(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,r,s){return T(this.configuration).getSingleBusinessProviderStatus(t,e,r,s).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return T(this.configuration).getUnifiedDiscounts(t,e).then(r=>r(this.axios,this.basePath))}setBusinessStatus(t,e,r){return T(this.configuration).setBusinessStatus(t,e,r).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,r){return T(this.configuration).setBusinessStatusSchedule(t,e,r).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,r,s){return T(this.configuration).updateBusinessPermission(t,e,r,s).then(n=>n(this.axios,this.basePath))}validateBusiness(t,e){return T(this.configuration).validateBusiness(t,e).then(r=>r(this.axios,this.basePath))}},At=function(a){return{updatePosGlobalSettings:async(t,e,r={})=>{c("updatePosGlobalSettings","businessId",t),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let s="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},st=function(a){let t=At(a);return{async updatePosGlobalSettings(e,r,s){let n=await t.updatePosGlobalSettings(e,r,s);return h(n,P.default,p,a)}}},gn=function(a,t,e){let r=st(a);return{updatePosGlobalSettings(s,n,o){return r.updatePosGlobalSettings(s,n,o).then(i=>i(e,t))}}},Re=class extends I{updatePosGlobalSettings(t,e,r){return st(this.configuration).updatePosGlobalSettings(t,e,r).then(s=>s(this.axios,this.basePath))}},xt=function(a){return{create:async(t,e,r={})=>{c("create","businessId",t),c("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getCashLogs:async(t,e,r,s,n,o,i,l={})=>{c("getCashLogs","businessId",t),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(t))),d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"GET",...f,...l},R={},C={};r!==void 0&&(C.timeSpan=r),s!==void 0&&(C.start=s),n!==void 0&&(C.end=n),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(t,e={})=>{c("getCashSession","businessId",t);let r="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSessionReport:async(t,e,r={})=>{c("getSessionReport","businessId",t),c("getSessionReport","sessionId",e);let s="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recordCashLog:async(t,e,r={})=>{c("recordCashLog","businessId",t),c("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},sendSessionReport:async(t,e,r,s={})=>{c("sendSessionReport","businessId",t),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",r);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},L=function(a){let t=xt(a);return{async create(e,r,s){let n=await t.create(e,r,s);return h(n,P.default,p,a)},async getCashLogs(e,r,s,n,o,i,l,u){let d=await t.getCashLogs(e,r,s,n,o,i,l,u);return h(d,P.default,p,a)},async getCashSession(e,r){let s=await t.getCashSession(e,r);return h(s,P.default,p,a)},async getSessionReport(e,r,s){let n=await t.getSessionReport(e,r,s);return h(n,P.default,p,a)},async recordCashLog(e,r,s){let n=await t.recordCashLog(e,r,s);return h(n,P.default,p,a)},async sendSessionReport(e,r,s,n){let o=await t.sendSessionReport(e,r,s,n);return h(o,P.default,p,a)}}},yn=function(a,t,e){let r=L(a);return{create(s,n,o){return r.create(s,n,o).then(i=>i(e,t))},getCashLogs(s,n,o,i,l,u,d,f){return r.getCashLogs(s,n,o,i,l,u,d,f).then(x=>x(e,t))},getCashSession(s,n){return r.getCashSession(s,n).then(o=>o(e,t))},getSessionReport(s,n,o){return r.getSessionReport(s,n,o).then(i=>i(e,t))},recordCashLog(s,n,o){return r.recordCashLog(s,n,o).then(i=>i(e,t))},sendSessionReport(s,n,o,i){return r.sendSessionReport(s,n,o,i).then(l=>l(e,t))}}},be=class extends I{create(t,e,r){return L(this.configuration).create(t,e,r).then(s=>s(this.axios,this.basePath))}getCashLogs(t,e,r,s,n,o,i,l){return L(this.configuration).getCashLogs(t,e,r,s,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(t,e){return L(this.configuration).getCashSession(t,e).then(r=>r(this.axios,this.basePath))}getSessionReport(t,e,r){return L(this.configuration).getSessionReport(t,e,r).then(s=>s(this.axios,this.basePath))}recordCashLog(t,e,r){return L(this.configuration).recordCashLog(t,e,r).then(s=>s(this.axios,this.basePath))}sendSessionReport(t,e,r,s){return L(this.configuration).sendSessionReport(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Rt=function(a){return{configConfigureMunchiGiftCard:async(t,e,r,s={})=>{c("configConfigureMunchiGiftCard","businessId",t),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configManualSync:async(t,e,r={})=>{c("configManualSync","businessId",t),c("configManualSync","manualSyncDto",e);let s="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configRemovePaymentOption:async(t,e,r,s={})=>{c("configRemovePaymentOption","businessId",t),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={},d={};await b(u,a),r!=null&&(u["x-app-x"]=String(r)),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},configUpsertBusiness:async(t,e,r={})=>{c("configUpsertBusiness","businessId",t),c("configUpsertBusiness","upsertBusinessDto",e);let s="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configUpsertChannelConfig:async(t,e,r,s={})=>{c("configUpsertChannelConfig","businessId",t),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",r);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(t,e,r,s={})=>{c("configUpsertGiftCard","businessId",t),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(t,e,r={})=>{c("configUpsertLoyalty","businessId",t),c("configUpsertLoyalty","upsertLoyaltyDto",e);let s="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configUpsertNets:async(t,e,r,s={})=>{c("configUpsertNets","businessId",t),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",r);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(t,e,r,s={})=>{c("configUpsertPaymentOptions","businessId",t),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertStripe:async(t,e,r,s={})=>{c("configUpsertStripe","businessId",t),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",r);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertViva:async(t,e,r,s={})=>{c("configUpsertViva","businessId",t),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",r);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},M=function(a){let t=Rt(a);return{async configConfigureMunchiGiftCard(e,r,s,n){let o=await t.configConfigureMunchiGiftCard(e,r,s,n);return h(o,P.default,p,a)},async configManualSync(e,r,s){let n=await t.configManualSync(e,r,s);return h(n,P.default,p,a)},async configRemovePaymentOption(e,r,s,n){let o=await t.configRemovePaymentOption(e,r,s,n);return h(o,P.default,p,a)},async configUpsertBusiness(e,r,s){let n=await t.configUpsertBusiness(e,r,s);return h(n,P.default,p,a)},async configUpsertChannelConfig(e,r,s,n){let o=await t.configUpsertChannelConfig(e,r,s,n);return h(o,P.default,p,a)},async configUpsertGiftCard(e,r,s,n){let o=await t.configUpsertGiftCard(e,r,s,n);return h(o,P.default,p,a)},async configUpsertLoyalty(e,r,s){let n=await t.configUpsertLoyalty(e,r,s);return h(n,P.default,p,a)},async configUpsertNets(e,r,s,n){let o=await t.configUpsertNets(e,r,s,n);return h(o,P.default,p,a)},async configUpsertPaymentOptions(e,r,s,n){let o=await t.configUpsertPaymentOptions(e,r,s,n);return h(o,P.default,p,a)},async configUpsertStripe(e,r,s,n){let o=await t.configUpsertStripe(e,r,s,n);return h(o,P.default,p,a)},async configUpsertViva(e,r,s,n){let o=await t.configUpsertViva(e,r,s,n);return h(o,P.default,p,a)}}},hn=function(a,t,e){let r=M(a);return{configConfigureMunchiGiftCard(s,n,o,i){return r.configConfigureMunchiGiftCard(s,n,o,i).then(l=>l(e,t))},configManualSync(s,n,o){return r.configManualSync(s,n,o).then(i=>i(e,t))},configRemovePaymentOption(s,n,o,i){return r.configRemovePaymentOption(s,n,o,i).then(l=>l(e,t))},configUpsertBusiness(s,n,o){return r.configUpsertBusiness(s,n,o).then(i=>i(e,t))},configUpsertChannelConfig(s,n,o,i){return r.configUpsertChannelConfig(s,n,o,i).then(l=>l(e,t))},configUpsertGiftCard(s,n,o,i){return r.configUpsertGiftCard(s,n,o,i).then(l=>l(e,t))},configUpsertLoyalty(s,n,o){return r.configUpsertLoyalty(s,n,o).then(i=>i(e,t))},configUpsertNets(s,n,o,i){return r.configUpsertNets(s,n,o,i).then(l=>l(e,t))},configUpsertPaymentOptions(s,n,o,i){return r.configUpsertPaymentOptions(s,n,o,i).then(l=>l(e,t))},configUpsertStripe(s,n,o,i){return r.configUpsertStripe(s,n,o,i).then(l=>l(e,t))},configUpsertViva(s,n,o,i){return r.configUpsertViva(s,n,o,i).then(l=>l(e,t))}}},Ce=class extends I{configConfigureMunchiGiftCard(t,e,r,s){return M(this.configuration).configConfigureMunchiGiftCard(t,e,r,s).then(n=>n(this.axios,this.basePath))}configManualSync(t,e,r){return M(this.configuration).configManualSync(t,e,r).then(s=>s(this.axios,this.basePath))}configRemovePaymentOption(t,e,r,s){return M(this.configuration).configRemovePaymentOption(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(t,e,r){return M(this.configuration).configUpsertBusiness(t,e,r).then(s=>s(this.axios,this.basePath))}configUpsertChannelConfig(t,e,r,s){return M(this.configuration).configUpsertChannelConfig(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(t,e,r,s){return M(this.configuration).configUpsertGiftCard(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(t,e,r){return M(this.configuration).configUpsertLoyalty(t,e,r).then(s=>s(this.axios,this.basePath))}configUpsertNets(t,e,r,s){return M(this.configuration).configUpsertNets(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(t,e,r,s){return M(this.configuration).configUpsertPaymentOptions(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertStripe(t,e,r,s){return M(this.configuration).configUpsertStripe(t,e,r,s).then(n=>n(this.axios,this.basePath))}configUpsertViva(t,e,r,s){return M(this.configuration).configUpsertViva(t,e,r,s).then(n=>n(this.axios,this.basePath))}},bt=function(a){return{getCourses:async(t,e={})=>{c("getCourses","businessId",t);let r="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},rt=function(a){let t=bt(a);return{async getCourses(e,r){let s=await t.getCourses(e,r);return h(s,P.default,p,a)}}},Pn=function(a,t,e){let r=rt(a);return{getCourses(s,n){return r.getCourses(s,n).then(o=>o(e,t))}}},De=class extends I{getCourses(t,e){return rt(this.configuration).getCourses(t,e).then(r=>r(this.axios,this.basePath))}},Ct=function(a){return{createAssignment:async(t,e,r={})=>{c("createAssignment","businessId",t),c("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},nt=function(a){let t=Ct(a);return{async createAssignment(e,r,s){let n=await t.createAssignment(e,r,s);return h(n,P.default,p,a)}}},fn=function(a,t,e){let r=nt(a);return{createAssignment(s,n,o){return r.createAssignment(s,n,o).then(i=>i(e,t))}}},Oe=class extends I{createAssignment(t,e,r){return nt(this.configuration).createAssignment(t,e,r).then(s=>s(this.axios,this.basePath))}},Dt=function(a){return{redeemGiftCard:async(t,e={})=>{c("redeemGiftCard","redeemGiftCardDto",t);let r="/api/v1/giftcard/redeem",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateGiftCard:async(t,e={})=>{c("validateGiftCard","validateGiftCardDto",t);let r="/api/v1/giftcard/validate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},ce=function(a){let t=Dt(a);return{async redeemGiftCard(e,r){let s=await t.redeemGiftCard(e,r);return h(s,P.default,p,a)},async validateGiftCard(e,r){let s=await t.validateGiftCard(e,r);return h(s,P.default,p,a)}}},An=function(a,t,e){let r=ce(a);return{redeemGiftCard(s,n){return r.redeemGiftCard(s,n).then(o=>o(e,t))},validateGiftCard(s,n){return r.validateGiftCard(s,n).then(o=>o(e,t))}}},Ve=class extends I{redeemGiftCard(t,e){return ce(this.configuration).redeemGiftCard(t,e).then(r=>r(this.axios,this.basePath))}validateGiftCard(t,e){return ce(this.configuration).validateGiftCard(t,e).then(r=>r(this.axios,this.basePath))}},Ot=function(a){return{getInternalOrderHistoryOnline:async(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O={})=>{c("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},_={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let W=V&&V.headers?V.headers:{};return E.headers={..._,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O={})=>{c("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},_={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let W=V&&V.headers?V.headers:{};return E.headers={..._,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O={})=>{c("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},_={},D={};await b(_,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let W=V&&V.headers?V.headers:{};return E.headers={..._,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O={})=>{c("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},_={},D={};await b(_,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),s!==void 0&&(D.end=s),t&&(D.businessIds=t),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let W=V&&V.headers?V.headers:{};return E.headers={..._,...W,...O.headers},{url:y(v),options:E}}}},H=function(a){let t=Ot(a);return{async getInternalOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S){let v=await t.getInternalOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P.default,p,a)},async getOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S){let v=await t.getOrderHistoryOnline(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P.default,p,a)},async getOrderHistoryPOSV5(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S){let v=await t.getOrderHistoryPOSV5(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P.default,p,a)},async getOrderHistoryPOSV5Internal(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S){let v=await t.getOrderHistoryPOSV5Internal(e,r,s,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P.default,p,a)}}},xn=function(a,t,e){let r=H(a);return{getInternalOrderHistoryOnline(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getInternalOrderHistoryOnline(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,t))},getOrderHistoryOnline(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getOrderHistoryOnline(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getOrderHistoryPOSV5(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5Internal(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getOrderHistoryPOSV5Internal(s,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,t))}}},Ie=class extends I{getInternalOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getInternalOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getOrderHistoryOnline(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getOrderHistoryPOSV5(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getOrderHistoryPOSV5Internal(t,e,r,s,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}},Vt=function(a){return{createInvoiceCompany:async(t,e,r={})=>{c("createInvoiceCompany","businessId",t),c("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},deleteInvoiceCompany:async(t,e,r={})=>{c("deleteInvoiceCompany","id",t),c("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getInvoiceCompanies:async(t,e={})=>{c("getInvoiceCompanies","businessId",t);let r="/api/v1/invoice-companies",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getInvoiceCompanyById:async(t,e,r={})=>{c("getInvoiceCompanyById","id",t),c("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},searchInvoiceCompanies:async(t,e,r={})=>{c("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};t!==void 0&&(u.businessId=t),e!==void 0&&(u.search=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},updateInvoiceCompany:async(t,e,r,s={})=>{c("updateInvoiceCompany","id",t),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",r);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},F=function(a){let t=Vt(a);return{async createInvoiceCompany(e,r,s){let n=await t.createInvoiceCompany(e,r,s);return h(n,P.default,p,a)},async deleteInvoiceCompany(e,r,s){let n=await t.deleteInvoiceCompany(e,r,s);return h(n,P.default,p,a)},async getInvoiceCompanies(e,r){let s=await t.getInvoiceCompanies(e,r);return h(s,P.default,p,a)},async getInvoiceCompanyById(e,r,s){let n=await t.getInvoiceCompanyById(e,r,s);return h(n,P.default,p,a)},async searchInvoiceCompanies(e,r,s){let n=await t.searchInvoiceCompanies(e,r,s);return h(n,P.default,p,a)},async updateInvoiceCompany(e,r,s,n){let o=await t.updateInvoiceCompany(e,r,s,n);return h(o,P.default,p,a)}}},Rn=function(a,t,e){let r=F(a);return{createInvoiceCompany(s,n,o){return r.createInvoiceCompany(s,n,o).then(i=>i(e,t))},deleteInvoiceCompany(s,n,o){return r.deleteInvoiceCompany(s,n,o).then(i=>i(e,t))},getInvoiceCompanies(s,n){return r.getInvoiceCompanies(s,n).then(o=>o(e,t))},getInvoiceCompanyById(s,n,o){return r.getInvoiceCompanyById(s,n,o).then(i=>i(e,t))},searchInvoiceCompanies(s,n,o){return r.searchInvoiceCompanies(s,n,o).then(i=>i(e,t))},updateInvoiceCompany(s,n,o,i){return r.updateInvoiceCompany(s,n,o,i).then(l=>l(e,t))}}},Se=class extends I{createInvoiceCompany(t,e,r){return F(this.configuration).createInvoiceCompany(t,e,r).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,r){return F(this.configuration).deleteInvoiceCompany(t,e,r).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return F(this.configuration).getInvoiceCompanies(t,e).then(r=>r(this.axios,this.basePath))}getInvoiceCompanyById(t,e,r){return F(this.configuration).getInvoiceCompanyById(t,e,r).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,r){return F(this.configuration).searchInvoiceCompanies(t,e,r).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,r,s){return F(this.configuration).updateInvoiceCompany(t,e,r,s).then(n=>n(this.axios,this.basePath))}},It=function(a){return{kdsGetOrders:async(t,e,r,s,n,o,i,l,u,d,f,x={})=>{c("kdsGetOrders","status",t),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",r);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(t))),C=new URL(R,m),O;a&&(O=a.baseOptions);let S={method:"GET",...O,...x},v={},V={};await b(v,a),e!==void 0&&(V.businessIds=e),r!==void 0&&(V.profileId=r),s!==void 0&&(V.page=s),n!==void 0&&(V.rowPerPage=n),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),f&&(V.consumptionType=f),g(C,V);let E=O&&O.headers?O.headers:{};return S.headers={...v,...E,...x.headers},{url:y(C),options:S}},kdsGetProfiles:async(t,e={})=>{c("kdsGetProfiles","businessId",t);let r="/api/v1/kds/profiles",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsMarkOrderReady:async(t,e={})=>{c("kdsMarkOrderReady","id",t);let r="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsRevertOrder:async(t,e={})=>{c("kdsRevertOrder","id",t);let r="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await b(i,a),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},Q=function(a){let t=It(a);return{async kdsGetOrders(e,r,s,n,o,i,l,u,d,f,x,R){let C=await t.kdsGetOrders(e,r,s,n,o,i,l,u,d,f,x,R);return h(C,P.default,p,a)},async kdsGetProfiles(e,r){let s=await t.kdsGetProfiles(e,r);return h(s,P.default,p,a)},async kdsMarkOrderReady(e,r){let s=await t.kdsMarkOrderReady(e,r);return h(s,P.default,p,a)},async kdsRevertOrder(e,r){let s=await t.kdsRevertOrder(e,r);return h(s,P.default,p,a)}}},bn=function(a,t,e){let r=Q(a);return{kdsGetOrders(s,n,o,i,l,u,d,f,x,R,C,O){return r.kdsGetOrders(s,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(e,t))},kdsGetProfiles(s,n){return r.kdsGetProfiles(s,n).then(o=>o(e,t))},kdsMarkOrderReady(s,n){return r.kdsMarkOrderReady(s,n).then(o=>o(e,t))},kdsRevertOrder(s,n){return r.kdsRevertOrder(s,n).then(o=>o(e,t))}}},ve=class extends I{kdsGetOrders(t,e,r,s,n,o,i,l,u,d,f,x){return Q(this.configuration).kdsGetOrders(t,e,r,s,n,o,i,l,u,d,f,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(t,e){return Q(this.configuration).kdsGetProfiles(t,e).then(r=>r(this.axios,this.basePath))}kdsMarkOrderReady(t,e){return Q(this.configuration).kdsMarkOrderReady(t,e).then(r=>r(this.axios,this.basePath))}kdsRevertOrder(t,e){return Q(this.configuration).kdsRevertOrder(t,e).then(r=>r(this.axios,this.basePath))}},St=function(a){return{getOrderStatus:async(t,e,r={})=>{c("getOrderStatus","orderId",t),c("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recoverOrder:async(t,e,r={})=>{c("recoverOrder","orderId",t),c("recoverOrder","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},validate:async(t,e,r={})=>{c("validate","terminalId",t),c("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};t!==void 0&&(u.terminalId=t),e!==void 0&&(u.provider=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},ee=function(a){let t=St(a);return{async getOrderStatus(e,r,s){let n=await t.getOrderStatus(e,r,s);return h(n,P.default,p,a)},async recoverOrder(e,r,s){let n=await t.recoverOrder(e,r,s);return h(n,P.default,p,a)},async validate(e,r,s){let n=await t.validate(e,r,s);return h(n,P.default,p,a)}}},Cn=function(a,t,e){let r=ee(a);return{getOrderStatus(s,n,o){return r.getOrderStatus(s,n,o).then(i=>i(e,t))},recoverOrder(s,n,o){return r.recoverOrder(s,n,o).then(i=>i(e,t))},validate(s,n,o){return r.validate(s,n,o).then(i=>i(e,t))}}},Te=class extends I{getOrderStatus(t,e,r){return ee(this.configuration).getOrderStatus(t,e,r).then(s=>s(this.axios,this.basePath))}recoverOrder(t,e,r){return ee(this.configuration).recoverOrder(t,e,r).then(s=>s(this.axios,this.basePath))}validate(t,e,r){return ee(this.configuration).validate(t,e,r).then(s=>s(this.axios,this.basePath))}},vt=function(a){return{activateKioskOffer:async(t,e={})=>{c("activateKioskOffer","activateKioskOfferDto",t);let r="/api/v1/loyalty/users/activate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},claimKioskOffer:async(t,e={})=>{c("claimKioskOffer","claimKioskOfferDto",t);let r="/api/v1/loyalty/users/claim",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createLoyaltyUser:async(t,e,r={})=>{c("createLoyaltyUser","businessId",t),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let s="/api/v1/loyalty/users/create",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getAdminTransactions:async(t,e,r,s={})=>{c("getAdminTransactions","businessId",t);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await b(u,a),t!==void 0&&(d.businessId=t),e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getLoyaltyInfo:async(t,e={})=>{c("getLoyaltyInfo","businessId",t);let r="/api/v1/loyalty/info",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getUserById:async(t,e,r={})=>{c("getUserById","businessId",t),c("getUserById","userId",e);let s="/api/v1/loyalty/users/info",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserPerks:async(t,e,r={})=>{c("getUserPerks","businessId",t),c("getUserPerks","userId",e);let s="/api/v1/loyalty/users/perks",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserWallet:async(t,e,r={})=>{c("getUserWallet","businessId",t),c("getUserWallet","userId",e);let s="/api/v1/loyalty/users/wallet",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resolvePerks:async(t,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",t);let r="/api/v1/loyalty/resolve",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},searchUser:async(t,e,r,s,n={})=>{c("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};await b(d,a),e!==void 0&&(f.phone=e),r!==void 0&&(f.country_code=r),s!==void 0&&(f.email=s),t!==void 0&&(f.businessId=t),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},updatePoints:async(t,e,r={})=>{c("updatePoints","businessId",t),c("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},k=function(a){let t=vt(a);return{async activateKioskOffer(e,r){let s=await t.activateKioskOffer(e,r);return h(s,P.default,p,a)},async claimKioskOffer(e,r){let s=await t.claimKioskOffer(e,r);return h(s,P.default,p,a)},async createLoyaltyUser(e,r,s){let n=await t.createLoyaltyUser(e,r,s);return h(n,P.default,p,a)},async getAdminTransactions(e,r,s,n){let o=await t.getAdminTransactions(e,r,s,n);return h(o,P.default,p,a)},async getLoyaltyInfo(e,r){let s=await t.getLoyaltyInfo(e,r);return h(s,P.default,p,a)},async getUserById(e,r,s){let n=await t.getUserById(e,r,s);return h(n,P.default,p,a)},async getUserPerks(e,r,s){let n=await t.getUserPerks(e,r,s);return h(n,P.default,p,a)},async getUserWallet(e,r,s){let n=await t.getUserWallet(e,r,s);return h(n,P.default,p,a)},async resolvePerks(e,r){let s=await t.resolvePerks(e,r);return h(s,P.default,p,a)},async searchUser(e,r,s,n,o){let i=await t.searchUser(e,r,s,n,o);return h(i,P.default,p,a)},async updatePoints(e,r,s){let n=await t.updatePoints(e,r,s);return h(n,P.default,p,a)}}},Dn=function(a,t,e){let r=k(a);return{activateKioskOffer(s,n){return r.activateKioskOffer(s,n).then(o=>o(e,t))},claimKioskOffer(s,n){return r.claimKioskOffer(s,n).then(o=>o(e,t))},createLoyaltyUser(s,n,o){return r.createLoyaltyUser(s,n,o).then(i=>i(e,t))},getAdminTransactions(s,n,o,i){return r.getAdminTransactions(s,n,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,n){return r.getLoyaltyInfo(s,n).then(o=>o(e,t))},getUserById(s,n,o){return r.getUserById(s,n,o).then(i=>i(e,t))},getUserPerks(s,n,o){return r.getUserPerks(s,n,o).then(i=>i(e,t))},getUserWallet(s,n,o){return r.getUserWallet(s,n,o).then(i=>i(e,t))},resolvePerks(s,n){return r.resolvePerks(s,n).then(o=>o(e,t))},searchUser(s,n,o,i,l){return r.searchUser(s,n,o,i,l).then(u=>u(e,t))},updatePoints(s,n,o){return r.updatePoints(s,n,o).then(i=>i(e,t))}}},Ee=class extends I{activateKioskOffer(t,e){return k(this.configuration).activateKioskOffer(t,e).then(r=>r(this.axios,this.basePath))}claimKioskOffer(t,e){return k(this.configuration).claimKioskOffer(t,e).then(r=>r(this.axios,this.basePath))}createLoyaltyUser(t,e,r){return k(this.configuration).createLoyaltyUser(t,e,r).then(s=>s(this.axios,this.basePath))}getAdminTransactions(t,e,r,s){return k(this.configuration).getAdminTransactions(t,e,r,s).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(t,e){return k(this.configuration).getLoyaltyInfo(t,e).then(r=>r(this.axios,this.basePath))}getUserById(t,e,r){return k(this.configuration).getUserById(t,e,r).then(s=>s(this.axios,this.basePath))}getUserPerks(t,e,r){return k(this.configuration).getUserPerks(t,e,r).then(s=>s(this.axios,this.basePath))}getUserWallet(t,e,r){return k(this.configuration).getUserWallet(t,e,r).then(s=>s(this.axios,this.basePath))}resolvePerks(t,e){return k(this.configuration).resolvePerks(t,e).then(r=>r(this.axios,this.basePath))}searchUser(t,e,r,s,n){return k(this.configuration).searchUser(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,r){return k(this.configuration).updatePoints(t,e,r).then(s=>s(this.axios,this.basePath))}},Tt=function(a){return{editBusinessProduct:async(t,e,r={})=>{c("editBusinessProduct","businessId",t),c("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},editBusinessProductV2:async(t,e,r={})=>{c("editBusinessProductV2","businessId",t),c("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessExtras:async(t,e={})=>{c("getBusinessExtras","businessId",t);let r="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getProductsByCategoriesV2:async(t,e,r={})=>{c("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resetProductEod:async(t,e={})=>{c("resetProductEod","resetEodDto",t);let r="/api/v1/menu/availability/reset-eod",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},K=function(a){let t=Tt(a);return{async editBusinessProduct(e,r,s){let n=await t.editBusinessProduct(e,r,s);return h(n,P.default,p,a)},async editBusinessProductV2(e,r,s){let n=await t.editBusinessProductV2(e,r,s);return h(n,P.default,p,a)},async getBusinessExtras(e,r){let s=await t.getBusinessExtras(e,r);return h(s,P.default,p,a)},async getProductsByCategoriesV2(e,r,s){let n=await t.getProductsByCategoriesV2(e,r,s);return h(n,P.default,p,a)},async resetProductEod(e,r){let s=await t.resetProductEod(e,r);return h(s,P.default,p,a)}}},On=function(a,t,e){let r=K(a);return{editBusinessProduct(s,n,o){return r.editBusinessProduct(s,n,o).then(i=>i(e,t))},editBusinessProductV2(s,n,o){return r.editBusinessProductV2(s,n,o).then(i=>i(e,t))},getBusinessExtras(s,n){return r.getBusinessExtras(s,n).then(o=>o(e,t))},getProductsByCategoriesV2(s,n,o){return r.getProductsByCategoriesV2(s,n,o).then(i=>i(e,t))},resetProductEod(s,n){return r.resetProductEod(s,n).then(o=>o(e,t))}}},Ue=class extends I{editBusinessProduct(t,e,r){return K(this.configuration).editBusinessProduct(t,e,r).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,r){return K(this.configuration).editBusinessProductV2(t,e,r).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return K(this.configuration).getBusinessExtras(t,e).then(r=>r(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,r){return K(this.configuration).getProductsByCategoriesV2(t,e,r).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return K(this.configuration).resetProductEod(t,e).then(r=>r(this.axios,this.basePath))}},Et=function(a){return{addBusinessesToMerchant:async(t,e,r={})=>{c("addBusinessesToMerchant","merchantId",t),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let s="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},createMerchant:async(t,e={})=>{c("createMerchant","createMerchantDto",t);let r="/api/v1/merchants",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeBusinessFromMerchant:async(t,e,r={})=>{c("removeBusinessFromMerchant","merchantId",t),c("removeBusinessFromMerchant","businessId",e);let s="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},te=function(a){let t=Et(a);return{async addBusinessesToMerchant(e,r,s){let n=await t.addBusinessesToMerchant(e,r,s);return h(n,P.default,p,a)},async createMerchant(e,r){let s=await t.createMerchant(e,r);return h(s,P.default,p,a)},async removeBusinessFromMerchant(e,r,s){let n=await t.removeBusinessFromMerchant(e,r,s);return h(n,P.default,p,a)}}},Vn=function(a,t,e){let r=te(a);return{addBusinessesToMerchant(s,n,o){return r.addBusinessesToMerchant(s,n,o).then(i=>i(e,t))},createMerchant(s,n){return r.createMerchant(s,n).then(o=>o(e,t))},removeBusinessFromMerchant(s,n,o){return r.removeBusinessFromMerchant(s,n,o).then(i=>i(e,t))}}},qe=class extends I{addBusinessesToMerchant(t,e,r){return te(this.configuration).addBusinessesToMerchant(t,e,r).then(s=>s(this.axios,this.basePath))}createMerchant(t,e){return te(this.configuration).createMerchant(t,e).then(r=>r(this.axios,this.basePath))}removeBusinessFromMerchant(t,e,r){return te(this.configuration).removeBusinessFromMerchant(t,e,r).then(s=>s(this.axios,this.basePath))}},Ut=function(a){return{createMunchiGiftCard:async(t,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",t);let r="/api/v1/munchi-giftcard/create",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getMunchiGiftCardData:async(t,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",t);let r="/api/v1/munchi-giftcard/data",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},redeemMunchiGiftCard:async(t,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",t);let r="/api/v1/munchi-giftcard/redeem",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateMunchiGiftCard:async(t,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",t);let r="/api/v1/munchi-giftcard/validate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},$=function(a){let t=Ut(a);return{async createMunchiGiftCard(e,r){let s=await t.createMunchiGiftCard(e,r);return h(s,P.default,p,a)},async getMunchiGiftCardData(e,r){let s=await t.getMunchiGiftCardData(e,r);return h(s,P.default,p,a)},async redeemMunchiGiftCard(e,r){let s=await t.redeemMunchiGiftCard(e,r);return h(s,P.default,p,a)},async validateMunchiGiftCard(e,r){let s=await t.validateMunchiGiftCard(e,r);return h(s,P.default,p,a)}}},In=function(a,t,e){let r=$(a);return{createMunchiGiftCard(s,n){return r.createMunchiGiftCard(s,n).then(o=>o(e,t))},getMunchiGiftCardData(s,n){return r.getMunchiGiftCardData(s,n).then(o=>o(e,t))},redeemMunchiGiftCard(s,n){return r.redeemMunchiGiftCard(s,n).then(o=>o(e,t))},validateMunchiGiftCard(s,n){return r.validateMunchiGiftCard(s,n).then(o=>o(e,t))}}},Be=class extends I{createMunchiGiftCard(t,e){return $(this.configuration).createMunchiGiftCard(t,e).then(r=>r(this.axios,this.basePath))}getMunchiGiftCardData(t,e){return $(this.configuration).getMunchiGiftCardData(t,e).then(r=>r(this.axios,this.basePath))}redeemMunchiGiftCard(t,e){return $(this.configuration).redeemMunchiGiftCard(t,e).then(r=>r(this.axios,this.basePath))}validateMunchiGiftCard(t,e){return $(this.configuration).validateMunchiGiftCard(t,e).then(r=>r(this.axios,this.basePath))}},qt=function(a){return{addVenueSubscriptionsV2:async(t,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let r="/api/v2/notification/add-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let r="/api/v2/notification/remove-venue-subscriptions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},de=function(a){let t=qt(a);return{async addVenueSubscriptionsV2(e,r){let s=await t.addVenueSubscriptionsV2(e,r);return h(s,P.default,p,a)},async removeVenueSubscriptionsV2(e,r){let s=await t.removeVenueSubscriptionsV2(e,r);return h(s,P.default,p,a)}}},Sn=function(a,t,e){let r=de(a);return{addVenueSubscriptionsV2(s,n){return r.addVenueSubscriptionsV2(s,n).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,n){return r.removeVenueSubscriptionsV2(s,n).then(o=>o(e,t))}}},Me=class extends I{addVenueSubscriptionsV2(t,e){return de(this.configuration).addVenueSubscriptionsV2(t,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return de(this.configuration).removeVenueSubscriptionsV2(t,e).then(r=>r(this.axios,this.basePath))}},Bt=function(a){return{findOneByExternalId:async(t,e={})=>{c("findOneByExternalId","externalId",t);let r="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},ot=function(a){let t=Bt(a);return{async findOneByExternalId(e,r){let s=await t.findOneByExternalId(e,r);return h(s,P.default,p,a)}}},vn=function(a,t,e){let r=ot(a);return{findOneByExternalId(s,n){return r.findOneByExternalId(s,n).then(o=>o(e,t))}}},ke=class extends I{findOneByExternalId(t,e){return ot(this.configuration).findOneByExternalId(t,e).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{updateTaxRate:async(t,e={})=>{c("updateTaxRate","body",t);let r="/api/v1/ordering/update-tax-rate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},at=function(a){let t=Mt(a);return{async updateTaxRate(e,r){let s=await t.updateTaxRate(e,r);return h(s,P.default,p,a)}}},Tn=function(a,t,e){let r=at(a);return{updateTaxRate(s,n){return r.updateTaxRate(s,n).then(o=>o(e,t))}}},_e=class extends I{updateTaxRate(t,e){return at(this.configuration).updateTaxRate(t,e).then(r=>r(this.axios,this.basePath))}},kt=function(a){return{acceptOrder:async(t,e={})=>{c("acceptOrder","acceptOrderDto",t);let r="/api/v1/orders/accept",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},confirmPreOrder:async(t,e={})=>{c("confirmPreOrder","confirmPreorderDto",t);let r="/api/v1/orders/confirm/preOrder",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",t);let r="/api/v2/orders/pos/park",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deliverOrder:async(t,e={})=>{c("deliverOrder","deliveredOrderDto",t);let r="/api/v1/orders/delivered",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getAllOrdersV2:async(t,e={})=>{c("getAllOrdersV2","businessIds",t);let r="/api/v2/orders",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessIds=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getOrdersV2:async(t,e,r,s,n={})=>{c("getOrdersV2","status",t),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};e!==void 0&&(f.businessIds=e),r!==void 0&&(f.posBusinessId=r),s!==void 0&&(f.extraProvider=s),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{c("getParkedPosOrderV2","businessId",t);let r="/api/v2/orders/pos/park",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},markOrderAsReady:async(t,e={})=>{c("markOrderAsReady","readyOrderDto",t);let r="/api/v1/orders/ready",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},placePosOrderV4:async(t,e={})=>{c("placePosOrderV4","posOrderPayloadDto",t);let r="/api/v4/orders/pos/place",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processPosOrderActions:async(t,e={})=>{c("processPosOrderActions","processOrderActionsDto",t);let r="/api/v4/orders/pos/actions",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},rejectOrder:async(t,e={})=>{c("rejectOrder","rejectOrderDto",t);let r="/api/v1/orders/reject",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updatePosOrderV2:async(t,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",t);let r="/api/v2/orders/pos/update",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},B=function(a){let t=kt(a);return{async acceptOrder(e,r){let s=await t.acceptOrder(e,r);return h(s,P.default,p,a)},async confirmPreOrder(e,r){let s=await t.confirmPreOrder(e,r);return h(s,P.default,p,a)},async deletePosParkedOrderV2(e,r){let s=await t.deletePosParkedOrderV2(e,r);return h(s,P.default,p,a)},async deliverOrder(e,r){let s=await t.deliverOrder(e,r);return h(s,P.default,p,a)},async getAllOrdersV2(e,r){let s=await t.getAllOrdersV2(e,r);return h(s,P.default,p,a)},async getOrdersV2(e,r,s,n,o){let i=await t.getOrdersV2(e,r,s,n,o);return h(i,P.default,p,a)},async getParkedPosOrderV2(e,r){let s=await t.getParkedPosOrderV2(e,r);return h(s,P.default,p,a)},async markOrderAsReady(e,r){let s=await t.markOrderAsReady(e,r);return h(s,P.default,p,a)},async placePosOrderV4(e,r){let s=await t.placePosOrderV4(e,r);return h(s,P.default,p,a)},async processPosOrderActions(e,r){let s=await t.processPosOrderActions(e,r);return h(s,P.default,p,a)},async rejectOrder(e,r){let s=await t.rejectOrder(e,r);return h(s,P.default,p,a)},async updatePosOrderV2(e,r){let s=await t.updatePosOrderV2(e,r);return h(s,P.default,p,a)}}},En=function(a,t,e){let r=B(a);return{acceptOrder(s,n){return r.acceptOrder(s,n).then(o=>o(e,t))},confirmPreOrder(s,n){return r.confirmPreOrder(s,n).then(o=>o(e,t))},deletePosParkedOrderV2(s,n){return r.deletePosParkedOrderV2(s,n).then(o=>o(e,t))},deliverOrder(s,n){return r.deliverOrder(s,n).then(o=>o(e,t))},getAllOrdersV2(s,n){return r.getAllOrdersV2(s,n).then(o=>o(e,t))},getOrdersV2(s,n,o,i,l){return r.getOrdersV2(s,n,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,n){return r.getParkedPosOrderV2(s,n).then(o=>o(e,t))},markOrderAsReady(s,n){return r.markOrderAsReady(s,n).then(o=>o(e,t))},placePosOrderV4(s,n){return r.placePosOrderV4(s,n).then(o=>o(e,t))},processPosOrderActions(s,n){return r.processPosOrderActions(s,n).then(o=>o(e,t))},rejectOrder(s,n){return r.rejectOrder(s,n).then(o=>o(e,t))},updatePosOrderV2(s,n){return r.updatePosOrderV2(s,n).then(o=>o(e,t))}}},we=class extends I{acceptOrder(t,e){return B(this.configuration).acceptOrder(t,e).then(r=>r(this.axios,this.basePath))}confirmPreOrder(t,e){return B(this.configuration).confirmPreOrder(t,e).then(r=>r(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return B(this.configuration).deletePosParkedOrderV2(t,e).then(r=>r(this.axios,this.basePath))}deliverOrder(t,e){return B(this.configuration).deliverOrder(t,e).then(r=>r(this.axios,this.basePath))}getAllOrdersV2(t,e){return B(this.configuration).getAllOrdersV2(t,e).then(r=>r(this.axios,this.basePath))}getOrdersV2(t,e,r,s,n){return B(this.configuration).getOrdersV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return B(this.configuration).getParkedPosOrderV2(t,e).then(r=>r(this.axios,this.basePath))}markOrderAsReady(t,e){return B(this.configuration).markOrderAsReady(t,e).then(r=>r(this.axios,this.basePath))}placePosOrderV4(t,e){return B(this.configuration).placePosOrderV4(t,e).then(r=>r(this.axios,this.basePath))}processPosOrderActions(t,e){return B(this.configuration).processPosOrderActions(t,e).then(r=>r(this.axios,this.basePath))}rejectOrder(t,e){return B(this.configuration).rejectOrder(t,e).then(r=>r(this.axios,this.basePath))}updatePosOrderV2(t,e){return B(this.configuration).updatePosOrderV2(t,e).then(r=>r(this.axios,this.basePath))}},_t=function(a){return{getPosSession:async(t,e={})=>{c("getPosSession","businessId",t);let r="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getPosSessionV2:async(t,e={})=>{c("getPosSessionV2","businessId",t);let r="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},pe=function(a){let t=_t(a);return{async getPosSession(e,r){let s=await t.getPosSession(e,r);return h(s,P.default,p,a)},async getPosSessionV2(e,r){let s=await t.getPosSessionV2(e,r);return h(s,P.default,p,a)}}},Un=function(a,t,e){let r=pe(a);return{getPosSession(s,n){return r.getPosSession(s,n).then(o=>o(e,t))},getPosSessionV2(s,n){return r.getPosSessionV2(s,n).then(o=>o(e,t))}}},Ne=class extends I{getPosSession(t,e){return pe(this.configuration).getPosSession(t,e).then(r=>r(this.axios,this.basePath))}getPosSessionV2(t,e){return pe(this.configuration).getPosSessionV2(t,e).then(r=>r(this.axios,this.basePath))}},wt=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let r="/api/v3/payment/nets/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let r="/api/v2/payment/viva/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{c("createNetsRefundTransaction","createRefundDto",t);let r="/api/v4/payment/nets/refund/transaction",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentReference:async(t,e={})=>{c("getPaymentReference","getPaymentReferenceDto",t);let r="/api/v1/payment/reference",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentStatus:async(t,e={})=>{c("getPaymentStatus","getPaymentStatusDto",t);let r="/api/v1/payment/status",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let r="/api/v3/payment/nets/terminal/initiate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",t);let r="/api/v4/payment/viva/terminal/initiate",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{c("processOnlineOrderRefund","orderResponseDto",t);let r="/api/v1/payment/online-orders/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundCashPaymentV3:async(t,e={})=>{c("refundCashPaymentV3","cashRefundPayload",t);let r="/api/v3/payment/cash/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundManualPaymentV3:async(t,e={})=>{c("refundManualPaymentV3","manualRefundPayload",t);let r="/api/v3/payment/manual/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{c("refundNetsTransactionV3","refundPayloadDtoV4",t);let r="/api/v3/payment/nets/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{c("refundSingleVivaTransaction","createRefundDto",t);let r="/api/v4/payment/viva/refund/single",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{c("refundVivaTransactionV3","refundPayloadDto",t);let r="/api/v3/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{c("refundVivaTransactionV4","refundPayloadDtoV4",t);let r="/api/v4/payment/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},q=function(a){let t=wt(a);return{async cancelNetsTerminalTransaction(e,r){let s=await t.cancelNetsTerminalTransaction(e,r);return h(s,P.default,p,a)},async cancelVivaTransactionV2(e,r){let s=await t.cancelVivaTransactionV2(e,r);return h(s,P.default,p,a)},async createNetsRefundTransaction(e,r){let s=await t.createNetsRefundTransaction(e,r);return h(s,P.default,p,a)},async getPaymentReference(e,r){let s=await t.getPaymentReference(e,r);return h(s,P.default,p,a)},async getPaymentStatus(e,r){let s=await t.getPaymentStatus(e,r);return h(s,P.default,p,a)},async initiateNetsTerminalTransaction(e,r){let s=await t.initiateNetsTerminalTransaction(e,r);return h(s,P.default,p,a)},async initiateTerminalTransaction(e,r){let s=await t.initiateTerminalTransaction(e,r);return h(s,P.default,p,a)},async processOnlineOrderRefund(e,r){let s=await t.processOnlineOrderRefund(e,r);return h(s,P.default,p,a)},async refundCashPaymentV3(e,r){let s=await t.refundCashPaymentV3(e,r);return h(s,P.default,p,a)},async refundManualPaymentV3(e,r){let s=await t.refundManualPaymentV3(e,r);return h(s,P.default,p,a)},async refundNetsTransactionV3(e,r){let s=await t.refundNetsTransactionV3(e,r);return h(s,P.default,p,a)},async refundSingleVivaTransaction(e,r){let s=await t.refundSingleVivaTransaction(e,r);return h(s,P.default,p,a)},async refundVivaTransactionV3(e,r){let s=await t.refundVivaTransactionV3(e,r);return h(s,P.default,p,a)},async refundVivaTransactionV4(e,r){let s=await t.refundVivaTransactionV4(e,r);return h(s,P.default,p,a)}}},qn=function(a,t,e){let r=q(a);return{cancelNetsTerminalTransaction(s,n){return r.cancelNetsTerminalTransaction(s,n).then(o=>o(e,t))},cancelVivaTransactionV2(s,n){return r.cancelVivaTransactionV2(s,n).then(o=>o(e,t))},createNetsRefundTransaction(s,n){return r.createNetsRefundTransaction(s,n).then(o=>o(e,t))},getPaymentReference(s,n){return r.getPaymentReference(s,n).then(o=>o(e,t))},getPaymentStatus(s,n){return r.getPaymentStatus(s,n).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,n){return r.initiateNetsTerminalTransaction(s,n).then(o=>o(e,t))},initiateTerminalTransaction(s,n){return r.initiateTerminalTransaction(s,n).then(o=>o(e,t))},processOnlineOrderRefund(s,n){return r.processOnlineOrderRefund(s,n).then(o=>o(e,t))},refundCashPaymentV3(s,n){return r.refundCashPaymentV3(s,n).then(o=>o(e,t))},refundManualPaymentV3(s,n){return r.refundManualPaymentV3(s,n).then(o=>o(e,t))},refundNetsTransactionV3(s,n){return r.refundNetsTransactionV3(s,n).then(o=>o(e,t))},refundSingleVivaTransaction(s,n){return r.refundSingleVivaTransaction(s,n).then(o=>o(e,t))},refundVivaTransactionV3(s,n){return r.refundVivaTransactionV3(s,n).then(o=>o(e,t))},refundVivaTransactionV4(s,n){return r.refundVivaTransactionV4(s,n).then(o=>o(e,t))}}},Le=class extends I{cancelNetsTerminalTransaction(t,e){return q(this.configuration).cancelNetsTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return q(this.configuration).cancelVivaTransactionV2(t,e).then(r=>r(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return q(this.configuration).createNetsRefundTransaction(t,e).then(r=>r(this.axios,this.basePath))}getPaymentReference(t,e){return q(this.configuration).getPaymentReference(t,e).then(r=>r(this.axios,this.basePath))}getPaymentStatus(t,e){return q(this.configuration).getPaymentStatus(t,e).then(r=>r(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return q(this.configuration).initiateNetsTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return q(this.configuration).initiateTerminalTransaction(t,e).then(r=>r(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return q(this.configuration).processOnlineOrderRefund(t,e).then(r=>r(this.axios,this.basePath))}refundCashPaymentV3(t,e){return q(this.configuration).refundCashPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}refundManualPaymentV3(t,e){return q(this.configuration).refundManualPaymentV3(t,e).then(r=>r(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return q(this.configuration).refundNetsTransactionV3(t,e).then(r=>r(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return q(this.configuration).refundSingleVivaTransaction(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return q(this.configuration).refundVivaTransactionV3(t,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return q(this.configuration).refundVivaTransactionV4(t,e).then(r=>r(this.axios,this.basePath))}},Nt=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},me=function(a){let t=Nt(a);return{async loadConfigFile(e){let r=await t.loadConfigFile(e);return h(r,P.default,p,a)},async upsertBusiness(e){let r=await t.upsertBusiness(e);return h(r,P.default,p,a)}}},Bn=function(a,t,e){let r=me(a);return{loadConfigFile(s){return r.loadConfigFile(s).then(n=>n(e,t))},upsertBusiness(s){return r.upsertBusiness(s).then(n=>n(e,t))}}},Fe=class extends I{loadConfigFile(t){return me(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return me(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},Lt=function(a){return{generateProductSkuV2:async(t,e,r,s={})=>{c("generateProductSkuV2","businessId",t),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(t,e,r,s,n={})=>{c("updateChannelInventoryV2","businessId",t),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",r),c("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}},updateProductSkuV2:async(t,e,r,s,n={})=>{c("updateProductSkuV2","businessId",t),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",r),c("updateProductSkuV2","updateProductSkuDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}}}},se=function(a){let t=Lt(a);return{async generateProductSkuV2(e,r,s,n){let o=await t.generateProductSkuV2(e,r,s,n);return h(o,P.default,p,a)},async updateChannelInventoryV2(e,r,s,n,o){let i=await t.updateChannelInventoryV2(e,r,s,n,o);return h(i,P.default,p,a)},async updateProductSkuV2(e,r,s,n,o){let i=await t.updateProductSkuV2(e,r,s,n,o);return h(i,P.default,p,a)}}},Mn=function(a,t,e){let r=se(a);return{generateProductSkuV2(s,n,o,i){return r.generateProductSkuV2(s,n,o,i).then(l=>l(e,t))},updateChannelInventoryV2(s,n,o,i,l){return r.updateChannelInventoryV2(s,n,o,i,l).then(u=>u(e,t))},updateProductSkuV2(s,n,o,i,l){return r.updateProductSkuV2(s,n,o,i,l).then(u=>u(e,t))}}},je=class extends I{generateProductSkuV2(t,e,r,s){return se(this.configuration).generateProductSkuV2(t,e,r,s).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(t,e,r,s,n){return se(this.configuration).updateChannelInventoryV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(t,e,r,s,n){return se(this.configuration).updateProductSkuV2(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}},Ft=function(a){return{getSupportedChannels:async(t,e={})=>{c("getSupportedChannels","businessId",t);let r="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},registerCredential:async(t,e={})=>{c("registerCredential","body",t);let r="/api/v1/provider/credentials",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},registerProvider:async(t,e={})=>{c("registerProvider","body",t);let r="/api/v1/provider",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},re=function(a){let t=Ft(a);return{async getSupportedChannels(e,r){let s=await t.getSupportedChannels(e,r);return h(s,P.default,p,a)},async registerCredential(e,r){let s=await t.registerCredential(e,r);return h(s,P.default,p,a)},async registerProvider(e,r){let s=await t.registerProvider(e,r);return h(s,P.default,p,a)}}},kn=function(a,t,e){let r=re(a);return{getSupportedChannels(s,n){return r.getSupportedChannels(s,n).then(o=>o(e,t))},registerCredential(s,n){return r.registerCredential(s,n).then(o=>o(e,t))},registerProvider(s,n){return r.registerProvider(s,n).then(o=>o(e,t))}}},We=class extends I{getSupportedChannels(t,e){return re(this.configuration).getSupportedChannels(t,e).then(r=>r(this.axios,this.basePath))}registerCredential(t,e){return re(this.configuration).registerCredential(t,e).then(r=>r(this.axios,this.basePath))}registerProvider(t,e){return re(this.configuration).registerProvider(t,e).then(r=>r(this.axios,this.basePath))}},jt=function(a){return{cancelPlan:async(t,e,r,s={})=>{c("cancelPlan","businessId",t),c("cancelPlan","orderId",e),c("cancelPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},createRefundPlan:async(t,e,r,s={})=>{c("createRefundPlan","businessId",t),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}},getRefundPlan:async(t,e,r,s={})=>{c("getRefundPlan","businessId",t),c("getRefundPlan","orderId",e),c("getRefundPlan","status",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};r!==void 0&&(d.status=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},recordRefundPlan:async(t,e,r,s,n={})=>{c("recordRefundPlan","businessId",t),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",r),c("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}},refundOnlineOrder:async(t,e,r,s={})=>{c("refundOnlineOrder","businessId",t),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};r!==void 0&&(d.provider=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},resolveRefundChoice:async(t,e,r,s,n={})=>{c("resolveRefundChoice","businessId",t),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",r),c("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(s,u,a),{url:y(i),options:u}},startProcessPlan:async(t,e,r,s={})=>{c("startProcessPlan","businessId",t),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},w=function(a){let t=jt(a);return{async cancelPlan(e,r,s,n){let o=await t.cancelPlan(e,r,s,n);return h(o,P.default,p,a)},async createRefundPlan(e,r,s,n){let o=await t.createRefundPlan(e,r,s,n);return h(o,P.default,p,a)},async getRefundPlan(e,r,s,n){let o=await t.getRefundPlan(e,r,s,n);return h(o,P.default,p,a)},async recordRefundPlan(e,r,s,n,o){let i=await t.recordRefundPlan(e,r,s,n,o);return h(i,P.default,p,a)},async refundOnlineOrder(e,r,s,n){let o=await t.refundOnlineOrder(e,r,s,n);return h(o,P.default,p,a)},async resolveRefundChoice(e,r,s,n,o){let i=await t.resolveRefundChoice(e,r,s,n,o);return h(i,P.default,p,a)},async startProcessPlan(e,r,s,n){let o=await t.startProcessPlan(e,r,s,n);return h(o,P.default,p,a)}}},_n=function(a,t,e){let r=w(a);return{cancelPlan(s,n,o,i){return r.cancelPlan(s,n,o,i).then(l=>l(e,t))},createRefundPlan(s,n,o,i){return r.createRefundPlan(s,n,o,i).then(l=>l(e,t))},getRefundPlan(s,n,o,i){return r.getRefundPlan(s,n,o,i).then(l=>l(e,t))},recordRefundPlan(s,n,o,i,l){return r.recordRefundPlan(s,n,o,i,l).then(u=>u(e,t))},refundOnlineOrder(s,n,o,i){return r.refundOnlineOrder(s,n,o,i).then(l=>l(e,t))},resolveRefundChoice(s,n,o,i,l){return r.resolveRefundChoice(s,n,o,i,l).then(u=>u(e,t))},startProcessPlan(s,n,o,i){return r.startProcessPlan(s,n,o,i).then(l=>l(e,t))}}},Ke=class extends I{cancelPlan(t,e,r,s){return w(this.configuration).cancelPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}createRefundPlan(t,e,r,s){return w(this.configuration).createRefundPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}getRefundPlan(t,e,r,s){return w(this.configuration).getRefundPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}recordRefundPlan(t,e,r,s,n){return w(this.configuration).recordRefundPlan(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(t,e,r,s){return w(this.configuration).refundOnlineOrder(t,e,r,s).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(t,e,r,s,n){return w(this.configuration).resolveRefundChoice(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,r,s){return w(this.configuration).startProcessPlan(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Wt=function(a){return{getEndOfDayReportV5:async(t,e,r,s,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",t);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),r!==void 0&&(R.start=r),s!==void 0&&(R.end=s),t&&(R.businessIds=t),n!==void 0&&(R.timezone=n),o!==void 0&&(R.provider=o),g(u,R);let C=d&&d.headers?d.headers:{};return f.headers={...x,...C,...i.headers},{url:y(u),options:f}},getPOSEndOfDayReportV4:async(t,e,r,s,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",t);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},f={},x={};e!==void 0&&(x.timeSpan=e),r!==void 0&&(x.start=r),s!==void 0&&(x.end=s),t&&(x.businessIds=t),n!==void 0&&(x.timezone=n),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...f,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(t,e,r,s,n,o,i={})=>{c("sendReportEmailV4","businessIds",t),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",r);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"POST",...d,...i},x={},R={};s!==void 0&&(R.timeSpan=s),n!==void 0&&(R.start=n),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 C=d&&d.headers?d.headers:{};return f.headers={...x,...C,...i.headers},f.data=A(r,f,a),{url:y(u),options:f}},sendReportEmailV5:async(t,e,r,s,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",t),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",r);let u="/api/v5/report/email",d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"POST",...f,...l},R={},C={};s!==void 0&&(C.timeSpan=s),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),t&&(C.businessIds=t),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),R["Content-Type"]="application/json",g(d,C);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},x.data=A(r,x,a),{url:y(d),options:x}}}},z=function(a){let t=Wt(a);return{async getEndOfDayReportV5(e,r,s,n,o,i,l){let u=await t.getEndOfDayReportV5(e,r,s,n,o,i,l);return h(u,P.default,p,a)},async getPOSEndOfDayReportV4(e,r,s,n,o,i){let l=await t.getPOSEndOfDayReportV4(e,r,s,n,o,i);return h(l,P.default,p,a)},async sendReportEmailV4(e,r,s,n,o,i,l){let u=await t.sendReportEmailV4(e,r,s,n,o,i,l);return h(u,P.default,p,a)},async sendReportEmailV5(e,r,s,n,o,i,l,u){let d=await t.sendReportEmailV5(e,r,s,n,o,i,l,u);return h(d,P.default,p,a)}}},wn=function(a,t,e){let r=z(a);return{getEndOfDayReportV5(s,n,o,i,l,u,d){return r.getEndOfDayReportV5(s,n,o,i,l,u,d).then(f=>f(e,t))},getPOSEndOfDayReportV4(s,n,o,i,l,u){return r.getPOSEndOfDayReportV4(s,n,o,i,l,u).then(d=>d(e,t))},sendReportEmailV4(s,n,o,i,l,u,d){return r.sendReportEmailV4(s,n,o,i,l,u,d).then(f=>f(e,t))},sendReportEmailV5(s,n,o,i,l,u,d,f){return r.sendReportEmailV5(s,n,o,i,l,u,d,f).then(x=>x(e,t))}}},Ge=class extends I{getEndOfDayReportV5(t,e,r,s,n,o,i){return z(this.configuration).getEndOfDayReportV5(t,e,r,s,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,r,s,n,o){return z(this.configuration).getPOSEndOfDayReportV4(t,e,r,s,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,r,s,n,o,i){return z(this.configuration).sendReportEmailV4(t,e,r,s,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,r,s,n,o,i,l){return z(this.configuration).sendReportEmailV5(t,e,r,s,n,o,i,l).then(u=>u(this.axios,this.basePath))}},Kt=function(a){return{clockIn:async(t,e,r={})=>{c("clockIn","businessId",t),c("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},clockOut:async(t,e,r={})=>{c("clockOut","businessId",t),c("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getTodayShift:async(t,e,r={})=>{c("getTodayShift","businessId",t),c("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.employeeId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},unlock:async(t,e,r={})=>{c("unlock","businessId",t),c("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},Y=function(a){let t=Kt(a);return{async clockIn(e,r,s){let n=await t.clockIn(e,r,s);return h(n,P.default,p,a)},async clockOut(e,r,s){let n=await t.clockOut(e,r,s);return h(n,P.default,p,a)},async getTodayShift(e,r,s){let n=await t.getTodayShift(e,r,s);return h(n,P.default,p,a)},async unlock(e,r,s){let n=await t.unlock(e,r,s);return h(n,P.default,p,a)}}},Nn=function(a,t,e){let r=Y(a);return{clockIn(s,n,o){return r.clockIn(s,n,o).then(i=>i(e,t))},clockOut(s,n,o){return r.clockOut(s,n,o).then(i=>i(e,t))},getTodayShift(s,n,o){return r.getTodayShift(s,n,o).then(i=>i(e,t))},unlock(s,n,o){return r.unlock(s,n,o).then(i=>i(e,t))}}},He=class extends I{clockIn(t,e,r){return Y(this.configuration).clockIn(t,e,r).then(s=>s(this.axios,this.basePath))}clockOut(t,e,r){return Y(this.configuration).clockOut(t,e,r).then(s=>s(this.axios,this.basePath))}getTodayShift(t,e,r){return Y(this.configuration).getTodayShift(t,e,r).then(s=>s(this.axios,this.basePath))}unlock(t,e,r){return Y(this.configuration).unlock(t,e,r).then(s=>s(this.axios,this.basePath))}},Gt=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getStation:async(t={})=>{let e="/api/v1/station",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},syncStation:async(t,e={})=>{c("syncStation","syncStationDto",t);let r="/api/v1/station/sync",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},ne=function(a){let t=Gt(a);return{async deactivateStation(e){let r=await t.deactivateStation(e);return h(r,P.default,p,a)},async getStation(e){let r=await t.getStation(e);return h(r,P.default,p,a)},async syncStation(e,r){let s=await t.syncStation(e,r);return h(s,P.default,p,a)}}},Ln=function(a,t,e){let r=ne(a);return{deactivateStation(s){return r.deactivateStation(s).then(n=>n(e,t))},getStation(s){return r.getStation(s).then(n=>n(e,t))},syncStation(s,n){return r.syncStation(s,n).then(o=>o(e,t))}}},Qe=class extends I{deactivateStation(t){return ne(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return ne(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return ne(this.configuration).syncStation(t,e).then(r=>r(this.axios,this.basePath))}},Ht=function(a){return{connectTerminal:async(t,e={})=>{c("connectTerminal","connectTerminalDto",t);let r="/api/v1/terminal/connect",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},discoverTerminal:async(t,e={})=>{c("discoverTerminal","discoverTerminalDto",t);let r="/api/v1/terminal/discover",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getTerminalStatus:async(t,e,r,s={})=>{c("getTerminalStatus","businessId",t),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",r);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};e!==void 0&&(d.provider=e),r!==void 0&&(d.terminalId=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},J=function(a){let t=Ht(a);return{async connectTerminal(e,r){let s=await t.connectTerminal(e,r);return h(s,P.default,p,a)},async disconnectTerminal(e){let r=await t.disconnectTerminal(e);return h(r,P.default,p,a)},async discoverTerminal(e,r){let s=await t.discoverTerminal(e,r);return h(s,P.default,p,a)},async getTerminalStatus(e,r,s,n){let o=await t.getTerminalStatus(e,r,s,n);return h(o,P.default,p,a)}}},Fn=function(a,t,e){let r=J(a);return{connectTerminal(s,n){return r.connectTerminal(s,n).then(o=>o(e,t))},disconnectTerminal(s){return r.disconnectTerminal(s).then(n=>n(e,t))},discoverTerminal(s,n){return r.discoverTerminal(s,n).then(o=>o(e,t))},getTerminalStatus(s,n,o,i){return r.getTerminalStatus(s,n,o,i).then(l=>l(e,t))}}},$e=class extends I{connectTerminal(t,e){return J(this.configuration).connectTerminal(t,e).then(r=>r(this.axios,this.basePath))}disconnectTerminal(t){return J(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return J(this.configuration).discoverTerminal(t,e).then(r=>r(this.axios,this.basePath))}getTerminalStatus(t,e,r,s){return J(this.configuration).getTerminalStatus(t,e,r,s).then(n=>n(this.axios,this.basePath))}},Qt=function(a){return{getUserBusinessV1:async(t={})=>{let e="/api/v1/user/business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await b(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getUserBusinessV2:async(t={})=>{let e="/api/v2/user/business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await b(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},getUserInfoV1:async(t={})=>{let e="/api/v1/user",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={},i={};await b(o,a),g(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},oe=function(a){let t=Qt(a);return{async getUserBusinessV1(e){let r=await t.getUserBusinessV1(e);return h(r,P.default,p,a)},async getUserBusinessV2(e){let r=await t.getUserBusinessV2(e);return h(r,P.default,p,a)},async getUserInfoV1(e){let r=await t.getUserInfoV1(e);return h(r,P.default,p,a)}}},jn=function(a,t,e){let r=oe(a);return{getUserBusinessV1(s){return r.getUserBusinessV1(s).then(n=>n(e,t))},getUserBusinessV2(s){return r.getUserBusinessV2(s).then(n=>n(e,t))},getUserInfoV1(s){return r.getUserInfoV1(s).then(n=>n(e,t))}}},ze=class extends I{getUserBusinessV1(t){return oe(this.configuration).getUserBusinessV1(t).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(t){return oe(this.configuration).getUserBusinessV2(t).then(e=>e(this.axios,this.basePath))}getUserInfoV1(t){return oe(this.configuration).getUserInfoV1(t).then(e=>e(this.axios,this.basePath))}},$t=function(a){return{getUser:async(t,e={})=>{c("getUser","userValidation",t);let r="/api/v1/users",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updateUserRewardPoints:async(t,e,r,s={})=>{c("updateUserRewardPoints","userId",t),c("updateUserRewardPoints","walletId",e),c("updateUserRewardPoints","rewardPointPayload",r);let n="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await b(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},ge=function(a){let t=$t(a);return{async getUser(e,r){let s=await t.getUser(e,r);return h(s,P.default,p,a)},async updateUserRewardPoints(e,r,s,n){let o=await t.updateUserRewardPoints(e,r,s,n);return h(o,P.default,p,a)}}},Wn=function(a,t,e){let r=ge(a);return{getUser(s,n){return r.getUser(s,n).then(o=>o(e,t))},updateUserRewardPoints(s,n,o,i){return r.updateUserRewardPoints(s,n,o,i).then(l=>l(e,t))}}},Ye=class extends I{getUser(t,e){return ge(this.configuration).getUser(t,e).then(r=>r(this.axios,this.basePath))}updateUserRewardPoints(t,e,r,s){return ge(this.configuration).updateUserRewardPoints(t,e,r,s).then(n=>n(this.axios,this.basePath))}},zt=function(a){return{upsert:async(t,e={})=>{c("upsert","body",t);let r="/api/v1/vendure/seller/upsert",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},it=function(a){let t=zt(a);return{async upsert(e,r){let s=await t.upsert(e,r);return h(s,P.default,p,a)}}},Kn=function(a,t,e){let r=it(a);return{upsert(s,n){return r.upsert(s,n).then(o=>o(e,t))}}},Je=class extends I{upsert(t,e){return it(this.configuration).upsert(t,e).then(r=>r(this.axios,this.basePath))}},Yt=function(a){return{createVivaAppToAppPayment:async(t,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",t);let r="/api/v1/viva/a2a/create-payment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},lt=function(a){let t=Yt(a);return{async createVivaAppToAppPayment(e,r){let s=await t.createVivaAppToAppPayment(e,r);return h(s,P.default,p,a)}}},Gn=function(a,t,e){let r=lt(a);return{createVivaAppToAppPayment(s,n){return r.createVivaAppToAppPayment(s,n).then(o=>o(e,t))}}},Ze=class extends I{createVivaAppToAppPayment(t,e){return lt(this.configuration).createVivaAppToAppPayment(t,e).then(r=>r(this.axios,this.basePath))}},Jt=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleFoodoraEvent:async(t,e={})=>{c("handleFoodoraEvent","orderUpdateDto",t);let r="/api/webhook/order/event",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handlePreorderReminder:async(t,e={})=>{c("handlePreorderReminder","preOrderReminderDto",t);let r="/api/webhook/preorder-reminder",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleVivaEvents:async(t,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",t);let r="/api/webhook/viva/verification",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},handleWoltDriveEventByCountry:async(t,e={})=>{c("handleWoltDriveEventByCountry","country",t);let r="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleWorldlineEvents:async(t={})=>{let e="/api/webhook/worldline/events",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},processKioskRecoveryQueue:async(t,e={})=>{c("processKioskRecoveryQueue","processKioskRecoveryQueueDto",t);let r="/api/webhook/kiosk/recovery/process",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"GET",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},U=function(a){let t=Jt(a);return{async handleAssignmentWebhook(e){let r=await t.handleAssignmentWebhook(e);return h(r,P.default,p,a)},async handleBusinessWebhook(e){let r=await t.handleBusinessWebhook(e);return h(r,P.default,p,a)},async handleFoodoraEvent(e,r){let s=await t.handleFoodoraEvent(e,r);return h(s,P.default,p,a)},async handleLoadEmployee(e){let r=await t.handleLoadEmployee(e);return h(r,P.default,p,a)},async handleNetsEvents(e){let r=await t.handleNetsEvents(e);return h(r,P.default,p,a)},async handleNetsEventsV2(e){let r=await t.handleNetsEventsV2(e);return h(r,P.default,p,a)},async handleNetsRefundEvents(e){let r=await t.handleNetsRefundEvents(e);return h(r,P.default,p,a)},async handlePreorderReminder(e,r){let s=await t.handlePreorderReminder(e,r);return h(s,P.default,p,a)},async handleRoleWebhook(e){let r=await t.handleRoleWebhook(e);return h(r,P.default,p,a)},async handleShiftWebhook(e){let r=await t.handleShiftWebhook(e);return h(r,P.default,p,a)},async handleVivaEvents(e,r){let s=await t.handleVivaEvents(e,r);return h(s,P.default,p,a)},async handleWebhook(e){let r=await t.handleWebhook(e);return h(r,P.default,p,a)},async handleWoltDriveEvent(e){let r=await t.handleWoltDriveEvent(e);return h(r,P.default,p,a)},async handleWoltDriveEventByCountry(e,r){let s=await t.handleWoltDriveEventByCountry(e,r);return h(s,P.default,p,a)},async handleWorldlineEvents(e){let r=await t.handleWorldlineEvents(e);return h(r,P.default,p,a)},async processKioskRecoveryQueue(e,r){let s=await t.processKioskRecoveryQueue(e,r);return h(s,P.default,p,a)},async updateWoltProduct(e){let r=await t.updateWoltProduct(e);return h(r,P.default,p,a)},async verifyVivaWebhook(e){let r=await t.verifyVivaWebhook(e);return h(r,P.default,p,a)}}},Hn=function(a,t,e){let r=U(a);return{handleAssignmentWebhook(s){return r.handleAssignmentWebhook(s).then(n=>n(e,t))},handleBusinessWebhook(s){return r.handleBusinessWebhook(s).then(n=>n(e,t))},handleFoodoraEvent(s,n){return r.handleFoodoraEvent(s,n).then(o=>o(e,t))},handleLoadEmployee(s){return r.handleLoadEmployee(s).then(n=>n(e,t))},handleNetsEvents(s){return r.handleNetsEvents(s).then(n=>n(e,t))},handleNetsEventsV2(s){return r.handleNetsEventsV2(s).then(n=>n(e,t))},handleNetsRefundEvents(s){return r.handleNetsRefundEvents(s).then(n=>n(e,t))},handlePreorderReminder(s,n){return r.handlePreorderReminder(s,n).then(o=>o(e,t))},handleRoleWebhook(s){return r.handleRoleWebhook(s).then(n=>n(e,t))},handleShiftWebhook(s){return r.handleShiftWebhook(s).then(n=>n(e,t))},handleVivaEvents(s,n){return r.handleVivaEvents(s,n).then(o=>o(e,t))},handleWebhook(s){return r.handleWebhook(s).then(n=>n(e,t))},handleWoltDriveEvent(s){return r.handleWoltDriveEvent(s).then(n=>n(e,t))},handleWoltDriveEventByCountry(s,n){return r.handleWoltDriveEventByCountry(s,n).then(o=>o(e,t))},handleWorldlineEvents(s){return r.handleWorldlineEvents(s).then(n=>n(e,t))},processKioskRecoveryQueue(s,n){return r.processKioskRecoveryQueue(s,n).then(o=>o(e,t))},updateWoltProduct(s){return r.updateWoltProduct(s).then(n=>n(e,t))},verifyVivaWebhook(s){return r.verifyVivaWebhook(s).then(n=>n(e,t))}}},Xe=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(r=>r(this.axios,this.basePath))}handleLoadEmployee(t){return U(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return U(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return U(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return U(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return U(this.configuration).handlePreorderReminder(t,e).then(r=>r(this.axios,this.basePath))}handleRoleWebhook(t){return U(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return U(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return U(this.configuration).handleVivaEvents(t,e).then(r=>r(this.axios,this.basePath))}handleWebhook(t){return U(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return U(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return U(this.configuration).handleWoltDriveEventByCountry(t,e).then(r=>r(this.axios,this.basePath))}handleWorldlineEvents(t){return U(this.configuration).handleWorldlineEvents(t).then(e=>e(this.axios,this.basePath))}processKioskRecoveryQueue(t,e){return U(this.configuration).processKioskRecoveryQueue(t,e).then(r=>r(this.axios,this.basePath))}updateWoltProduct(t){return U(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return U(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}},Zt=function(a){return{cancelPayment:async(t,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",t);let r="/api/v1/worldline/payment/cancel",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createPayment:async(t,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",t);let r="/api/v1/worldline/payment",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createRefund:async(t,e={})=>{c("createRefund","createWorldlineRefundDto",t);let r="/api/v1/worldline/refund",s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getNextRequest:async(t,e,r,s,n={})=>{c("getNextRequest","terminalId",t),c("getNextRequest","authorization",e),c("getNextRequest","sessionID",r),c("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,...n},d={},f={};e!=null&&(d.Authorization=String(e)),r!=null&&(d["Session-ID"]=String(r)),s!=null&&(d["Protocol-Version"]=String(s)),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},submitEvent:async(t,e,r={})=>{c("submitEvent","terminalId",t),c("submitEvent","worldlineEventEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},submitResponse:async(t,e,r={})=>{c("submitResponse","terminalId",t),c("submitResponse","worldlineResponseEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},j=function(a){let t=Zt(a);return{async cancelPayment(e,r){let s=await t.cancelPayment(e,r);return h(s,P.default,p,a)},async createPayment(e,r){let s=await t.createPayment(e,r);return h(s,P.default,p,a)},async createRefund(e,r){let s=await t.createRefund(e,r);return h(s,P.default,p,a)},async getNextRequest(e,r,s,n,o){let i=await t.getNextRequest(e,r,s,n,o);return h(i,P.default,p,a)},async submitEvent(e,r,s){let n=await t.submitEvent(e,r,s);return h(n,P.default,p,a)},async submitResponse(e,r,s){let n=await t.submitResponse(e,r,s);return h(n,P.default,p,a)}}},Qn=function(a,t,e){let r=j(a);return{cancelPayment(s,n){return r.cancelPayment(s,n).then(o=>o(e,t))},createPayment(s,n){return r.createPayment(s,n).then(o=>o(e,t))},createRefund(s,n){return r.createRefund(s,n).then(o=>o(e,t))},getNextRequest(s,n,o,i,l){return r.getNextRequest(s,n,o,i,l).then(u=>u(e,t))},submitEvent(s,n,o){return r.submitEvent(s,n,o).then(i=>i(e,t))},submitResponse(s,n,o){return r.submitResponse(s,n,o).then(i=>i(e,t))}}},et=class extends I{cancelPayment(t,e){return j(this.configuration).cancelPayment(t,e).then(r=>r(this.axios,this.basePath))}createPayment(t,e){return j(this.configuration).createPayment(t,e).then(r=>r(this.axios,this.basePath))}createRefund(t,e){return j(this.configuration).createRefund(t,e).then(r=>r(this.axios,this.basePath))}getNextRequest(t,e,r,s,n){return j(this.configuration).getNextRequest(t,e,r,s,n).then(o=>o(this.axios,this.basePath))}submitEvent(t,e,r){return j(this.configuration).submitEvent(t,e,r).then(s=>s(this.axios,this.basePath))}submitResponse(t,e,r){return j(this.configuration).submitResponse(t,e,r).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{createPaymentRequest:async(t,e,r={})=>{c("createPaymentRequest","terminalId",t),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},createRefundRequest:async(t,e,r={})=>{c("createRefundRequest","terminalId",t),c("createRefundRequest","worldlineRefundRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getPaymentResult:async(t,e={})=>{c("getPaymentResult","operationId",t);let r="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getTerminalAuthContext:async(t,e,r={})=>{c("getTerminalAuthContext","terminalId",t),c("getTerminalAuthContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalContext:async(t,e,r={})=>{c("getTerminalContext","terminalId",t),c("getTerminalContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(t))),n=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalState:async(t,e={})=>{c("getTerminalState","terminalId",t);let r="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(t))),s=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(s,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleCallback:async(t={})=>{let e="/api/v2/worldline/internal/callback",r=new URL(e,m),s;a&&(s=a.baseOptions);let n={method:"POST",...s,...t},o={};g(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:y(r),options:n}}}},N=function(a){let t=Xt(a);return{async createPaymentRequest(e,r,s){let n=await t.createPaymentRequest(e,r,s);return h(n,P.default,p,a)},async createRefundRequest(e,r,s){let n=await t.createRefundRequest(e,r,s);return h(n,P.default,p,a)},async getPaymentResult(e,r){let s=await t.getPaymentResult(e,r);return h(s,P.default,p,a)},async getTerminalAuthContext(e,r,s){let n=await t.getTerminalAuthContext(e,r,s);return h(n,P.default,p,a)},async getTerminalContext(e,r,s){let n=await t.getTerminalContext(e,r,s);return h(n,P.default,p,a)},async getTerminalState(e,r){let s=await t.getTerminalState(e,r);return h(s,P.default,p,a)},async handleCallback(e){let r=await t.handleCallback(e);return h(r,P.default,p,a)}}},$n=function(a,t,e){let r=N(a);return{createPaymentRequest(s,n,o){return r.createPaymentRequest(s,n,o).then(i=>i(e,t))},createRefundRequest(s,n,o){return r.createRefundRequest(s,n,o).then(i=>i(e,t))},getPaymentResult(s,n){return r.getPaymentResult(s,n).then(o=>o(e,t))},getTerminalAuthContext(s,n,o){return r.getTerminalAuthContext(s,n,o).then(i=>i(e,t))},getTerminalContext(s,n,o){return r.getTerminalContext(s,n,o).then(i=>i(e,t))},getTerminalState(s,n){return r.getTerminalState(s,n).then(o=>o(e,t))},handleCallback(s){return r.handleCallback(s).then(n=>n(e,t))}}},tt=class extends I{createPaymentRequest(t,e,r){return N(this.configuration).createPaymentRequest(t,e,r).then(s=>s(this.axios,this.basePath))}createRefundRequest(t,e,r){return N(this.configuration).createRefundRequest(t,e,r).then(s=>s(this.axios,this.basePath))}getPaymentResult(t,e){return N(this.configuration).getPaymentResult(t,e).then(r=>r(this.axios,this.basePath))}getTerminalAuthContext(t,e,r){return N(this.configuration).getTerminalAuthContext(t,e,r).then(s=>s(this.axios,this.basePath))}getTerminalContext(t,e,r){return N(this.configuration).getTerminalContext(t,e,r).then(s=>s(this.axios,this.basePath))}getTerminalState(t,e){return N(this.configuration).getTerminalState(t,e).then(r=>r(this.axios,this.basePath))}handleCallback(t){return N(this.configuration).handleCallback(t).then(e=>e(this.axios,this.basePath))}};var ut=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 zn={[Z.Eur]:2,[Z.Aed]:2,[Z.Usd]:2,[Z.Gbp]:2,BHD:3,JPY:0},Yn={getMultiplier(a){let t=zn[a.toUpperCase()];return typeof t!="number"?100:Math.round(10**t)}};var ae=ye(require("lodash")),ct=a=>ae.default.orderBy(a,["rank","id"],["asc","asc"]),Jn=a=>{let t=a.subcategories;return Array.isArray(t)?t:[]},Zn=(a,t)=>({...a,colorCode:a.colorCode??t}),es=(a,t)=>ae.default.compact(a.map(e=>t.get(e))),dt=(a,t)=>a.flatMap(e=>{let r=t[e];return r?[e,...dt(r.childIds,t)]:[]}),pt=(a,t)=>a.flatMap(e=>{let r=t[e];return r?.enabled?[e,...pt(r.childIds,t)]:[]}),Xn=a=>{let t=new Map,e={},r={},s=ct(a),n=s.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return t.set(d,Zn(u,l)),d});return s.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),f=(R,C)=>{let O=String(R.id),S=o(R.products,u),V=ct(Jn(R)).map(E=>f(E,O));return r[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:S,childIds:V},O},x=ct(i.subcategories??[]).map(R=>f(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:s,productMap:t,categoriesById:e,subcategoriesById:r,categoryIdsOrder:n}},eo=(a,t,e,r)=>{let s=t[a];if(!s)return[];let n=pt(s.subcategoryIds,e),o=ae.default.uniq([...s.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return es(o,r)},to=(a,t,e)=>{let r=t[a];if(!r)return[];let s=dt(r.subcategoryIds,e);return ae.default.compact(s.map(n=>e[n]))};var ts="1.9.24";0&&(module.exports={ABLYEVENT,AblyApi,AblyApiAxiosParamCreator,AblyApiFactory,AblyApiFp,ActionEnum,ActionPasscodesApi,ActionPasscodesApiAxiosParamCreator,ActionPasscodesApiFactory,ActionPasscodesApiFp,ActionsEnum,AuthApi,AuthApiAxiosParamCreator,AuthApiFactory,AuthApiFp,AutonomousVehicleType,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,CoursesApi,CoursesApiAxiosParamCreator,CoursesApiFactory,CoursesApiFp,CurrencyCode,CurrencyCodeEnum,CurrencyRegistry,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,DiscountTypeEnum,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,MunchiGiftCardApi,MunchiGiftCardApiAxiosParamCreator,MunchiGiftCardApiFactory,MunchiGiftCardApiFp,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,ScopeEnum,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,StatusEnum,SystemProfileType,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,UsersApi,UsersApiAxiosParamCreator,UsersApiFactory,UsersApiFp,VendureSellerApi,VendureSellerApiAxiosParamCreator,VendureSellerApiFactory,VendureSellerApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WalletStatusEnum,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});