@munchi_oy/core 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import P from"axios";import Yt from"axios";var p="http://localhost".replace(/\/+$/,"");var v=class{constructor(r,e=p,s=Yt){this.basePath=e;this.axios=s;r&&(this.configuration=r,this.basePath=r.basePath||this.basePath)}configuration},ce=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",d=function(a,r,e){if(e==null)throw new ce(r,`Required parameter ${r} was null or undefined when calling ${a}.`)};var f=async function(a,r){if(r&&r.accessToken){let e=typeof r.accessToken=="function"?await r.accessToken():await r.accessToken;a.Authorization="Bearer "+e}};function Ae(a,r,e=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(s=>Ae(a,s,e)):Object.keys(r).forEach(s=>Ae(a,r[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,r):a.set(e,r))}var y=function(a,...r){let e=new URLSearchParams(a.search);Ae(e,r),a.search=e.toString()},A=function(a,r,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(r.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},g=function(a){return a.pathname+a.search+a.hash},h=function(a,r,e,s){return(t=r,n=e)=>{let o={...a.options,url:(s?.basePath||n)+a.url};return t.request(o)}};var fr={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed",CashManagement:"cash-management"},xr={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Dr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Cr={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Sr={Unavailable:"UNAVAILABLE"},Or={Image:"image",Video:"video",Animation:"animation"},Vr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Ir={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},vr={GiftCard:"GiftCard"},Tr={Online:"ONLINE",Offline:"OFFLINE"},qr={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"},Er={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ur={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},kr={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Mr={Pos:"pos",Display:"display"},Br={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay",ResQ:"ResQ"},wr={Pending:"pending",Success:"success",Failure:"failure"},Fr={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Lr={Kiosk:"kiosk"},_r={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Nr={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},Wr={NotFound:"NOT_FOUND",NotStarted:"NOT_STARTED",Expired:"EXPIRED",Disabled:"DISABLED",NotForThisApp:"NOT_FOR_THIS_APP",NotForThisOrderType:"NOT_FOR_THIS_ORDER_TYPE",ConditionsNotMet:"CONDITIONS_NOT_MET",UsageLimitReached:"USAGE_LIMIT_REACHED",CustomerLimitReached:"CUSTOMER_LIMIT_REACHED",NotFirstOrder:"NOT_FIRST_ORDER",CustomerPhoneRequired:"CUSTOMER_PHONE_REQUIRED",CouponsUnavailable:"COUPONS_UNAVAILABLE"},jr={ApiKey:"api_key",BasicAuth:"basic_auth",Oauth2:"oauth_2"},Kr={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",Afn:"AFN",Amd:"AMD",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Btn:"BTN",Bwp:"BWP",Byn:"BYN",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cup:"CUP",Cve:"CVE",Djf:"DJF",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Ern:"ERN",Etb:"ETB",Fjd:"FJD",Fkp:"FKP",Gel:"GEL",Ghs:"GHS",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Idr:"IDR",Ils:"ILS",Inr:"INR",Iqd:"IQD",Irr:"IRR",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Kpw:"KPW",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Lyd:"LYD",Mad:"MAD",Mga:"MGA",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pyg:"PYG",Qar:"QAR",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sdg:"SDG",Sgd:"SGD",Shp:"SHP",Sle:"SLE",Sos:"SOS",Srd:"SRD",Ssp:"SSP",Stn:"STN",Svc:"SVC",Syp:"SYP",Szl:"SZL",Thb:"THB",Tjs:"TJS",Tmt:"TMT",Tnd:"TND",Top:"TOP",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Ugx:"UGX",Uyu:"UYU",Uzs:"UZS",Ved:"VED",Ves:"VES",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xcg:"XCG",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW",Zwg:"ZWG"},Qr={Insert:"INSERT",Update:"UPDATE",Delete:"DELETE"},Gr={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},Hr={Shipday:"shipday",UberDirect:"uber_direct"},$r={Create:"CREATE",Update:"UPDATE",Cancel:"CANCEL"},zr={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},Yr={Created:"created",Reactivated:"reactivated",AlreadyActive:"already_active"},Xr={Foodora:"Foodora",Bolt:"Bolt"},Jr={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Zr={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},en={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},tn={Item:"ITEM",Cart:"CART"},sn={Business:"BUSINESS",Owner:"OWNER"},rn={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},nn={Percentage:"PERCENTAGE",Fixed:"FIXED"},on={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},an={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},ln={Pdf:"pdf",Xlsx:"xlsx"},un={NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1005:1005,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1015:1015,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1022:1022,NUMBER_1023:1023,NUMBER_1024:1024,NUMBER_1025:1025,NUMBER_1999:1999,NUMBER_2001:2001,NUMBER_2002:2002,NUMBER_2003:2003,NUMBER_3001:3001,NUMBER_4001:4001},cn={IngredientsDefaultHeading:"INGREDIENTS_DEFAULT_HEADING"},dn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},pn={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},mn={Found:"NOT_FOUND",Pos:"NOT_POS",InProgress:"NOT_IN_PROGRESS"},yn={Standard:"STANDARD",Broadcast:"BROADCAST"},gn={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},hn={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Pn={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},bn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},An={Table:"table",Indicator:"indicator"},Rn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},fn={Product:"product",Coupon:"coupon"},xn={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},Dn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Cn={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},Sn={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},On={Product:"product",Coupon:"coupon"},Vn={Percentage:"percentage",Fixed:"fixed"},In={Manual:"manual",Automatic:"automatic"},vn={Always:"always",ProductInCart:"product_in_cart",CategoryInCart:"category_in_cart",ProductQuantityInCart:"product_quantity_in_cart",CategoryQuantityInCart:"category_quantity_in_cart",CartMinValue:"cart_min_value",CartMaxValue:"cart_max_value"},Tn={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},qn={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},En={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},Un={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},kn={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Mn={Reversal:"REVERSAL",Refund:"REFUND"},Bn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},wn={Open:"OPEN",Instant:"INSTANT"},Fn={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Ln={None:"NONE",Partial:"PARTIAL",Full:"FULL"},_n={Platform:"PLATFORM",Pos:"POS"},Nn={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Wn={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"},jn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Kn={DineIn:"dine_in",PickUp:"pick_up"},Qn={Pos:"pos",Terminal:"terminal"},Gn={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},Hn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},$n={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},zn={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",TerminalDuplicate:"terminal.duplicate",TerminalPrinter:"terminal.printer",TerminalLowBattery:"terminal.low_battery",TerminalNeedsReconciliation:"terminal.needs_reconciliation",TerminalCheckScreen:"terminal.check_screen",SystemProviderError:"system.provider_error",SystemUnknown:"system.unknown"},Yn={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",Trade:"Trade",Exchange:"Exchange",Tilisiirto:"Tilisiirto",LoyaltyPoints:"LoyaltyPoints",DiningByAmex:"DiningByAmex"},Xn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},Jn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi"},Zn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi"},eo={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},to={Sale:"SALE",Refund:"REFUND",Void:"VOID"},so={Initiated:"INITIATED",Dispatched:"DISPATCHED",Processing:"PROCESSING",Success:"SUCCESS",Failed:"FAILED",Cancelled:"CANCELLED",Closed:"CLOSED",VoidPending:"VOID_PENDING",Voiding:"VOIDING",Voided:"VOIDED",VoidFailed:"VOID_FAILED",Refunding:"REFUNDING",Refunded:"REFUNDED"},ro={Paid:"paid",Pending:"pending"},no={Business:"BUSINESS",Customer:"CUSTOMER"},oo={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},ao={Ready:"ready",Delivered:"delivered"},io={NotFound:"NOT_FOUND",NotInProgress:"NOT_IN_PROGRESS",KitchenControlled:"KITCHEN_CONTROLLED",NotReady:"NOT_READY"},lo={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},uo={Percentage:"percentage",Fixed:"fixed"},co={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},po={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},mo={AccessPosApp:"Access::PosApp",PagePos:"Page::Pos",PageOpenOrders:"Page::OpenOrders",PageOrders:"Page::Orders",PageTransactions:"Page::Transactions",PageProducts:"Page::Products",PageReports:"Page::Reports",PageSettings:"Page::Settings",PageFloorPlan:"Page::FloorPlan",Cart:"Cart::*",CartAddItem:"Cart::AddItem",CartRemoveItem:"Cart::RemoveItem",CartApplyDiscount:"Cart::ApplyDiscount",CartVoidItem:"Cart::VoidItem",CartClear:"Cart::Clear",CartRemoveDiscount:"Cart::RemoveDiscount",CartVoidPayment:"Cart::VoidPayment",Cash:"Cash::*",CashOpenDay:"Cash::OpenDay",CashCloseDay:"Cash::CloseDay",CashCashIn:"Cash::CashIn",CashCashOut:"Cash::CashOut",CashOpenDrawer:"Cash::OpenDrawer",CashPrintReport:"Cash::PrintReport",CashSendReport:"Cash::SendReport",Transaction:"Transaction::*",TransactionRefund:"Transaction::Refund",TransactionViewAll:"Transaction::ViewAll",TransactionTotals:"TransactionTotals::*",TransactionTotalsOrders:"TransactionTotals::Orders",TransactionTotalsSales:"TransactionTotals::Sales",TransactionTotalsRejectedOrders:"TransactionTotals::RejectedOrders",TransactionTotalsRejectedSales:"TransactionTotals::RejectedSales",Order:"Order::*",OrderSendReceipt:"Order::SendReceipt",OpenOrdersDelete:"OpenOrders::Delete",OpenOrdersSendToKitchen:"OpenOrders::SendToKitchen",OpenOrdersFireCourse:"OpenOrders::FireCourse",Shift:"Shift::*",ShiftForceClockOut:"Shift::ForceClockOut",FloorPlan:"FloorPlan::*",FloorPlanEditLayout:"FloorPlan::EditLayout",FloorPlanChangeTableStatus:"FloorPlan::ChangeTableStatus",FloorPlanManageSections:"FloorPlan::ManageSections",Settings:"Settings::*",SettingsEditProfile:"Settings::EditProfile",Report:"Report::*",ReportSendEmail:"Report::SendEmail",ReportTotals:"ReportTotals::*",ReportTotalsOrders:"ReportTotals::Orders",ReportTotalsSales:"ReportTotals::Sales",ReportTotalsTips:"ReportTotals::Tips",ReportTotalsSurcharges:"ReportTotals::Surcharges",ReportTotalsRejectedOrders:"ReportTotals::RejectedOrders",ReportTotalsRejectedSales:"ReportTotals::RejectedSales",ReportTotalsAverageSale:"ReportTotals::AverageSale",ReportTotalsItems:"ReportTotals::Items",ReportTotalsRefunds:"ReportTotals::Refunds",ReportTotalsDiscounts:"ReportTotals::Discounts"},yo={Access:"Access",Page:"Page",Cart:"Cart",Cash:"Cash",Transaction:"Transaction",TransactionTotals:"TransactionTotals",Order:"Order",OpenOrders:"OpenOrders",Shift:"Shift",FloorPlan:"FloorPlan",Settings:"Settings",Report:"Report",ReportTotals:"ReportTotals"},go={Screen:"screen",Action:"action",Visibility:"visibility"},ho={Waiting:"waiting",Confirm:"confirm"},Po={Preset:"PRESET",Open:"OPEN"},bo={Bluetooth:"bluetooth",Network:"network"},Ao={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Ro={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},fo={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},xo={Modal:"MODAL",Screen:"SCREEN"},Do={Percentage:"PERCENTAGE",Fixed:"FIXED"},Co={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay",ResQ:"ResQ"},So={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},Oo={Kds:"KDS"},Vo={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},Io={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},vo={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"},To={Full:"FULL",Item:"ITEM"},qo={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Eo={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Uo={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},ko={Pos:"pos",Kiosk:"kiosk",Storefront:"storefront",Mobile:"mobile"},Mo={IsTheBaseline:"is_the_baseline",OtherCurrency:"other_currency"},Bo={None:"none",Venue:"venue",App:"app",VenueApp:"venue_app"},wo={SalesReportTotalQuantity:"salesReport.totalQuantity",SalesReportTotalWithTax:"salesReport.totalWithTax",SalesReportTotalTaxAmount:"salesReport.totalTaxAmount",SalesReportTotalWithoutTax:"salesReport.totalWithoutTax",SalesReportDeliveryFee:"salesReport.deliveryFee",SalesReportDeliveryTax:"salesReport.deliveryTax",PaymentReportSummarySalesAndRevenue:"paymentReport.summary.salesAndRevenue",PaymentReportSummaryGrossAmount:"paymentReport.summary.grossAmount",PaymentReportSummaryTotalCount:"paymentReport.summary.totalCount",PaymentReportSummaryTotalAmount:"paymentReport.summary.totalAmount",PaymentReportSummaryCardsCount:"paymentReport.summary.cardsCount",PaymentReportSummaryCardsAmount:"paymentReport.summary.cardsAmount",PaymentReportSummaryEdenredVoucherCount:"paymentReport.summary.edenredVoucherCount",PaymentReportSummaryEdenredVoucherAmount:"paymentReport.summary.edenredVoucherAmount",PaymentReportSummarySmartumVoucherCount:"paymentReport.summary.smartumVoucherCount",PaymentReportSummarySmartumVoucherAmount:"paymentReport.summary.smartumVoucherAmount",PaymentReportSummaryTotalCoupons:"paymentReport.summary.totalCoupons",PaymentReportSummaryTotalVoucherForfeited:"paymentReport.summary.totalVoucherForfeited",PaymentReportSummaryTotalTipAmount:"paymentReport.summary.totalTipAmount",PaymentReportSummaryTotalSurchargeAmount:"paymentReport.summary.totalSurchargeAmount",PaymentReportSummaryTotalRefunds:"paymentReport.summary.totalRefunds",PaymentReportSummaryRefundCount:"paymentReport.summary.refundCount",PaymentReportTotalDiscounts:"paymentReport.totalDiscounts",OrderCount:"orderCount",AverageOrderValue:"averageOrderValue"},Fo={Fi:"fi",En:"en"},Lo={EatIn:"eat_in",Takeaway:"takeaway",Delivery:"delivery",Unknown:"unknown"},_o={Summary:"summary",Items:"items",Vat:"vat",Payments:"payments",Discounts:"discounts"},No={Meal:"meal",Snack:"snack",Ingredients:"ingredients",GroceryBag:"grocery-bag",Dessert:"dessert",Flowers:"flowers",Fee:"fee",Wholesale:"wholesale",HomeCosmetics:"home-cosmetics"},Wo={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},jo={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},Ko={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",BusinessProviderSupportedIntegrations:"BUSINESS_PROVIDER_SUPPORTED_INTEGRATIONS",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",PaymentMethods:"PAYMENT_METHODS",ReceiptFooter:"RECEIPT_FOOTER"},Qo={Physical:"PHYSICAL"},Go={NoAriAccess:"NO_ARI_ACCESS",NotStoreOwner:"NOT_STORE_OWNER",RightsUnavailable:"RIGHTS_UNAVAILABLE"},Ho={Assigned:"ORDER_ASSIGNED",AcceptedAndStarted:"ORDER_ACCEPTED_AND_STARTED",Ontheway:"ORDER_ONTHEWAY",Completed:"ORDER_COMPLETED",Failed:"ORDER_FAILED",Incomplete:"ORDER_INCOMPLETE",Delete:"ORDER_DELETE",Inserted:"ORDER_INSERTED",Pikedup:"ORDER_PIKEDUP",Unassigned:"ORDER_UNASSIGNED",PikedupRemoved:"ORDER_PIKEDUP_REMOVED",OnthewayRemoved:"ORDER_ONTHEWAY_REMOVED"},$o={NotAssigned:"NOT_ASSIGNED",NotAccepted:"NOT_ACCEPTED",NotStartedYet:"NOT_STARTED_YET",Started:"STARTED",PickedUp:"PICKED_UP",ReadyToDeliver:"READY_TO_DELIVER",AlreadyDelivered:"ALREADY_DELIVERED",Incomplete:"INCOMPLETE",FailedDelivery:"FAILED_DELIVERY"},zo={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Yo={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Xo={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"},Jo={Kiosk:"KIOSK",Pos:"POS"},Zo={Active:"ACTIVE",Inactive:"INACTIVE"},ea={NoStation:"NO_STATION"},ta={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},sa={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},ra={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},na={Network:"NETWORK"},oa={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},aa={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ia={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},la={Instant:"instant",Preorder:"preorder"},ua={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},ca={Created:"created",Updated:"updated",Unchanged:"unchanged"},da={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},pa={_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"},ma={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},ya={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},ga={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},ha={Queued:"QUEUED",InProgress:"IN_PROGRESS",Completed:"COMPLETED",Failed:"FAILED",Cancelled:"CANCELLED"},Pa={Pending:"PENDING",Completed:"COMPLETED",Failed:"FAILED"},ba={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},Aa={Reversal:"REVERSAL",Refund:"REFUND"},Xt=function(a){return{checkActionPasscode:async(r,e,s,t={})=>{d("checkActionPasscode","businessId",r),d("checkActionPasscode","xPosPin",e),d("checkActionPasscode","checkActionPasscodeDto",s);let n="/api/v2/businesses/{businessId}/action-passcodes/check".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},wt=function(a){let r=Xt(a);return{async checkActionPasscode(e,s,t,n){let o=await r.checkActionPasscode(e,s,t,n);return h(o,P,p,a)}}},Ra=function(a,r,e){let s=wt(a);return{checkActionPasscode(t,n,o,i){return s.checkActionPasscode(t,n,o,i).then(l=>l(e,r))}}},Ue=class extends v{checkActionPasscode(r,e,s,t){return wt(this.configuration).checkActionPasscode(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Jt=function(a){return{getOrganisationAnalyticsDashboard:async(r,e={})=>{d("getOrganisationAnalyticsDashboard","groupId",r);let s="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getStoreAnalyticsDashboard:async(r,e={})=>{d("getStoreAnalyticsDashboard","businessId",r);let s="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},saveOrganisationAnalyticsDashboard:async(r,e,s={})=>{d("saveOrganisationAnalyticsDashboard","groupId",r),d("saveOrganisationAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},saveStoreAnalyticsDashboard:async(r,e,s={})=>{d("saveStoreAnalyticsDashboard","businessId",r),d("saveStoreAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},te=function(a){let r=Jt(a);return{async getOrganisationAnalyticsDashboard(e,s){let t=await r.getOrganisationAnalyticsDashboard(e,s);return h(t,P,p,a)},async getStoreAnalyticsDashboard(e,s){let t=await r.getStoreAnalyticsDashboard(e,s);return h(t,P,p,a)},async saveOrganisationAnalyticsDashboard(e,s,t){let n=await r.saveOrganisationAnalyticsDashboard(e,s,t);return h(n,P,p,a)},async saveStoreAnalyticsDashboard(e,s,t){let n=await r.saveStoreAnalyticsDashboard(e,s,t);return h(n,P,p,a)}}},fa=function(a,r,e){let s=te(a);return{getOrganisationAnalyticsDashboard(t,n){return s.getOrganisationAnalyticsDashboard(t,n).then(o=>o(e,r))},getStoreAnalyticsDashboard(t,n){return s.getStoreAnalyticsDashboard(t,n).then(o=>o(e,r))},saveOrganisationAnalyticsDashboard(t,n,o){return s.saveOrganisationAnalyticsDashboard(t,n,o).then(i=>i(e,r))},saveStoreAnalyticsDashboard(t,n,o){return s.saveStoreAnalyticsDashboard(t,n,o).then(i=>i(e,r))}}},ke=class extends v{getOrganisationAnalyticsDashboard(r,e){return te(this.configuration).getOrganisationAnalyticsDashboard(r,e).then(s=>s(this.axios,this.basePath))}getStoreAnalyticsDashboard(r,e){return te(this.configuration).getStoreAnalyticsDashboard(r,e).then(s=>s(this.axios,this.basePath))}saveOrganisationAnalyticsDashboard(r,e,s){return te(this.configuration).saveOrganisationAnalyticsDashboard(r,e,s).then(t=>t(this.axios,this.basePath))}saveStoreAnalyticsDashboard(r,e,s){return te(this.configuration).saveStoreAnalyticsDashboard(r,e,s).then(t=>t(this.axios,this.basePath))}},Zt=function(a){return{firebaseAuth:async(r={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},login:async(r,e={})=>{d("login","credentialDto",r);let s="/api/v1/auth/login",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},logout:async(r={})=>{let e="/api/v1/auth/logout",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},refreshToken:async(r,e={})=>{d("refreshToken","refreshTokenDto",r);let s="/api/v1/auth/refresh",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},se=function(a){let r=Zt(a);return{async firebaseAuth(e){let s=await r.firebaseAuth(e);return h(s,P,p,a)},async login(e,s){let t=await r.login(e,s);return h(t,P,p,a)},async logout(e){let s=await r.logout(e);return h(s,P,p,a)},async refreshToken(e,s){let t=await r.refreshToken(e,s);return h(t,P,p,a)}}},xa=function(a,r,e){let s=se(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(n=>n(e,r))},login(t,n){return s.login(t,n).then(o=>o(e,r))},logout(t){return s.logout(t).then(n=>n(e,r))},refreshToken(t,n){return s.refreshToken(t,n).then(o=>o(e,r))}}},Me=class extends v{firebaseAuth(r){return se(this.configuration).firebaseAuth(r).then(e=>e(this.axios,this.basePath))}login(r,e){return se(this.configuration).login(r,e).then(s=>s(this.axios,this.basePath))}logout(r){return se(this.configuration).logout(r).then(e=>e(this.axios,this.basePath))}refreshToken(r,e){return se(this.configuration).refreshToken(r,e).then(s=>s(this.axios,this.basePath))}},es=function(a){return{getAdvancedDiscounts:async(r,e={})=>{d("getAdvancedDiscounts","businessId",r);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getBusinessCategoriesByMenuIdV2:async(r,e,s={})=>{d("getBusinessCategoriesByMenuIdV2","businessId",r),d("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV3:async(r,e,s={})=>{d("getBusinessCategoriesByMenuIdV3","businessId",r),d("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getBusinessChannelConfigV2:async(r,e,s={})=>{d("getBusinessChannelConfigV2","businessId",r);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessConfig:async(r,e,s={})=>{d("getBusinessConfig","businessId",r);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessConfigById:async(r,e,s={})=>{d("getBusinessConfigById","businessId",r);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessConfigByIdV2:async(r,e,s={})=>{d("getBusinessConfigByIdV2","businessId",r);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV2:async(r,e,s={})=>{d("getBusinessMenuByTypeV2","businessId",r),d("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV3:async(r,e,s={})=>{d("getBusinessMenuByTypeV3","businessId",r),d("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV4:async(r,e,s={})=>{d("getBusinessMenuByTypeV4","businessId",r),d("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getBusinessProviderStatus:async(r,e={})=>{d("getBusinessProviderStatus","businessId",r);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getBusinessTax:async(r,e={})=>{let s="/api/v1/business/tax",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getProvidersSupportedIntegrations:async(r,e={})=>{d("getProvidersSupportedIntegrations","businessIds",r);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r&&(l.businessIds=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getSingleBusinessProviderStatus:async(r,e,s,t={})=>{d("getSingleBusinessProviderStatus","businessId",r),d("getSingleBusinessProviderStatus","provider",e),d("getSingleBusinessProviderStatus","externalId",s);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(r))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await f(u,a),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getVenueCurrency:async(r,e={})=>{d("getVenueCurrency","businessId",r);let s="/api/v1/business/{businessId}/currency".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},setBusinessStatus:async(r,e,s={})=>{d("setBusinessStatus","businessId",r),d("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},setBusinessStatusSchedule:async(r,e,s={})=>{d("setBusinessStatusSchedule","businessId",r),d("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},k=function(a){let r=es(a);return{async getAdvancedDiscounts(e,s){let t=await r.getAdvancedDiscounts(e,s);return h(t,P,p,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let n=await r.getBusinessCategoriesByMenuIdV2(e,s,t);return h(n,P,p,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let n=await r.getBusinessCategoriesByMenuIdV3(e,s,t);return h(n,P,p,a)},async getBusinessChannelConfigV2(e,s,t){let n=await r.getBusinessChannelConfigV2(e,s,t);return h(n,P,p,a)},async getBusinessConfig(e,s,t){let n=await r.getBusinessConfig(e,s,t);return h(n,P,p,a)},async getBusinessConfigById(e,s,t){let n=await r.getBusinessConfigById(e,s,t);return h(n,P,p,a)},async getBusinessConfigByIdV2(e,s,t){let n=await r.getBusinessConfigByIdV2(e,s,t);return h(n,P,p,a)},async getBusinessMenuByTypeV2(e,s,t){let n=await r.getBusinessMenuByTypeV2(e,s,t);return h(n,P,p,a)},async getBusinessMenuByTypeV3(e,s,t){let n=await r.getBusinessMenuByTypeV3(e,s,t);return h(n,P,p,a)},async getBusinessMenuByTypeV4(e,s,t){let n=await r.getBusinessMenuByTypeV4(e,s,t);return h(n,P,p,a)},async getBusinessProviderStatus(e,s){let t=await r.getBusinessProviderStatus(e,s);return h(t,P,p,a)},async getBusinessTax(e,s){let t=await r.getBusinessTax(e,s);return h(t,P,p,a)},async getProvidersSupportedIntegrations(e,s){let t=await r.getProvidersSupportedIntegrations(e,s);return h(t,P,p,a)},async getSingleBusinessProviderStatus(e,s,t,n){let o=await r.getSingleBusinessProviderStatus(e,s,t,n);return h(o,P,p,a)},async getVenueCurrency(e,s){let t=await r.getVenueCurrency(e,s);return h(t,P,p,a)},async setBusinessStatus(e,s,t){let n=await r.setBusinessStatus(e,s,t);return h(n,P,p,a)},async setBusinessStatusSchedule(e,s,t){let n=await r.setBusinessStatusSchedule(e,s,t);return h(n,P,p,a)}}},Da=function(a,r,e){let s=k(a);return{getAdvancedDiscounts(t,n){return s.getAdvancedDiscounts(t,n).then(o=>o(e,r))},getBusinessCategoriesByMenuIdV2(t,n,o){return s.getBusinessCategoriesByMenuIdV2(t,n,o).then(i=>i(e,r))},getBusinessCategoriesByMenuIdV3(t,n,o){return s.getBusinessCategoriesByMenuIdV3(t,n,o).then(i=>i(e,r))},getBusinessChannelConfigV2(t,n,o){return s.getBusinessChannelConfigV2(t,n,o).then(i=>i(e,r))},getBusinessConfig(t,n,o){return s.getBusinessConfig(t,n,o).then(i=>i(e,r))},getBusinessConfigById(t,n,o){return s.getBusinessConfigById(t,n,o).then(i=>i(e,r))},getBusinessConfigByIdV2(t,n,o){return s.getBusinessConfigByIdV2(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV2(t,n,o){return s.getBusinessMenuByTypeV2(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV3(t,n,o){return s.getBusinessMenuByTypeV3(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV4(t,n,o){return s.getBusinessMenuByTypeV4(t,n,o).then(i=>i(e,r))},getBusinessProviderStatus(t,n){return s.getBusinessProviderStatus(t,n).then(o=>o(e,r))},getBusinessTax(t,n){return s.getBusinessTax(t,n).then(o=>o(e,r))},getProvidersSupportedIntegrations(t,n){return s.getProvidersSupportedIntegrations(t,n).then(o=>o(e,r))},getSingleBusinessProviderStatus(t,n,o,i){return s.getSingleBusinessProviderStatus(t,n,o,i).then(l=>l(e,r))},getVenueCurrency(t,n){return s.getVenueCurrency(t,n).then(o=>o(e,r))},setBusinessStatus(t,n,o){return s.setBusinessStatus(t,n,o).then(i=>i(e,r))},setBusinessStatusSchedule(t,n,o){return s.setBusinessStatusSchedule(t,n,o).then(i=>i(e,r))}}},Be=class extends v{getAdvancedDiscounts(r,e){return k(this.configuration).getAdvancedDiscounts(r,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(r,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(r,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(r,e,s){return k(this.configuration).getBusinessChannelConfigV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(r,e,s){return k(this.configuration).getBusinessConfig(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(r,e,s){return k(this.configuration).getBusinessConfigById(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(r,e,s){return k(this.configuration).getBusinessConfigByIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(r,e,s){return k(this.configuration).getBusinessMenuByTypeV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(r,e,s){return k(this.configuration).getBusinessMenuByTypeV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(r,e,s){return k(this.configuration).getBusinessMenuByTypeV4(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(r,e){return k(this.configuration).getBusinessProviderStatus(r,e).then(s=>s(this.axios,this.basePath))}getBusinessTax(r,e){return k(this.configuration).getBusinessTax(r,e).then(s=>s(this.axios,this.basePath))}getProvidersSupportedIntegrations(r,e){return k(this.configuration).getProvidersSupportedIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(r,e,s,t){return k(this.configuration).getSingleBusinessProviderStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getVenueCurrency(r,e){return k(this.configuration).getVenueCurrency(r,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(r,e,s){return k(this.configuration).setBusinessStatus(r,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(r,e,s){return k(this.configuration).setBusinessStatusSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}},ts=function(a){return{upsertSchedule:async(r,e,s={})=>{d("upsertSchedule","businessId",r),d("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},Ft=function(a){let r=ts(a);return{async upsertSchedule(e,s,t){let n=await r.upsertSchedule(e,s,t);return h(n,P,p,a)}}},Ca=function(a,r,e){let s=Ft(a);return{upsertSchedule(t,n,o){return s.upsertSchedule(t,n,o).then(i=>i(e,r))}}},we=class extends v{upsertSchedule(r,e,s){return Ft(this.configuration).upsertSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}},ss=function(a){return{create:async(r,e,s={})=>{d("create","businessId",r),d("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getCashLogs:async(r,e,s,t,n,o,i,l={})=>{d("getCashLogs","businessId",r);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(r))),c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"GET",...b,...l},D={},x={};await f(D,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n!==void 0&&(x.page=n),o!==void 0&&(x.rowPerPage=o),i!==void 0&&(x.timezone=i),y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},{url:g(c),options:R}},getCashSession:async(r,e={})=>{d("getCashSession","businessId",r);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getSessionReport:async(r,e,s={})=>{d("getSessionReport","businessId",r),d("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(r))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},recordCashLog:async(r,e,s={})=>{d("recordCashLog","businessId",r),d("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},sendSessionReport:async(r,e,s,t,n={})=>{d("sendSessionReport","businessId",r),d("sendSessionReport","sessionId",e),d("sendSessionReport","sendCashReportDto",s);let o="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(r))).replace("{sessionId}",encodeURIComponent(String(e))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},c={},b={};await f(c,a),t!=null&&(c["x-app-x"]=String(t)),c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(s,u,a),{url:g(i),options:u}}}},z=function(a){let r=ss(a);return{async create(e,s,t){let n=await r.create(e,s,t);return h(n,P,p,a)},async getCashLogs(e,s,t,n,o,i,l,u){let c=await r.getCashLogs(e,s,t,n,o,i,l,u);return h(c,P,p,a)},async getCashSession(e,s){let t=await r.getCashSession(e,s);return h(t,P,p,a)},async getSessionReport(e,s,t){let n=await r.getSessionReport(e,s,t);return h(n,P,p,a)},async recordCashLog(e,s,t){let n=await r.recordCashLog(e,s,t);return h(n,P,p,a)},async sendSessionReport(e,s,t,n,o){let i=await r.sendSessionReport(e,s,t,n,o);return h(i,P,p,a)}}},Sa=function(a,r,e){let s=z(a);return{create(t,n,o){return s.create(t,n,o).then(i=>i(e,r))},getCashLogs(t,n,o,i,l,u,c,b){return s.getCashLogs(t,n,o,i,l,u,c,b).then(R=>R(e,r))},getCashSession(t,n){return s.getCashSession(t,n).then(o=>o(e,r))},getSessionReport(t,n,o){return s.getSessionReport(t,n,o).then(i=>i(e,r))},recordCashLog(t,n,o){return s.recordCashLog(t,n,o).then(i=>i(e,r))},sendSessionReport(t,n,o,i,l){return s.sendSessionReport(t,n,o,i,l).then(u=>u(e,r))}}},Fe=class extends v{create(r,e,s){return z(this.configuration).create(r,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(r,e,s,t,n,o,i,l){return z(this.configuration).getCashLogs(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(r,e){return z(this.configuration).getCashSession(r,e).then(s=>s(this.axios,this.basePath))}getSessionReport(r,e,s){return z(this.configuration).getSessionReport(r,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(r,e,s){return z(this.configuration).recordCashLog(r,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(r,e,s,t,n){return z(this.configuration).sendSessionReport(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},rs=function(a){return{listCashLogsForTill:async(r,e,s,t,n,o,i,l={})=>{d("listCashLogsForTill","businessId",r);let u="/api/v6/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(r))),c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"GET",...b,...l},D={},x={};await f(D,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n!==void 0&&(x.page=n),o!==void 0&&(x.rowPerPage=o),i!==void 0&&(x.timezone=i),y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},{url:g(c),options:R}}}},Lt=function(a){let r=rs(a);return{async listCashLogsForTill(e,s,t,n,o,i,l,u){let c=await r.listCashLogsForTill(e,s,t,n,o,i,l,u);return h(c,P,p,a)}}},Oa=function(a,r,e){let s=Lt(a);return{listCashLogsForTill(t,n,o,i,l,u,c,b){return s.listCashLogsForTill(t,n,o,i,l,u,c,b).then(R=>R(e,r))}}},Le=class extends v{listCashLogsForTill(r,e,s,t,n,o,i,l){return Lt(this.configuration).listCashLogsForTill(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},ns=function(a){return{openCashSession:async(r,e,s={})=>{d("openCashSession","businessId",r),d("openCashSession","openCashSessionDto",e);let t="/api/v2/cash-management/{businessId}/sessions".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},_t=function(a){let r=ns(a);return{async openCashSession(e,s,t){let n=await r.openCashSession(e,s,t);return h(n,P,p,a)}}},Va=function(a,r,e){let s=_t(a);return{openCashSession(t,n,o){return s.openCashSession(t,n,o).then(i=>i(e,r))}}},_e=class extends v{openCashSession(r,e,s){return _t(this.configuration).openCashSession(r,e,s).then(t=>t(this.axios,this.basePath))}},os=function(a){return{getChannelCatalog:async(r,e,s,t={})=>{d("getChannelCatalog","businessId",r),d("getChannelCatalog","channelType",e);let n="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};e!==void 0&&(c.channelType=e),s!==void 0&&(c.menuId=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getChannelMenu:async(r,e,s,t={})=>{d("getChannelMenu","businessId",r),d("getChannelMenu","channelType",e);let n="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};e!==void 0&&(c.channelType=e),s!==void 0&&(c.deliveryType=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getChannelMenuTimes:async(r,e,s={})=>{d("getChannelMenuTimes","businessId",r),d("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}}}},de=function(a){let r=os(a);return{async getChannelCatalog(e,s,t,n){let o=await r.getChannelCatalog(e,s,t,n);return h(o,P,p,a)},async getChannelMenu(e,s,t,n){let o=await r.getChannelMenu(e,s,t,n);return h(o,P,p,a)},async getChannelMenuTimes(e,s,t){let n=await r.getChannelMenuTimes(e,s,t);return h(n,P,p,a)}}},Ia=function(a,r,e){let s=de(a);return{getChannelCatalog(t,n,o,i){return s.getChannelCatalog(t,n,o,i).then(l=>l(e,r))},getChannelMenu(t,n,o,i){return s.getChannelMenu(t,n,o,i).then(l=>l(e,r))},getChannelMenuTimes(t,n,o){return s.getChannelMenuTimes(t,n,o).then(i=>i(e,r))}}},Ne=class extends v{getChannelCatalog(r,e,s,t){return de(this.configuration).getChannelCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(r,e,s,t){return de(this.configuration).getChannelMenu(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(r,e,s){return de(this.configuration).getChannelMenuTimes(r,e,s).then(t=>t(this.axios,this.basePath))}},as=function(a){return{configConfigureMunchiGiftCard:async(r,e,s,t={})=>{d("configConfigureMunchiGiftCard","businessId",r),d("configConfigureMunchiGiftCard","xAppX",e),d("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configGetProviders:async(r,e,s={})=>{d("configGetProviders","businessId",r),d("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},configManualSync:async(r,e,s={})=>{d("configManualSync","businessId",r),d("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},configRemovePaymentOption:async(r,e,s,t={})=>{d("configRemovePaymentOption","businessId",r),d("configRemovePaymentOption","id",e),d("configRemovePaymentOption","xAppX",s);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},c={};await f(u,a),s!=null&&(u["x-app-x"]=String(s)),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},configSaveEpassiCredentials:async(r,e,s,t,n={})=>{d("configSaveEpassiCredentials","businessId",r),d("configSaveEpassiCredentials","xAppX",e),d("configSaveEpassiCredentials","xEpassiAccessKey",s),d("configSaveEpassiCredentials","saveEpassiCredentialsDto",t);let o="/api/v1/config-management/business/{businessId}/config/epassi".replace("{businessId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},c={},b={};await f(c,a),e!=null&&(c["x-app-x"]=String(e)),s!=null&&(c["X-Epassi-Access-Key"]=String(s)),c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},configUpsertBusiness:async(r,e,s={})=>{d("configUpsertBusiness","businessId",r),d("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},configUpsertChannelConfig:async(r,e,s,t={})=>{d("configUpsertChannelConfig","businessId",r),d("configUpsertChannelConfig","xAppX",e),d("configUpsertChannelConfig","upsertConfigDto",s);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configUpsertGiftCard:async(r,e,s,t={})=>{d("configUpsertGiftCard","businessId",r),d("configUpsertGiftCard","xAppX",e),d("configUpsertGiftCard","upsertGiftCardDto",s);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configUpsertLoyalty:async(r,e,s={})=>{d("configUpsertLoyalty","businessId",r),d("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},configUpsertNets:async(r,e,s,t={})=>{d("configUpsertNets","businessId",r),d("configUpsertNets","xAppX",e),d("configUpsertNets","upsertNetsDto",s);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configUpsertPaymentOptions:async(r,e,s,t={})=>{d("configUpsertPaymentOptions","businessId",r),d("configUpsertPaymentOptions","xAppX",e),d("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configUpsertProviders:async(r,e,s,t={})=>{d("configUpsertProviders","businessId",r),d("configUpsertProviders","xAppX",e),d("configUpsertProviders","upsertProvidersDto",s);let n="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configUpsertStripe:async(r,e,s,t={})=>{d("configUpsertStripe","businessId",r),d("configUpsertStripe","xAppX",e),d("configUpsertStripe","upsertStripeDto",s);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},configUpsertViva:async(r,e,s,t={})=>{d("configUpsertViva","businessId",r),d("configUpsertViva","xAppX",e),d("configUpsertViva","upsertVivaDto",s);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},B=function(a){let r=as(a);return{async configConfigureMunchiGiftCard(e,s,t,n){let o=await r.configConfigureMunchiGiftCard(e,s,t,n);return h(o,P,p,a)},async configGetProviders(e,s,t){let n=await r.configGetProviders(e,s,t);return h(n,P,p,a)},async configManualSync(e,s,t){let n=await r.configManualSync(e,s,t);return h(n,P,p,a)},async configRemovePaymentOption(e,s,t,n){let o=await r.configRemovePaymentOption(e,s,t,n);return h(o,P,p,a)},async configSaveEpassiCredentials(e,s,t,n,o){let i=await r.configSaveEpassiCredentials(e,s,t,n,o);return h(i,P,p,a)},async configUpsertBusiness(e,s,t){let n=await r.configUpsertBusiness(e,s,t);return h(n,P,p,a)},async configUpsertChannelConfig(e,s,t,n){let o=await r.configUpsertChannelConfig(e,s,t,n);return h(o,P,p,a)},async configUpsertGiftCard(e,s,t,n){let o=await r.configUpsertGiftCard(e,s,t,n);return h(o,P,p,a)},async configUpsertLoyalty(e,s,t){let n=await r.configUpsertLoyalty(e,s,t);return h(n,P,p,a)},async configUpsertNets(e,s,t,n){let o=await r.configUpsertNets(e,s,t,n);return h(o,P,p,a)},async configUpsertPaymentOptions(e,s,t,n){let o=await r.configUpsertPaymentOptions(e,s,t,n);return h(o,P,p,a)},async configUpsertProviders(e,s,t,n){let o=await r.configUpsertProviders(e,s,t,n);return h(o,P,p,a)},async configUpsertStripe(e,s,t,n){let o=await r.configUpsertStripe(e,s,t,n);return h(o,P,p,a)},async configUpsertViva(e,s,t,n){let o=await r.configUpsertViva(e,s,t,n);return h(o,P,p,a)}}},va=function(a,r,e){let s=B(a);return{configConfigureMunchiGiftCard(t,n,o,i){return s.configConfigureMunchiGiftCard(t,n,o,i).then(l=>l(e,r))},configGetProviders(t,n,o){return s.configGetProviders(t,n,o).then(i=>i(e,r))},configManualSync(t,n,o){return s.configManualSync(t,n,o).then(i=>i(e,r))},configRemovePaymentOption(t,n,o,i){return s.configRemovePaymentOption(t,n,o,i).then(l=>l(e,r))},configSaveEpassiCredentials(t,n,o,i,l){return s.configSaveEpassiCredentials(t,n,o,i,l).then(u=>u(e,r))},configUpsertBusiness(t,n,o){return s.configUpsertBusiness(t,n,o).then(i=>i(e,r))},configUpsertChannelConfig(t,n,o,i){return s.configUpsertChannelConfig(t,n,o,i).then(l=>l(e,r))},configUpsertGiftCard(t,n,o,i){return s.configUpsertGiftCard(t,n,o,i).then(l=>l(e,r))},configUpsertLoyalty(t,n,o){return s.configUpsertLoyalty(t,n,o).then(i=>i(e,r))},configUpsertNets(t,n,o,i){return s.configUpsertNets(t,n,o,i).then(l=>l(e,r))},configUpsertPaymentOptions(t,n,o,i){return s.configUpsertPaymentOptions(t,n,o,i).then(l=>l(e,r))},configUpsertProviders(t,n,o,i){return s.configUpsertProviders(t,n,o,i).then(l=>l(e,r))},configUpsertStripe(t,n,o,i){return s.configUpsertStripe(t,n,o,i).then(l=>l(e,r))},configUpsertViva(t,n,o,i){return s.configUpsertViva(t,n,o,i).then(l=>l(e,r))}}},We=class extends v{configConfigureMunchiGiftCard(r,e,s,t){return B(this.configuration).configConfigureMunchiGiftCard(r,e,s,t).then(n=>n(this.axios,this.basePath))}configGetProviders(r,e,s){return B(this.configuration).configGetProviders(r,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(r,e,s){return B(this.configuration).configManualSync(r,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(r,e,s,t){return B(this.configuration).configRemovePaymentOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}configSaveEpassiCredentials(r,e,s,t,n){return B(this.configuration).configSaveEpassiCredentials(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}configUpsertBusiness(r,e,s){return B(this.configuration).configUpsertBusiness(r,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(r,e,s,t){return B(this.configuration).configUpsertChannelConfig(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(r,e,s,t){return B(this.configuration).configUpsertGiftCard(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(r,e,s){return B(this.configuration).configUpsertLoyalty(r,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(r,e,s,t){return B(this.configuration).configUpsertNets(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(r,e,s,t){return B(this.configuration).configUpsertPaymentOptions(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertProviders(r,e,s,t){return B(this.configuration).configUpsertProviders(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertStripe(r,e,s,t){return B(this.configuration).configUpsertStripe(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertViva(r,e,s,t){return B(this.configuration).configUpsertViva(r,e,s,t).then(n=>n(this.axios,this.basePath))}},is=function(a){return{checkCoupon:async(r,e,s={})=>{d("checkCoupon","businessId",r),d("checkCoupon","checkCouponDto",e);let t="/api/v2/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},checkKioskCoupon:async(r,e,s={})=>{d("checkKioskCoupon","businessId",r),d("checkKioskCoupon","checkCouponDto",e);let t="/api/v2/kiosk/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},Re=function(a){let r=is(a);return{async checkCoupon(e,s,t){let n=await r.checkCoupon(e,s,t);return h(n,P,p,a)},async checkKioskCoupon(e,s,t){let n=await r.checkKioskCoupon(e,s,t);return h(n,P,p,a)}}},Ta=function(a,r,e){let s=Re(a);return{checkCoupon(t,n,o){return s.checkCoupon(t,n,o).then(i=>i(e,r))},checkKioskCoupon(t,n,o){return s.checkKioskCoupon(t,n,o).then(i=>i(e,r))}}},je=class extends v{checkCoupon(r,e,s){return Re(this.configuration).checkCoupon(r,e,s).then(t=>t(this.axios,this.basePath))}checkKioskCoupon(r,e,s){return Re(this.configuration).checkKioskCoupon(r,e,s).then(t=>t(this.axios,this.basePath))}},ls=function(a){return{getCourseConfig:async(r,e={})=>{d("getCourseConfig","businessId",r);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getCourses:async(r,e={})=>{d("getCourses","businessId",r);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},fe=function(a){let r=ls(a);return{async getCourseConfig(e,s){let t=await r.getCourseConfig(e,s);return h(t,P,p,a)},async getCourses(e,s){let t=await r.getCourses(e,s);return h(t,P,p,a)}}},qa=function(a,r,e){let s=fe(a);return{getCourseConfig(t,n){return s.getCourseConfig(t,n).then(o=>o(e,r))},getCourses(t,n){return s.getCourses(t,n).then(o=>o(e,r))}}},Ke=class extends v{getCourseConfig(r,e){return fe(this.configuration).getCourseConfig(r,e).then(s=>s(this.axios,this.basePath))}getCourses(r,e){return fe(this.configuration).getCourses(r,e).then(s=>s(this.axios,this.basePath))}},us=function(a){return{findIntent:async(r,e={})=>{d("findIntent","intentId",r);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateIntent:async(r,e,s={})=>{d("updateIntent","intentId",r),d("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},xe=function(a){let r=us(a);return{async findIntent(e,s){let t=await r.findIntent(e,s);return h(t,P,p,a)},async updateIntent(e,s,t){let n=await r.updateIntent(e,s,t);return h(n,P,p,a)}}},Ea=function(a,r,e){let s=xe(a);return{findIntent(t,n){return s.findIntent(t,n).then(o=>o(e,r))},updateIntent(t,n,o){return s.updateIntent(t,n,o).then(i=>i(e,r))}}},Qe=class extends v{findIntent(r,e){return xe(this.configuration).findIntent(r,e).then(s=>s(this.axios,this.basePath))}updateIntent(r,e,s){return xe(this.configuration).updateIntent(r,e,s).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{init:async(r,e={})=>{let s="/api/v1/display/init",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},pair:async(r,e={})=>{d("pair","pairDisplayBodyDto",r);let s="/api/v1/display/pair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},sessionToken:async(r,e={})=>{d("sessionToken","requestSessionTokenBodyDto",r);let s="/api/v1/display/session-token",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},unpair:async(r,e={})=>{d("unpair","unpairDisplayBodyDto",r);let s="/api/v1/display/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},re=function(a){let r=cs(a);return{async init(e,s){let t=await r.init(e,s);return h(t,P,p,a)},async pair(e,s){let t=await r.pair(e,s);return h(t,P,p,a)},async sessionToken(e,s){let t=await r.sessionToken(e,s);return h(t,P,p,a)},async unpair(e,s){let t=await r.unpair(e,s);return h(t,P,p,a)}}},Ua=function(a,r,e){let s=re(a);return{init(t,n){return s.init(t,n).then(o=>o(e,r))},pair(t,n){return s.pair(t,n).then(o=>o(e,r))},sessionToken(t,n){return s.sessionToken(t,n).then(o=>o(e,r))},unpair(t,n){return s.unpair(t,n).then(o=>o(e,r))}}},Ge=class extends v{init(r,e){return re(this.configuration).init(r,e).then(s=>s(this.axios,this.basePath))}pair(r,e){return re(this.configuration).pair(r,e).then(s=>s(this.axios,this.basePath))}sessionToken(r,e){return re(this.configuration).sessionToken(r,e).then(s=>s(this.axios,this.basePath))}unpair(r,e){return re(this.configuration).unpair(r,e).then(s=>s(this.axios,this.basePath))}},ds=function(a){return{addEmployeeRole:async(r,e,s={})=>{d("addEmployeeRole","businessId",r),d("addEmployeeRole","addEmployeeRoleDto",e);let t="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},addStarterEmployeeRoles:async(r,e={})=>{d("addStarterEmployeeRoles","businessId",r);let s="/api/v2/businesses/{businessId}/employee-roles/starter".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},changeEmployeeRole:async(r,e,s,t={})=>{d("changeEmployeeRole","businessId",r),d("changeEmployeeRole","roleId",e),d("changeEmployeeRole","changeEmployeeRoleDto",s);let n="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{roleId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},listEmployeeRoles:async(r,e={})=>{d("listEmployeeRoles","businessId",r);let s="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},removeEmployeeRole:async(r,e,s={})=>{d("removeEmployeeRole","businessId",r),d("removeEmployeeRole","roleId",e);let t="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{roleId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}}}},Z=function(a){let r=ds(a);return{async addEmployeeRole(e,s,t){let n=await r.addEmployeeRole(e,s,t);return h(n,P,p,a)},async addStarterEmployeeRoles(e,s){let t=await r.addStarterEmployeeRoles(e,s);return h(t,P,p,a)},async changeEmployeeRole(e,s,t,n){let o=await r.changeEmployeeRole(e,s,t,n);return h(o,P,p,a)},async listEmployeeRoles(e,s){let t=await r.listEmployeeRoles(e,s);return h(t,P,p,a)},async removeEmployeeRole(e,s,t){let n=await r.removeEmployeeRole(e,s,t);return h(n,P,p,a)}}},ka=function(a,r,e){let s=Z(a);return{addEmployeeRole(t,n,o){return s.addEmployeeRole(t,n,o).then(i=>i(e,r))},addStarterEmployeeRoles(t,n){return s.addStarterEmployeeRoles(t,n).then(o=>o(e,r))},changeEmployeeRole(t,n,o,i){return s.changeEmployeeRole(t,n,o,i).then(l=>l(e,r))},listEmployeeRoles(t,n){return s.listEmployeeRoles(t,n).then(o=>o(e,r))},removeEmployeeRole(t,n,o){return s.removeEmployeeRole(t,n,o).then(i=>i(e,r))}}},He=class extends v{addEmployeeRole(r,e,s){return Z(this.configuration).addEmployeeRole(r,e,s).then(t=>t(this.axios,this.basePath))}addStarterEmployeeRoles(r,e){return Z(this.configuration).addStarterEmployeeRoles(r,e).then(s=>s(this.axios,this.basePath))}changeEmployeeRole(r,e,s,t){return Z(this.configuration).changeEmployeeRole(r,e,s,t).then(n=>n(this.axios,this.basePath))}listEmployeeRoles(r,e){return Z(this.configuration).listEmployeeRoles(r,e).then(s=>s(this.axios,this.basePath))}removeEmployeeRole(r,e,s){return Z(this.configuration).removeEmployeeRole(r,e,s).then(t=>t(this.axios,this.basePath))}},ps=function(a){return{addEmployee:async(r,e,s={})=>{d("addEmployee","businessId",r),d("addEmployee","addEmployeeDto",e);let t="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},changeEmployee:async(r,e,s,t={})=>{d("changeEmployee","businessId",r),d("changeEmployee","employeeId",e),d("changeEmployee","changeEmployeeDto",s);let n="/api/v2/businesses/{businessId}/employees/{employeeId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{employeeId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},listEmployees:async(r,e,s,t={})=>{d("listEmployees","businessId",r);let n="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.cursor=e),s!==void 0&&(c.limit=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},removeEmployeeFromVenue:async(r,e,s={})=>{d("removeEmployeeFromVenue","businessId",r),d("removeEmployeeFromVenue","employeeId",e);let t="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(r))).replace("{employeeId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},setEmployeeRole:async(r,e,s,t={})=>{d("setEmployeeRole","businessId",r),d("setEmployeeRole","employeeId",e),d("setEmployeeRole","setEmployeeRoleDto",s);let n="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(r))).replace("{employeeId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},c={};await f(u,a),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},ee=function(a){let r=ps(a);return{async addEmployee(e,s,t){let n=await r.addEmployee(e,s,t);return h(n,P,p,a)},async changeEmployee(e,s,t,n){let o=await r.changeEmployee(e,s,t,n);return h(o,P,p,a)},async listEmployees(e,s,t,n){let o=await r.listEmployees(e,s,t,n);return h(o,P,p,a)},async removeEmployeeFromVenue(e,s,t){let n=await r.removeEmployeeFromVenue(e,s,t);return h(n,P,p,a)},async setEmployeeRole(e,s,t,n){let o=await r.setEmployeeRole(e,s,t,n);return h(o,P,p,a)}}},Ma=function(a,r,e){let s=ee(a);return{addEmployee(t,n,o){return s.addEmployee(t,n,o).then(i=>i(e,r))},changeEmployee(t,n,o,i){return s.changeEmployee(t,n,o,i).then(l=>l(e,r))},listEmployees(t,n,o,i){return s.listEmployees(t,n,o,i).then(l=>l(e,r))},removeEmployeeFromVenue(t,n,o){return s.removeEmployeeFromVenue(t,n,o).then(i=>i(e,r))},setEmployeeRole(t,n,o,i){return s.setEmployeeRole(t,n,o,i).then(l=>l(e,r))}}},$e=class extends v{addEmployee(r,e,s){return ee(this.configuration).addEmployee(r,e,s).then(t=>t(this.axios,this.basePath))}changeEmployee(r,e,s,t){return ee(this.configuration).changeEmployee(r,e,s,t).then(n=>n(this.axios,this.basePath))}listEmployees(r,e,s,t){return ee(this.configuration).listEmployees(r,e,s,t).then(n=>n(this.axios,this.basePath))}removeEmployeeFromVenue(r,e,s){return ee(this.configuration).removeEmployeeFromVenue(r,e,s).then(t=>t(this.axios,this.basePath))}setEmployeeRole(r,e,s,t){return ee(this.configuration).setEmployeeRole(r,e,s,t).then(n=>n(this.axios,this.basePath))}},ms=function(a){return{createDiningTable:async(r,e={})=>{d("createDiningTable","createDiningTableDto",r);let s="/api/v1/floor-plan/tables",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},createFloorSection:async(r,e={})=>{d("createFloorSection","createFloorSectionDto",r);let s="/api/v1/floor-plan/sections",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},deleteDiningTable:async(r,e,s={})=>{d("deleteDiningTable","id",r),d("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},deleteFloorSection:async(r,e,s={})=>{d("deleteFloorSection","id",r),d("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},dissolveTableGroup:async(r,e,s={})=>{d("dissolveTableGroup","id",r),d("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getFloorPlan:async(r,e={})=>{d("getFloorPlan","businessId",r);let s="/api/v1/floor-plan",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},joinTables:async(r,e,s={})=>{d("joinTables","businessId",r),d("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},removeTableFromGroup:async(r,e,s={})=>{d("removeTableFromGroup","id",r),d("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},transferTable:async(r,e,s,t={})=>{d("transferTable","id",r),d("transferTable","businessId",e),d("transferTable","transferTableDto",s);let n="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updateDiningTable:async(r,e,s,t={})=>{d("updateDiningTable","id",r),d("updateDiningTable","businessId",e),d("updateDiningTable","updateDiningTableDto",s);let n="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updateFloorSection:async(r,e,s,t={})=>{d("updateFloorSection","id",r),d("updateFloorSection","businessId",e),d("updateFloorSection","updateFloorSectionDto",s);let n="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updateTablePosition:async(r,e,s,t={})=>{d("updateTablePosition","id",r),d("updateTablePosition","businessId",e),d("updateTablePosition","updateTablePositionDto",s);let n="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updateTableStatus:async(r,e,s,t={})=>{d("updateTableStatus","id",r),d("updateTableStatus","businessId",e),d("updateTableStatus","updateTableStatusDto",s);let n="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},w=function(a){let r=ms(a);return{async createDiningTable(e,s){let t=await r.createDiningTable(e,s);return h(t,P,p,a)},async createFloorSection(e,s){let t=await r.createFloorSection(e,s);return h(t,P,p,a)},async deleteDiningTable(e,s,t){let n=await r.deleteDiningTable(e,s,t);return h(n,P,p,a)},async deleteFloorSection(e,s,t){let n=await r.deleteFloorSection(e,s,t);return h(n,P,p,a)},async dissolveTableGroup(e,s,t){let n=await r.dissolveTableGroup(e,s,t);return h(n,P,p,a)},async getFloorPlan(e,s){let t=await r.getFloorPlan(e,s);return h(t,P,p,a)},async joinTables(e,s,t){let n=await r.joinTables(e,s,t);return h(n,P,p,a)},async removeTableFromGroup(e,s,t){let n=await r.removeTableFromGroup(e,s,t);return h(n,P,p,a)},async transferTable(e,s,t,n){let o=await r.transferTable(e,s,t,n);return h(o,P,p,a)},async updateDiningTable(e,s,t,n){let o=await r.updateDiningTable(e,s,t,n);return h(o,P,p,a)},async updateFloorSection(e,s,t,n){let o=await r.updateFloorSection(e,s,t,n);return h(o,P,p,a)},async updateTablePosition(e,s,t,n){let o=await r.updateTablePosition(e,s,t,n);return h(o,P,p,a)},async updateTableStatus(e,s,t,n){let o=await r.updateTableStatus(e,s,t,n);return h(o,P,p,a)}}},Ba=function(a,r,e){let s=w(a);return{createDiningTable(t,n){return s.createDiningTable(t,n).then(o=>o(e,r))},createFloorSection(t,n){return s.createFloorSection(t,n).then(o=>o(e,r))},deleteDiningTable(t,n,o){return s.deleteDiningTable(t,n,o).then(i=>i(e,r))},deleteFloorSection(t,n,o){return s.deleteFloorSection(t,n,o).then(i=>i(e,r))},dissolveTableGroup(t,n,o){return s.dissolveTableGroup(t,n,o).then(i=>i(e,r))},getFloorPlan(t,n){return s.getFloorPlan(t,n).then(o=>o(e,r))},joinTables(t,n,o){return s.joinTables(t,n,o).then(i=>i(e,r))},removeTableFromGroup(t,n,o){return s.removeTableFromGroup(t,n,o).then(i=>i(e,r))},transferTable(t,n,o,i){return s.transferTable(t,n,o,i).then(l=>l(e,r))},updateDiningTable(t,n,o,i){return s.updateDiningTable(t,n,o,i).then(l=>l(e,r))},updateFloorSection(t,n,o,i){return s.updateFloorSection(t,n,o,i).then(l=>l(e,r))},updateTablePosition(t,n,o,i){return s.updateTablePosition(t,n,o,i).then(l=>l(e,r))},updateTableStatus(t,n,o,i){return s.updateTableStatus(t,n,o,i).then(l=>l(e,r))}}},ze=class extends v{createDiningTable(r,e){return w(this.configuration).createDiningTable(r,e).then(s=>s(this.axios,this.basePath))}createFloorSection(r,e){return w(this.configuration).createFloorSection(r,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(r,e,s){return w(this.configuration).deleteDiningTable(r,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(r,e,s){return w(this.configuration).deleteFloorSection(r,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(r,e,s){return w(this.configuration).dissolveTableGroup(r,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(r,e){return w(this.configuration).getFloorPlan(r,e).then(s=>s(this.axios,this.basePath))}joinTables(r,e,s){return w(this.configuration).joinTables(r,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(r,e,s){return w(this.configuration).removeTableFromGroup(r,e,s).then(t=>t(this.axios,this.basePath))}transferTable(r,e,s,t){return w(this.configuration).transferTable(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateDiningTable(r,e,s,t){return w(this.configuration).updateDiningTable(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateFloorSection(r,e,s,t){return w(this.configuration).updateFloorSection(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateTablePosition(r,e,s,t){return w(this.configuration).updateTablePosition(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateTableStatus(r,e,s,t){return w(this.configuration).updateTableStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},ys=function(a){return{redeemGiftCard:async(r,e={})=>{d("redeemGiftCard","redeemGiftCardDto",r);let s="/api/v1/giftcard/redeem",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},validateGiftCard:async(r,e={})=>{d("validateGiftCard","validateGiftCardDto",r);let s="/api/v1/giftcard/validate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},De=function(a){let r=ys(a);return{async redeemGiftCard(e,s){let t=await r.redeemGiftCard(e,s);return h(t,P,p,a)},async validateGiftCard(e,s){let t=await r.validateGiftCard(e,s);return h(t,P,p,a)}}},wa=function(a,r,e){let s=De(a);return{redeemGiftCard(t,n){return s.redeemGiftCard(t,n).then(o=>o(e,r))},validateGiftCard(t,n){return s.validateGiftCard(t,n).then(o=>o(e,r))}}},Ye=class extends v{redeemGiftCard(r,e){return De(this.configuration).redeemGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(r,e){return De(this.configuration).validateGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},gs=function(a){return{getOrderHistoryPOSV5:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C={})=>{d("getOrderHistoryPOSV5","businessIds",r);let O="/api/v5/history/orders/pos",V=new URL(O,m),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...C},T={},S={};await f(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),r&&(S.businessIds=r),n!==void 0&&(S.page=n),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),c&&(S.paymentStatus=c),b&&(S.orderType=b),R&&(S.paymentTypePos=R),D!==void 0&&(S.invoiceCompanyId=D),x!==void 0&&(S.timezone=x),y(V,S);let j=I&&I.headers?I.headers:{};return q.headers={...T,...j,...C.headers},{url:g(V),options:q}},getOrderHistoryPOSV5Internal:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C={})=>{d("getOrderHistoryPOSV5Internal","businessIds",r);let O="/api/v5/history/internal/orders/pos",V=new URL(O,m),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...C},T={},S={};await f(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),r&&(S.businessIds=r),n!==void 0&&(S.page=n),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),c&&(S.paymentStatus=c),b&&(S.orderType=b),R&&(S.paymentTypePos=R),D!==void 0&&(S.invoiceCompanyId=D),x!==void 0&&(S.timezone=x),y(V,S);let j=I&&I.headers?I.headers:{};return q.headers={...T,...j,...C.headers},{url:g(V),options:q}}}},Ce=function(a){let r=gs(a);return{async getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O){let V=await r.getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O);return h(V,P,p,a)},async getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O){let V=await r.getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O);return h(V,P,p,a)}}},Fa=function(a,r,e){let s=Ce(a);return{getOrderHistoryPOSV5(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I){return s.getOrderHistoryPOSV5(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I).then(q=>q(e,r))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I){return s.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I).then(q=>q(e,r))}}},Xe=class extends v{getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C){return Ce(this.configuration).getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C){return Ce(this.configuration).getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C).then(O=>O(this.axios,this.basePath))}},hs=function(a){return{listOnlineOrderHistoryForServices:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C={})=>{d("listOnlineOrderHistoryForServices","businessIds",r);let O="/api/v6/history/internal/orders",V=new URL(O,m),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...C},T={},S={};e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),r&&(S.businessIds=r),n!==void 0&&(S.page=n),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),c&&(S.paymentStatus=c),b&&(S.orderType=b),R&&(S.paymentTypePos=R),D!==void 0&&(S.invoiceCompanyId=D),x!==void 0&&(S.timezone=x),y(V,S);let j=I&&I.headers?I.headers:{};return q.headers={...T,...j,...C.headers},{url:g(V),options:q}},listOnlineOrderHistoryForTill:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C={})=>{d("listOnlineOrderHistoryForTill","businessIds",r);let O="/api/v6/history/orders",V=new URL(O,m),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...C},T={},S={};await f(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),r&&(S.businessIds=r),n!==void 0&&(S.page=n),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),c&&(S.paymentStatus=c),b&&(S.orderType=b),R&&(S.paymentTypePos=R),D!==void 0&&(S.invoiceCompanyId=D),x!==void 0&&(S.timezone=x),y(V,S);let j=I&&I.headers?I.headers:{};return q.headers={...T,...j,...C.headers},{url:g(V),options:q}},listOrderHistoryForTill:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C={})=>{d("listOrderHistoryForTill","businessIds",r);let O="/api/v6/history/orders/pos",V=new URL(O,m),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...C},T={},S={};await f(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),r&&(S.businessIds=r),n!==void 0&&(S.page=n),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),c&&(S.paymentStatus=c),b&&(S.orderType=b),R&&(S.paymentTypePos=R),D!==void 0&&(S.invoiceCompanyId=D),x!==void 0&&(S.timezone=x),y(V,S);let j=I&&I.headers?I.headers:{};return q.headers={...T,...j,...C.headers},{url:g(V),options:q}}}},pe=function(a){let r=hs(a);return{async listOnlineOrderHistoryForServices(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O){let V=await r.listOnlineOrderHistoryForServices(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O);return h(V,P,p,a)},async listOnlineOrderHistoryForTill(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O){let V=await r.listOnlineOrderHistoryForTill(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O);return h(V,P,p,a)},async listOrderHistoryForTill(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O){let V=await r.listOrderHistoryForTill(e,s,t,n,o,i,l,u,c,b,R,D,x,C,O);return h(V,P,p,a)}}},La=function(a,r,e){let s=pe(a);return{listOnlineOrderHistoryForServices(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I){return s.listOnlineOrderHistoryForServices(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I).then(q=>q(e,r))},listOnlineOrderHistoryForTill(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I){return s.listOnlineOrderHistoryForTill(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I).then(q=>q(e,r))},listOrderHistoryForTill(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I){return s.listOrderHistoryForTill(t,n,o,i,l,u,c,b,R,D,x,C,O,V,I).then(q=>q(e,r))}}},Je=class extends v{listOnlineOrderHistoryForServices(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C){return pe(this.configuration).listOnlineOrderHistoryForServices(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C).then(O=>O(this.axios,this.basePath))}listOnlineOrderHistoryForTill(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C){return pe(this.configuration).listOnlineOrderHistoryForTill(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C).then(O=>O(this.axios,this.basePath))}listOrderHistoryForTill(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C){return pe(this.configuration).listOrderHistoryForTill(r,e,s,t,n,o,i,l,u,c,b,R,D,x,C).then(O=>O(this.axios,this.basePath))}},Ps=function(a){return{createInvoiceCompany:async(r,e={})=>{d("createInvoiceCompany","createInvoiceCompanyDto",r);let s="/api/v1/invoice-companies",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},deleteInvoiceCompany:async(r,e,s={})=>{d("deleteInvoiceCompany","id",r),d("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getInvoiceCompanies:async(r,e={})=>{d("getInvoiceCompanies","businessId",r);let s="/api/v1/invoice-companies",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getInvoiceCompanyById:async(r,e,s={})=>{d("getInvoiceCompanyById","id",r),d("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},searchInvoiceCompanies:async(r,e,s={})=>{d("searchInvoiceCompanies","businessId",r);let t="/api/v1/invoice-companies/search",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.search=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},updateInvoiceCompany:async(r,e,s,t={})=>{d("updateInvoiceCompany","id",r),d("updateInvoiceCompany","businessId",e),d("updateInvoiceCompany","updateInvoiceCompanyDto",s);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},Y=function(a){let r=Ps(a);return{async createInvoiceCompany(e,s){let t=await r.createInvoiceCompany(e,s);return h(t,P,p,a)},async deleteInvoiceCompany(e,s,t){let n=await r.deleteInvoiceCompany(e,s,t);return h(n,P,p,a)},async getInvoiceCompanies(e,s){let t=await r.getInvoiceCompanies(e,s);return h(t,P,p,a)},async getInvoiceCompanyById(e,s,t){let n=await r.getInvoiceCompanyById(e,s,t);return h(n,P,p,a)},async searchInvoiceCompanies(e,s,t){let n=await r.searchInvoiceCompanies(e,s,t);return h(n,P,p,a)},async updateInvoiceCompany(e,s,t,n){let o=await r.updateInvoiceCompany(e,s,t,n);return h(o,P,p,a)}}},_a=function(a,r,e){let s=Y(a);return{createInvoiceCompany(t,n){return s.createInvoiceCompany(t,n).then(o=>o(e,r))},deleteInvoiceCompany(t,n,o){return s.deleteInvoiceCompany(t,n,o).then(i=>i(e,r))},getInvoiceCompanies(t,n){return s.getInvoiceCompanies(t,n).then(o=>o(e,r))},getInvoiceCompanyById(t,n,o){return s.getInvoiceCompanyById(t,n,o).then(i=>i(e,r))},searchInvoiceCompanies(t,n,o){return s.searchInvoiceCompanies(t,n,o).then(i=>i(e,r))},updateInvoiceCompany(t,n,o,i){return s.updateInvoiceCompany(t,n,o,i).then(l=>l(e,r))}}},Ze=class extends v{createInvoiceCompany(r,e){return Y(this.configuration).createInvoiceCompany(r,e).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(r,e,s){return Y(this.configuration).deleteInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(r,e){return Y(this.configuration).getInvoiceCompanies(r,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(r,e,s){return Y(this.configuration).getInvoiceCompanyById(r,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(r,e,s){return Y(this.configuration).searchInvoiceCompanies(r,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(r,e,s,t){return Y(this.configuration).updateInvoiceCompany(r,e,s,t).then(n=>n(this.axios,this.basePath))}},bs=function(a){return{createKdsStations:async(r,e={})=>{d("createKdsStations","createKdsStationsDto",r);let s="/api/v2/kds/stations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},deleteKdsStation:async(r,e,s={})=>{d("deleteKdsStation","stationId",r),d("deleteKdsStation","businessId",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},kdsGetOrders:async(r,e,s,t,n,o,i,l,u,c,b,R={})=>{d("kdsGetOrders","status",r),d("kdsGetOrders","businessIds",e),d("kdsGetOrders","profileId",s);let D="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(r))),x=new URL(D,m),C;a&&(C=a.baseOptions);let O={method:"GET",...C,...R},V={},I={};await f(V,a),e!==void 0&&(I.businessIds=e),s!==void 0&&(I.profileId=s),t!==void 0&&(I.page=t),n!==void 0&&(I.rowPerPage=n),o!==void 0&&(I.timeSpan=o),i!==void 0&&(I.start=i),l!==void 0&&(I.end=l),u!==void 0&&(I.timezone=u),c&&(I.provider=c),b&&(I.consumptionType=b),y(x,I);let q=C&&C.headers?C.headers:{};return O.headers={...V,...q,...R.headers},{url:g(x),options:O}},kdsGetProfiles:async(r,e={})=>{d("kdsGetProfiles","businessId",r);let s="/api/v1/kds/profiles",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},kdsMarkOrderReady:async(r,e={})=>{d("kdsMarkOrderReady","id",r);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},kdsMarkOrdersReady:async(r,e={})=>{d("kdsMarkOrdersReady","kdsMarkOrdersReadyDto",r);let s="/api/v1/kds/orders/ready",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},kdsRevertOrder:async(r,e={})=>{d("kdsRevertOrder","id",r);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listKdsStations:async(r,e={})=>{d("listKdsStations","businessId",r);let s="/api/v2/kds/stations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateKdsStation:async(r,e,s={})=>{d("updateKdsStation","stationId",r),d("updateKdsStation","updateKdsStationDto",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},N=function(a){let r=bs(a);return{async createKdsStations(e,s){let t=await r.createKdsStations(e,s);return h(t,P,p,a)},async deleteKdsStation(e,s,t){let n=await r.deleteKdsStation(e,s,t);return h(n,P,p,a)},async kdsGetOrders(e,s,t,n,o,i,l,u,c,b,R,D){let x=await r.kdsGetOrders(e,s,t,n,o,i,l,u,c,b,R,D);return h(x,P,p,a)},async kdsGetProfiles(e,s){let t=await r.kdsGetProfiles(e,s);return h(t,P,p,a)},async kdsMarkOrderReady(e,s){let t=await r.kdsMarkOrderReady(e,s);return h(t,P,p,a)},async kdsMarkOrdersReady(e,s){let t=await r.kdsMarkOrdersReady(e,s);return h(t,P,p,a)},async kdsRevertOrder(e,s){let t=await r.kdsRevertOrder(e,s);return h(t,P,p,a)},async listKdsStations(e,s){let t=await r.listKdsStations(e,s);return h(t,P,p,a)},async updateKdsStation(e,s,t){let n=await r.updateKdsStation(e,s,t);return h(n,P,p,a)}}},Na=function(a,r,e){let s=N(a);return{createKdsStations(t,n){return s.createKdsStations(t,n).then(o=>o(e,r))},deleteKdsStation(t,n,o){return s.deleteKdsStation(t,n,o).then(i=>i(e,r))},kdsGetOrders(t,n,o,i,l,u,c,b,R,D,x,C){return s.kdsGetOrders(t,n,o,i,l,u,c,b,R,D,x,C).then(O=>O(e,r))},kdsGetProfiles(t,n){return s.kdsGetProfiles(t,n).then(o=>o(e,r))},kdsMarkOrderReady(t,n){return s.kdsMarkOrderReady(t,n).then(o=>o(e,r))},kdsMarkOrdersReady(t,n){return s.kdsMarkOrdersReady(t,n).then(o=>o(e,r))},kdsRevertOrder(t,n){return s.kdsRevertOrder(t,n).then(o=>o(e,r))},listKdsStations(t,n){return s.listKdsStations(t,n).then(o=>o(e,r))},updateKdsStation(t,n,o){return s.updateKdsStation(t,n,o).then(i=>i(e,r))}}},et=class extends v{createKdsStations(r,e){return N(this.configuration).createKdsStations(r,e).then(s=>s(this.axios,this.basePath))}deleteKdsStation(r,e,s){return N(this.configuration).deleteKdsStation(r,e,s).then(t=>t(this.axios,this.basePath))}kdsGetOrders(r,e,s,t,n,o,i,l,u,c,b,R){return N(this.configuration).kdsGetOrders(r,e,s,t,n,o,i,l,u,c,b,R).then(D=>D(this.axios,this.basePath))}kdsGetProfiles(r,e){return N(this.configuration).kdsGetProfiles(r,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(r,e){return N(this.configuration).kdsMarkOrderReady(r,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrdersReady(r,e){return N(this.configuration).kdsMarkOrdersReady(r,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(r,e){return N(this.configuration).kdsRevertOrder(r,e).then(s=>s(this.axios,this.basePath))}listKdsStations(r,e){return N(this.configuration).listKdsStations(r,e).then(s=>s(this.axios,this.basePath))}updateKdsStation(r,e,s){return N(this.configuration).updateKdsStation(r,e,s).then(t=>t(this.axios,this.basePath))}},As=function(a){return{getKioskOrder:async(r,e,s={})=>{d("getKioskOrder","orderId",r),d("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},syncKioskOrder:async(r,e={})=>{d("syncKioskOrder","syncKioskOrderDto",r);let s="/api/v1/kiosk/orders/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Se=function(a){let r=As(a);return{async getKioskOrder(e,s,t){let n=await r.getKioskOrder(e,s,t);return h(n,P,p,a)},async syncKioskOrder(e,s){let t=await r.syncKioskOrder(e,s);return h(t,P,p,a)}}},Wa=function(a,r,e){let s=Se(a);return{getKioskOrder(t,n,o){return s.getKioskOrder(t,n,o).then(i=>i(e,r))},syncKioskOrder(t,n){return s.syncKioskOrder(t,n).then(o=>o(e,r))}}},tt=class extends v{getKioskOrder(r,e,s){return Se(this.configuration).getKioskOrder(r,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(r,e){return Se(this.configuration).syncKioskOrder(r,e).then(s=>s(this.axios,this.basePath))}},Rs=function(a){return{restoreRedemption:async(r,e={})=>{d("restoreRedemption","restoreLoyaltyRedemptionDto",r);let s="/api/v1/loyalty-commerce/redemptions/restore",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Nt=function(a){let r=Rs(a);return{async restoreRedemption(e,s){let t=await r.restoreRedemption(e,s);return h(t,P,p,a)}}},ja=function(a,r,e){let s=Nt(a);return{restoreRedemption(t,n){return s.restoreRedemption(t,n).then(o=>o(e,r))}}},st=class extends v{restoreRedemption(r,e){return Nt(this.configuration).restoreRedemption(r,e).then(s=>s(this.axios,this.basePath))}},fs=function(a){return{claimKioskOffer:async(r,e={})=>{d("claimKioskOffer","claimKioskOfferDto",r);let s="/api/v1/loyalty/users/claim",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},createLoyaltyUser:async(r,e,s={})=>{d("createLoyaltyUser","businessId",r),d("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getAdminTransactions:async(r,e,s,t={})=>{d("getAdminTransactions","businessId",r);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await f(u,a),r!==void 0&&(c.businessId=r),e!==void 0&&(c.page=e),s!==void 0&&(c.limit=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getLoyaltyInfo:async(r,e={})=>{d("getLoyaltyInfo","businessId",r);let s="/api/v1/loyalty/info",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getUserById:async(r,e,s={})=>{d("getUserById","businessId",r),d("getUserById","userId",e);let t="/api/v1/loyalty/users/info",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getWalletRewards:async(r,e,s={})=>{d("getWalletRewards","businessId",r),d("getWalletRewards","userId",e);let t="/api/v1/loyalty/users/wallet-rewards",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},memberContext:async(r,e={})=>{d("memberContext","loyaltyMemberContextRequestDto",r);let s="/api/v1/loyalty/member-context",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},resolvePerks:async(r,e={})=>{d("resolvePerks","loyaltyResolveRequestDto",r);let s="/api/v1/loyalty/resolve",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},searchUser:async(r,e,s,t,n={})=>{d("searchUser","businessId",r);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},c={},b={};await f(c,a),e!==void 0&&(b.phone=e),s!==void 0&&(b.country_code=s),t!==void 0&&(b.email=t),r!==void 0&&(b.businessId=r),y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},{url:g(i),options:u}},updatePoints:async(r,e,s={})=>{d("updatePoints","businessId",r),d("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},validateWallet:async(r,e,s,t={})=>{d("validateWallet","businessId",r),d("validateWallet","loyaltyId",e),d("validateWallet","walletId",s);let n="/api/v1/loyalty/wallets/validate",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await f(u,a),r!==void 0&&(c.businessId=r),e!==void 0&&(c.loyaltyId=e),s!==void 0&&(c.walletId=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}}}},F=function(a){let r=fs(a);return{async claimKioskOffer(e,s){let t=await r.claimKioskOffer(e,s);return h(t,P,p,a)},async createLoyaltyUser(e,s,t){let n=await r.createLoyaltyUser(e,s,t);return h(n,P,p,a)},async getAdminTransactions(e,s,t,n){let o=await r.getAdminTransactions(e,s,t,n);return h(o,P,p,a)},async getLoyaltyInfo(e,s){let t=await r.getLoyaltyInfo(e,s);return h(t,P,p,a)},async getUserById(e,s,t){let n=await r.getUserById(e,s,t);return h(n,P,p,a)},async getWalletRewards(e,s,t){let n=await r.getWalletRewards(e,s,t);return h(n,P,p,a)},async memberContext(e,s){let t=await r.memberContext(e,s);return h(t,P,p,a)},async resolvePerks(e,s){let t=await r.resolvePerks(e,s);return h(t,P,p,a)},async searchUser(e,s,t,n,o){let i=await r.searchUser(e,s,t,n,o);return h(i,P,p,a)},async updatePoints(e,s,t){let n=await r.updatePoints(e,s,t);return h(n,P,p,a)},async validateWallet(e,s,t,n){let o=await r.validateWallet(e,s,t,n);return h(o,P,p,a)}}},Ka=function(a,r,e){let s=F(a);return{claimKioskOffer(t,n){return s.claimKioskOffer(t,n).then(o=>o(e,r))},createLoyaltyUser(t,n,o){return s.createLoyaltyUser(t,n,o).then(i=>i(e,r))},getAdminTransactions(t,n,o,i){return s.getAdminTransactions(t,n,o,i).then(l=>l(e,r))},getLoyaltyInfo(t,n){return s.getLoyaltyInfo(t,n).then(o=>o(e,r))},getUserById(t,n,o){return s.getUserById(t,n,o).then(i=>i(e,r))},getWalletRewards(t,n,o){return s.getWalletRewards(t,n,o).then(i=>i(e,r))},memberContext(t,n){return s.memberContext(t,n).then(o=>o(e,r))},resolvePerks(t,n){return s.resolvePerks(t,n).then(o=>o(e,r))},searchUser(t,n,o,i,l){return s.searchUser(t,n,o,i,l).then(u=>u(e,r))},updatePoints(t,n,o){return s.updatePoints(t,n,o).then(i=>i(e,r))},validateWallet(t,n,o,i){return s.validateWallet(t,n,o,i).then(l=>l(e,r))}}},rt=class extends v{claimKioskOffer(r,e){return F(this.configuration).claimKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(r,e,s){return F(this.configuration).createLoyaltyUser(r,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(r,e,s,t){return F(this.configuration).getAdminTransactions(r,e,s,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(r,e){return F(this.configuration).getLoyaltyInfo(r,e).then(s=>s(this.axios,this.basePath))}getUserById(r,e,s){return F(this.configuration).getUserById(r,e,s).then(t=>t(this.axios,this.basePath))}getWalletRewards(r,e,s){return F(this.configuration).getWalletRewards(r,e,s).then(t=>t(this.axios,this.basePath))}memberContext(r,e){return F(this.configuration).memberContext(r,e).then(s=>s(this.axios,this.basePath))}resolvePerks(r,e){return F(this.configuration).resolvePerks(r,e).then(s=>s(this.axios,this.basePath))}searchUser(r,e,s,t,n){return F(this.configuration).searchUser(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(r,e,s){return F(this.configuration).updatePoints(r,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(r,e,s,t){return F(this.configuration).validateWallet(r,e,s,t).then(n=>n(this.axios,this.basePath))}},xs=function(a){return{refuseSessionEnd:async(r={})=>{let e="/api/v1/mcp",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"DELETE",...t,...r},o={},i={};await f(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},refuseStream:async(r={})=>{let e="/api/v1/mcp",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},serveMcpRequest:async(r,e={})=>{d("serveMcpRequest","body",r);let s="/api/v1/mcp",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},me=function(a){let r=xs(a);return{async refuseSessionEnd(e){let s=await r.refuseSessionEnd(e);return h(s,P,p,a)},async refuseStream(e){let s=await r.refuseStream(e);return h(s,P,p,a)},async serveMcpRequest(e,s){let t=await r.serveMcpRequest(e,s);return h(t,P,p,a)}}},Qa=function(a,r,e){let s=me(a);return{refuseSessionEnd(t){return s.refuseSessionEnd(t).then(n=>n(e,r))},refuseStream(t){return s.refuseStream(t).then(n=>n(e,r))},serveMcpRequest(t,n){return s.serveMcpRequest(t,n).then(o=>o(e,r))}}},nt=class extends v{refuseSessionEnd(r){return me(this.configuration).refuseSessionEnd(r).then(e=>e(this.axios,this.basePath))}refuseStream(r){return me(this.configuration).refuseStream(r).then(e=>e(this.axios,this.basePath))}serveMcpRequest(r,e){return me(this.configuration).serveMcpRequest(r,e).then(s=>s(this.axios,this.basePath))}},Ds=function(a){return{editBusinessProductV2:async(r,e,s={})=>{d("editBusinessProductV2","businessId",r),d("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},resetProductEod:async(r,e={})=>{d("resetProductEod","resetEodDto",r);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Oe=function(a){let r=Ds(a);return{async editBusinessProductV2(e,s,t){let n=await r.editBusinessProductV2(e,s,t);return h(n,P,p,a)},async resetProductEod(e,s){let t=await r.resetProductEod(e,s);return h(t,P,p,a)}}},Ga=function(a,r,e){let s=Oe(a);return{editBusinessProductV2(t,n,o){return s.editBusinessProductV2(t,n,o).then(i=>i(e,r))},resetProductEod(t,n){return s.resetProductEod(t,n).then(o=>o(e,r))}}},ot=class extends v{editBusinessProductV2(r,e,s){return Oe(this.configuration).editBusinessProductV2(r,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(r,e){return Oe(this.configuration).resetProductEod(r,e).then(s=>s(this.axios,this.basePath))}},Cs=function(a){return{createMunchiGiftCard:async(r,e={})=>{d("createMunchiGiftCard","createMunchiGiftCardDto",r);let s="/api/v1/munchi-giftcard/create",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},getMunchiGiftCardData:async(r,e={})=>{d("getMunchiGiftCardData","getMunchiGiftCardDataDto",r);let s="/api/v1/munchi-giftcard/data",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},redeemMunchiGiftCard:async(r,e={})=>{d("redeemMunchiGiftCard","redeemGiftCardDto",r);let s="/api/v1/munchi-giftcard/redeem",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},validateMunchiGiftCard:async(r,e={})=>{d("validateMunchiGiftCard","validateGiftCardDto",r);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},ne=function(a){let r=Cs(a);return{async createMunchiGiftCard(e,s){let t=await r.createMunchiGiftCard(e,s);return h(t,P,p,a)},async getMunchiGiftCardData(e,s){let t=await r.getMunchiGiftCardData(e,s);return h(t,P,p,a)},async redeemMunchiGiftCard(e,s){let t=await r.redeemMunchiGiftCard(e,s);return h(t,P,p,a)},async validateMunchiGiftCard(e,s){let t=await r.validateMunchiGiftCard(e,s);return h(t,P,p,a)}}},Ha=function(a,r,e){let s=ne(a);return{createMunchiGiftCard(t,n){return s.createMunchiGiftCard(t,n).then(o=>o(e,r))},getMunchiGiftCardData(t,n){return s.getMunchiGiftCardData(t,n).then(o=>o(e,r))},redeemMunchiGiftCard(t,n){return s.redeemMunchiGiftCard(t,n).then(o=>o(e,r))},validateMunchiGiftCard(t,n){return s.validateMunchiGiftCard(t,n).then(o=>o(e,r))}}},at=class extends v{createMunchiGiftCard(r,e){return ne(this.configuration).createMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(r,e){return ne(this.configuration).getMunchiGiftCardData(r,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(r,e){return ne(this.configuration).redeemMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(r,e){return ne(this.configuration).validateMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},Ss=function(a){return{addVenueSubscriptionsV2:async(r,e={})=>{d("addVenueSubscriptionsV2","deviceSubscriptionDto",r);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},removeVenueSubscriptionsV2:async(r,e={})=>{d("removeVenueSubscriptionsV2","deviceSubscriptionDto",r);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Ve=function(a){let r=Ss(a);return{async addVenueSubscriptionsV2(e,s){let t=await r.addVenueSubscriptionsV2(e,s);return h(t,P,p,a)},async removeVenueSubscriptionsV2(e,s){let t=await r.removeVenueSubscriptionsV2(e,s);return h(t,P,p,a)}}},$a=function(a,r,e){let s=Ve(a);return{addVenueSubscriptionsV2(t,n){return s.addVenueSubscriptionsV2(t,n).then(o=>o(e,r))},removeVenueSubscriptionsV2(t,n){return s.removeVenueSubscriptionsV2(t,n).then(o=>o(e,r))}}},it=class extends v{addVenueSubscriptionsV2(r,e){return Ve(this.configuration).addVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(r,e){return Ve(this.configuration).removeVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}},Os=function(a){return{connectDeliveryPlatform:async(r,e,s={})=>{d("connectDeliveryPlatform","venueId",r),d("connectDeliveryPlatform","connectDeliveryPlatformDto",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms".replace("{venueId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},devicesOfVenue:async(r,e={})=>{d("devicesOfVenue","venueId",r);let s="/api/v1/ops/venues/{venueId}/devices".replace("{venueId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},disconnectDeliveryPlatform:async(r,e,s={})=>{d("disconnectDeliveryPlatform","venueId",r),d("disconnectDeliveryPlatform","channel",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms/{channel}".replace("{venueId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},searchVenues:async(r,e,s={})=>{d("searchVenues","search",r);let t="/api/v1/ops/venues",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.search=r),e!==void 0&&(u.limit=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}}}},oe=function(a){let r=Os(a);return{async connectDeliveryPlatform(e,s,t){let n=await r.connectDeliveryPlatform(e,s,t);return h(n,P,p,a)},async devicesOfVenue(e,s){let t=await r.devicesOfVenue(e,s);return h(t,P,p,a)},async disconnectDeliveryPlatform(e,s,t){let n=await r.disconnectDeliveryPlatform(e,s,t);return h(n,P,p,a)},async searchVenues(e,s,t){let n=await r.searchVenues(e,s,t);return h(n,P,p,a)}}},za=function(a,r,e){let s=oe(a);return{connectDeliveryPlatform(t,n,o){return s.connectDeliveryPlatform(t,n,o).then(i=>i(e,r))},devicesOfVenue(t,n){return s.devicesOfVenue(t,n).then(o=>o(e,r))},disconnectDeliveryPlatform(t,n,o){return s.disconnectDeliveryPlatform(t,n,o).then(i=>i(e,r))},searchVenues(t,n,o){return s.searchVenues(t,n,o).then(i=>i(e,r))}}},lt=class extends v{connectDeliveryPlatform(r,e,s){return oe(this.configuration).connectDeliveryPlatform(r,e,s).then(t=>t(this.axios,this.basePath))}devicesOfVenue(r,e){return oe(this.configuration).devicesOfVenue(r,e).then(s=>s(this.axios,this.basePath))}disconnectDeliveryPlatform(r,e,s){return oe(this.configuration).disconnectDeliveryPlatform(r,e,s).then(t=>t(this.axios,this.basePath))}searchVenues(r,e,s){return oe(this.configuration).searchVenues(r,e,s).then(t=>t(this.axios,this.basePath))}},Vs=function(a){return{completeOrder:async(r,e,s,t={})=>{d("completeOrder","businessId",r),d("completeOrder","orderId",e),d("completeOrder","completeOrderDto",s);let n="/api/v1/businesses/{businessId}/orders/{orderId}/complete".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};await f(u,a),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},Wt=function(a){let r=Vs(a);return{async completeOrder(e,s,t,n){let o=await r.completeOrder(e,s,t,n);return h(o,P,p,a)}}},Ya=function(a,r,e){let s=Wt(a);return{completeOrder(t,n,o,i){return s.completeOrder(t,n,o,i).then(l=>l(e,r))}}},ut=class extends v{completeOrder(r,e,s,t){return Wt(this.configuration).completeOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Is=function(a){return{findOneByExternalId:async(r,e={})=>{d("findOneByExternalId","externalId",r);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},jt=function(a){let r=Is(a);return{async findOneByExternalId(e,s){let t=await r.findOneByExternalId(e,s);return h(t,P,p,a)}}},Xa=function(a,r,e){let s=jt(a);return{findOneByExternalId(t,n){return s.findOneByExternalId(t,n).then(o=>o(e,r))}}},ct=class extends v{findOneByExternalId(r,e){return jt(this.configuration).findOneByExternalId(r,e).then(s=>s(this.axios,this.basePath))}},vs=function(a){return{acceptOrder:async(r,e={})=>{d("acceptOrder","acceptOrderDto",r);let s="/api/v1/orders/accept",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},changePosOrdersStatusInBulk:async(r,e={})=>{d("changePosOrdersStatusInBulk","changePosOrdersStatusInBulkDto",r);let s="/api/v2/orders/pos/bulk-status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},confirmPreOrder:async(r,e={})=>{d("confirmPreOrder","confirmPreorderDto",r);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},deletePosParkedOrderV2:async(r,e={})=>{d("deletePosParkedOrderV2","deletePosOrderDto",r);let s="/api/v2/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},deliverOrder:async(r,e={})=>{d("deliverOrder","deliveredOrderDto",r);let s="/api/v1/orders/delivered",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},dispatchPosOrderV5:async(r,e={})=>{d("dispatchPosOrderV5","dispatchPosOrderDto",r);let s="/api/v5/orders/pos/dispatch",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},getOrdersV2:async(r,e,s,t,n={})=>{d("getOrdersV2","status",r),d("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},c={},b={};e!==void 0&&(b.businessIds=e),s!==void 0&&(b.posBusinessId=s),t!==void 0&&(b.extraProvider=t),y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},{url:g(i),options:u}},getOrdersV3:async(r,e,s,t,n={})=>{d("getOrdersV3","status",r),d("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},c={},b={};e!==void 0&&(b.businessIds=e),s!==void 0&&(b.posBusinessId=s),t!==void 0&&(b.extraProvider=t),y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},{url:g(i),options:u}},getParkedPosOrderV2:async(r,e={})=>{d("getParkedPosOrderV2","businessId",r);let s="/api/v2/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPosOrderById:async(r,e={})=>{d("getPosOrderById","getPosOrderDto",r);let s="/api/v1/orders/pos",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},markOrderAsReady:async(r,e={})=>{d("markOrderAsReady","readyOrderDto",r);let s="/api/v1/orders/ready",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},parkPosOrderV5:async(r,e={})=>{d("parkPosOrderV5","parkPosOrderDto",r);let s="/api/v5/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},processPosOrderActions:async(r,e={})=>{d("processPosOrderActions","processOrderActionsDto",r);let s="/api/v4/orders/pos/actions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},rejectOrder:async(r,e={})=>{d("rejectOrder","rejectOrderDto",r);let s="/api/v1/orders/reject",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},syncPosOrder:async(r,e={})=>{d("syncPosOrder","syncPosOrderDto",r);let s="/api/v1/orders/pos/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},updatePosOrderV2:async(r,e={})=>{d("updatePosOrderV2","posUpdateOrderDto",r);let s="/api/v2/orders/pos/update",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},M=function(a){let r=vs(a);return{async acceptOrder(e,s){let t=await r.acceptOrder(e,s);return h(t,P,p,a)},async changePosOrdersStatusInBulk(e,s){let t=await r.changePosOrdersStatusInBulk(e,s);return h(t,P,p,a)},async confirmPreOrder(e,s){let t=await r.confirmPreOrder(e,s);return h(t,P,p,a)},async deletePosParkedOrderV2(e,s){let t=await r.deletePosParkedOrderV2(e,s);return h(t,P,p,a)},async deliverOrder(e,s){let t=await r.deliverOrder(e,s);return h(t,P,p,a)},async dispatchPosOrderV5(e,s){let t=await r.dispatchPosOrderV5(e,s);return h(t,P,p,a)},async getOrdersV2(e,s,t,n,o){let i=await r.getOrdersV2(e,s,t,n,o);return h(i,P,p,a)},async getOrdersV3(e,s,t,n,o){let i=await r.getOrdersV3(e,s,t,n,o);return h(i,P,p,a)},async getParkedPosOrderV2(e,s){let t=await r.getParkedPosOrderV2(e,s);return h(t,P,p,a)},async getPosOrderById(e,s){let t=await r.getPosOrderById(e,s);return h(t,P,p,a)},async markOrderAsReady(e,s){let t=await r.markOrderAsReady(e,s);return h(t,P,p,a)},async parkPosOrderV5(e,s){let t=await r.parkPosOrderV5(e,s);return h(t,P,p,a)},async processPosOrderActions(e,s){let t=await r.processPosOrderActions(e,s);return h(t,P,p,a)},async rejectOrder(e,s){let t=await r.rejectOrder(e,s);return h(t,P,p,a)},async syncPosOrder(e,s){let t=await r.syncPosOrder(e,s);return h(t,P,p,a)},async updatePosOrderV2(e,s){let t=await r.updatePosOrderV2(e,s);return h(t,P,p,a)}}},Ja=function(a,r,e){let s=M(a);return{acceptOrder(t,n){return s.acceptOrder(t,n).then(o=>o(e,r))},changePosOrdersStatusInBulk(t,n){return s.changePosOrdersStatusInBulk(t,n).then(o=>o(e,r))},confirmPreOrder(t,n){return s.confirmPreOrder(t,n).then(o=>o(e,r))},deletePosParkedOrderV2(t,n){return s.deletePosParkedOrderV2(t,n).then(o=>o(e,r))},deliverOrder(t,n){return s.deliverOrder(t,n).then(o=>o(e,r))},dispatchPosOrderV5(t,n){return s.dispatchPosOrderV5(t,n).then(o=>o(e,r))},getOrdersV2(t,n,o,i,l){return s.getOrdersV2(t,n,o,i,l).then(u=>u(e,r))},getOrdersV3(t,n,o,i,l){return s.getOrdersV3(t,n,o,i,l).then(u=>u(e,r))},getParkedPosOrderV2(t,n){return s.getParkedPosOrderV2(t,n).then(o=>o(e,r))},getPosOrderById(t,n){return s.getPosOrderById(t,n).then(o=>o(e,r))},markOrderAsReady(t,n){return s.markOrderAsReady(t,n).then(o=>o(e,r))},parkPosOrderV5(t,n){return s.parkPosOrderV5(t,n).then(o=>o(e,r))},processPosOrderActions(t,n){return s.processPosOrderActions(t,n).then(o=>o(e,r))},rejectOrder(t,n){return s.rejectOrder(t,n).then(o=>o(e,r))},syncPosOrder(t,n){return s.syncPosOrder(t,n).then(o=>o(e,r))},updatePosOrderV2(t,n){return s.updatePosOrderV2(t,n).then(o=>o(e,r))}}},dt=class extends v{acceptOrder(r,e){return M(this.configuration).acceptOrder(r,e).then(s=>s(this.axios,this.basePath))}changePosOrdersStatusInBulk(r,e){return M(this.configuration).changePosOrdersStatusInBulk(r,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(r,e){return M(this.configuration).confirmPreOrder(r,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(r,e){return M(this.configuration).deletePosParkedOrderV2(r,e).then(s=>s(this.axios,this.basePath))}deliverOrder(r,e){return M(this.configuration).deliverOrder(r,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(r,e){return M(this.configuration).dispatchPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(r,e,s,t,n){return M(this.configuration).getOrdersV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getOrdersV3(r,e,s,t,n){return M(this.configuration).getOrdersV3(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(r,e){return M(this.configuration).getParkedPosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(r,e){return M(this.configuration).getPosOrderById(r,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(r,e){return M(this.configuration).markOrderAsReady(r,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(r,e){return M(this.configuration).parkPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(r,e){return M(this.configuration).processPosOrderActions(r,e).then(s=>s(this.axios,this.basePath))}rejectOrder(r,e){return M(this.configuration).rejectOrder(r,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(r,e){return M(this.configuration).syncPosOrder(r,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(r,e){return M(this.configuration).updatePosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}},Ts=function(a){return{listPosPermissions:async(r={})=>{let e="/api/v1/pos-permissions",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},Kt=function(a){let r=Ts(a);return{async listPosPermissions(e){let s=await r.listPosPermissions(e);return h(s,P,p,a)}}},Za=function(a,r,e){let s=Kt(a);return{listPosPermissions(t){return s.listPosPermissions(t).then(n=>n(e,r))}}},pt=class extends v{listPosPermissions(r){return Kt(this.configuration).listPosPermissions(r).then(e=>e(this.axios,this.basePath))}},qs=function(a){return{getPosSessionV2:async(r,e={})=>{d("getPosSessionV2","businessId",r);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},Qt=function(a){let r=qs(a);return{async getPosSessionV2(e,s){let t=await r.getPosSessionV2(e,s);return h(t,P,p,a)}}},ei=function(a,r,e){let s=Qt(a);return{getPosSessionV2(t,n){return s.getPosSessionV2(t,n).then(o=>o(e,r))}}},mt=class extends v{getPosSessionV2(r,e){return Qt(this.configuration).getPosSessionV2(r,e).then(s=>s(this.axios,this.basePath))}},Es=function(a){return{payTerminalInit:async(r,e={})=>{d("payTerminalInit","payTerminalInitBodyDto",r);let s="/api/v1/pay-terminal/init",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalLockStatus:async(r,e={})=>{d("payTerminalLockStatus","payTerminalLockStatusBodyDto",r);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalLockSync:async(r,e={})=>{d("payTerminalLockSync","syncPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalLockVerify:async(r,e={})=>{d("payTerminalLockVerify","verifyPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalPair:async(r,e={})=>{d("payTerminalPair","pairPayTerminalBodyDto",r);let s="/api/v1/pay-terminal/pair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalPresence:async(r,e={})=>{d("payTerminalPresence","payTerminalSessionTokenBodyDto",r);let s="/api/v1/pay-terminal/presence",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalSessionToken:async(r,e={})=>{d("payTerminalSessionToken","payTerminalSessionTokenBodyDto",r);let s="/api/v1/pay-terminal/session-token",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},payTerminalUnpair:async(r,e={})=>{d("payTerminalUnpair","unpairPayTerminalBodyDto",r);let s="/api/v1/pay-terminal/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},K=function(a){let r=Es(a);return{async payTerminalInit(e,s){let t=await r.payTerminalInit(e,s);return h(t,P,p,a)},async payTerminalLockStatus(e,s){let t=await r.payTerminalLockStatus(e,s);return h(t,P,p,a)},async payTerminalLockSync(e,s){let t=await r.payTerminalLockSync(e,s);return h(t,P,p,a)},async payTerminalLockVerify(e,s){let t=await r.payTerminalLockVerify(e,s);return h(t,P,p,a)},async payTerminalPair(e,s){let t=await r.payTerminalPair(e,s);return h(t,P,p,a)},async payTerminalPresence(e,s){let t=await r.payTerminalPresence(e,s);return h(t,P,p,a)},async payTerminalSessionToken(e,s){let t=await r.payTerminalSessionToken(e,s);return h(t,P,p,a)},async payTerminalUnpair(e,s){let t=await r.payTerminalUnpair(e,s);return h(t,P,p,a)}}},ti=function(a,r,e){let s=K(a);return{payTerminalInit(t,n){return s.payTerminalInit(t,n).then(o=>o(e,r))},payTerminalLockStatus(t,n){return s.payTerminalLockStatus(t,n).then(o=>o(e,r))},payTerminalLockSync(t,n){return s.payTerminalLockSync(t,n).then(o=>o(e,r))},payTerminalLockVerify(t,n){return s.payTerminalLockVerify(t,n).then(o=>o(e,r))},payTerminalPair(t,n){return s.payTerminalPair(t,n).then(o=>o(e,r))},payTerminalPresence(t,n){return s.payTerminalPresence(t,n).then(o=>o(e,r))},payTerminalSessionToken(t,n){return s.payTerminalSessionToken(t,n).then(o=>o(e,r))},payTerminalUnpair(t,n){return s.payTerminalUnpair(t,n).then(o=>o(e,r))}}},yt=class extends v{payTerminalInit(r,e){return K(this.configuration).payTerminalInit(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(r,e){return K(this.configuration).payTerminalLockStatus(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(r,e){return K(this.configuration).payTerminalLockSync(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(r,e){return K(this.configuration).payTerminalLockVerify(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(r,e){return K(this.configuration).payTerminalPair(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPresence(r,e){return K(this.configuration).payTerminalPresence(r,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(r,e){return K(this.configuration).payTerminalSessionToken(r,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(r,e){return K(this.configuration).payTerminalUnpair(r,e).then(s=>s(this.axios,this.basePath))}},Us=function(a){return{cancelNetsTerminalTransaction:async(r,e={})=>{d("cancelNetsTerminalTransaction","netsCancelTransactionDto",r);let s="/api/v3/payment/nets/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},cancelVivaTransactionV2:async(r,e={})=>{d("cancelVivaTransactionV2","vivaCancelTransactionDto",r);let s="/api/v2/payment/viva/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},getPaymentReference:async(r,e={})=>{d("getPaymentReference","getPaymentReferenceDto",r);let s="/api/v1/payment/reference",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},getPaymentStatus:async(r,e={})=>{d("getPaymentStatus","getPaymentStatusDto",r);let s="/api/v1/payment/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},initiateNetsTerminalTransaction:async(r,e={})=>{d("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",r);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},initiateTerminalTransaction:async(r,e={})=>{d("initiateTerminalTransaction","createTerminalPaymentDto",r);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},processOnlineOrderRefund:async(r,e={})=>{d("processOnlineOrderRefund","orderResponseDto",r);let s="/api/v1/payment/online-orders/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},refundSingleVivaTransaction:async(r,e={})=>{d("refundSingleVivaTransaction","createRefundDto",r);let s="/api/v4/payment/viva/refund/single",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Q=function(a){let r=Us(a);return{async cancelNetsTerminalTransaction(e,s){let t=await r.cancelNetsTerminalTransaction(e,s);return h(t,P,p,a)},async cancelVivaTransactionV2(e,s){let t=await r.cancelVivaTransactionV2(e,s);return h(t,P,p,a)},async getPaymentReference(e,s){let t=await r.getPaymentReference(e,s);return h(t,P,p,a)},async getPaymentStatus(e,s){let t=await r.getPaymentStatus(e,s);return h(t,P,p,a)},async initiateNetsTerminalTransaction(e,s){let t=await r.initiateNetsTerminalTransaction(e,s);return h(t,P,p,a)},async initiateTerminalTransaction(e,s){let t=await r.initiateTerminalTransaction(e,s);return h(t,P,p,a)},async processOnlineOrderRefund(e,s){let t=await r.processOnlineOrderRefund(e,s);return h(t,P,p,a)},async refundSingleVivaTransaction(e,s){let t=await r.refundSingleVivaTransaction(e,s);return h(t,P,p,a)}}},si=function(a,r,e){let s=Q(a);return{cancelNetsTerminalTransaction(t,n){return s.cancelNetsTerminalTransaction(t,n).then(o=>o(e,r))},cancelVivaTransactionV2(t,n){return s.cancelVivaTransactionV2(t,n).then(o=>o(e,r))},getPaymentReference(t,n){return s.getPaymentReference(t,n).then(o=>o(e,r))},getPaymentStatus(t,n){return s.getPaymentStatus(t,n).then(o=>o(e,r))},initiateNetsTerminalTransaction(t,n){return s.initiateNetsTerminalTransaction(t,n).then(o=>o(e,r))},initiateTerminalTransaction(t,n){return s.initiateTerminalTransaction(t,n).then(o=>o(e,r))},processOnlineOrderRefund(t,n){return s.processOnlineOrderRefund(t,n).then(o=>o(e,r))},refundSingleVivaTransaction(t,n){return s.refundSingleVivaTransaction(t,n).then(o=>o(e,r))}}},gt=class extends v{cancelNetsTerminalTransaction(r,e){return Q(this.configuration).cancelNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(r,e){return Q(this.configuration).cancelVivaTransactionV2(r,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(r,e){return Q(this.configuration).getPaymentReference(r,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(r,e){return Q(this.configuration).getPaymentStatus(r,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(r,e){return Q(this.configuration).initiateNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(r,e){return Q(this.configuration).initiateTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(r,e){return Q(this.configuration).processOnlineOrderRefund(r,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(r,e){return Q(this.configuration).refundSingleVivaTransaction(r,e).then(s=>s(this.axios,this.basePath))}},ks=function(a){return{changePaymentMethodGiftCardLogin:async(r,e,s,t,n={})=>{d("changePaymentMethodGiftCardLogin","businessId",r),d("changePaymentMethodGiftCardLogin","channel",e),d("changePaymentMethodGiftCardLogin","id",s),d("changePaymentMethodGiftCardLogin","giftCardCredentialsInputDto",t);let o="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}/gift-card-login".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},changePaymentMethodOption:async(r,e,s,t,n={})=>{d("changePaymentMethodOption","businessId",r),d("changePaymentMethodOption","channel",e),d("changePaymentMethodOption","id",s),d("changePaymentMethodOption","changePaymentMethodOptionDto",t);let o="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},createPaymentMethod:async(r,e,s,t={})=>{d("createPaymentMethod","businessId",r),d("createPaymentMethod","channel",e),d("createPaymentMethod","createPaymentMethodDto",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},deletePaymentMethodOption:async(r,e,s,t={})=>{d("deletePaymentMethodOption","businessId",r),d("deletePaymentMethodOption","channel",e),d("deletePaymentMethodOption","id",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getCatalog:async(r,e,s,t={})=>{d("getCatalog","businessId",r),d("getCatalog","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};s!==void 0&&(c.locale=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getPaymentMethods:async(r,e,s,t={})=>{d("getPaymentMethods","businessId",r),d("getPaymentMethods","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};s!==void 0&&(c.locale=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getTypes:async(r={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},reorder:async(r,e,s,t={})=>{d("reorder","businessId",r),d("reorder","channel",e),d("reorder","bulkRankDto",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},setPaymentMethodPositions:async(r,e,s,t={})=>{d("setPaymentMethodPositions","businessId",r),d("setPaymentMethodPositions","channel",e),d("setPaymentMethodPositions","paymentMethodPositionsDto",s);let n="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/positions".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},c={};u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updatePaymentMethodOption:async(r,e,s,t,n={})=>{d("updatePaymentMethodOption","businessId",r),d("updatePaymentMethodOption","channel",e),d("updatePaymentMethodOption","id",s),d("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}}}},L=function(a){let r=ks(a);return{async changePaymentMethodGiftCardLogin(e,s,t,n,o){let i=await r.changePaymentMethodGiftCardLogin(e,s,t,n,o);return h(i,P,p,a)},async changePaymentMethodOption(e,s,t,n,o){let i=await r.changePaymentMethodOption(e,s,t,n,o);return h(i,P,p,a)},async createPaymentMethod(e,s,t,n){let o=await r.createPaymentMethod(e,s,t,n);return h(o,P,p,a)},async deletePaymentMethodOption(e,s,t,n){let o=await r.deletePaymentMethodOption(e,s,t,n);return h(o,P,p,a)},async getCatalog(e,s,t,n){let o=await r.getCatalog(e,s,t,n);return h(o,P,p,a)},async getPaymentMethods(e,s,t,n){let o=await r.getPaymentMethods(e,s,t,n);return h(o,P,p,a)},async getTypes(e){let s=await r.getTypes(e);return h(s,P,p,a)},async reorder(e,s,t,n){let o=await r.reorder(e,s,t,n);return h(o,P,p,a)},async setPaymentMethodPositions(e,s,t,n){let o=await r.setPaymentMethodPositions(e,s,t,n);return h(o,P,p,a)},async updatePaymentMethodOption(e,s,t,n,o){let i=await r.updatePaymentMethodOption(e,s,t,n,o);return h(i,P,p,a)}}},ri=function(a,r,e){let s=L(a);return{changePaymentMethodGiftCardLogin(t,n,o,i,l){return s.changePaymentMethodGiftCardLogin(t,n,o,i,l).then(u=>u(e,r))},changePaymentMethodOption(t,n,o,i,l){return s.changePaymentMethodOption(t,n,o,i,l).then(u=>u(e,r))},createPaymentMethod(t,n,o,i){return s.createPaymentMethod(t,n,o,i).then(l=>l(e,r))},deletePaymentMethodOption(t,n,o,i){return s.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,r))},getCatalog(t,n,o,i){return s.getCatalog(t,n,o,i).then(l=>l(e,r))},getPaymentMethods(t,n,o,i){return s.getPaymentMethods(t,n,o,i).then(l=>l(e,r))},getTypes(t){return s.getTypes(t).then(n=>n(e,r))},reorder(t,n,o,i){return s.reorder(t,n,o,i).then(l=>l(e,r))},setPaymentMethodPositions(t,n,o,i){return s.setPaymentMethodPositions(t,n,o,i).then(l=>l(e,r))},updatePaymentMethodOption(t,n,o,i,l){return s.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,r))}}},ht=class extends v{changePaymentMethodGiftCardLogin(r,e,s,t,n){return L(this.configuration).changePaymentMethodGiftCardLogin(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}changePaymentMethodOption(r,e,s,t,n){return L(this.configuration).changePaymentMethodOption(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}createPaymentMethod(r,e,s,t){return L(this.configuration).createPaymentMethod(r,e,s,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(r,e,s,t){return L(this.configuration).deletePaymentMethodOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}getCatalog(r,e,s,t){return L(this.configuration).getCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getPaymentMethods(r,e,s,t){return L(this.configuration).getPaymentMethods(r,e,s,t).then(n=>n(this.axios,this.basePath))}getTypes(r){return L(this.configuration).getTypes(r).then(e=>e(this.axios,this.basePath))}reorder(r,e,s,t){return L(this.configuration).reorder(r,e,s,t).then(n=>n(this.axios,this.basePath))}setPaymentMethodPositions(r,e,s,t){return L(this.configuration).setPaymentMethodPositions(r,e,s,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(r,e,s,t,n){return L(this.configuration).updatePaymentMethodOption(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},Ms=function(a){return{cancelSession:async(r,e={})=>{d("cancelSession","clientToken",r);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOrderSettlementStatus:async(r,e,s,t={})=>{d("getOrderSettlementStatus","businessId",r),d("getOrderSettlementStatus","orderId",e);let n="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},getPaymentSession:async(r,e={})=>{d("getPaymentSession","clientToken",r);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPaymentSessionAnalytics:async(r,e,s,t,n={})=>{d("getPaymentSessionAnalytics","businessId",r),d("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},c={},b={};r!==void 0&&(b.businessId=r),e!==void 0&&(b.timeSpan=e),s!==void 0&&(b.start=s),t!==void 0&&(b.end=t),y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},{url:g(i),options:u}},getPaymentSessionCurrency:async(r,e={})=>{d("getPaymentSessionCurrency","sessionId",r);let s="/api/v1/payment-session/currency/{sessionId}".replace("{sessionId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},initiateEpassiSession:async(r,e,s,t={})=>{d("initiateEpassiSession","xEpassiQrCode",r),d("initiateEpassiSession","initiateEpassiSessionDto",e);let n="/api/v1/payment-session/epassi/initiate",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};r!=null&&(u["X-Epassi-Qr-Code"]=String(r)),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(e,l,a),{url:g(o),options:l}},initiateNetsSession:async(r,e,s={})=>{d("initiateNetsSession","initiateNetsSessionDto",r);let t="/api/v1/payment-session/nets/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},initiateVivaA2aSession:async(r,e={})=>{d("initiateVivaA2aSession","initiateVivaA2aSessionDto",r);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},initiateVivaSession:async(r,e,s={})=>{d("initiateVivaSession","initiateVivaSessionDto",r);let t="/api/v1/payment-session/viva/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},initiateWorldlineSession:async(r,e,s={})=>{d("initiateWorldlineSession","initiateWorldlineSessionDto",r);let t="/api/v1/payment-session/worldline/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},paymentSessionGetChargeStatus:async(r,e={})=>{d("paymentSessionGetChargeStatus","chargeId",r);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},paymentSessionRegisterChargeMapping:async(r,e={})=>{d("paymentSessionRegisterChargeMapping","registerChargeMappingDto",r);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},pollEpassiSession:async(r,e={})=>{d("pollEpassiSession","epassiSessionReferenceDto",r);let s="/api/v1/payment-session/epassi/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},pollVivaSession:async(r,e={})=>{d("pollVivaSession","pollVivaSessionDto",r);let s="/api/v1/payment-session/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},pollWorldlineSession:async(r,e={})=>{d("pollWorldlineSession","pollWorldlineSessionDto",r);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},recordManualPayment:async(r,e,s={})=>{d("recordManualPayment","createManualSessionDto",r);let t="/api/v1/payment-session/manual",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},refundEpassiSession:async(r,e={})=>{d("refundEpassiSession","epassiSessionReferenceDto",r);let s="/api/v1/payment-session/epassi/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},refundNetsSession:async(r,e={})=>{d("refundNetsSession","reverseSessionDto",r);let s="/api/v1/payment-session/nets/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},refundVivaSession:async(r,e={})=>{d("refundVivaSession","reverseSessionDto",r);let s="/api/v1/payment-session/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},refundWorldlineSession:async(r,e={})=>{d("refundWorldlineSession","reverseSessionDto",r);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},retryWorldlineReversal:async(r,e={})=>{d("retryWorldlineReversal","retryWorldlineReversalDto",r);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},revertNetsSession:async(r,e={})=>{d("revertNetsSession","reverseSessionDto",r);let s="/api/v1/payment-session/nets/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},revertVivaSession:async(r,e={})=>{d("revertVivaSession","reverseSessionDto",r);let s="/api/v1/payment-session/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},revertWorldlineSession:async(r,e={})=>{d("revertWorldlineSession","reverseSessionDto",r);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},voidManualPayment:async(r,e={})=>{d("voidManualPayment","voidManualSessionDto",r);let s="/api/v1/payment-session/void",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},E=function(a){let r=Ms(a);return{async cancelSession(e,s){let t=await r.cancelSession(e,s);return h(t,P,p,a)},async getOrderSettlementStatus(e,s,t,n){let o=await r.getOrderSettlementStatus(e,s,t,n);return h(o,P,p,a)},async getPaymentSession(e,s){let t=await r.getPaymentSession(e,s);return h(t,P,p,a)},async getPaymentSessionAnalytics(e,s,t,n,o){let i=await r.getPaymentSessionAnalytics(e,s,t,n,o);return h(i,P,p,a)},async getPaymentSessionCurrency(e,s){let t=await r.getPaymentSessionCurrency(e,s);return h(t,P,p,a)},async initiateEpassiSession(e,s,t,n){let o=await r.initiateEpassiSession(e,s,t,n);return h(o,P,p,a)},async initiateNetsSession(e,s,t){let n=await r.initiateNetsSession(e,s,t);return h(n,P,p,a)},async initiateVivaA2aSession(e,s){let t=await r.initiateVivaA2aSession(e,s);return h(t,P,p,a)},async initiateVivaSession(e,s,t){let n=await r.initiateVivaSession(e,s,t);return h(n,P,p,a)},async initiateWorldlineSession(e,s,t){let n=await r.initiateWorldlineSession(e,s,t);return h(n,P,p,a)},async paymentSessionGetChargeStatus(e,s){let t=await r.paymentSessionGetChargeStatus(e,s);return h(t,P,p,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await r.paymentSessionRegisterChargeMapping(e,s);return h(t,P,p,a)},async pollEpassiSession(e,s){let t=await r.pollEpassiSession(e,s);return h(t,P,p,a)},async pollVivaSession(e,s){let t=await r.pollVivaSession(e,s);return h(t,P,p,a)},async pollWorldlineSession(e,s){let t=await r.pollWorldlineSession(e,s);return h(t,P,p,a)},async recordManualPayment(e,s,t){let n=await r.recordManualPayment(e,s,t);return h(n,P,p,a)},async refundEpassiSession(e,s){let t=await r.refundEpassiSession(e,s);return h(t,P,p,a)},async refundNetsSession(e,s){let t=await r.refundNetsSession(e,s);return h(t,P,p,a)},async refundVivaSession(e,s){let t=await r.refundVivaSession(e,s);return h(t,P,p,a)},async refundWorldlineSession(e,s){let t=await r.refundWorldlineSession(e,s);return h(t,P,p,a)},async retryWorldlineReversal(e,s){let t=await r.retryWorldlineReversal(e,s);return h(t,P,p,a)},async revertNetsSession(e,s){let t=await r.revertNetsSession(e,s);return h(t,P,p,a)},async revertVivaSession(e,s){let t=await r.revertVivaSession(e,s);return h(t,P,p,a)},async revertWorldlineSession(e,s){let t=await r.revertWorldlineSession(e,s);return h(t,P,p,a)},async voidManualPayment(e,s){let t=await r.voidManualPayment(e,s);return h(t,P,p,a)}}},ni=function(a,r,e){let s=E(a);return{cancelSession(t,n){return s.cancelSession(t,n).then(o=>o(e,r))},getOrderSettlementStatus(t,n,o,i){return s.getOrderSettlementStatus(t,n,o,i).then(l=>l(e,r))},getPaymentSession(t,n){return s.getPaymentSession(t,n).then(o=>o(e,r))},getPaymentSessionAnalytics(t,n,o,i,l){return s.getPaymentSessionAnalytics(t,n,o,i,l).then(u=>u(e,r))},getPaymentSessionCurrency(t,n){return s.getPaymentSessionCurrency(t,n).then(o=>o(e,r))},initiateEpassiSession(t,n,o,i){return s.initiateEpassiSession(t,n,o,i).then(l=>l(e,r))},initiateNetsSession(t,n,o){return s.initiateNetsSession(t,n,o).then(i=>i(e,r))},initiateVivaA2aSession(t,n){return s.initiateVivaA2aSession(t,n).then(o=>o(e,r))},initiateVivaSession(t,n,o){return s.initiateVivaSession(t,n,o).then(i=>i(e,r))},initiateWorldlineSession(t,n,o){return s.initiateWorldlineSession(t,n,o).then(i=>i(e,r))},paymentSessionGetChargeStatus(t,n){return s.paymentSessionGetChargeStatus(t,n).then(o=>o(e,r))},paymentSessionRegisterChargeMapping(t,n){return s.paymentSessionRegisterChargeMapping(t,n).then(o=>o(e,r))},pollEpassiSession(t,n){return s.pollEpassiSession(t,n).then(o=>o(e,r))},pollVivaSession(t,n){return s.pollVivaSession(t,n).then(o=>o(e,r))},pollWorldlineSession(t,n){return s.pollWorldlineSession(t,n).then(o=>o(e,r))},recordManualPayment(t,n,o){return s.recordManualPayment(t,n,o).then(i=>i(e,r))},refundEpassiSession(t,n){return s.refundEpassiSession(t,n).then(o=>o(e,r))},refundNetsSession(t,n){return s.refundNetsSession(t,n).then(o=>o(e,r))},refundVivaSession(t,n){return s.refundVivaSession(t,n).then(o=>o(e,r))},refundWorldlineSession(t,n){return s.refundWorldlineSession(t,n).then(o=>o(e,r))},retryWorldlineReversal(t,n){return s.retryWorldlineReversal(t,n).then(o=>o(e,r))},revertNetsSession(t,n){return s.revertNetsSession(t,n).then(o=>o(e,r))},revertVivaSession(t,n){return s.revertVivaSession(t,n).then(o=>o(e,r))},revertWorldlineSession(t,n){return s.revertWorldlineSession(t,n).then(o=>o(e,r))},voidManualPayment(t,n){return s.voidManualPayment(t,n).then(o=>o(e,r))}}},Pt=class extends v{cancelSession(r,e){return E(this.configuration).cancelSession(r,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(r,e,s,t){return E(this.configuration).getOrderSettlementStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getPaymentSession(r,e){return E(this.configuration).getPaymentSession(r,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(r,e,s,t,n){return E(this.configuration).getPaymentSessionAnalytics(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getPaymentSessionCurrency(r,e){return E(this.configuration).getPaymentSessionCurrency(r,e).then(s=>s(this.axios,this.basePath))}initiateEpassiSession(r,e,s,t){return E(this.configuration).initiateEpassiSession(r,e,s,t).then(n=>n(this.axios,this.basePath))}initiateNetsSession(r,e,s){return E(this.configuration).initiateNetsSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(r,e){return E(this.configuration).initiateVivaA2aSession(r,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(r,e,s){return E(this.configuration).initiateVivaSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(r,e,s){return E(this.configuration).initiateWorldlineSession(r,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(r,e){return E(this.configuration).paymentSessionGetChargeStatus(r,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(r,e){return E(this.configuration).paymentSessionRegisterChargeMapping(r,e).then(s=>s(this.axios,this.basePath))}pollEpassiSession(r,e){return E(this.configuration).pollEpassiSession(r,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(r,e){return E(this.configuration).pollVivaSession(r,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(r,e){return E(this.configuration).pollWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(r,e,s){return E(this.configuration).recordManualPayment(r,e,s).then(t=>t(this.axios,this.basePath))}refundEpassiSession(r,e){return E(this.configuration).refundEpassiSession(r,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(r,e){return E(this.configuration).refundNetsSession(r,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(r,e){return E(this.configuration).refundVivaSession(r,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(r,e){return E(this.configuration).refundWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(r,e){return E(this.configuration).retryWorldlineReversal(r,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(r,e){return E(this.configuration).revertNetsSession(r,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(r,e){return E(this.configuration).revertVivaSession(r,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(r,e){return E(this.configuration).revertWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(r,e){return E(this.configuration).voidManualPayment(r,e).then(s=>s(this.axios,this.basePath))}},Bs=function(a){return{deletePrinterByAddress:async(r,e,s={})=>{d("deletePrinterByAddress","businessId",r),d("deletePrinterByAddress","address",e);let t="/api/v1/printer",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.address=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},upsertPrinter:async(r,e={})=>{d("upsertPrinter","upsertPrinterDto",r);let s="/api/v1/printer",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Ie=function(a){let r=Bs(a);return{async deletePrinterByAddress(e,s,t){let n=await r.deletePrinterByAddress(e,s,t);return h(n,P,p,a)},async upsertPrinter(e,s){let t=await r.upsertPrinter(e,s);return h(t,P,p,a)}}},oi=function(a,r,e){let s=Ie(a);return{deletePrinterByAddress(t,n,o){return s.deletePrinterByAddress(t,n,o).then(i=>i(e,r))},upsertPrinter(t,n){return s.upsertPrinter(t,n).then(o=>o(e,r))}}},bt=class extends v{deletePrinterByAddress(r,e,s){return Ie(this.configuration).deletePrinterByAddress(r,e,s).then(t=>t(this.axios,this.basePath))}upsertPrinter(r,e){return Ie(this.configuration).upsertPrinter(r,e).then(s=>s(this.axios,this.basePath))}},ws=function(a){return{getChannelInventoryV2:async(r,e,s,t={})=>{d("getChannelInventoryV2","businessId",r),d("getChannelInventoryV2","categoryId",e),d("getChannelInventoryV2","productId",s);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};y(o,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},updateChannelInventoryV2:async(r,e,s,t,n={})=>{d("updateChannelInventoryV2","businessId",r),d("updateChannelInventoryV2","categoryId",e),d("updateChannelInventoryV2","productId",s),d("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},updateProductSkuV2:async(r,e,s,t,n={})=>{d("updateProductSkuV2","businessId",r),d("updateProductSkuV2","categoryId",e),d("updateProductSkuV2","productId",s),d("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},updateProductSkusV2:async(r,e,s,t,n={})=>{d("updateProductSkusV2","businessId",r),d("updateProductSkusV2","categoryId",e),d("updateProductSkusV2","productId",s),d("updateProductSkusV2","updateProductSkusDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/skus".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}}}},ae=function(a){let r=ws(a);return{async getChannelInventoryV2(e,s,t,n){let o=await r.getChannelInventoryV2(e,s,t,n);return h(o,P,p,a)},async updateChannelInventoryV2(e,s,t,n,o){let i=await r.updateChannelInventoryV2(e,s,t,n,o);return h(i,P,p,a)},async updateProductSkuV2(e,s,t,n,o){let i=await r.updateProductSkuV2(e,s,t,n,o);return h(i,P,p,a)},async updateProductSkusV2(e,s,t,n,o){let i=await r.updateProductSkusV2(e,s,t,n,o);return h(i,P,p,a)}}},ai=function(a,r,e){let s=ae(a);return{getChannelInventoryV2(t,n,o,i){return s.getChannelInventoryV2(t,n,o,i).then(l=>l(e,r))},updateChannelInventoryV2(t,n,o,i,l){return s.updateChannelInventoryV2(t,n,o,i,l).then(u=>u(e,r))},updateProductSkuV2(t,n,o,i,l){return s.updateProductSkuV2(t,n,o,i,l).then(u=>u(e,r))},updateProductSkusV2(t,n,o,i,l){return s.updateProductSkusV2(t,n,o,i,l).then(u=>u(e,r))}}},At=class extends v{getChannelInventoryV2(r,e,s,t){return ae(this.configuration).getChannelInventoryV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(r,e,s,t,n){return ae(this.configuration).updateChannelInventoryV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(r,e,s,t,n){return ae(this.configuration).updateProductSkuV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkusV2(r,e,s,t,n){return ae(this.configuration).updateProductSkusV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},Fs=function(a){return{listAutomaticPromotions:async(r,e={})=>{d("listAutomaticPromotions","businessId",r);let s="/api/v2/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listKioskAutomaticPromotions:async(r,e={})=>{d("listKioskAutomaticPromotions","businessId",r);let s="/api/v2/kiosk/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},priceBasketWithPromotions:async(r,e,s={})=>{d("priceBasketWithPromotions","businessId",r),d("priceBasketWithPromotions","priceBasketDto",e);let t="/api/v2/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},priceKioskBasketWithPromotions:async(r,e,s={})=>{d("priceKioskBasketWithPromotions","businessId",r),d("priceKioskBasketWithPromotions","priceBasketDto",e);let t="/api/v2/kiosk/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},ie=function(a){let r=Fs(a);return{async listAutomaticPromotions(e,s){let t=await r.listAutomaticPromotions(e,s);return h(t,P,p,a)},async listKioskAutomaticPromotions(e,s){let t=await r.listKioskAutomaticPromotions(e,s);return h(t,P,p,a)},async priceBasketWithPromotions(e,s,t){let n=await r.priceBasketWithPromotions(e,s,t);return h(n,P,p,a)},async priceKioskBasketWithPromotions(e,s,t){let n=await r.priceKioskBasketWithPromotions(e,s,t);return h(n,P,p,a)}}},ii=function(a,r,e){let s=ie(a);return{listAutomaticPromotions(t,n){return s.listAutomaticPromotions(t,n).then(o=>o(e,r))},listKioskAutomaticPromotions(t,n){return s.listKioskAutomaticPromotions(t,n).then(o=>o(e,r))},priceBasketWithPromotions(t,n,o){return s.priceBasketWithPromotions(t,n,o).then(i=>i(e,r))},priceKioskBasketWithPromotions(t,n,o){return s.priceKioskBasketWithPromotions(t,n,o).then(i=>i(e,r))}}},Rt=class extends v{listAutomaticPromotions(r,e){return ie(this.configuration).listAutomaticPromotions(r,e).then(s=>s(this.axios,this.basePath))}listKioskAutomaticPromotions(r,e){return ie(this.configuration).listKioskAutomaticPromotions(r,e).then(s=>s(this.axios,this.basePath))}priceBasketWithPromotions(r,e,s){return ie(this.configuration).priceBasketWithPromotions(r,e,s).then(t=>t(this.axios,this.basePath))}priceKioskBasketWithPromotions(r,e,s){return ie(this.configuration).priceKioskBasketWithPromotions(r,e,s).then(t=>t(this.axios,this.basePath))}},Ls=function(a){return{createOnboardingSession:async(r,e,s={})=>{d("createOnboardingSession","channel",r),d("createOnboardingSession","createOnboardingSessionDto",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},disconnectOnboarding:async(r,e,s={})=>{d("disconnectOnboarding","channel",r),d("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};y(n,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getMenuIntegrations:async(r,e={})=>{d("getMenuIntegrations","businessId",r);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOnboardingStatus:async(r,e,s={})=>{d("getOnboardingStatus","channel",r),d("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},listOnboardingStores:async(r,e,s={})=>{d("listOnboardingStores","channel",r),d("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(r))).replace("{state}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},provisionOnboardingStore:async(r,e,s,t={})=>{d("provisionOnboardingStore","channel",r),d("provisionOnboardingStore","state",e),d("provisionOnboardingStore","provisionOnboardingStoreDto",s);let n="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(r))).replace("{state}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updateProviderSettings:async(r,e,s={})=>{d("updateProviderSettings","businessId",r),d("updateProviderSettings","updateProviderSettingsDto",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},updateVenueProviders:async(r,e,s={})=>{d("updateVenueProviders","businessId",r),d("updateVenueProviders","updateVenueProvidersDto",e);let t="/api/v2/venues/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},G=function(a){let r=Ls(a);return{async createOnboardingSession(e,s,t){let n=await r.createOnboardingSession(e,s,t);return h(n,P,p,a)},async disconnectOnboarding(e,s,t){let n=await r.disconnectOnboarding(e,s,t);return h(n,P,p,a)},async getMenuIntegrations(e,s){let t=await r.getMenuIntegrations(e,s);return h(t,P,p,a)},async getOnboardingStatus(e,s,t){let n=await r.getOnboardingStatus(e,s,t);return h(n,P,p,a)},async listOnboardingStores(e,s,t){let n=await r.listOnboardingStores(e,s,t);return h(n,P,p,a)},async provisionOnboardingStore(e,s,t,n){let o=await r.provisionOnboardingStore(e,s,t,n);return h(o,P,p,a)},async updateProviderSettings(e,s,t){let n=await r.updateProviderSettings(e,s,t);return h(n,P,p,a)},async updateVenueProviders(e,s,t){let n=await r.updateVenueProviders(e,s,t);return h(n,P,p,a)}}},li=function(a,r,e){let s=G(a);return{createOnboardingSession(t,n,o){return s.createOnboardingSession(t,n,o).then(i=>i(e,r))},disconnectOnboarding(t,n,o){return s.disconnectOnboarding(t,n,o).then(i=>i(e,r))},getMenuIntegrations(t,n){return s.getMenuIntegrations(t,n).then(o=>o(e,r))},getOnboardingStatus(t,n,o){return s.getOnboardingStatus(t,n,o).then(i=>i(e,r))},listOnboardingStores(t,n,o){return s.listOnboardingStores(t,n,o).then(i=>i(e,r))},provisionOnboardingStore(t,n,o,i){return s.provisionOnboardingStore(t,n,o,i).then(l=>l(e,r))},updateProviderSettings(t,n,o){return s.updateProviderSettings(t,n,o).then(i=>i(e,r))},updateVenueProviders(t,n,o){return s.updateVenueProviders(t,n,o).then(i=>i(e,r))}}},ft=class extends v{createOnboardingSession(r,e,s){return G(this.configuration).createOnboardingSession(r,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(r,e,s){return G(this.configuration).disconnectOnboarding(r,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(r,e){return G(this.configuration).getMenuIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(r,e,s){return G(this.configuration).getOnboardingStatus(r,e,s).then(t=>t(this.axios,this.basePath))}listOnboardingStores(r,e,s){return G(this.configuration).listOnboardingStores(r,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(r,e,s,t){return G(this.configuration).provisionOnboardingStore(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateProviderSettings(r,e,s){return G(this.configuration).updateProviderSettings(r,e,s).then(t=>t(this.axios,this.basePath))}updateVenueProviders(r,e,s){return G(this.configuration).updateVenueProviders(r,e,s).then(t=>t(this.axios,this.basePath))}},_s=function(a){return{receiptFooterGetConfig:async(r,e,s={})=>{d("receiptFooterGetConfig","businessId",r),d("receiptFooterGetConfig","xAppX",e);let t="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},receiptFooterUpsertConfig:async(r,e,s,t={})=>{d("receiptFooterUpsertConfig","businessId",r),d("receiptFooterUpsertConfig","xAppX",e),d("receiptFooterUpsertConfig","upsertReceiptFooterDto",s);let n="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},c={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},ve=function(a){let r=_s(a);return{async receiptFooterGetConfig(e,s,t){let n=await r.receiptFooterGetConfig(e,s,t);return h(n,P,p,a)},async receiptFooterUpsertConfig(e,s,t,n){let o=await r.receiptFooterUpsertConfig(e,s,t,n);return h(o,P,p,a)}}},ui=function(a,r,e){let s=ve(a);return{receiptFooterGetConfig(t,n,o){return s.receiptFooterGetConfig(t,n,o).then(i=>i(e,r))},receiptFooterUpsertConfig(t,n,o,i){return s.receiptFooterUpsertConfig(t,n,o,i).then(l=>l(e,r))}}},xt=class extends v{receiptFooterGetConfig(r,e,s){return ve(this.configuration).receiptFooterGetConfig(r,e,s).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(r,e,s,t){return ve(this.configuration).receiptFooterUpsertConfig(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Ns=function(a){return{cancelPlanV2:async(r,e,s,t={})=>{d("cancelPlanV2","businessId",r),d("cancelPlanV2","orderId",e),d("cancelPlanV2","refundId",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},createRefundPlanV2:async(r,e,s,t={})=>{d("createRefundPlanV2","businessId",r),d("createRefundPlanV2","orderId",e),d("createRefundPlanV2","createRefundPlanDto",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},getRefundPlanV2:async(r,e,s,t={})=>{d("getRefundPlanV2","businessId",r),d("getRefundPlanV2","orderId",e),d("getRefundPlanV2","status",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};s!==void 0&&(c.status=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},recordRefundPlanV2:async(r,e,s,t,n={})=>{d("recordRefundPlanV2","businessId",r),d("recordRefundPlanV2","orderId",e),d("recordRefundPlanV2","refundId",s),d("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},refundOnlineOrder:async(r,e,s,t={})=>{d("refundOnlineOrder","businessId",r),d("refundOnlineOrder","orderId",e),d("refundOnlineOrder","provider",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};s!==void 0&&(c.provider=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},resolveRefundChoiceV2:async(r,e,s,t,n={})=>{d("resolveRefundChoiceV2","businessId",r),d("resolveRefundChoiceV2","orderId",e),d("resolveRefundChoiceV2","refundId",s),d("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},c={},b={};c["Content-Type"]="application/json",y(i,b);let R=l&&l.headers?l.headers:{};return u.headers={...c,...R,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},startProcessPlanV2:async(r,e,s,t={})=>{d("startProcessPlanV2","businessId",r),d("startProcessPlanV2","orderId",e),d("startProcessPlanV2","refundId",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}}}},H=function(a){let r=Ns(a);return{async cancelPlanV2(e,s,t,n){let o=await r.cancelPlanV2(e,s,t,n);return h(o,P,p,a)},async createRefundPlanV2(e,s,t,n){let o=await r.createRefundPlanV2(e,s,t,n);return h(o,P,p,a)},async getRefundPlanV2(e,s,t,n){let o=await r.getRefundPlanV2(e,s,t,n);return h(o,P,p,a)},async recordRefundPlanV2(e,s,t,n,o){let i=await r.recordRefundPlanV2(e,s,t,n,o);return h(i,P,p,a)},async refundOnlineOrder(e,s,t,n){let o=await r.refundOnlineOrder(e,s,t,n);return h(o,P,p,a)},async resolveRefundChoiceV2(e,s,t,n,o){let i=await r.resolveRefundChoiceV2(e,s,t,n,o);return h(i,P,p,a)},async startProcessPlanV2(e,s,t,n){let o=await r.startProcessPlanV2(e,s,t,n);return h(o,P,p,a)}}},ci=function(a,r,e){let s=H(a);return{cancelPlanV2(t,n,o,i){return s.cancelPlanV2(t,n,o,i).then(l=>l(e,r))},createRefundPlanV2(t,n,o,i){return s.createRefundPlanV2(t,n,o,i).then(l=>l(e,r))},getRefundPlanV2(t,n,o,i){return s.getRefundPlanV2(t,n,o,i).then(l=>l(e,r))},recordRefundPlanV2(t,n,o,i,l){return s.recordRefundPlanV2(t,n,o,i,l).then(u=>u(e,r))},refundOnlineOrder(t,n,o,i){return s.refundOnlineOrder(t,n,o,i).then(l=>l(e,r))},resolveRefundChoiceV2(t,n,o,i,l){return s.resolveRefundChoiceV2(t,n,o,i,l).then(u=>u(e,r))},startProcessPlanV2(t,n,o,i){return s.startProcessPlanV2(t,n,o,i).then(l=>l(e,r))}}},Dt=class extends v{cancelPlanV2(r,e,s,t){return H(this.configuration).cancelPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}createRefundPlanV2(r,e,s,t){return H(this.configuration).createRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getRefundPlanV2(r,e,s,t){return H(this.configuration).getRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}recordRefundPlanV2(r,e,s,t,n){return H(this.configuration).recordRefundPlanV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(r,e,s,t){return H(this.configuration).refundOnlineOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoiceV2(r,e,s,t,n){return H(this.configuration).resolveRefundChoiceV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlanV2(r,e,s,t){return H(this.configuration).startProcessPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Ws=function(a){return{getBoughtTogether:async(r,e,s,t,n,o,i,l,u,c,b={})=>{d("getBoughtTogether","businessIds",r);let R="/api/v6/report/sales/bought-together",D=new URL(R,m),x;a&&(x=a.baseOptions);let C={method:"GET",...x,...b},O={},V={};await f(O,a),e!==void 0&&(V.timeSpan=e),s!==void 0&&(V.start=s),t!==void 0&&(V.end=t),r&&(V.businessIds=r),n!==void 0&&(V.timezone=n),o&&(V.apps=o),i!==void 0&&(V.breakdown=i),l!==void 0&&(V.language=l),u!==void 0&&(V.itemKey=u),c!==void 0&&(V.limit=c),y(D,V);let I=x&&x.headers?x.headers:{};return C.headers={...O,...I,...b.headers},{url:g(D),options:C}},getEndOfDayReportFile:async(r,e,s,t,n,o,i,l={})=>{d("getEndOfDayReportFile","businessId",r);let u="/api/v6/report/end-of-day/file",c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"GET",...b,...l},D={},x={};await f(D,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r!==void 0&&(x.businessId=r),n!==void 0&&(x.timezone=n),o!==void 0&&(x.provider=o),i!==void 0&&(x.language=i),y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},{url:g(c),options:R}},getEndOfDayReportV5:async(r,e,s,t,n,o,i={})=>{d("getEndOfDayReportV5","businessIds",r);let l="/api/v5/report/end-of-day",u=new URL(l,m),c;a&&(c=a.baseOptions);let b={method:"GET",...c,...i},R={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.timezone=n),o!==void 0&&(D.provider=o),y(u,D);let x=c&&c.headers?c.headers:{};return b.headers={...R,...x,...i.headers},{url:g(u),options:b}},getSalesReport:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x={})=>{d("getSalesReport","businessIds",r);let C="/api/v6/report/sales",O=new URL(C,m),V;a&&(V=a.baseOptions);let I={method:"GET",...V,...x},q={},T={};await f(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),r&&(T.businessIds=r),n!==void 0&&(T.timezone=n),o&&(T.apps=o),i&&(T.parts=i),l!==void 0&&(T.breakdown=l),u!==void 0&&(T.language=u),c!==void 0&&(T.compareStart=c),b!==void 0&&(T.compareEnd=b),R!==void 0&&(T.compareSameTime=R),D!==void 0&&(T.baseline=D),y(O,T);let S=V&&V.headers?V.headers:{};return I.headers={...q,...S,...x.headers},{url:g(O),options:I}},getSalesReportFile:async(r,e,s,t,n,o,i,l={})=>{d("getSalesReportFile","businessId",r);let u="/api/v6/report/sales/file",c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"GET",...b,...l},D={},x={};await f(D,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r!==void 0&&(x.businessId=r),n!==void 0&&(x.timezone=n),o!==void 0&&(x.language=o),i!==void 0&&(x.format=i),y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},{url:g(c),options:R}},getSalesReportHours:async(r,e,s,t,n,o,i,l,u,c={})=>{d("getSalesReportHours","businessIds",r);let b="/api/v6/report/sales/hours",R=new URL(b,m),D;a&&(D=a.baseOptions);let x={method:"GET",...D,...c},C={},O={};await f(C,a),e!==void 0&&(O.timeSpan=e),s!==void 0&&(O.start=s),t!==void 0&&(O.end=t),r&&(O.businessIds=r),n!==void 0&&(O.timezone=n),o&&(O.apps=o),i!==void 0&&(O.breakdown=i),l!==void 0&&(O.language=l),u!==void 0&&(O.isoWeekday=u),y(R,O);let V=D&&D.headers?D.headers:{};return x.headers={...C,...V,...c.headers},{url:g(R),options:x}},getSalesReportOrderTypes:async(r,e,s,t,n,o,i,l,u={})=>{d("getSalesReportOrderTypes","businessIds",r);let c="/api/v6/report/sales/order-types",b=new URL(c,m),R;a&&(R=a.baseOptions);let D={method:"GET",...R,...u},x={},C={};await f(x,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),r&&(C.businessIds=r),n!==void 0&&(C.timezone=n),o&&(C.apps=o),i!==void 0&&(C.breakdown=i),l!==void 0&&(C.language=l),y(b,C);let O=R&&R.headers?R.headers:{};return D.headers={...x,...O,...u.headers},{url:g(b),options:D}},getShortSalesReport:async(r,e,s,t,n,o,i,l,u,c,b,R,D,x={})=>{d("getShortSalesReport","businessIds",r);let C="/api/v6/report/sales/short",O=new URL(C,m),V;a&&(V=a.baseOptions);let I={method:"GET",...V,...x},q={},T={};await f(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),r&&(T.businessIds=r),n!==void 0&&(T.timezone=n),o&&(T.apps=o),i&&(T.parts=i),l!==void 0&&(T.breakdown=l),u!==void 0&&(T.language=u),c!==void 0&&(T.compareStart=c),b!==void 0&&(T.compareEnd=b),R!==void 0&&(T.compareSameTime=R),D!==void 0&&(T.baseline=D),y(O,T);let S=V&&V.headers?V.headers:{};return I.headers={...q,...S,...x.headers},{url:g(O),options:I}},sendReportEmailV5:async(r,e,s,t,n,o,i,l={})=>{d("sendReportEmailV5","businessIds",r),d("sendReportEmailV5","timezone",e),d("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"POST",...b,...l},D={},x={};t!==void 0&&(x.timeSpan=t),n!==void 0&&(x.start=n),o!==void 0&&(x.end=o),r&&(x.businessIds=r),e!==void 0&&(x.timezone=e),i!==void 0&&(x.provider=i),D["Content-Type"]="application/json",y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},R.data=A(s,R,a),{url:g(c),options:R}}}},W=function(a){let r=Ws(a);return{async getBoughtTogether(e,s,t,n,o,i,l,u,c,b,R){let D=await r.getBoughtTogether(e,s,t,n,o,i,l,u,c,b,R);return h(D,P,p,a)},async getEndOfDayReportFile(e,s,t,n,o,i,l,u){let c=await r.getEndOfDayReportFile(e,s,t,n,o,i,l,u);return h(c,P,p,a)},async getEndOfDayReportV5(e,s,t,n,o,i,l){let u=await r.getEndOfDayReportV5(e,s,t,n,o,i,l);return h(u,P,p,a)},async getSalesReport(e,s,t,n,o,i,l,u,c,b,R,D,x,C){let O=await r.getSalesReport(e,s,t,n,o,i,l,u,c,b,R,D,x,C);return h(O,P,p,a)},async getSalesReportFile(e,s,t,n,o,i,l,u){let c=await r.getSalesReportFile(e,s,t,n,o,i,l,u);return h(c,P,p,a)},async getSalesReportHours(e,s,t,n,o,i,l,u,c,b){let R=await r.getSalesReportHours(e,s,t,n,o,i,l,u,c,b);return h(R,P,p,a)},async getSalesReportOrderTypes(e,s,t,n,o,i,l,u,c){let b=await r.getSalesReportOrderTypes(e,s,t,n,o,i,l,u,c);return h(b,P,p,a)},async getShortSalesReport(e,s,t,n,o,i,l,u,c,b,R,D,x,C){let O=await r.getShortSalesReport(e,s,t,n,o,i,l,u,c,b,R,D,x,C);return h(O,P,p,a)},async sendReportEmailV5(e,s,t,n,o,i,l,u){let c=await r.sendReportEmailV5(e,s,t,n,o,i,l,u);return h(c,P,p,a)}}},di=function(a,r,e){let s=W(a);return{getBoughtTogether(t,n,o,i,l,u,c,b,R,D,x){return s.getBoughtTogether(t,n,o,i,l,u,c,b,R,D,x).then(C=>C(e,r))},getEndOfDayReportFile(t,n,o,i,l,u,c,b){return s.getEndOfDayReportFile(t,n,o,i,l,u,c,b).then(R=>R(e,r))},getEndOfDayReportV5(t,n,o,i,l,u,c){return s.getEndOfDayReportV5(t,n,o,i,l,u,c).then(b=>b(e,r))},getSalesReport(t,n,o,i,l,u,c,b,R,D,x,C,O,V){return s.getSalesReport(t,n,o,i,l,u,c,b,R,D,x,C,O,V).then(I=>I(e,r))},getSalesReportFile(t,n,o,i,l,u,c,b){return s.getSalesReportFile(t,n,o,i,l,u,c,b).then(R=>R(e,r))},getSalesReportHours(t,n,o,i,l,u,c,b,R,D){return s.getSalesReportHours(t,n,o,i,l,u,c,b,R,D).then(x=>x(e,r))},getSalesReportOrderTypes(t,n,o,i,l,u,c,b,R){return s.getSalesReportOrderTypes(t,n,o,i,l,u,c,b,R).then(D=>D(e,r))},getShortSalesReport(t,n,o,i,l,u,c,b,R,D,x,C,O,V){return s.getShortSalesReport(t,n,o,i,l,u,c,b,R,D,x,C,O,V).then(I=>I(e,r))},sendReportEmailV5(t,n,o,i,l,u,c,b){return s.sendReportEmailV5(t,n,o,i,l,u,c,b).then(R=>R(e,r))}}},Ct=class extends v{getBoughtTogether(r,e,s,t,n,o,i,l,u,c,b){return W(this.configuration).getBoughtTogether(r,e,s,t,n,o,i,l,u,c,b).then(R=>R(this.axios,this.basePath))}getEndOfDayReportFile(r,e,s,t,n,o,i,l){return W(this.configuration).getEndOfDayReportFile(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getEndOfDayReportV5(r,e,s,t,n,o,i){return W(this.configuration).getEndOfDayReportV5(r,e,s,t,n,o,i).then(l=>l(this.axios,this.basePath))}getSalesReport(r,e,s,t,n,o,i,l,u,c,b,R,D,x){return W(this.configuration).getSalesReport(r,e,s,t,n,o,i,l,u,c,b,R,D,x).then(C=>C(this.axios,this.basePath))}getSalesReportFile(r,e,s,t,n,o,i,l){return W(this.configuration).getSalesReportFile(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getSalesReportHours(r,e,s,t,n,o,i,l,u,c){return W(this.configuration).getSalesReportHours(r,e,s,t,n,o,i,l,u,c).then(b=>b(this.axios,this.basePath))}getSalesReportOrderTypes(r,e,s,t,n,o,i,l,u){return W(this.configuration).getSalesReportOrderTypes(r,e,s,t,n,o,i,l,u).then(c=>c(this.axios,this.basePath))}getShortSalesReport(r,e,s,t,n,o,i,l,u,c,b,R,D,x){return W(this.configuration).getShortSalesReport(r,e,s,t,n,o,i,l,u,c,b,R,D,x).then(C=>C(this.axios,this.basePath))}sendReportEmailV5(r,e,s,t,n,o,i,l){return W(this.configuration).sendReportEmailV5(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},js=function(a){return{getEndOfDayReportForTill:async(r,e,s,t,n,o,i={})=>{d("getEndOfDayReportForTill","businessIds",r);let l="/api/v6/report/end-of-day",u=new URL(l,m),c;a&&(c=a.baseOptions);let b={method:"GET",...c,...i},R={},D={};await f(R,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.timezone=n),o!==void 0&&(D.provider=o),y(u,D);let x=c&&c.headers?c.headers:{};return b.headers={...R,...x,...i.headers},{url:g(u),options:b}},sendEndOfDayReportForTill:async(r,e,s,t,n,o,i,l={})=>{d("sendEndOfDayReportForTill","businessIds",r),d("sendEndOfDayReportForTill","sendReportEmailDto",e);let u="/api/v6/report/email",c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"POST",...b,...l},D={},x={};await f(D,a),s!==void 0&&(x.timeSpan=s),t!==void 0&&(x.start=t),n!==void 0&&(x.end=n),r&&(x.businessIds=r),o!==void 0&&(x.timezone=o),i!==void 0&&(x.provider=i),D["Content-Type"]="application/json",y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},R.data=A(e,R,a),{url:g(c),options:R}}}},Te=function(a){let r=js(a);return{async getEndOfDayReportForTill(e,s,t,n,o,i,l){let u=await r.getEndOfDayReportForTill(e,s,t,n,o,i,l);return h(u,P,p,a)},async sendEndOfDayReportForTill(e,s,t,n,o,i,l,u){let c=await r.sendEndOfDayReportForTill(e,s,t,n,o,i,l,u);return h(c,P,p,a)}}},pi=function(a,r,e){let s=Te(a);return{getEndOfDayReportForTill(t,n,o,i,l,u,c){return s.getEndOfDayReportForTill(t,n,o,i,l,u,c).then(b=>b(e,r))},sendEndOfDayReportForTill(t,n,o,i,l,u,c,b){return s.sendEndOfDayReportForTill(t,n,o,i,l,u,c,b).then(R=>R(e,r))}}},St=class extends v{getEndOfDayReportForTill(r,e,s,t,n,o,i){return Te(this.configuration).getEndOfDayReportForTill(r,e,s,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendEndOfDayReportForTill(r,e,s,t,n,o,i,l){return Te(this.configuration).sendEndOfDayReportForTill(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},Ks=function(a){return{changeResQOffer:async(r,e,s,t={})=>{d("changeResQOffer","businessId",r),d("changeResQOffer","offerId",e),d("changeResQOffer","changeResQOfferDto",s);let n="/api/v2/venues/{businessId}/resq/offers/{offerId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{offerId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},createResQOffer:async(r,e,s={})=>{d("createResQOffer","businessId",r),d("createResQOffer","createResQOfferDto",e);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},deactivateResQOffer:async(r,e,s={})=>{d("deactivateResQOffer","businessId",r),d("deactivateResQOffer","offerId",e);let t="/api/v2/venues/{businessId}/resq/offers/{offerId}/deactivate".replace("{businessId}",encodeURIComponent(String(r))).replace("{offerId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getResQOrder:async(r,e,s={})=>{d("getResQOrder","businessId",r),d("getResQOrder","orderId",e);let t="/api/v2/venues/{businessId}/resq/orders/{orderId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},listResQOffers:async(r,e,s={})=>{d("listResQOffers","businessId",r);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.page=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},listResQOrders:async(r,e,s={})=>{d("listResQOrders","businessId",r);let t="/api/v2/venues/{businessId}/resq/orders".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.page=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}}}},X=function(a){let r=Ks(a);return{async changeResQOffer(e,s,t,n){let o=await r.changeResQOffer(e,s,t,n);return h(o,P,p,a)},async createResQOffer(e,s,t){let n=await r.createResQOffer(e,s,t);return h(n,P,p,a)},async deactivateResQOffer(e,s,t){let n=await r.deactivateResQOffer(e,s,t);return h(n,P,p,a)},async getResQOrder(e,s,t){let n=await r.getResQOrder(e,s,t);return h(n,P,p,a)},async listResQOffers(e,s,t){let n=await r.listResQOffers(e,s,t);return h(n,P,p,a)},async listResQOrders(e,s,t){let n=await r.listResQOrders(e,s,t);return h(n,P,p,a)}}},mi=function(a,r,e){let s=X(a);return{changeResQOffer(t,n,o,i){return s.changeResQOffer(t,n,o,i).then(l=>l(e,r))},createResQOffer(t,n,o){return s.createResQOffer(t,n,o).then(i=>i(e,r))},deactivateResQOffer(t,n,o){return s.deactivateResQOffer(t,n,o).then(i=>i(e,r))},getResQOrder(t,n,o){return s.getResQOrder(t,n,o).then(i=>i(e,r))},listResQOffers(t,n,o){return s.listResQOffers(t,n,o).then(i=>i(e,r))},listResQOrders(t,n,o){return s.listResQOrders(t,n,o).then(i=>i(e,r))}}},Ot=class extends v{changeResQOffer(r,e,s,t){return X(this.configuration).changeResQOffer(r,e,s,t).then(n=>n(this.axios,this.basePath))}createResQOffer(r,e,s){return X(this.configuration).createResQOffer(r,e,s).then(t=>t(this.axios,this.basePath))}deactivateResQOffer(r,e,s){return X(this.configuration).deactivateResQOffer(r,e,s).then(t=>t(this.axios,this.basePath))}getResQOrder(r,e,s){return X(this.configuration).getResQOrder(r,e,s).then(t=>t(this.axios,this.basePath))}listResQOffers(r,e,s){return X(this.configuration).listResQOffers(r,e,s).then(t=>t(this.axios,this.basePath))}listResQOrders(r,e,s){return X(this.configuration).listResQOrders(r,e,s).then(t=>t(this.axios,this.basePath))}},Qs=function(a){return{createReservation:async(r,e={})=>{d("createReservation","createReservationDto",r);let s="/api/v1/reservations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},getReservationAvailability:async(r,e,s,t,n,o={})=>{d("getReservationAvailability","businessId",r),d("getReservationAvailability","date",e),d("getReservationAvailability","partySize",s);let i="/api/v1/reservations/availability",l=new URL(i,m),u;a&&(u=a.baseOptions);let c={method:"GET",...u,...o},b={},R={};await f(b,a),r!==void 0&&(R.businessId=r),e!==void 0&&(R.date=e),s!==void 0&&(R.partySize=s),t!==void 0&&(R.sectionId=t),n!==void 0&&(R.excludeReservationId=n),y(l,R);let D=u&&u.headers?u.headers:{};return c.headers={...b,...D,...o.headers},{url:g(l),options:c}},getReservationPolicy:async(r,e={})=>{d("getReservationPolicy","businessId",r);let s="/api/v1/reservations/policy",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},linkReservationIntegration:async(r,e={})=>{d("linkReservationIntegration","linkReservationIntegrationDto",r);let s="/api/v1/reservations/link",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},listReservations:async(r,e,s,t={})=>{d("listReservations","businessId",r);let n="/api/v1/reservations",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await f(u,a),r!==void 0&&(c.businessId=r),e!==void 0&&(c.date=e),s!==void 0&&(c.status=s),y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},reservationInboundWebhook:async(r,e={})=>{d("reservationInboundWebhook","inboundReservationWebhookDto",r);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},unlinkReservationIntegration:async(r,e={})=>{d("unlinkReservationIntegration","businessId",r);let s="/api/v1/reservations/link",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateReservation:async(r,e,s,t={})=>{d("updateReservation","id",r),d("updateReservation","businessId",e),d("updateReservation","updateReservationDto",s);let n="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}},updateReservationPolicy:async(r,e={})=>{d("updateReservationPolicy","updateReservationPolicyDto",r);let s="/api/v1/reservations/policy",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},updateReservationStatus:async(r,e,s,t={})=>{d("updateReservationStatus","id",r),d("updateReservationStatus","businessId",e),d("updateReservationStatus","updateReservationStatusDto",s);let n="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},c={};await f(u,a),e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",y(o,c);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},l.data=A(s,l,a),{url:g(o),options:l}}}},_=function(a){let r=Qs(a);return{async createReservation(e,s){let t=await r.createReservation(e,s);return h(t,P,p,a)},async getReservationAvailability(e,s,t,n,o,i){let l=await r.getReservationAvailability(e,s,t,n,o,i);return h(l,P,p,a)},async getReservationPolicy(e,s){let t=await r.getReservationPolicy(e,s);return h(t,P,p,a)},async linkReservationIntegration(e,s){let t=await r.linkReservationIntegration(e,s);return h(t,P,p,a)},async listReservations(e,s,t,n){let o=await r.listReservations(e,s,t,n);return h(o,P,p,a)},async reservationInboundWebhook(e,s){let t=await r.reservationInboundWebhook(e,s);return h(t,P,p,a)},async unlinkReservationIntegration(e,s){let t=await r.unlinkReservationIntegration(e,s);return h(t,P,p,a)},async updateReservation(e,s,t,n){let o=await r.updateReservation(e,s,t,n);return h(o,P,p,a)},async updateReservationPolicy(e,s){let t=await r.updateReservationPolicy(e,s);return h(t,P,p,a)},async updateReservationStatus(e,s,t,n){let o=await r.updateReservationStatus(e,s,t,n);return h(o,P,p,a)}}},yi=function(a,r,e){let s=_(a);return{createReservation(t,n){return s.createReservation(t,n).then(o=>o(e,r))},getReservationAvailability(t,n,o,i,l,u){return s.getReservationAvailability(t,n,o,i,l,u).then(c=>c(e,r))},getReservationPolicy(t,n){return s.getReservationPolicy(t,n).then(o=>o(e,r))},linkReservationIntegration(t,n){return s.linkReservationIntegration(t,n).then(o=>o(e,r))},listReservations(t,n,o,i){return s.listReservations(t,n,o,i).then(l=>l(e,r))},reservationInboundWebhook(t,n){return s.reservationInboundWebhook(t,n).then(o=>o(e,r))},unlinkReservationIntegration(t,n){return s.unlinkReservationIntegration(t,n).then(o=>o(e,r))},updateReservation(t,n,o,i){return s.updateReservation(t,n,o,i).then(l=>l(e,r))},updateReservationPolicy(t,n){return s.updateReservationPolicy(t,n).then(o=>o(e,r))},updateReservationStatus(t,n,o,i){return s.updateReservationStatus(t,n,o,i).then(l=>l(e,r))}}},Vt=class extends v{createReservation(r,e){return _(this.configuration).createReservation(r,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(r,e,s,t,n,o){return _(this.configuration).getReservationAvailability(r,e,s,t,n,o).then(i=>i(this.axios,this.basePath))}getReservationPolicy(r,e){return _(this.configuration).getReservationPolicy(r,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(r,e){return _(this.configuration).linkReservationIntegration(r,e).then(s=>s(this.axios,this.basePath))}listReservations(r,e,s,t){return _(this.configuration).listReservations(r,e,s,t).then(n=>n(this.axios,this.basePath))}reservationInboundWebhook(r,e){return _(this.configuration).reservationInboundWebhook(r,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(r,e){return _(this.configuration).unlinkReservationIntegration(r,e).then(s=>s(this.axios,this.basePath))}updateReservation(r,e,s,t){return _(this.configuration).updateReservation(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateReservationPolicy(r,e){return _(this.configuration).updateReservationPolicy(r,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(r,e,s,t){return _(this.configuration).updateReservationStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Gs=function(a){return{clockIn:async(r,e,s={})=>{d("clockIn","businessId",r),d("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},clockOut:async(r,e,s={})=>{d("clockOut","businessId",r),d("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getTodayShift:async(r,e,s={})=>{d("getTodayShift","businessId",r),d("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},lockTill:async(r,e={})=>{d("lockTill","businessId",r);let s="/api/v2/businesses/{businessId}/shifts/lock".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},unlock:async(r,e,s={})=>{d("unlock","businessId",r),d("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},unlockTillWithPin:async(r,e,s={})=>{d("unlockTillWithPin","businessId",r),d("unlockTillWithPin","xPosPin",e);let t="/api/v2/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}}}},J=function(a){let r=Gs(a);return{async clockIn(e,s,t){let n=await r.clockIn(e,s,t);return h(n,P,p,a)},async clockOut(e,s,t){let n=await r.clockOut(e,s,t);return h(n,P,p,a)},async getTodayShift(e,s,t){let n=await r.getTodayShift(e,s,t);return h(n,P,p,a)},async lockTill(e,s){let t=await r.lockTill(e,s);return h(t,P,p,a)},async unlock(e,s,t){let n=await r.unlock(e,s,t);return h(n,P,p,a)},async unlockTillWithPin(e,s,t){let n=await r.unlockTillWithPin(e,s,t);return h(n,P,p,a)}}},gi=function(a,r,e){let s=J(a);return{clockIn(t,n,o){return s.clockIn(t,n,o).then(i=>i(e,r))},clockOut(t,n,o){return s.clockOut(t,n,o).then(i=>i(e,r))},getTodayShift(t,n,o){return s.getTodayShift(t,n,o).then(i=>i(e,r))},lockTill(t,n){return s.lockTill(t,n).then(o=>o(e,r))},unlock(t,n,o){return s.unlock(t,n,o).then(i=>i(e,r))},unlockTillWithPin(t,n,o){return s.unlockTillWithPin(t,n,o).then(i=>i(e,r))}}},It=class extends v{clockIn(r,e,s){return J(this.configuration).clockIn(r,e,s).then(t=>t(this.axios,this.basePath))}clockOut(r,e,s){return J(this.configuration).clockOut(r,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(r,e,s){return J(this.configuration).getTodayShift(r,e,s).then(t=>t(this.axios,this.basePath))}lockTill(r,e){return J(this.configuration).lockTill(r,e).then(s=>s(this.axios,this.basePath))}unlock(r,e,s){return J(this.configuration).unlock(r,e,s).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(r,e,s){return J(this.configuration).unlockTillWithPin(r,e,s).then(t=>t(this.axios,this.basePath))}},Hs=function(a){return{deactivateStation:async(r={})=>{let e="/api/v1/station/deactivate",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},getStation:async(r={})=>{let e="/api/v1/station",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},syncStation:async(r,e={})=>{d("syncStation","syncStationDto",r);let s="/api/v1/station/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},ye=function(a){let r=Hs(a);return{async deactivateStation(e){let s=await r.deactivateStation(e);return h(s,P,p,a)},async getStation(e){let s=await r.getStation(e);return h(s,P,p,a)},async syncStation(e,s){let t=await r.syncStation(e,s);return h(t,P,p,a)}}},hi=function(a,r,e){let s=ye(a);return{deactivateStation(t){return s.deactivateStation(t).then(n=>n(e,r))},getStation(t){return s.getStation(t).then(n=>n(e,r))},syncStation(t,n){return s.syncStation(t,n).then(o=>o(e,r))}}},vt=class extends v{deactivateStation(r){return ye(this.configuration).deactivateStation(r).then(e=>e(this.axios,this.basePath))}getStation(r){return ye(this.configuration).getStation(r).then(e=>e(this.axios,this.basePath))}syncStation(r,e){return ye(this.configuration).syncStation(r,e).then(s=>s(this.axios,this.basePath))}},$s=function(a){return{connectTerminal:async(r,e={})=>{d("connectTerminal","connectTerminalDto",r);let s="/api/v1/terminal/connect",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},disconnectTerminal:async(r={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},discoverTerminal:async(r,e={})=>{d("discoverTerminal","discoverTerminalDto",r);let s="/api/v1/terminal/discover",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},ge=function(a){let r=$s(a);return{async connectTerminal(e,s){let t=await r.connectTerminal(e,s);return h(t,P,p,a)},async disconnectTerminal(e){let s=await r.disconnectTerminal(e);return h(s,P,p,a)},async discoverTerminal(e,s){let t=await r.discoverTerminal(e,s);return h(t,P,p,a)}}},Pi=function(a,r,e){let s=ge(a);return{connectTerminal(t,n){return s.connectTerminal(t,n).then(o=>o(e,r))},disconnectTerminal(t){return s.disconnectTerminal(t).then(n=>n(e,r))},discoverTerminal(t,n){return s.discoverTerminal(t,n).then(o=>o(e,r))}}},Tt=class extends v{connectTerminal(r,e){return ge(this.configuration).connectTerminal(r,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(r){return ge(this.configuration).disconnectTerminal(r).then(e=>e(this.axios,this.basePath))}discoverTerminal(r,e){return ge(this.configuration).discoverTerminal(r,e).then(s=>s(this.axios,this.basePath))}},zs=function(a){return{getMyVenue:async(r,e={})=>{d("getMyVenue","businessId",r);let s="/api/v3/user/venues/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getUserBusinessV1:async(r={})=>{let e="/api/v1/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},getUserBusinessV2:async(r={})=>{let e="/api/v2/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},listMyVenues:async(r={})=>{let e="/api/v3/user/venues",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},le=function(a){let r=zs(a);return{async getMyVenue(e,s){let t=await r.getMyVenue(e,s);return h(t,P,p,a)},async getUserBusinessV1(e){let s=await r.getUserBusinessV1(e);return h(s,P,p,a)},async getUserBusinessV2(e){let s=await r.getUserBusinessV2(e);return h(s,P,p,a)},async listMyVenues(e){let s=await r.listMyVenues(e);return h(s,P,p,a)}}},bi=function(a,r,e){let s=le(a);return{getMyVenue(t,n){return s.getMyVenue(t,n).then(o=>o(e,r))},getUserBusinessV1(t){return s.getUserBusinessV1(t).then(n=>n(e,r))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(n=>n(e,r))},listMyVenues(t){return s.listMyVenues(t).then(n=>n(e,r))}}},qt=class extends v{getMyVenue(r,e){return le(this.configuration).getMyVenue(r,e).then(s=>s(this.axios,this.basePath))}getUserBusinessV1(r){return le(this.configuration).getUserBusinessV1(r).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(r){return le(this.configuration).getUserBusinessV2(r).then(e=>e(this.axios,this.basePath))}listMyVenues(r){return le(this.configuration).listMyVenues(r).then(e=>e(this.axios,this.basePath))}},Ys=function(a){return{upsert:async(r,e={})=>{d("upsert","vendureSellerUpsertDto",r);let s="/api/v1/vendure/seller/upsert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},Gt=function(a){let r=Ys(a);return{async upsert(e,s){let t=await r.upsert(e,s);return h(t,P,p,a)}}},Ai=function(a,r,e){let s=Gt(a);return{upsert(t,n){return s.upsert(t,n).then(o=>o(e,r))}}},Et=class extends v{upsert(r,e){return Gt(this.configuration).upsert(r,e).then(s=>s(this.axios,this.basePath))}},Xs=function(a){return{createVivaAppToAppPayment:async(r,e={})=>{d("createVivaAppToAppPayment","createTerminalPaymentDto",r);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},getVivaSession:async(r,e={})=>{d("getVivaSession","id",r);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listVivaSessions:async(r,e,s,t,n,o,i,l={})=>{d("listVivaSessions","businessId",r);let u="/api/v1/viva/sessions",c=new URL(u,m),b;a&&(b=a.baseOptions);let R={method:"GET",...b,...l},D={},x={};r!==void 0&&(x.businessId=r),e!==void 0&&(x.page=e),s!==void 0&&(x.rowPerPage=s),t!==void 0&&(x.terminalId=t),n!==void 0&&(x.timeSpan=n),o!==void 0&&(x.start=o),i!==void 0&&(x.end=i),y(c,x);let C=b&&b.headers?b.headers:{};return R.headers={...D,...C,...l.headers},{url:g(c),options:R}},refundVivaPayment:async(r,e,s={})=>{d("refundVivaPayment","vivaA2aRefundDto",r);let t="/api/v1/viva/refund",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}}}},ue=function(a){let r=Xs(a);return{async createVivaAppToAppPayment(e,s){let t=await r.createVivaAppToAppPayment(e,s);return h(t,P,p,a)},async getVivaSession(e,s){let t=await r.getVivaSession(e,s);return h(t,P,p,a)},async listVivaSessions(e,s,t,n,o,i,l,u){let c=await r.listVivaSessions(e,s,t,n,o,i,l,u);return h(c,P,p,a)},async refundVivaPayment(e,s,t){let n=await r.refundVivaPayment(e,s,t);return h(n,P,p,a)}}},Ri=function(a,r,e){let s=ue(a);return{createVivaAppToAppPayment(t,n){return s.createVivaAppToAppPayment(t,n).then(o=>o(e,r))},getVivaSession(t,n){return s.getVivaSession(t,n).then(o=>o(e,r))},listVivaSessions(t,n,o,i,l,u,c,b){return s.listVivaSessions(t,n,o,i,l,u,c,b).then(R=>R(e,r))},refundVivaPayment(t,n,o){return s.refundVivaPayment(t,n,o).then(i=>i(e,r))}}},Ut=class extends v{createVivaAppToAppPayment(r,e){return ue(this.configuration).createVivaAppToAppPayment(r,e).then(s=>s(this.axios,this.basePath))}getVivaSession(r,e){return ue(this.configuration).getVivaSession(r,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(r,e,s,t,n,o,i,l){return ue(this.configuration).listVivaSessions(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(r,e,s){return ue(this.configuration).refundVivaPayment(r,e,s).then(t=>t(this.axios,this.basePath))}},Js=function(a){return{handleAssignmentWebhook:async(r,e={})=>{d("handleAssignmentWebhook","supabaseAssignmentHookDto",r);let s="/api/webhook/add-employee-assignments",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleBusinessWebhook:async(r,e={})=>{d("handleBusinessWebhook","supabaseBusinessHookDto",r);let s="/api/webhook/add-business",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleFoodoraEvent:async(r,e={})=>{d("handleFoodoraEvent","orderUpdateDto",r);let s="/api/webhook/order/event",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleLoadEmployee:async(r,e={})=>{d("handleLoadEmployee","supabaseEmployeeHookDto",r);let s="/api/webhook/load-employee",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleNetsEvents:async(r,e={})=>{let s="/api/webhook/nets",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};r!=null&&(i["connectcloud-request-id"]=String(r)),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleNetsEventsV2:async(r,e={})=>{let s="/api/webhook/v2/nets",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};r!=null&&(i["connectcloud-request-id"]=String(r)),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleNetsSessionEvents:async(r,e={})=>{let s="/api/webhook/nets/payments",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};r!=null&&(i["connectcloud-request-id"]=String(r)),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleNetsSessionEventsForClientToken:async(r,e,s={})=>{d("handleNetsSessionEventsForClientToken","clientToken",r);let t="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["connectcloud-request-id"]=String(e)),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},handlePreorderReminder:async(r,e={})=>{d("handlePreorderReminder","preOrderReminderDto",r);let s="/api/webhook/preorder-reminder",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleRoleWebhook:async(r,e={})=>{d("handleRoleWebhook","supabaseRoleHookDto",r);let s="/api/webhook/add-roles",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleShiftWebhook:async(r,e={})=>{d("handleShiftWebhook","supabaseShiftHookDto",r);let s="/api/webhook/add-employee-shifts",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleVivaEvents:async(r,e={})=>{d("handleVivaEvents","vivaWebhookPayloadDto",r);let s="/api/webhook/viva/verification",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleVivaSessionEvents:async(r,e={})=>{d("handleVivaSessionEvents","vivaWebhookPayloadDto",r);let s="/api/webhook/viva/payments",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleWebhook:async(r,e={})=>{let s="/api/webhook/ship-day",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},handleWoltDriveEventByCountry:async(r,e,s={})=>{d("handleWoltDriveEventByCountry","country",r),d("handleWoltDriveEventByCountry","woltDriveWebhookDto",e);let t="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},handleWorldlineEvents:async(r={})=>{let e="/api/webhook/worldline/events",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleWorldlineSessionEvents:async(r={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},processDispatchTask:async(r,e,s={})=>{d("processDispatchTask","xCloudtasksTaskretrycount",r),d("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};r!=null&&(l["x-cloudtasks-taskretrycount"]=String(r)),l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},processPosOrderActionsQueue:async(r,e={})=>{d("processPosOrderActionsQueue","processPosOrderActionsQueueDto",r);let s="/api/webhook/pos/order-actions/process",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},updateWoltProduct:async(r,e={})=>{d("updateWoltProduct","woltSwitchesTaskDto",r);let s="/api/webhook/wolt/product/edit",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},verifyVivaSessionWebhook:async(r={})=>{let e="/api/webhook/viva/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},verifyVivaWebhook:async(r={})=>{let e="/api/webhook/viva/verification",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},U=function(a){let r=Js(a);return{async handleAssignmentWebhook(e,s){let t=await r.handleAssignmentWebhook(e,s);return h(t,P,p,a)},async handleBusinessWebhook(e,s){let t=await r.handleBusinessWebhook(e,s);return h(t,P,p,a)},async handleFoodoraEvent(e,s){let t=await r.handleFoodoraEvent(e,s);return h(t,P,p,a)},async handleLoadEmployee(e,s){let t=await r.handleLoadEmployee(e,s);return h(t,P,p,a)},async handleNetsEvents(e,s){let t=await r.handleNetsEvents(e,s);return h(t,P,p,a)},async handleNetsEventsV2(e,s){let t=await r.handleNetsEventsV2(e,s);return h(t,P,p,a)},async handleNetsSessionEvents(e,s){let t=await r.handleNetsSessionEvents(e,s);return h(t,P,p,a)},async handleNetsSessionEventsForClientToken(e,s,t){let n=await r.handleNetsSessionEventsForClientToken(e,s,t);return h(n,P,p,a)},async handlePreorderReminder(e,s){let t=await r.handlePreorderReminder(e,s);return h(t,P,p,a)},async handleRoleWebhook(e,s){let t=await r.handleRoleWebhook(e,s);return h(t,P,p,a)},async handleShiftWebhook(e,s){let t=await r.handleShiftWebhook(e,s);return h(t,P,p,a)},async handleVivaEvents(e,s){let t=await r.handleVivaEvents(e,s);return h(t,P,p,a)},async handleVivaSessionEvents(e,s){let t=await r.handleVivaSessionEvents(e,s);return h(t,P,p,a)},async handleWebhook(e,s){let t=await r.handleWebhook(e,s);return h(t,P,p,a)},async handleWoltDriveEventByCountry(e,s,t){let n=await r.handleWoltDriveEventByCountry(e,s,t);return h(n,P,p,a)},async handleWorldlineEvents(e){let s=await r.handleWorldlineEvents(e);return h(s,P,p,a)},async handleWorldlineSessionEvents(e){let s=await r.handleWorldlineSessionEvents(e);return h(s,P,p,a)},async processDispatchTask(e,s,t){let n=await r.processDispatchTask(e,s,t);return h(n,P,p,a)},async processPosOrderActionsQueue(e,s){let t=await r.processPosOrderActionsQueue(e,s);return h(t,P,p,a)},async updateWoltProduct(e,s){let t=await r.updateWoltProduct(e,s);return h(t,P,p,a)},async verifyVivaSessionWebhook(e){let s=await r.verifyVivaSessionWebhook(e);return h(s,P,p,a)},async verifyVivaWebhook(e){let s=await r.verifyVivaWebhook(e);return h(s,P,p,a)}}},fi=function(a,r,e){let s=U(a);return{handleAssignmentWebhook(t,n){return s.handleAssignmentWebhook(t,n).then(o=>o(e,r))},handleBusinessWebhook(t,n){return s.handleBusinessWebhook(t,n).then(o=>o(e,r))},handleFoodoraEvent(t,n){return s.handleFoodoraEvent(t,n).then(o=>o(e,r))},handleLoadEmployee(t,n){return s.handleLoadEmployee(t,n).then(o=>o(e,r))},handleNetsEvents(t,n){return s.handleNetsEvents(t,n).then(o=>o(e,r))},handleNetsEventsV2(t,n){return s.handleNetsEventsV2(t,n).then(o=>o(e,r))},handleNetsSessionEvents(t,n){return s.handleNetsSessionEvents(t,n).then(o=>o(e,r))},handleNetsSessionEventsForClientToken(t,n,o){return s.handleNetsSessionEventsForClientToken(t,n,o).then(i=>i(e,r))},handlePreorderReminder(t,n){return s.handlePreorderReminder(t,n).then(o=>o(e,r))},handleRoleWebhook(t,n){return s.handleRoleWebhook(t,n).then(o=>o(e,r))},handleShiftWebhook(t,n){return s.handleShiftWebhook(t,n).then(o=>o(e,r))},handleVivaEvents(t,n){return s.handleVivaEvents(t,n).then(o=>o(e,r))},handleVivaSessionEvents(t,n){return s.handleVivaSessionEvents(t,n).then(o=>o(e,r))},handleWebhook(t,n){return s.handleWebhook(t,n).then(o=>o(e,r))},handleWoltDriveEventByCountry(t,n,o){return s.handleWoltDriveEventByCountry(t,n,o).then(i=>i(e,r))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(n=>n(e,r))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(n=>n(e,r))},processDispatchTask(t,n,o){return s.processDispatchTask(t,n,o).then(i=>i(e,r))},processPosOrderActionsQueue(t,n){return s.processPosOrderActionsQueue(t,n).then(o=>o(e,r))},updateWoltProduct(t,n){return s.updateWoltProduct(t,n).then(o=>o(e,r))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(n=>n(e,r))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(n=>n(e,r))}}},kt=class extends v{handleAssignmentWebhook(r,e){return U(this.configuration).handleAssignmentWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleBusinessWebhook(r,e){return U(this.configuration).handleBusinessWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleFoodoraEvent(r,e){return U(this.configuration).handleFoodoraEvent(r,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(r,e){return U(this.configuration).handleLoadEmployee(r,e).then(s=>s(this.axios,this.basePath))}handleNetsEvents(r,e){return U(this.configuration).handleNetsEvents(r,e).then(s=>s(this.axios,this.basePath))}handleNetsEventsV2(r,e){return U(this.configuration).handleNetsEventsV2(r,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEvents(r,e){return U(this.configuration).handleNetsSessionEvents(r,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(r,e,s){return U(this.configuration).handleNetsSessionEventsForClientToken(r,e,s).then(t=>t(this.axios,this.basePath))}handlePreorderReminder(r,e){return U(this.configuration).handlePreorderReminder(r,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(r,e){return U(this.configuration).handleRoleWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleShiftWebhook(r,e){return U(this.configuration).handleShiftWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleVivaEvents(r,e){return U(this.configuration).handleVivaEvents(r,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(r,e){return U(this.configuration).handleVivaSessionEvents(r,e).then(s=>s(this.axios,this.basePath))}handleWebhook(r,e){return U(this.configuration).handleWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleWoltDriveEventByCountry(r,e,s){return U(this.configuration).handleWoltDriveEventByCountry(r,e,s).then(t=>t(this.axios,this.basePath))}handleWorldlineEvents(r){return U(this.configuration).handleWorldlineEvents(r).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(r){return U(this.configuration).handleWorldlineSessionEvents(r).then(e=>e(this.axios,this.basePath))}processDispatchTask(r,e,s){return U(this.configuration).processDispatchTask(r,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(r,e){return U(this.configuration).processPosOrderActionsQueue(r,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(r,e){return U(this.configuration).updateWoltProduct(r,e).then(s=>s(this.axios,this.basePath))}verifyVivaSessionWebhook(r){return U(this.configuration).verifyVivaSessionWebhook(r).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(r){return U(this.configuration).verifyVivaWebhook(r).then(e=>e(this.axios,this.basePath))}},Zs=function(a){return{cancelPayment:async(r,e={})=>{d("cancelPayment","cancelWorldlinePaymentDto",r);let s="/api/v1/worldline/payment/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},createPayment:async(r,e={})=>{d("createPayment","createWorldlineTerminalPaymentDto",r);let s="/api/v1/worldline/payment",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}},createRefund:async(r,e={})=>{d("createRefund","createWorldlineRefundDto",r);let s="/api/v1/worldline/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},he=function(a){let r=Zs(a);return{async cancelPayment(e,s){let t=await r.cancelPayment(e,s);return h(t,P,p,a)},async createPayment(e,s){let t=await r.createPayment(e,s);return h(t,P,p,a)},async createRefund(e,s){let t=await r.createRefund(e,s);return h(t,P,p,a)}}},xi=function(a,r,e){let s=he(a);return{cancelPayment(t,n){return s.cancelPayment(t,n).then(o=>o(e,r))},createPayment(t,n){return s.createPayment(t,n).then(o=>o(e,r))},createRefund(t,n){return s.createRefund(t,n).then(o=>o(e,r))}}},Mt=class extends v{cancelPayment(r,e){return he(this.configuration).cancelPayment(r,e).then(s=>s(this.axios,this.basePath))}createPayment(r,e){return he(this.configuration).createPayment(r,e).then(s=>s(this.axios,this.basePath))}createRefund(r,e){return he(this.configuration).createRefund(r,e).then(s=>s(this.axios,this.basePath))}},er=function(a){return{createPaymentRequest:async(r,e,s={})=>{d("createPaymentRequest","terminalId",r),d("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},createRefundRequest:async(r,e,s={})=>{d("createRefundRequest","terminalId",r),d("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getPaymentResult:async(r,e={})=>{d("getPaymentResult","operationId",r);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getTerminalAuthContext:async(r,e,s={})=>{d("getTerminalAuthContext","terminalId",r),d("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getTerminalContext:async(r,e,s={})=>{d("getTerminalContext","terminalId",r),d("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(n,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...s.headers},{url:g(n),options:i}},getTerminalState:async(r,e={})=>{d("getTerminalState","terminalId",r);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleCallback:async(r,e={})=>{let s="/api/v2/worldline/internal/callback",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(r,o,a),{url:g(t),options:o}}}},$=function(a){let r=er(a);return{async createPaymentRequest(e,s,t){let n=await r.createPaymentRequest(e,s,t);return h(n,P,p,a)},async createRefundRequest(e,s,t){let n=await r.createRefundRequest(e,s,t);return h(n,P,p,a)},async getPaymentResult(e,s){let t=await r.getPaymentResult(e,s);return h(t,P,p,a)},async getTerminalAuthContext(e,s,t){let n=await r.getTerminalAuthContext(e,s,t);return h(n,P,p,a)},async getTerminalContext(e,s,t){let n=await r.getTerminalContext(e,s,t);return h(n,P,p,a)},async getTerminalState(e,s){let t=await r.getTerminalState(e,s);return h(t,P,p,a)},async handleCallback(e,s){let t=await r.handleCallback(e,s);return h(t,P,p,a)}}},Di=function(a,r,e){let s=$(a);return{createPaymentRequest(t,n,o){return s.createPaymentRequest(t,n,o).then(i=>i(e,r))},createRefundRequest(t,n,o){return s.createRefundRequest(t,n,o).then(i=>i(e,r))},getPaymentResult(t,n){return s.getPaymentResult(t,n).then(o=>o(e,r))},getTerminalAuthContext(t,n,o){return s.getTerminalAuthContext(t,n,o).then(i=>i(e,r))},getTerminalContext(t,n,o){return s.getTerminalContext(t,n,o).then(i=>i(e,r))},getTerminalState(t,n){return s.getTerminalState(t,n).then(o=>o(e,r))},handleCallback(t,n){return s.handleCallback(t,n).then(o=>o(e,r))}}},Bt=class extends v{createPaymentRequest(r,e,s){return $(this.configuration).createPaymentRequest(r,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(r,e,s){return $(this.configuration).createRefundRequest(r,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(r,e){return $(this.configuration).getPaymentResult(r,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(r,e,s){return $(this.configuration).getTerminalAuthContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(r,e,s){return $(this.configuration).getTerminalContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(r,e){return $(this.configuration).getTerminalState(r,e).then(s=>s(this.axios,this.basePath))}handleCallback(r,e){return $(this.configuration).handleCallback(r,e).then(s=>s(this.axios,this.basePath))}};var Ht=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(r={}){this.apiKey=r.apiKey,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.baseOptions=r.baseOptions,this.formDataCtor=r.formDataCtor}isJsonMime(r){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return r!==null&&(e.test(r)||r.toLowerCase()==="application/json-patch+json")}};var tr={BIF:0,CLP:0,DJF:0,GNF:0,ISK:0,JPY:0,KMF:0,KRW:0,PYG:0,RWF:0,UGX:0,UYI:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,BHD:3,IQD:3,JOD:3,KWD:3,LYD:3,OMR:3,TND:3,CLF:4,UYW:4};function qe(a){return tr[a.toUpperCase()]??2}function Pe(a){return 10**qe(a)}function vi(a,r){if(!Number.isFinite(a))return Math.round(a*Pe(r));let[e,s="0"]=String(a).split("e");return Math.round(+`${e}e${Number(s)+qe(r)}`)}function sr(a,r){return a/Pe(r)}function Ti(a,r,e={}){let s=qe(a.currency);return new Intl.NumberFormat(r,{style:"currency",currency:a.currency.toUpperCase(),currencyDisplay:e.currencyDisplay??"symbol",signDisplay:e.signDisplay??"auto",minimumFractionDigits:s,maximumFractionDigits:s}).format(sr(a.amount,a.currency))}function qi(a,r){let e=r?.increment??0;if(a<=0||!Number.isFinite(a)||e<=1)return{actualAmount:a,roundedAmount:a,roundingDifference:0};let s=a%e,t=s*2<e?a-s:a+(e-s);return{actualAmount:a,roundedAmount:t,roundingDifference:t-a}}var ki={getMultiplier(a){return Pe(a)}};var rr={FI:{cashRounding:{increment:5},customerLanguages:["fi","sv","en"]},EE:{cashRounding:{increment:5},customerLanguages:["et","ru","en"]},SE:{cashRounding:{increment:100}},ES:{customerLanguages:["es","ca","en"]}};function nr(a){if(typeof Intl.Locale=="function")try{return new Intl.Locale(`und-${a}`).maximize().language}catch{return}}function Bi(a){if(!a)return{cashRounding:null,customerLanguages:["en"]};let r=a.toUpperCase(),e=rr[r]??{},s=nr(r);return{cashRounding:e.cashRounding??null,customerLanguages:e.customerLanguages??(s&&s!=="und"?[...new Set([s,"en"])]:["en"])}}function wi(a,r){let e=a.split("-")[0].toLowerCase();if(!r)return e;let s=`${e}-${r.toUpperCase()}`;return Intl.NumberFormat.supportedLocalesOf([s]).length>0?s:e}import be from"lodash";var Ee=a=>be.orderBy(a,["rank","id"],["asc","asc"]),or=a=>{let r=a.subcategories;return Array.isArray(r)?r:[]},ar=(a,r)=>({...a,colorCode:a.colorCode??r}),ir=(a,r)=>be.compact(a.map(e=>r.get(e))),$t=(a,r)=>a.flatMap(e=>{let s=r[e];return s?[e,...$t(s.childIds,r)]:[]}),zt=(a,r)=>a.flatMap(e=>{let s=r[e];return s?.enabled?[e,...zt(s.childIds,r)]:[]}),_i=a=>{let r=new Map,e={},s={},t=Ee(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let c=String(u.id);return r.set(c,ar(u,l)),c});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,c=o(i.products,u),b=(D,x)=>{let C=String(D.id),O=o(D.products,u),I=Ee(or(D)).map(q=>b(q,C));return s[C]={id:C,name:D.name,rank:D.rank??0,enabled:!!D.enabled,parentCategoryId:l,parentSubcategoryId:x,productIds:O,childIds:I},C},R=Ee(i.subcategories??[]).map(D=>b(D,null));e[l]={...i,productIds:c,subcategoryIds:R}}),{sortedCategories:t,productMap:r,categoriesById:e,subcategoriesById:s,categoryIdsOrder:n}},Ni=(a,r,e,s)=>{let t=r[a];if(!t)return[];let n=zt(t.subcategoryIds,e),o=be.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return ir(o,s)},Wi=(a,r,e)=>{let s=r[a];if(!s)return[];let t=$t(s.subcategoryIds,e);return be.compact(t.map(n=>e[n]))};var lr="2.2.0";export{fr as ABLYEVENT,Ue as ActionPasscodesApi,Xt as ActionPasscodesApiAxiosParamCreator,Ra as ActionPasscodesApiFactory,wt as ActionPasscodesApiFp,xr as ActionsEnum,ke as AnalyticsDashboardsApi,Jt as AnalyticsDashboardsApiAxiosParamCreator,fa as AnalyticsDashboardsApiFactory,te as AnalyticsDashboardsApiFp,Me as AuthApi,Zt as AuthApiAxiosParamCreator,xa as AuthApiFactory,se as AuthApiFp,Cr as AutonomousVehicleType,Sr as BasketNotPricedReason,Be as BusinessApi,es as BusinessApiAxiosParamCreator,Da as BusinessApiFactory,k as BusinessApiFp,Or as BusinessBackgroundType,Vr as BusinessEventAction,Ir as BusinessEventType,vr as BusinessPaymentIntegrationType,we as BusinessScheduleApi,ts as BusinessScheduleApiAxiosParamCreator,Ca as BusinessScheduleApiFactory,Ft as BusinessScheduleApiFp,Tr as BusinessStatusEnum,qr as CashLogReason,Er as CashLogType,Fe as CashManagementApi,ss as CashManagementApiAxiosParamCreator,Sa as CashManagementApiFactory,z as CashManagementApiFp,Le as CashManagementV6Api,rs as CashManagementV6ApiAxiosParamCreator,Oa as CashManagementV6ApiFactory,Lt as CashManagementV6ApiFp,Ur as CashSessionStatus,_e as CashSessionV2Api,ns as CashSessionV2ApiAxiosParamCreator,Va as CashSessionV2ApiFactory,_t as CashSessionV2ApiFp,kr as CashSignalType,Mr as CdsSessionRole,Br as ChannelEnum,Ne as ChannelMenuApi,os as ChannelMenuApiAxiosParamCreator,Ia as ChannelMenuApiFactory,de as ChannelMenuApiFp,wr as ChargeStatusEnum,Fr as CheckoutModelEnum,_r as ConditionType,We as ConfigManagementApi,as as ConfigManagementApiAxiosParamCreator,va as ConfigManagementApiFactory,B as ConfigManagementApiFp,Ht as Configuration,Nr as ConsumptionType,Wr as CouponRefusal,je as CouponsApi,is as CouponsApiAxiosParamCreator,Ta as CouponsApiFactory,Re as CouponsApiFp,Ke as CoursesApi,ls as CoursesApiAxiosParamCreator,qa as CoursesApiFactory,fe as CoursesApiFp,jr as CredentialType,Kr as CurrencyCode,ki as CurrencyRegistry,Qr as DatabaseEventType,Gr as DayOfWeek,Hr as DeliveryCourierProvider,$r as DeliveryIntentAction,Qe as DeliveryIntentApi,us as DeliveryIntentApiAxiosParamCreator,Ea as DeliveryIntentApiFactory,xe as DeliveryIntentApiFp,zr as DeliveryIntentStatus,Yr as DeliveryPlatformConnection,Xr as DeliveryPlatformOpsConnect,Jr as DeliveryStatus,Zr as DeliveryType,en as DeviceType,tn as DiscountScope,sn as DiscountScopeType,rn as DiscountSourceType,nn as DiscountType,Ge as DisplayApi,cs as DisplayApiAxiosParamCreator,Ua as DisplayApiFactory,re as DisplayApiFp,He as EmployeeRolesApi,ds as EmployeeRolesApiAxiosParamCreator,ka as EmployeeRolesApiFactory,Z as EmployeeRolesApiFp,$e as EmployeesApi,ps as EmployeesApiAxiosParamCreator,Ma as EmployeesApiFactory,ee as EmployeesApiFp,on as EntityType,Go as ErrorEnum,Dr as EventTypeEnum,an as FeeType,ln as FileFormat,ze as FloorPlanApi,ms as FloorPlanApiAxiosParamCreator,Ba as FloorPlanApiFactory,w as FloorPlanApiFp,un as GiftCardErrorCode,Ye as GiftcardApi,ys as GiftcardApiAxiosParamCreator,wa as GiftcardApiFactory,De as GiftcardApiFp,Xe as HistoryApi,gs as HistoryApiAxiosParamCreator,Fa as HistoryApiFactory,Ce as HistoryApiFp,Je as HistoryV6Api,hs as HistoryV6ApiAxiosParamCreator,La as HistoryV6ApiFactory,pe as HistoryV6ApiFp,cn as IngredientSectionHeadingCode,dn as IntegrationType,Ze as InvoiceCompaniesApi,Ps as InvoiceCompaniesApiAxiosParamCreator,_a as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,et as KDSApi,bs as KDSApiAxiosParamCreator,Na as KDSApiFactory,N as KDSApiFp,pn as KDSEVENTNAME,mn as KdsBulkReadySkipReason,yn as KdsOrderType,gn as KioskEventType,hn as KioskLayout,tt as KiosksApi,As as KiosksApiAxiosParamCreator,Wa as KiosksApiFactory,Se as KiosksApiFp,Pn as KitchenItemStatus,bn as KitchenStatus,An as LocatorType,Rn as LoyaltyActionKey,fn as LoyaltyCatalogType,xn as LoyaltyChannel,st as LoyaltyCommerceApi,Rs as LoyaltyCommerceApiAxiosParamCreator,ja as LoyaltyCommerceApiFactory,Nt as LoyaltyCommerceApiFp,rt as LoyaltyIntegerationsApi,fs as LoyaltyIntegerationsApiAxiosParamCreator,Ka as LoyaltyIntegerationsApiFactory,F as LoyaltyIntegerationsApiFp,Dn as LoyaltyPerkStatus,Cn as LoyaltyRedemptionStatus,Sn as LoyaltyRestoreRequestStatus,On as LoyaltyRewardType,Vn as LoyaltyRuleActionType,In as LoyaltyRuleApplicationMode,vn as LoyaltyRuleConditionType,Tn as LoyaltyRuleFulfillmentMode,qn as LoyaltyRuleSelection,En as LoyaltyRuleStackingMode,Un as LoyaltyRuleTargetType,nt as MCPApi,xs as MCPApiAxiosParamCreator,Qa as MCPApiFactory,me as MCPApiFp,lr as MUNCHI_CORE_VERSION,ot as MenuApi,Ds as MenuApiAxiosParamCreator,Ga as MenuApiFactory,Oe as MenuApiFp,kn as MenuType,at as MunchiGiftCardApi,Cs as MunchiGiftCardApiAxiosParamCreator,Ha as MunchiGiftCardApiFactory,ne as MunchiGiftCardApiFp,Mn as NetsRevertMethod,it as NotificationApi,Ss as NotificationApiAxiosParamCreator,$a as NotificationApiFactory,Ve as NotificationApiFp,Bn as OperatingMode,lt as OpsApi,Os as OpsApiAxiosParamCreator,za as OpsApiFactory,oe as OpsApiFp,Lr as OrderCollectionEnum,ut as OrderCompletionApi,Vs as OrderCompletionApiAxiosParamCreator,Ya as OrderCompletionApiFactory,Wt as OrderCompletionApiFp,wn as OrderFormat,ct as OrderInternalApi,Is as OrderInternalApiAxiosParamCreator,Xa as OrderInternalApiFactory,jt as OrderInternalApiFp,Fn as OrderMode,Ln as OrderRefundStatus,_n as OrderSource,Nn as OrderStatus,Wn as OrderStatusEnum,jn as OrderType,Kn as OrderTypePOS,dt as OrdersApi,vs as OrdersApiAxiosParamCreator,Ja as OrdersApiFactory,M as OrdersApiFp,pt as POSPermissionsApi,Ts as POSPermissionsApiAxiosParamCreator,Za as POSPermissionsApiFactory,Kt as POSPermissionsApiFp,mt as POSSessionApi,qs as POSSessionApiAxiosParamCreator,ei as POSSessionApiFactory,Qt as POSSessionApiFp,yt as PayTerminalApi,Es as PayTerminalApiAxiosParamCreator,ti as PayTerminalApiFactory,K as PayTerminalApiFp,Qn as PayTerminalSessionRole,gt as PaymentApi,Us as PaymentApiAxiosParamCreator,si as PaymentApiFactory,Q as PaymentApiFp,Gn as PaymentApp,Hn as PaymentCheckoutFlow,$n as PaymentEventType,zn as PaymentFailureCode,Yn as PaymentMethod,ht as PaymentMethodsApi,ks as PaymentMethodsApiAxiosParamCreator,ri as PaymentMethodsApiFactory,L as PaymentMethodsApiFp,Xn as PaymentOutcomeStatus,Jn as PaymentProvider,Zn as PaymentProviderEnum,eo as PaymentReportingBucket,Pt as PaymentSessionApi,Ms as PaymentSessionApiAxiosParamCreator,ni as PaymentSessionApiFactory,E as PaymentSessionApiFp,to as PaymentSessionPurpose,so as PaymentSessionStatus,ro as PaymentStatus,no as PaymentSurchargePaidBy,oo as PaymentTypeEnum,ao as PosBulkOrderStatus,io as PosBulkStatusSkipReason,lo as PosDiscountTargetType,uo as PosDiscountType,co as PosPaymentStatus,po as PosPaymentType,mo as PosPermission,yo as PosPermissionGroup,go as PosPermissionKind,ho as PreorderStatus,Po as PriceType,bo as PrinterConnectionType,Ao as PrinterModelType,Ro as PrinterTypeEnum,bt as PrintersApi,Bs as PrintersApiAxiosParamCreator,oi as PrintersApiFactory,Ie as PrintersApiFp,At as ProductApi,ws as ProductApiAxiosParamCreator,ai as ProductApiFactory,ae as ProductApiFp,fo as ProductAvailability,xo as ProductDetailLayout,Do as PromotionDiscountType,Rt as PromotionsApi,Fs as PromotionsApiAxiosParamCreator,ii as PromotionsApiFactory,ie as PromotionsApiFp,ft as ProviderApi,Ls as ProviderApiAxiosParamCreator,li as ProviderApiFactory,G as ProviderApiFp,Co as ProviderEnum,So as PubSubAction,Oo as PubSubTarget,xt as ReceiptFooterApi,_s as ReceiptFooterApiAxiosParamCreator,ui as ReceiptFooterApiFactory,ve as ReceiptFooterApiFp,Vo as ReceiptFooterDocumentType,Io as RecordManualStatus,vo as RefundFailureReasonKey,To as RefundMode,qo as RefundOverallStatus,Eo as RefundStatusEnum,Uo as RefundStepStatus,Dt as RefundsApi,Ns as RefundsApiAxiosParamCreator,ci as RefundsApiFactory,H as RefundsApiFp,Ct as ReportApi,Ws as ReportApiAxiosParamCreator,di as ReportApiFactory,W as ReportApiFp,ko as ReportApp,Mo as ReportBaselineLeftOut,Bo as ReportBreakdown,wo as ReportChangeField,Fo as ReportLanguage,Lo as ReportOrderType,_o as ReportPart,St as ReportV6Api,js as ReportV6ApiAxiosParamCreator,pi as ReportV6ApiFactory,Te as ReportV6ApiFp,Ot as ResQApi,Ks as ResQApiAxiosParamCreator,mi as ResQApiFactory,X as ResQApiFp,No as ResQOfferTag,Wo as ReservationSource,jo as ReservationStatus,Vt as ReservationsApi,Qs as ReservationsApiAxiosParamCreator,yi as ReservationsApiFactory,_ as ReservationsApiFp,Ko as SYNCKEY,Qo as ScheduleType,It as ShiftTrackingApi,Gs as ShiftTrackingApiAxiosParamCreator,gi as ShiftTrackingApiFactory,J as ShiftTrackingApiFp,Ho as ShipdayEventWebhook,$o as ShipdayOrderStatus,zo as SimplePaymentStatus,Yo as SourceType,Xo as StaffActivityActionType,Jo as StationType,vt as StationsApi,Hs as StationsApiAxiosParamCreator,hi as StationsApiFactory,ye as StationsApiFp,Zo as Status,ea as SystemProfileType,ta as TableGroupType,sa as TableShape,ra as TableStatus,Tt as TerminalApi,$s as TerminalApiAxiosParamCreator,Pi as TerminalApiFactory,ge as TerminalApiFp,na as TerminalConnectionType,oa as TimeSpan,aa as TransactionEventType,ia as TransactionType,la as Type,ua as UpsellMode,qt as UserApi,zs as UserApiAxiosParamCreator,bi as UserApiFactory,le as UserApiFp,Et as VendureSellerApi,Ys as VendureSellerApiAxiosParamCreator,Ai as VendureSellerApiFactory,Gt as VendureSellerApiFp,ca as VenueProviderOutcome,Ut as VivaApi,Xs as VivaApiAxiosParamCreator,Ri as VivaApiFactory,ue as VivaApiFp,da as VivaAppToAppPaymentMethod,pa as VivaCurrencyCode,ma as VivaErrorId,ya as VivaEventId,ga as VivaWebhookEventType,kt as WebhookApi,Js as WebhookApiAxiosParamCreator,fi as WebhookApiFactory,U as WebhookApiFp,Mt as WorldlineApi,Zs as WorldlineApiAxiosParamCreator,xi as WorldlineApiFactory,he as WorldlineApiFp,Bt as WorldlineInternalApi,er as WorldlineInternalApiAxiosParamCreator,Di as WorldlineInternalApiFactory,$ as WorldlineInternalApiFp,ha as WorldlineOperationStatus,Pa as WorldlinePaymentResultStatus,ba as WorldlineResponseStatus,Aa as WorldlineRevertMethod,_i as buildPosCategoryIndex,qi as cashRound,zt as collectEnabledSubcategoryIdsDepthFirst,$t as collectSubcategoryIdsDepthFirst,Bi as countryQuirks,Ti as formatMoney,sr as fromMinor,Ni as getCategoryProductsIncludingSubcategories,Wi as getSubcategoriesForCategory,ir as mapProductIdsToProducts,qe as minorUnitDigits,Pe as minorUnitMultiplier,wi as regionLocale,vi as toMinor};
1
+ import R from"axios";import es from"axios";var m="http://localhost".replace(/\/+$/,"");var v=class{constructor(o,e=m,s=es){this.basePath=e;this.axios=s;o&&(this.configuration=o,this.basePath=o.basePath||this.basePath)}configuration},pe=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var y="https://example.com",c=function(a,o,e){if(e==null)throw new pe(o,`Required parameter ${o} was null or undefined when calling ${a}.`)};var x=async function(a,o){if(o&&o.accessToken){let e=typeof o.accessToken=="function"?await o.accessToken():await o.accessToken;a.Authorization="Bearer "+e}};function xe(a,o,e=""){o!=null&&(typeof o=="object"?Array.isArray(o)?o.forEach(s=>xe(a,s,e)):Object.keys(o).forEach(s=>xe(a,o[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,o):a.set(e,o))}var g=function(a,...o){let e=new URLSearchParams(a.search);xe(e,o),a.search=e.toString()},b=function(a,o,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(o.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},h=function(a){return a.pathname+a.search+a.hash},P=function(a,o,e,s){return(t=o,r=e)=>{let n={...a.options,url:(s?.basePath||r)+a.url};return t.request(n)}};var Vr={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed",CashManagement:"cash-management"},Ir={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},vr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Tr={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},qr={Unavailable:"UNAVAILABLE"},Er={Image:"image",Video:"video",Animation:"animation"},Ur={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},kr={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Mr={GiftCard:"GiftCard"},Br={Online:"ONLINE",Offline:"OFFLINE"},wr={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"},Fr={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Lr={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},_r={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Nr={Pos:"pos",Display:"display"},jr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay",ResQ:"ResQ"},Wr={Pending:"pending",Success:"success",Failure:"failure"},Kr={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Qr={Kiosk:"kiosk"},Hr={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Gr={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},$r={NotFound:"NOT_FOUND",NotStarted:"NOT_STARTED",Expired:"EXPIRED",Disabled:"DISABLED",NotForThisApp:"NOT_FOR_THIS_APP",NotForThisOrderType:"NOT_FOR_THIS_ORDER_TYPE",ConditionsNotMet:"CONDITIONS_NOT_MET",UsageLimitReached:"USAGE_LIMIT_REACHED",CustomerLimitReached:"CUSTOMER_LIMIT_REACHED",NotFirstOrder:"NOT_FIRST_ORDER",CustomerPhoneRequired:"CUSTOMER_PHONE_REQUIRED",CouponsUnavailable:"COUPONS_UNAVAILABLE"},zr={ApiKey:"api_key",BasicAuth:"basic_auth",Oauth2:"oauth_2"},Yr={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",Afn:"AFN",Amd:"AMD",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Btn:"BTN",Bwp:"BWP",Byn:"BYN",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cup:"CUP",Cve:"CVE",Djf:"DJF",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Ern:"ERN",Etb:"ETB",Fjd:"FJD",Fkp:"FKP",Gel:"GEL",Ghs:"GHS",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Idr:"IDR",Ils:"ILS",Inr:"INR",Iqd:"IQD",Irr:"IRR",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Kpw:"KPW",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Lyd:"LYD",Mad:"MAD",Mga:"MGA",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pyg:"PYG",Qar:"QAR",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sdg:"SDG",Sgd:"SGD",Shp:"SHP",Sle:"SLE",Sos:"SOS",Srd:"SRD",Ssp:"SSP",Stn:"STN",Svc:"SVC",Syp:"SYP",Szl:"SZL",Thb:"THB",Tjs:"TJS",Tmt:"TMT",Tnd:"TND",Top:"TOP",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Ugx:"UGX",Uyu:"UYU",Uzs:"UZS",Ved:"VED",Ves:"VES",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xcg:"XCG",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW",Zwg:"ZWG"},Xr={Insert:"INSERT",Update:"UPDATE",Delete:"DELETE"},Zr={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},Jr={Shipday:"shipday",UberDirect:"uber_direct"},eo={Create:"CREATE",Update:"UPDATE",Cancel:"CANCEL"},to={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},so={Created:"created",Reactivated:"reactivated",AlreadyActive:"already_active"},ro={Foodora:"Foodora",Bolt:"Bolt"},oo={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},no={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},ao={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},io={Item:"ITEM",Cart:"CART"},lo={Business:"BUSINESS",Owner:"OWNER"},uo={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},co={Percentage:"PERCENTAGE",Fixed:"FIXED"},po={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},mo={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},yo={Pdf:"pdf",Xlsx:"xlsx"},go={NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1005:1005,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1015:1015,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1022:1022,NUMBER_1023:1023,NUMBER_1024:1024,NUMBER_1025:1025,NUMBER_1999:1999,NUMBER_2001:2001,NUMBER_2002:2002,NUMBER_2003:2003,NUMBER_3001:3001,NUMBER_4001:4001},ho={IngredientsDefaultHeading:"INGREDIENTS_DEFAULT_HEADING"},Po={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Ro={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},bo={Found:"NOT_FOUND",Pos:"NOT_POS",InProgress:"NOT_IN_PROGRESS"},Ao={Standard:"STANDARD",Broadcast:"BROADCAST"},xo={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},fo={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Do={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},So={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Co={Table:"table",Indicator:"indicator"},Oo={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Vo={Product:"product",Coupon:"coupon"},Io={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},vo={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},To={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},qo={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},Eo={Product:"product",Coupon:"coupon"},Uo={Percentage:"percentage",Fixed:"fixed"},ko={Manual:"manual",Automatic:"automatic"},Mo={Always:"always",ProductInCart:"product_in_cart",CategoryInCart:"category_in_cart",ProductQuantityInCart:"product_quantity_in_cart",CategoryQuantityInCart:"category_quantity_in_cart",CartMinValue:"cart_min_value",CartMaxValue:"cart_max_value"},Bo={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},wo={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},Fo={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},Lo={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},_o={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},No={Reversal:"REVERSAL",Refund:"REFUND"},jo={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Wo={Open:"OPEN",Instant:"INSTANT"},Ko={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Qo={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Ho={Platform:"PLATFORM",Pos:"POS"},Go={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},$o={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"},zo={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Yo={DineIn:"dine_in",PickUp:"pick_up"},Xo={Pos:"pos",Terminal:"terminal"},Zo={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},Jo={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},en={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},tn={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",TerminalDuplicate:"terminal.duplicate",TerminalPrinter:"terminal.printer",TerminalLowBattery:"terminal.low_battery",TerminalNeedsReconciliation:"terminal.needs_reconciliation",TerminalCheckScreen:"terminal.check_screen",SystemProviderError:"system.provider_error",SystemUnknown:"system.unknown"},sn={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",Trade:"Trade",Exchange:"Exchange",Tilisiirto:"Tilisiirto",LoyaltyPoints:"LoyaltyPoints",DiningByAmex:"DiningByAmex"},rn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},on={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi"},nn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi"},an={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},ln={Sale:"SALE",Refund:"REFUND",Void:"VOID"},un={Initiated:"INITIATED",Dispatched:"DISPATCHED",Processing:"PROCESSING",Success:"SUCCESS",Failed:"FAILED",Cancelled:"CANCELLED",Closed:"CLOSED",VoidPending:"VOID_PENDING",Voiding:"VOIDING",Voided:"VOIDED",VoidFailed:"VOID_FAILED",Refunding:"REFUNDING",Refunded:"REFUNDED"},dn={Paid:"paid",Pending:"pending"},cn={Business:"BUSINESS",Customer:"CUSTOMER"},pn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},mn={Today:"today",Yesterday:"yesterday",ThisWeek:"thisWeek",LastWeek:"lastWeek",ThisMonth:"thisMonth",LastMonth:"lastMonth",ThisYear:"thisYear",CustomDays:"custom",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR",Custom:"CUSTOM"},yn={Ready:"ready",Delivered:"delivered"},gn={NotFound:"NOT_FOUND",NotInProgress:"NOT_IN_PROGRESS",KitchenControlled:"KITCHEN_CONTROLLED",NotReady:"NOT_READY"},hn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Pn={Percentage:"percentage",Fixed:"fixed"},Rn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},bn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},An={AccessPosApp:"Access::PosApp",PagePos:"Page::Pos",PageOpenOrders:"Page::OpenOrders",PageOrders:"Page::Orders",PageTransactions:"Page::Transactions",PageProducts:"Page::Products",PageReports:"Page::Reports",PageSettings:"Page::Settings",PageFloorPlan:"Page::FloorPlan",Cart:"Cart::*",CartAddItem:"Cart::AddItem",CartRemoveItem:"Cart::RemoveItem",CartApplyDiscount:"Cart::ApplyDiscount",CartVoidItem:"Cart::VoidItem",CartClear:"Cart::Clear",CartRemoveDiscount:"Cart::RemoveDiscount",CartVoidPayment:"Cart::VoidPayment",Cash:"Cash::*",CashOpenDay:"Cash::OpenDay",CashCloseDay:"Cash::CloseDay",CashCashIn:"Cash::CashIn",CashCashOut:"Cash::CashOut",CashOpenDrawer:"Cash::OpenDrawer",CashPrintReport:"Cash::PrintReport",CashSendReport:"Cash::SendReport",Transaction:"Transaction::*",TransactionRefund:"Transaction::Refund",TransactionViewAll:"Transaction::ViewAll",TransactionTotals:"TransactionTotals::*",TransactionTotalsOrders:"TransactionTotals::Orders",TransactionTotalsSales:"TransactionTotals::Sales",TransactionTotalsRejectedOrders:"TransactionTotals::RejectedOrders",TransactionTotalsRejectedSales:"TransactionTotals::RejectedSales",Order:"Order::*",OrderSendReceipt:"Order::SendReceipt",OpenOrdersDelete:"OpenOrders::Delete",OpenOrdersSendToKitchen:"OpenOrders::SendToKitchen",OpenOrdersFireCourse:"OpenOrders::FireCourse",Shift:"Shift::*",ShiftForceClockOut:"Shift::ForceClockOut",FloorPlan:"FloorPlan::*",FloorPlanEditLayout:"FloorPlan::EditLayout",FloorPlanChangeTableStatus:"FloorPlan::ChangeTableStatus",FloorPlanManageSections:"FloorPlan::ManageSections",Settings:"Settings::*",SettingsEditProfile:"Settings::EditProfile",Report:"Report::*",ReportSendEmail:"Report::SendEmail",ReportTotals:"ReportTotals::*",ReportTotalsOrders:"ReportTotals::Orders",ReportTotalsSales:"ReportTotals::Sales",ReportTotalsTips:"ReportTotals::Tips",ReportTotalsSurcharges:"ReportTotals::Surcharges",ReportTotalsRejectedOrders:"ReportTotals::RejectedOrders",ReportTotalsRejectedSales:"ReportTotals::RejectedSales",ReportTotalsAverageSale:"ReportTotals::AverageSale",ReportTotalsItems:"ReportTotals::Items",ReportTotalsRefunds:"ReportTotals::Refunds",ReportTotalsDiscounts:"ReportTotals::Discounts"},xn={Access:"Access",Page:"Page",Cart:"Cart",Cash:"Cash",Transaction:"Transaction",TransactionTotals:"TransactionTotals",Order:"Order",OpenOrders:"OpenOrders",Shift:"Shift",FloorPlan:"FloorPlan",Settings:"Settings",Report:"Report",ReportTotals:"ReportTotals"},fn={Screen:"screen",Action:"action",Visibility:"visibility"},Dn={Waiting:"waiting",Confirm:"confirm"},Sn={Preset:"PRESET",Open:"OPEN"},Cn={Bluetooth:"bluetooth",Network:"network"},On={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Vn={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},In={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},vn={Modal:"MODAL",Screen:"SCREEN"},Tn={Percentage:"PERCENTAGE",Fixed:"FIXED"},qn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay",ResQ:"ResQ"},En={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},Un={Kds:"KDS"},kn={Sales:"sales",ZReport:"zReport",SalesVat:"salesVat",Payments:"payments",ProductSales:"productSales",CashSessions:"cashSessions",Staff:"staff"},Mn={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},Bn={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},wn={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"},Fn={Full:"FULL",Item:"ITEM"},Ln={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},_n={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Nn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},jn={Pos:"pos",Kiosk:"kiosk",Storefront:"storefront",Mobile:"mobile"},Wn={IsTheBaseline:"is_the_baseline",OtherCurrency:"other_currency"},Kn={None:"none",Venue:"venue",App:"app",VenueApp:"venue_app"},Qn={Daily:"daily",Weekly:"weekly",Monthly:"monthly",Off:"off"},Hn={SalesReportTotalQuantity:"salesReport.totalQuantity",SalesReportTotalWithTax:"salesReport.totalWithTax",SalesReportTotalTaxAmount:"salesReport.totalTaxAmount",SalesReportTotalWithoutTax:"salesReport.totalWithoutTax",SalesReportDeliveryFee:"salesReport.deliveryFee",SalesReportDeliveryTax:"salesReport.deliveryTax",PaymentReportSummarySalesAndRevenue:"paymentReport.summary.salesAndRevenue",PaymentReportSummaryGrossAmount:"paymentReport.summary.grossAmount",PaymentReportSummaryTotalCount:"paymentReport.summary.totalCount",PaymentReportSummaryTotalAmount:"paymentReport.summary.totalAmount",PaymentReportSummaryCardsCount:"paymentReport.summary.cardsCount",PaymentReportSummaryCardsAmount:"paymentReport.summary.cardsAmount",PaymentReportSummaryEdenredVoucherCount:"paymentReport.summary.edenredVoucherCount",PaymentReportSummaryEdenredVoucherAmount:"paymentReport.summary.edenredVoucherAmount",PaymentReportSummarySmartumVoucherCount:"paymentReport.summary.smartumVoucherCount",PaymentReportSummarySmartumVoucherAmount:"paymentReport.summary.smartumVoucherAmount",PaymentReportSummaryTotalCoupons:"paymentReport.summary.totalCoupons",PaymentReportSummaryTotalVoucherForfeited:"paymentReport.summary.totalVoucherForfeited",PaymentReportSummaryTotalTipAmount:"paymentReport.summary.totalTipAmount",PaymentReportSummaryTotalSurchargeAmount:"paymentReport.summary.totalSurchargeAmount",PaymentReportSummaryTotalRefunds:"paymentReport.summary.totalRefunds",PaymentReportSummaryRefundCount:"paymentReport.summary.refundCount",PaymentReportTotalDiscounts:"paymentReport.totalDiscounts",OrderCount:"orderCount",AverageOrderValue:"averageOrderValue"},Gn={Fi:"fi",En:"en"},$n={EatIn:"eat_in",Takeaway:"takeaway",Delivery:"delivery",Unknown:"unknown"},zn={Summary:"summary",Items:"items",Vat:"vat",Payments:"payments",Discounts:"discounts"},Yn={Making:"making",Sent:"sent",Failed:"failed"},Xn={Meal:"meal",Snack:"snack",Ingredients:"ingredients",GroceryBag:"grocery-bag",Dessert:"dessert",Flowers:"flowers",Fee:"fee",Wholesale:"wholesale",HomeCosmetics:"home-cosmetics"},Zn={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},Jn={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},ea={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",BusinessProviderSupportedIntegrations:"BUSINESS_PROVIDER_SUPPORTED_INTEGRATIONS",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",PaymentMethods:"PAYMENT_METHODS",ReceiptFooter:"RECEIPT_FOOTER"},ta={Report:"report",Comparison:"comparison"},sa={Private:"private",Organisation:"organisation",Public:"public"},ra={Physical:"PHYSICAL"},oa={NoAriAccess:"NO_ARI_ACCESS",NotStoreOwner:"NOT_STORE_OWNER",RightsUnavailable:"RIGHTS_UNAVAILABLE"},na={Assigned:"ORDER_ASSIGNED",AcceptedAndStarted:"ORDER_ACCEPTED_AND_STARTED",Ontheway:"ORDER_ONTHEWAY",Completed:"ORDER_COMPLETED",Failed:"ORDER_FAILED",Incomplete:"ORDER_INCOMPLETE",Delete:"ORDER_DELETE",Inserted:"ORDER_INSERTED",Pikedup:"ORDER_PIKEDUP",Unassigned:"ORDER_UNASSIGNED",PikedupRemoved:"ORDER_PIKEDUP_REMOVED",OnthewayRemoved:"ORDER_ONTHEWAY_REMOVED"},aa={NotAssigned:"NOT_ASSIGNED",NotAccepted:"NOT_ACCEPTED",NotStartedYet:"NOT_STARTED_YET",Started:"STARTED",PickedUp:"PICKED_UP",ReadyToDeliver:"READY_TO_DELIVER",AlreadyDelivered:"ALREADY_DELIVERED",Incomplete:"INCOMPLETE",FailedDelivery:"FAILED_DELIVERY"},ia={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},la={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},ua={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"},da={Kiosk:"KIOSK",Pos:"POS"},ca={Active:"ACTIVE",Inactive:"INACTIVE"},pa={NoStation:"NO_STATION"},ma={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},ya={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},ga={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},ha={Network:"NETWORK"},Pa={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Ra={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ba={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Aa={Instant:"instant",Preorder:"preorder"},xa={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},fa={Created:"created",Updated:"updated",Unchanged:"unchanged"},Da={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Sa={_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"},Ca={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},Oa={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},Va={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Ia={Queued:"QUEUED",InProgress:"IN_PROGRESS",Completed:"COMPLETED",Failed:"FAILED",Cancelled:"CANCELLED"},va={Pending:"PENDING",Completed:"COMPLETED",Failed:"FAILED"},Ta={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},qa={Reversal:"REVERSAL",Refund:"REFUND"},ts=function(a){return{checkActionPasscode:async(o,e,s,t={})=>{c("checkActionPasscode","businessId",o),c("checkActionPasscode","xPosPin",e),c("checkActionPasscode","checkActionPasscodeDto",s);let r="/api/v2/businesses/{businessId}/action-passcodes/check".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},Nt=function(a){let o=ts(a);return{async checkActionPasscode(e,s,t,r){let n=await o.checkActionPasscode(e,s,t,r);return P(n,R,m,a)}}},Ea=function(a,o,e){let s=Nt(a);return{checkActionPasscode(t,r,n,i){return s.checkActionPasscode(t,r,n,i).then(l=>l(e,o))}}},Me=class extends v{checkActionPasscode(o,e,s,t){return Nt(this.configuration).checkActionPasscode(o,e,s,t).then(r=>r(this.axios,this.basePath))}},ss=function(a){return{getOrganisationAnalyticsDashboard:async(o,e={})=>{c("getOrganisationAnalyticsDashboard","groupId",o);let s="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getStoreAnalyticsDashboard:async(o,e={})=>{c("getStoreAnalyticsDashboard","businessId",o);let s="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},saveOrganisationAnalyticsDashboard:async(o,e,s={})=>{c("saveOrganisationAnalyticsDashboard","groupId",o),c("saveOrganisationAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PUT",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},saveStoreAnalyticsDashboard:async(o,e,s={})=>{c("saveStoreAnalyticsDashboard","businessId",o),c("saveStoreAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PUT",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},re=function(a){let o=ss(a);return{async getOrganisationAnalyticsDashboard(e,s){let t=await o.getOrganisationAnalyticsDashboard(e,s);return P(t,R,m,a)},async getStoreAnalyticsDashboard(e,s){let t=await o.getStoreAnalyticsDashboard(e,s);return P(t,R,m,a)},async saveOrganisationAnalyticsDashboard(e,s,t){let r=await o.saveOrganisationAnalyticsDashboard(e,s,t);return P(r,R,m,a)},async saveStoreAnalyticsDashboard(e,s,t){let r=await o.saveStoreAnalyticsDashboard(e,s,t);return P(r,R,m,a)}}},Ua=function(a,o,e){let s=re(a);return{getOrganisationAnalyticsDashboard(t,r){return s.getOrganisationAnalyticsDashboard(t,r).then(n=>n(e,o))},getStoreAnalyticsDashboard(t,r){return s.getStoreAnalyticsDashboard(t,r).then(n=>n(e,o))},saveOrganisationAnalyticsDashboard(t,r,n){return s.saveOrganisationAnalyticsDashboard(t,r,n).then(i=>i(e,o))},saveStoreAnalyticsDashboard(t,r,n){return s.saveStoreAnalyticsDashboard(t,r,n).then(i=>i(e,o))}}},Be=class extends v{getOrganisationAnalyticsDashboard(o,e){return re(this.configuration).getOrganisationAnalyticsDashboard(o,e).then(s=>s(this.axios,this.basePath))}getStoreAnalyticsDashboard(o,e){return re(this.configuration).getStoreAnalyticsDashboard(o,e).then(s=>s(this.axios,this.basePath))}saveOrganisationAnalyticsDashboard(o,e,s){return re(this.configuration).saveOrganisationAnalyticsDashboard(o,e,s).then(t=>t(this.axios,this.basePath))}saveStoreAnalyticsDashboard(o,e,s){return re(this.configuration).saveStoreAnalyticsDashboard(o,e,s).then(t=>t(this.axios,this.basePath))}},rs=function(a){return{firebaseAuth:async(o={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},login:async(o,e={})=>{c("login","credentialDto",o);let s="/api/v1/auth/login",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},logout:async(o={})=>{let e="/api/v1/auth/logout",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},refreshToken:async(o,e={})=>{c("refreshToken","refreshTokenDto",o);let s="/api/v1/auth/refresh",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},oe=function(a){let o=rs(a);return{async firebaseAuth(e){let s=await o.firebaseAuth(e);return P(s,R,m,a)},async login(e,s){let t=await o.login(e,s);return P(t,R,m,a)},async logout(e){let s=await o.logout(e);return P(s,R,m,a)},async refreshToken(e,s){let t=await o.refreshToken(e,s);return P(t,R,m,a)}}},ka=function(a,o,e){let s=oe(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(r=>r(e,o))},login(t,r){return s.login(t,r).then(n=>n(e,o))},logout(t){return s.logout(t).then(r=>r(e,o))},refreshToken(t,r){return s.refreshToken(t,r).then(n=>n(e,o))}}},we=class extends v{firebaseAuth(o){return oe(this.configuration).firebaseAuth(o).then(e=>e(this.axios,this.basePath))}login(o,e){return oe(this.configuration).login(o,e).then(s=>s(this.axios,this.basePath))}logout(o){return oe(this.configuration).logout(o).then(e=>e(this.axios,this.basePath))}refreshToken(o,e){return oe(this.configuration).refreshToken(o,e).then(s=>s(this.axios,this.basePath))}},os=function(a){return{getAdvancedDiscounts:async(o,e={})=>{c("getAdvancedDiscounts","businessId",o);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getBusinessCategoriesByMenuIdV2:async(o,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",o),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getBusinessCategoriesByMenuIdV3:async(o,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",o),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getBusinessChannelConfigV2:async(o,e,s={})=>{c("getBusinessChannelConfigV2","businessId",o);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfig:async(o,e,s={})=>{c("getBusinessConfig","businessId",o);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfigById:async(o,e,s={})=>{c("getBusinessConfigById","businessId",o);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfigByIdV2:async(o,e,s={})=>{c("getBusinessConfigByIdV2","businessId",o);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV2:async(o,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",o),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(o))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV3:async(o,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",o),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(o))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV4:async(o,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",o),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(o))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessProviderStatus:async(o,e={})=>{c("getBusinessProviderStatus","businessId",o);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getBusinessTax:async(o,e={})=>{let s="/api/v1/business/tax",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getProvidersSupportedIntegrations:async(o,e={})=>{c("getProvidersSupportedIntegrations","businessIds",o);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o&&(l.businessIds=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getSingleBusinessProviderStatus:async(o,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",o),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(o))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getVenueCurrency:async(o,e={})=>{c("getVenueCurrency","businessId",o);let s="/api/v1/business/{businessId}/currency".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},setBusinessStatus:async(o,e,s={})=>{c("setBusinessStatus","businessId",o),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PATCH",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},setBusinessStatusSchedule:async(o,e,s={})=>{c("setBusinessStatusSchedule","businessId",o),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PATCH",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},k=function(a){let o=os(a);return{async getAdvancedDiscounts(e,s){let t=await o.getAdvancedDiscounts(e,s);return P(t,R,m,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let r=await o.getBusinessCategoriesByMenuIdV2(e,s,t);return P(r,R,m,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let r=await o.getBusinessCategoriesByMenuIdV3(e,s,t);return P(r,R,m,a)},async getBusinessChannelConfigV2(e,s,t){let r=await o.getBusinessChannelConfigV2(e,s,t);return P(r,R,m,a)},async getBusinessConfig(e,s,t){let r=await o.getBusinessConfig(e,s,t);return P(r,R,m,a)},async getBusinessConfigById(e,s,t){let r=await o.getBusinessConfigById(e,s,t);return P(r,R,m,a)},async getBusinessConfigByIdV2(e,s,t){let r=await o.getBusinessConfigByIdV2(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV2(e,s,t){let r=await o.getBusinessMenuByTypeV2(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV3(e,s,t){let r=await o.getBusinessMenuByTypeV3(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV4(e,s,t){let r=await o.getBusinessMenuByTypeV4(e,s,t);return P(r,R,m,a)},async getBusinessProviderStatus(e,s){let t=await o.getBusinessProviderStatus(e,s);return P(t,R,m,a)},async getBusinessTax(e,s){let t=await o.getBusinessTax(e,s);return P(t,R,m,a)},async getProvidersSupportedIntegrations(e,s){let t=await o.getProvidersSupportedIntegrations(e,s);return P(t,R,m,a)},async getSingleBusinessProviderStatus(e,s,t,r){let n=await o.getSingleBusinessProviderStatus(e,s,t,r);return P(n,R,m,a)},async getVenueCurrency(e,s){let t=await o.getVenueCurrency(e,s);return P(t,R,m,a)},async setBusinessStatus(e,s,t){let r=await o.setBusinessStatus(e,s,t);return P(r,R,m,a)},async setBusinessStatusSchedule(e,s,t){let r=await o.setBusinessStatusSchedule(e,s,t);return P(r,R,m,a)}}},Ma=function(a,o,e){let s=k(a);return{getAdvancedDiscounts(t,r){return s.getAdvancedDiscounts(t,r).then(n=>n(e,o))},getBusinessCategoriesByMenuIdV2(t,r,n){return s.getBusinessCategoriesByMenuIdV2(t,r,n).then(i=>i(e,o))},getBusinessCategoriesByMenuIdV3(t,r,n){return s.getBusinessCategoriesByMenuIdV3(t,r,n).then(i=>i(e,o))},getBusinessChannelConfigV2(t,r,n){return s.getBusinessChannelConfigV2(t,r,n).then(i=>i(e,o))},getBusinessConfig(t,r,n){return s.getBusinessConfig(t,r,n).then(i=>i(e,o))},getBusinessConfigById(t,r,n){return s.getBusinessConfigById(t,r,n).then(i=>i(e,o))},getBusinessConfigByIdV2(t,r,n){return s.getBusinessConfigByIdV2(t,r,n).then(i=>i(e,o))},getBusinessMenuByTypeV2(t,r,n){return s.getBusinessMenuByTypeV2(t,r,n).then(i=>i(e,o))},getBusinessMenuByTypeV3(t,r,n){return s.getBusinessMenuByTypeV3(t,r,n).then(i=>i(e,o))},getBusinessMenuByTypeV4(t,r,n){return s.getBusinessMenuByTypeV4(t,r,n).then(i=>i(e,o))},getBusinessProviderStatus(t,r){return s.getBusinessProviderStatus(t,r).then(n=>n(e,o))},getBusinessTax(t,r){return s.getBusinessTax(t,r).then(n=>n(e,o))},getProvidersSupportedIntegrations(t,r){return s.getProvidersSupportedIntegrations(t,r).then(n=>n(e,o))},getSingleBusinessProviderStatus(t,r,n,i){return s.getSingleBusinessProviderStatus(t,r,n,i).then(l=>l(e,o))},getVenueCurrency(t,r){return s.getVenueCurrency(t,r).then(n=>n(e,o))},setBusinessStatus(t,r,n){return s.setBusinessStatus(t,r,n).then(i=>i(e,o))},setBusinessStatusSchedule(t,r,n){return s.setBusinessStatusSchedule(t,r,n).then(i=>i(e,o))}}},Fe=class extends v{getAdvancedDiscounts(o,e){return k(this.configuration).getAdvancedDiscounts(o,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(o,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV2(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(o,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV3(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(o,e,s){return k(this.configuration).getBusinessChannelConfigV2(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(o,e,s){return k(this.configuration).getBusinessConfig(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(o,e,s){return k(this.configuration).getBusinessConfigById(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(o,e,s){return k(this.configuration).getBusinessConfigByIdV2(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(o,e,s){return k(this.configuration).getBusinessMenuByTypeV2(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(o,e,s){return k(this.configuration).getBusinessMenuByTypeV3(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(o,e,s){return k(this.configuration).getBusinessMenuByTypeV4(o,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(o,e){return k(this.configuration).getBusinessProviderStatus(o,e).then(s=>s(this.axios,this.basePath))}getBusinessTax(o,e){return k(this.configuration).getBusinessTax(o,e).then(s=>s(this.axios,this.basePath))}getProvidersSupportedIntegrations(o,e){return k(this.configuration).getProvidersSupportedIntegrations(o,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(o,e,s,t){return k(this.configuration).getSingleBusinessProviderStatus(o,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueCurrency(o,e){return k(this.configuration).getVenueCurrency(o,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(o,e,s){return k(this.configuration).setBusinessStatus(o,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(o,e,s){return k(this.configuration).setBusinessStatusSchedule(o,e,s).then(t=>t(this.axios,this.basePath))}},ns=function(a){return{upsertSchedule:async(o,e,s={})=>{c("upsertSchedule","businessId",o),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PATCH",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},jt=function(a){let o=ns(a);return{async upsertSchedule(e,s,t){let r=await o.upsertSchedule(e,s,t);return P(r,R,m,a)}}},Ba=function(a,o,e){let s=jt(a);return{upsertSchedule(t,r,n){return s.upsertSchedule(t,r,n).then(i=>i(e,o))}}},Le=class extends v{upsertSchedule(o,e,s){return jt(this.configuration).upsertSchedule(o,e,s).then(t=>t(this.axios,this.basePath))}},as=function(a){return{create:async(o,e,s={})=>{c("create","businessId",o),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getCashLogs:async(o,e,s,t,r,n,i,l={})=>{c("getCashLogs","businessId",o);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(o))),d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"GET",...p,...l},D={},f={};await x(D,a),e!==void 0&&(f.timeSpan=e),s!==void 0&&(f.start=s),t!==void 0&&(f.end=t),r!==void 0&&(f.page=r),n!==void 0&&(f.rowPerPage=n),i!==void 0&&(f.timezone=i),g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},{url:h(d),options:A}},getCashSession:async(o,e={})=>{c("getCashSession","businessId",o);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getSessionReport:async(o,e,s={})=>{c("getSessionReport","businessId",o),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(o))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},recordCashLog:async(o,e,s={})=>{c("recordCashLog","businessId",o),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},sendSessionReport:async(o,e,s,t,r={})=>{c("sendSessionReport","businessId",o),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(o))).replace("{sessionId}",encodeURIComponent(String(e))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};await x(d,a),t!=null&&(d["x-app-x"]=String(t)),d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(s,u,a),{url:h(i),options:u}}}},X=function(a){let o=as(a);return{async create(e,s,t){let r=await o.create(e,s,t);return P(r,R,m,a)},async getCashLogs(e,s,t,r,n,i,l,u){let d=await o.getCashLogs(e,s,t,r,n,i,l,u);return P(d,R,m,a)},async getCashSession(e,s){let t=await o.getCashSession(e,s);return P(t,R,m,a)},async getSessionReport(e,s,t){let r=await o.getSessionReport(e,s,t);return P(r,R,m,a)},async recordCashLog(e,s,t){let r=await o.recordCashLog(e,s,t);return P(r,R,m,a)},async sendSessionReport(e,s,t,r,n){let i=await o.sendSessionReport(e,s,t,r,n);return P(i,R,m,a)}}},wa=function(a,o,e){let s=X(a);return{create(t,r,n){return s.create(t,r,n).then(i=>i(e,o))},getCashLogs(t,r,n,i,l,u,d,p){return s.getCashLogs(t,r,n,i,l,u,d,p).then(A=>A(e,o))},getCashSession(t,r){return s.getCashSession(t,r).then(n=>n(e,o))},getSessionReport(t,r,n){return s.getSessionReport(t,r,n).then(i=>i(e,o))},recordCashLog(t,r,n){return s.recordCashLog(t,r,n).then(i=>i(e,o))},sendSessionReport(t,r,n,i,l){return s.sendSessionReport(t,r,n,i,l).then(u=>u(e,o))}}},_e=class extends v{create(o,e,s){return X(this.configuration).create(o,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(o,e,s,t,r,n,i,l){return X(this.configuration).getCashLogs(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(o,e){return X(this.configuration).getCashSession(o,e).then(s=>s(this.axios,this.basePath))}getSessionReport(o,e,s){return X(this.configuration).getSessionReport(o,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(o,e,s){return X(this.configuration).recordCashLog(o,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(o,e,s,t,r){return X(this.configuration).sendSessionReport(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}},is=function(a){return{listCashLogsForTill:async(o,e,s,t,r,n,i,l={})=>{c("listCashLogsForTill","businessId",o);let u="/api/v6/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(o))),d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"GET",...p,...l},D={},f={};await x(D,a),e!==void 0&&(f.timeSpan=e),s!==void 0&&(f.start=s),t!==void 0&&(f.end=t),r!==void 0&&(f.page=r),n!==void 0&&(f.rowPerPage=n),i!==void 0&&(f.timezone=i),g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},{url:h(d),options:A}}}},Wt=function(a){let o=is(a);return{async listCashLogsForTill(e,s,t,r,n,i,l,u){let d=await o.listCashLogsForTill(e,s,t,r,n,i,l,u);return P(d,R,m,a)}}},Fa=function(a,o,e){let s=Wt(a);return{listCashLogsForTill(t,r,n,i,l,u,d,p){return s.listCashLogsForTill(t,r,n,i,l,u,d,p).then(A=>A(e,o))}}},Ne=class extends v{listCashLogsForTill(o,e,s,t,r,n,i,l){return Wt(this.configuration).listCashLogsForTill(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}},ls=function(a){return{openCashSession:async(o,e,s={})=>{c("openCashSession","businessId",o),c("openCashSession","openCashSessionDto",e);let t="/api/v2/cash-management/{businessId}/sessions".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Kt=function(a){let o=ls(a);return{async openCashSession(e,s,t){let r=await o.openCashSession(e,s,t);return P(r,R,m,a)}}},La=function(a,o,e){let s=Kt(a);return{openCashSession(t,r,n){return s.openCashSession(t,r,n).then(i=>i(e,o))}}},je=class extends v{openCashSession(o,e,s){return Kt(this.configuration).openCashSession(o,e,s).then(t=>t(this.axios,this.basePath))}},us=function(a){return{getChannelCatalog:async(o,e,s,t={})=>{c("getChannelCatalog","businessId",o),c("getChannelCatalog","channelType",e);let r="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.menuId=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getChannelMenu:async(o,e,s,t={})=>{c("getChannelMenu","businessId",o),c("getChannelMenu","channelType",e);let r="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.deliveryType=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getChannelMenuTimes:async(o,e,s={})=>{c("getChannelMenuTimes","businessId",o),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};e!==void 0&&(u.channelType=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},me=function(a){let o=us(a);return{async getChannelCatalog(e,s,t,r){let n=await o.getChannelCatalog(e,s,t,r);return P(n,R,m,a)},async getChannelMenu(e,s,t,r){let n=await o.getChannelMenu(e,s,t,r);return P(n,R,m,a)},async getChannelMenuTimes(e,s,t){let r=await o.getChannelMenuTimes(e,s,t);return P(r,R,m,a)}}},_a=function(a,o,e){let s=me(a);return{getChannelCatalog(t,r,n,i){return s.getChannelCatalog(t,r,n,i).then(l=>l(e,o))},getChannelMenu(t,r,n,i){return s.getChannelMenu(t,r,n,i).then(l=>l(e,o))},getChannelMenuTimes(t,r,n){return s.getChannelMenuTimes(t,r,n).then(i=>i(e,o))}}},We=class extends v{getChannelCatalog(o,e,s,t){return me(this.configuration).getChannelCatalog(o,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(o,e,s,t){return me(this.configuration).getChannelMenu(o,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(o,e,s){return me(this.configuration).getChannelMenuTimes(o,e,s).then(t=>t(this.axios,this.basePath))}},ds=function(a){return{configConfigureMunchiGiftCard:async(o,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",o),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configGetProviders:async(o,e,s={})=>{c("configGetProviders","businessId",o),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!=null&&(l["x-app-x"]=String(e)),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},configManualSync:async(o,e,s={})=>{c("configManualSync","businessId",o),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configRemovePaymentOption:async(o,e,s,t={})=>{c("configRemovePaymentOption","businessId",o),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(o))).replace("{id}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await x(u,a),s!=null&&(u["x-app-x"]=String(s)),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},configSaveEpassiCredentials:async(o,e,s,t,r={})=>{c("configSaveEpassiCredentials","businessId",o),c("configSaveEpassiCredentials","xAppX",e),c("configSaveEpassiCredentials","xEpassiAccessKey",s),c("configSaveEpassiCredentials","saveEpassiCredentialsDto",t);let n="/api/v1/config-management/business/{businessId}/config/epassi".replace("{businessId}",encodeURIComponent(String(o))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};await x(d,a),e!=null&&(d["x-app-x"]=String(e)),s!=null&&(d["X-Epassi-Access-Key"]=String(s)),d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},configUpsertBusiness:async(o,e,s={})=>{c("configUpsertBusiness","businessId",o),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configUpsertChannelConfig:async(o,e,s,t={})=>{c("configUpsertChannelConfig","businessId",o),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configUpsertGiftCard:async(o,e,s,t={})=>{c("configUpsertGiftCard","businessId",o),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configUpsertLoyalty:async(o,e,s={})=>{c("configUpsertLoyalty","businessId",o),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configUpsertNets:async(o,e,s,t={})=>{c("configUpsertNets","businessId",o),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configUpsertPaymentOptions:async(o,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",o),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configUpsertProviders:async(o,e,s,t={})=>{c("configUpsertProviders","businessId",o),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let r="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configUpsertStripe:async(o,e,s,t={})=>{c("configUpsertStripe","businessId",o),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},configUpsertViva:async(o,e,s,t={})=>{c("configUpsertViva","businessId",o),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},w=function(a){let o=ds(a);return{async configConfigureMunchiGiftCard(e,s,t,r){let n=await o.configConfigureMunchiGiftCard(e,s,t,r);return P(n,R,m,a)},async configGetProviders(e,s,t){let r=await o.configGetProviders(e,s,t);return P(r,R,m,a)},async configManualSync(e,s,t){let r=await o.configManualSync(e,s,t);return P(r,R,m,a)},async configRemovePaymentOption(e,s,t,r){let n=await o.configRemovePaymentOption(e,s,t,r);return P(n,R,m,a)},async configSaveEpassiCredentials(e,s,t,r,n){let i=await o.configSaveEpassiCredentials(e,s,t,r,n);return P(i,R,m,a)},async configUpsertBusiness(e,s,t){let r=await o.configUpsertBusiness(e,s,t);return P(r,R,m,a)},async configUpsertChannelConfig(e,s,t,r){let n=await o.configUpsertChannelConfig(e,s,t,r);return P(n,R,m,a)},async configUpsertGiftCard(e,s,t,r){let n=await o.configUpsertGiftCard(e,s,t,r);return P(n,R,m,a)},async configUpsertLoyalty(e,s,t){let r=await o.configUpsertLoyalty(e,s,t);return P(r,R,m,a)},async configUpsertNets(e,s,t,r){let n=await o.configUpsertNets(e,s,t,r);return P(n,R,m,a)},async configUpsertPaymentOptions(e,s,t,r){let n=await o.configUpsertPaymentOptions(e,s,t,r);return P(n,R,m,a)},async configUpsertProviders(e,s,t,r){let n=await o.configUpsertProviders(e,s,t,r);return P(n,R,m,a)},async configUpsertStripe(e,s,t,r){let n=await o.configUpsertStripe(e,s,t,r);return P(n,R,m,a)},async configUpsertViva(e,s,t,r){let n=await o.configUpsertViva(e,s,t,r);return P(n,R,m,a)}}},Na=function(a,o,e){let s=w(a);return{configConfigureMunchiGiftCard(t,r,n,i){return s.configConfigureMunchiGiftCard(t,r,n,i).then(l=>l(e,o))},configGetProviders(t,r,n){return s.configGetProviders(t,r,n).then(i=>i(e,o))},configManualSync(t,r,n){return s.configManualSync(t,r,n).then(i=>i(e,o))},configRemovePaymentOption(t,r,n,i){return s.configRemovePaymentOption(t,r,n,i).then(l=>l(e,o))},configSaveEpassiCredentials(t,r,n,i,l){return s.configSaveEpassiCredentials(t,r,n,i,l).then(u=>u(e,o))},configUpsertBusiness(t,r,n){return s.configUpsertBusiness(t,r,n).then(i=>i(e,o))},configUpsertChannelConfig(t,r,n,i){return s.configUpsertChannelConfig(t,r,n,i).then(l=>l(e,o))},configUpsertGiftCard(t,r,n,i){return s.configUpsertGiftCard(t,r,n,i).then(l=>l(e,o))},configUpsertLoyalty(t,r,n){return s.configUpsertLoyalty(t,r,n).then(i=>i(e,o))},configUpsertNets(t,r,n,i){return s.configUpsertNets(t,r,n,i).then(l=>l(e,o))},configUpsertPaymentOptions(t,r,n,i){return s.configUpsertPaymentOptions(t,r,n,i).then(l=>l(e,o))},configUpsertProviders(t,r,n,i){return s.configUpsertProviders(t,r,n,i).then(l=>l(e,o))},configUpsertStripe(t,r,n,i){return s.configUpsertStripe(t,r,n,i).then(l=>l(e,o))},configUpsertViva(t,r,n,i){return s.configUpsertViva(t,r,n,i).then(l=>l(e,o))}}},Ke=class extends v{configConfigureMunchiGiftCard(o,e,s,t){return w(this.configuration).configConfigureMunchiGiftCard(o,e,s,t).then(r=>r(this.axios,this.basePath))}configGetProviders(o,e,s){return w(this.configuration).configGetProviders(o,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(o,e,s){return w(this.configuration).configManualSync(o,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(o,e,s,t){return w(this.configuration).configRemovePaymentOption(o,e,s,t).then(r=>r(this.axios,this.basePath))}configSaveEpassiCredentials(o,e,s,t,r){return w(this.configuration).configSaveEpassiCredentials(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(o,e,s){return w(this.configuration).configUpsertBusiness(o,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(o,e,s,t){return w(this.configuration).configUpsertChannelConfig(o,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(o,e,s,t){return w(this.configuration).configUpsertGiftCard(o,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(o,e,s){return w(this.configuration).configUpsertLoyalty(o,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(o,e,s,t){return w(this.configuration).configUpsertNets(o,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(o,e,s,t){return w(this.configuration).configUpsertPaymentOptions(o,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertProviders(o,e,s,t){return w(this.configuration).configUpsertProviders(o,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(o,e,s,t){return w(this.configuration).configUpsertStripe(o,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(o,e,s,t){return w(this.configuration).configUpsertViva(o,e,s,t).then(r=>r(this.axios,this.basePath))}},cs=function(a){return{checkCoupon:async(o,e,s={})=>{c("checkCoupon","businessId",o),c("checkCoupon","checkCouponDto",e);let t="/api/v2/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},checkKioskCoupon:async(o,e,s={})=>{c("checkKioskCoupon","businessId",o),c("checkKioskCoupon","checkCouponDto",e);let t="/api/v2/kiosk/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},fe=function(a){let o=cs(a);return{async checkCoupon(e,s,t){let r=await o.checkCoupon(e,s,t);return P(r,R,m,a)},async checkKioskCoupon(e,s,t){let r=await o.checkKioskCoupon(e,s,t);return P(r,R,m,a)}}},ja=function(a,o,e){let s=fe(a);return{checkCoupon(t,r,n){return s.checkCoupon(t,r,n).then(i=>i(e,o))},checkKioskCoupon(t,r,n){return s.checkKioskCoupon(t,r,n).then(i=>i(e,o))}}},Qe=class extends v{checkCoupon(o,e,s){return fe(this.configuration).checkCoupon(o,e,s).then(t=>t(this.axios,this.basePath))}checkKioskCoupon(o,e,s){return fe(this.configuration).checkKioskCoupon(o,e,s).then(t=>t(this.axios,this.basePath))}},ps=function(a){return{getCourseConfig:async(o,e={})=>{c("getCourseConfig","businessId",o);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getCourses:async(o,e={})=>{c("getCourses","businessId",o);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}}}},De=function(a){let o=ps(a);return{async getCourseConfig(e,s){let t=await o.getCourseConfig(e,s);return P(t,R,m,a)},async getCourses(e,s){let t=await o.getCourses(e,s);return P(t,R,m,a)}}},Wa=function(a,o,e){let s=De(a);return{getCourseConfig(t,r){return s.getCourseConfig(t,r).then(n=>n(e,o))},getCourses(t,r){return s.getCourses(t,r).then(n=>n(e,o))}}},He=class extends v{getCourseConfig(o,e){return De(this.configuration).getCourseConfig(o,e).then(s=>s(this.axios,this.basePath))}getCourses(o,e){return De(this.configuration).getCourses(o,e).then(s=>s(this.axios,this.basePath))}},ms=function(a){return{findIntent:async(o,e={})=>{c("findIntent","intentId",o);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},updateIntent:async(o,e,s={})=>{c("updateIntent","intentId",o),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PATCH",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Se=function(a){let o=ms(a);return{async findIntent(e,s){let t=await o.findIntent(e,s);return P(t,R,m,a)},async updateIntent(e,s,t){let r=await o.updateIntent(e,s,t);return P(r,R,m,a)}}},Ka=function(a,o,e){let s=Se(a);return{findIntent(t,r){return s.findIntent(t,r).then(n=>n(e,o))},updateIntent(t,r,n){return s.updateIntent(t,r,n).then(i=>i(e,o))}}},Ge=class extends v{findIntent(o,e){return Se(this.configuration).findIntent(o,e).then(s=>s(this.axios,this.basePath))}updateIntent(o,e,s){return Se(this.configuration).updateIntent(o,e,s).then(t=>t(this.axios,this.basePath))}},ys=function(a){return{init:async(o,e={})=>{let s="/api/v1/display/init",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},pair:async(o,e={})=>{c("pair","pairDisplayBodyDto",o);let s="/api/v1/display/pair",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},sessionToken:async(o,e={})=>{c("sessionToken","requestSessionTokenBodyDto",o);let s="/api/v1/display/session-token",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},unpair:async(o,e={})=>{c("unpair","unpairDisplayBodyDto",o);let s="/api/v1/display/unpair",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},ne=function(a){let o=ys(a);return{async init(e,s){let t=await o.init(e,s);return P(t,R,m,a)},async pair(e,s){let t=await o.pair(e,s);return P(t,R,m,a)},async sessionToken(e,s){let t=await o.sessionToken(e,s);return P(t,R,m,a)},async unpair(e,s){let t=await o.unpair(e,s);return P(t,R,m,a)}}},Qa=function(a,o,e){let s=ne(a);return{init(t,r){return s.init(t,r).then(n=>n(e,o))},pair(t,r){return s.pair(t,r).then(n=>n(e,o))},sessionToken(t,r){return s.sessionToken(t,r).then(n=>n(e,o))},unpair(t,r){return s.unpair(t,r).then(n=>n(e,o))}}},$e=class extends v{init(o,e){return ne(this.configuration).init(o,e).then(s=>s(this.axios,this.basePath))}pair(o,e){return ne(this.configuration).pair(o,e).then(s=>s(this.axios,this.basePath))}sessionToken(o,e){return ne(this.configuration).sessionToken(o,e).then(s=>s(this.axios,this.basePath))}unpair(o,e){return ne(this.configuration).unpair(o,e).then(s=>s(this.axios,this.basePath))}},gs=function(a){return{addEmployeeRole:async(o,e,s={})=>{c("addEmployeeRole","businessId",o),c("addEmployeeRole","addEmployeeRoleDto",e);let t="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},addStarterEmployeeRoles:async(o,e={})=>{c("addStarterEmployeeRoles","businessId",o);let s="/api/v2/businesses/{businessId}/employee-roles/starter".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},changeEmployeeRole:async(o,e,s,t={})=>{c("changeEmployeeRole","businessId",o),c("changeEmployeeRole","roleId",e),c("changeEmployeeRole","changeEmployeeRoleDto",s);let r="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{roleId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},listEmployeeRoles:async(o,e={})=>{c("listEmployeeRoles","businessId",o);let s="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},removeEmployeeRole:async(o,e,s={})=>{c("removeEmployeeRole","businessId",o),c("removeEmployeeRole","roleId",e);let t="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{roleId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},te=function(a){let o=gs(a);return{async addEmployeeRole(e,s,t){let r=await o.addEmployeeRole(e,s,t);return P(r,R,m,a)},async addStarterEmployeeRoles(e,s){let t=await o.addStarterEmployeeRoles(e,s);return P(t,R,m,a)},async changeEmployeeRole(e,s,t,r){let n=await o.changeEmployeeRole(e,s,t,r);return P(n,R,m,a)},async listEmployeeRoles(e,s){let t=await o.listEmployeeRoles(e,s);return P(t,R,m,a)},async removeEmployeeRole(e,s,t){let r=await o.removeEmployeeRole(e,s,t);return P(r,R,m,a)}}},Ha=function(a,o,e){let s=te(a);return{addEmployeeRole(t,r,n){return s.addEmployeeRole(t,r,n).then(i=>i(e,o))},addStarterEmployeeRoles(t,r){return s.addStarterEmployeeRoles(t,r).then(n=>n(e,o))},changeEmployeeRole(t,r,n,i){return s.changeEmployeeRole(t,r,n,i).then(l=>l(e,o))},listEmployeeRoles(t,r){return s.listEmployeeRoles(t,r).then(n=>n(e,o))},removeEmployeeRole(t,r,n){return s.removeEmployeeRole(t,r,n).then(i=>i(e,o))}}},ze=class extends v{addEmployeeRole(o,e,s){return te(this.configuration).addEmployeeRole(o,e,s).then(t=>t(this.axios,this.basePath))}addStarterEmployeeRoles(o,e){return te(this.configuration).addStarterEmployeeRoles(o,e).then(s=>s(this.axios,this.basePath))}changeEmployeeRole(o,e,s,t){return te(this.configuration).changeEmployeeRole(o,e,s,t).then(r=>r(this.axios,this.basePath))}listEmployeeRoles(o,e){return te(this.configuration).listEmployeeRoles(o,e).then(s=>s(this.axios,this.basePath))}removeEmployeeRole(o,e,s){return te(this.configuration).removeEmployeeRole(o,e,s).then(t=>t(this.axios,this.basePath))}},hs=function(a){return{addEmployee:async(o,e,s={})=>{c("addEmployee","businessId",o),c("addEmployee","addEmployeeDto",e);let t="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},changeEmployee:async(o,e,s,t={})=>{c("changeEmployee","businessId",o),c("changeEmployee","employeeId",e),c("changeEmployee","changeEmployeeDto",s);let r="/api/v2/businesses/{businessId}/employees/{employeeId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{employeeId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},listEmployees:async(o,e,s,t={})=>{c("listEmployees","businessId",o);let r="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.cursor=e),s!==void 0&&(d.limit=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},removeEmployeeFromVenue:async(o,e,s={})=>{c("removeEmployeeFromVenue","businessId",o),c("removeEmployeeFromVenue","employeeId",e);let t="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(o))).replace("{employeeId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},setEmployeeRole:async(o,e,s,t={})=>{c("setEmployeeRole","businessId",o),c("setEmployeeRole","employeeId",e),c("setEmployeeRole","setEmployeeRoleDto",s);let r="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(o))).replace("{employeeId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},se=function(a){let o=hs(a);return{async addEmployee(e,s,t){let r=await o.addEmployee(e,s,t);return P(r,R,m,a)},async changeEmployee(e,s,t,r){let n=await o.changeEmployee(e,s,t,r);return P(n,R,m,a)},async listEmployees(e,s,t,r){let n=await o.listEmployees(e,s,t,r);return P(n,R,m,a)},async removeEmployeeFromVenue(e,s,t){let r=await o.removeEmployeeFromVenue(e,s,t);return P(r,R,m,a)},async setEmployeeRole(e,s,t,r){let n=await o.setEmployeeRole(e,s,t,r);return P(n,R,m,a)}}},Ga=function(a,o,e){let s=se(a);return{addEmployee(t,r,n){return s.addEmployee(t,r,n).then(i=>i(e,o))},changeEmployee(t,r,n,i){return s.changeEmployee(t,r,n,i).then(l=>l(e,o))},listEmployees(t,r,n,i){return s.listEmployees(t,r,n,i).then(l=>l(e,o))},removeEmployeeFromVenue(t,r,n){return s.removeEmployeeFromVenue(t,r,n).then(i=>i(e,o))},setEmployeeRole(t,r,n,i){return s.setEmployeeRole(t,r,n,i).then(l=>l(e,o))}}},Ye=class extends v{addEmployee(o,e,s){return se(this.configuration).addEmployee(o,e,s).then(t=>t(this.axios,this.basePath))}changeEmployee(o,e,s,t){return se(this.configuration).changeEmployee(o,e,s,t).then(r=>r(this.axios,this.basePath))}listEmployees(o,e,s,t){return se(this.configuration).listEmployees(o,e,s,t).then(r=>r(this.axios,this.basePath))}removeEmployeeFromVenue(o,e,s){return se(this.configuration).removeEmployeeFromVenue(o,e,s).then(t=>t(this.axios,this.basePath))}setEmployeeRole(o,e,s,t){return se(this.configuration).setEmployeeRole(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Ps=function(a){return{createDiningTable:async(o,e={})=>{c("createDiningTable","createDiningTableDto",o);let s="/api/v1/floor-plan/tables",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},createFloorSection:async(o,e={})=>{c("createFloorSection","createFloorSectionDto",o);let s="/api/v1/floor-plan/sections",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},deleteDiningTable:async(o,e,s={})=>{c("deleteDiningTable","id",o),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},deleteFloorSection:async(o,e,s={})=>{c("deleteFloorSection","id",o),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},dissolveTableGroup:async(o,e,s={})=>{c("dissolveTableGroup","id",o),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getFloorPlan:async(o,e={})=>{c("getFloorPlan","businessId",o);let s="/api/v1/floor-plan",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},joinTables:async(o,e,s={})=>{c("joinTables","businessId",o),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.businessId=o),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},removeTableFromGroup:async(o,e,s={})=>{c("removeTableFromGroup","id",o),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},transferTable:async(o,e,s,t={})=>{c("transferTable","id",o),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let r="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateDiningTable:async(o,e,s,t={})=>{c("updateDiningTable","id",o),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let r="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateFloorSection:async(o,e,s,t={})=>{c("updateFloorSection","id",o),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let r="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateTablePosition:async(o,e,s,t={})=>{c("updateTablePosition","id",o),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let r="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateTableStatus:async(o,e,s,t={})=>{c("updateTableStatus","id",o),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let r="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},F=function(a){let o=Ps(a);return{async createDiningTable(e,s){let t=await o.createDiningTable(e,s);return P(t,R,m,a)},async createFloorSection(e,s){let t=await o.createFloorSection(e,s);return P(t,R,m,a)},async deleteDiningTable(e,s,t){let r=await o.deleteDiningTable(e,s,t);return P(r,R,m,a)},async deleteFloorSection(e,s,t){let r=await o.deleteFloorSection(e,s,t);return P(r,R,m,a)},async dissolveTableGroup(e,s,t){let r=await o.dissolveTableGroup(e,s,t);return P(r,R,m,a)},async getFloorPlan(e,s){let t=await o.getFloorPlan(e,s);return P(t,R,m,a)},async joinTables(e,s,t){let r=await o.joinTables(e,s,t);return P(r,R,m,a)},async removeTableFromGroup(e,s,t){let r=await o.removeTableFromGroup(e,s,t);return P(r,R,m,a)},async transferTable(e,s,t,r){let n=await o.transferTable(e,s,t,r);return P(n,R,m,a)},async updateDiningTable(e,s,t,r){let n=await o.updateDiningTable(e,s,t,r);return P(n,R,m,a)},async updateFloorSection(e,s,t,r){let n=await o.updateFloorSection(e,s,t,r);return P(n,R,m,a)},async updateTablePosition(e,s,t,r){let n=await o.updateTablePosition(e,s,t,r);return P(n,R,m,a)},async updateTableStatus(e,s,t,r){let n=await o.updateTableStatus(e,s,t,r);return P(n,R,m,a)}}},$a=function(a,o,e){let s=F(a);return{createDiningTable(t,r){return s.createDiningTable(t,r).then(n=>n(e,o))},createFloorSection(t,r){return s.createFloorSection(t,r).then(n=>n(e,o))},deleteDiningTable(t,r,n){return s.deleteDiningTable(t,r,n).then(i=>i(e,o))},deleteFloorSection(t,r,n){return s.deleteFloorSection(t,r,n).then(i=>i(e,o))},dissolveTableGroup(t,r,n){return s.dissolveTableGroup(t,r,n).then(i=>i(e,o))},getFloorPlan(t,r){return s.getFloorPlan(t,r).then(n=>n(e,o))},joinTables(t,r,n){return s.joinTables(t,r,n).then(i=>i(e,o))},removeTableFromGroup(t,r,n){return s.removeTableFromGroup(t,r,n).then(i=>i(e,o))},transferTable(t,r,n,i){return s.transferTable(t,r,n,i).then(l=>l(e,o))},updateDiningTable(t,r,n,i){return s.updateDiningTable(t,r,n,i).then(l=>l(e,o))},updateFloorSection(t,r,n,i){return s.updateFloorSection(t,r,n,i).then(l=>l(e,o))},updateTablePosition(t,r,n,i){return s.updateTablePosition(t,r,n,i).then(l=>l(e,o))},updateTableStatus(t,r,n,i){return s.updateTableStatus(t,r,n,i).then(l=>l(e,o))}}},Xe=class extends v{createDiningTable(o,e){return F(this.configuration).createDiningTable(o,e).then(s=>s(this.axios,this.basePath))}createFloorSection(o,e){return F(this.configuration).createFloorSection(o,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(o,e,s){return F(this.configuration).deleteDiningTable(o,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(o,e,s){return F(this.configuration).deleteFloorSection(o,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(o,e,s){return F(this.configuration).dissolveTableGroup(o,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(o,e){return F(this.configuration).getFloorPlan(o,e).then(s=>s(this.axios,this.basePath))}joinTables(o,e,s){return F(this.configuration).joinTables(o,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(o,e,s){return F(this.configuration).removeTableFromGroup(o,e,s).then(t=>t(this.axios,this.basePath))}transferTable(o,e,s,t){return F(this.configuration).transferTable(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateDiningTable(o,e,s,t){return F(this.configuration).updateDiningTable(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateFloorSection(o,e,s,t){return F(this.configuration).updateFloorSection(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateTablePosition(o,e,s,t){return F(this.configuration).updateTablePosition(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateTableStatus(o,e,s,t){return F(this.configuration).updateTableStatus(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Rs=function(a){return{redeemGiftCard:async(o,e={})=>{c("redeemGiftCard","redeemGiftCardDto",o);let s="/api/v1/giftcard/redeem",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},validateGiftCard:async(o,e={})=>{c("validateGiftCard","validateGiftCardDto",o);let s="/api/v1/giftcard/validate",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Ce=function(a){let o=Rs(a);return{async redeemGiftCard(e,s){let t=await o.redeemGiftCard(e,s);return P(t,R,m,a)},async validateGiftCard(e,s){let t=await o.validateGiftCard(e,s);return P(t,R,m,a)}}},za=function(a,o,e){let s=Ce(a);return{redeemGiftCard(t,r){return s.redeemGiftCard(t,r).then(n=>n(e,o))},validateGiftCard(t,r){return s.validateGiftCard(t,r).then(n=>n(e,o))}}},Ze=class extends v{redeemGiftCard(o,e){return Ce(this.configuration).redeemGiftCard(o,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(o,e){return Ce(this.configuration).validateGiftCard(o,e).then(s=>s(this.axios,this.basePath))}},bs=function(a){return{getOrderHistoryPOSV5:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S={})=>{c("getOrderHistoryPOSV5","businessIds",o);let O="/api/v5/history/orders/pos",V=new URL(O,y),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...S},T={},C={};await x(T,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),o&&(C.businessIds=o),r!==void 0&&(C.page=r),n!==void 0&&(C.rowPerPage=n),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),p&&(C.orderType=p),A&&(C.paymentTypePos=A),D!==void 0&&(C.invoiceCompanyId=D),f!==void 0&&(C.timezone=f),g(V,C);let Q=I&&I.headers?I.headers:{};return q.headers={...T,...Q,...S.headers},{url:h(V),options:q}},getOrderHistoryPOSV5Internal:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S={})=>{c("getOrderHistoryPOSV5Internal","businessIds",o);let O="/api/v5/history/internal/orders/pos",V=new URL(O,y),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...S},T={},C={};await x(T,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),o&&(C.businessIds=o),r!==void 0&&(C.page=r),n!==void 0&&(C.rowPerPage=n),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),p&&(C.orderType=p),A&&(C.paymentTypePos=A),D!==void 0&&(C.invoiceCompanyId=D),f!==void 0&&(C.timezone=f),g(V,C);let Q=I&&I.headers?I.headers:{};return q.headers={...T,...Q,...S.headers},{url:h(V),options:q}}}},Oe=function(a){let o=bs(a);return{async getOrderHistoryPOSV5(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O){let V=await o.getOrderHistoryPOSV5(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O);return P(V,R,m,a)},async getOrderHistoryPOSV5Internal(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O){let V=await o.getOrderHistoryPOSV5Internal(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O);return P(V,R,m,a)}}},Ya=function(a,o,e){let s=Oe(a);return{getOrderHistoryPOSV5(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I){return s.getOrderHistoryPOSV5(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I).then(q=>q(e,o))},getOrderHistoryPOSV5Internal(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I){return s.getOrderHistoryPOSV5Internal(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I).then(q=>q(e,o))}}},Je=class extends v{getOrderHistoryPOSV5(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S){return Oe(this.configuration).getOrderHistoryPOSV5(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S){return Oe(this.configuration).getOrderHistoryPOSV5Internal(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S).then(O=>O(this.axios,this.basePath))}},As=function(a){return{listOnlineOrderHistoryForServices:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S={})=>{c("listOnlineOrderHistoryForServices","businessIds",o);let O="/api/v6/history/internal/orders",V=new URL(O,y),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...S},T={},C={};e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),o&&(C.businessIds=o),r!==void 0&&(C.page=r),n!==void 0&&(C.rowPerPage=n),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),p&&(C.orderType=p),A&&(C.paymentTypePos=A),D!==void 0&&(C.invoiceCompanyId=D),f!==void 0&&(C.timezone=f),g(V,C);let Q=I&&I.headers?I.headers:{};return q.headers={...T,...Q,...S.headers},{url:h(V),options:q}},listOnlineOrderHistoryForTill:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S={})=>{c("listOnlineOrderHistoryForTill","businessIds",o);let O="/api/v6/history/orders",V=new URL(O,y),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...S},T={},C={};await x(T,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),o&&(C.businessIds=o),r!==void 0&&(C.page=r),n!==void 0&&(C.rowPerPage=n),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),p&&(C.orderType=p),A&&(C.paymentTypePos=A),D!==void 0&&(C.invoiceCompanyId=D),f!==void 0&&(C.timezone=f),g(V,C);let Q=I&&I.headers?I.headers:{};return q.headers={...T,...Q,...S.headers},{url:h(V),options:q}},listOrderHistoryForTill:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S={})=>{c("listOrderHistoryForTill","businessIds",o);let O="/api/v6/history/orders/pos",V=new URL(O,y),I;a&&(I=a.baseOptions);let q={method:"GET",...I,...S},T={},C={};await x(T,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),o&&(C.businessIds=o),r!==void 0&&(C.page=r),n!==void 0&&(C.rowPerPage=n),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),p&&(C.orderType=p),A&&(C.paymentTypePos=A),D!==void 0&&(C.invoiceCompanyId=D),f!==void 0&&(C.timezone=f),g(V,C);let Q=I&&I.headers?I.headers:{};return q.headers={...T,...Q,...S.headers},{url:h(V),options:q}}}},ye=function(a){let o=As(a);return{async listOnlineOrderHistoryForServices(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O){let V=await o.listOnlineOrderHistoryForServices(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O);return P(V,R,m,a)},async listOnlineOrderHistoryForTill(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O){let V=await o.listOnlineOrderHistoryForTill(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O);return P(V,R,m,a)},async listOrderHistoryForTill(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O){let V=await o.listOrderHistoryForTill(e,s,t,r,n,i,l,u,d,p,A,D,f,S,O);return P(V,R,m,a)}}},Xa=function(a,o,e){let s=ye(a);return{listOnlineOrderHistoryForServices(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I){return s.listOnlineOrderHistoryForServices(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I).then(q=>q(e,o))},listOnlineOrderHistoryForTill(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I){return s.listOnlineOrderHistoryForTill(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I).then(q=>q(e,o))},listOrderHistoryForTill(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I){return s.listOrderHistoryForTill(t,r,n,i,l,u,d,p,A,D,f,S,O,V,I).then(q=>q(e,o))}}},et=class extends v{listOnlineOrderHistoryForServices(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S){return ye(this.configuration).listOnlineOrderHistoryForServices(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S).then(O=>O(this.axios,this.basePath))}listOnlineOrderHistoryForTill(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S){return ye(this.configuration).listOnlineOrderHistoryForTill(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S).then(O=>O(this.axios,this.basePath))}listOrderHistoryForTill(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S){return ye(this.configuration).listOrderHistoryForTill(o,e,s,t,r,n,i,l,u,d,p,A,D,f,S).then(O=>O(this.axios,this.basePath))}},xs=function(a){return{createInvoiceCompany:async(o,e={})=>{c("createInvoiceCompany","createInvoiceCompanyDto",o);let s="/api/v1/invoice-companies",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},deleteInvoiceCompany:async(o,e,s={})=>{c("deleteInvoiceCompany","id",o),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getInvoiceCompanies:async(o,e={})=>{c("getInvoiceCompanies","businessId",o);let s="/api/v1/invoice-companies",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getInvoiceCompanyById:async(o,e,s={})=>{c("getInvoiceCompanyById","id",o),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},searchInvoiceCompanies:async(o,e,s={})=>{c("searchInvoiceCompanies","businessId",o);let t="/api/v1/invoice-companies/search",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.businessId=o),e!==void 0&&(u.search=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},updateInvoiceCompany:async(o,e,s,t={})=>{c("updateInvoiceCompany","id",o),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},Z=function(a){let o=xs(a);return{async createInvoiceCompany(e,s){let t=await o.createInvoiceCompany(e,s);return P(t,R,m,a)},async deleteInvoiceCompany(e,s,t){let r=await o.deleteInvoiceCompany(e,s,t);return P(r,R,m,a)},async getInvoiceCompanies(e,s){let t=await o.getInvoiceCompanies(e,s);return P(t,R,m,a)},async getInvoiceCompanyById(e,s,t){let r=await o.getInvoiceCompanyById(e,s,t);return P(r,R,m,a)},async searchInvoiceCompanies(e,s,t){let r=await o.searchInvoiceCompanies(e,s,t);return P(r,R,m,a)},async updateInvoiceCompany(e,s,t,r){let n=await o.updateInvoiceCompany(e,s,t,r);return P(n,R,m,a)}}},Za=function(a,o,e){let s=Z(a);return{createInvoiceCompany(t,r){return s.createInvoiceCompany(t,r).then(n=>n(e,o))},deleteInvoiceCompany(t,r,n){return s.deleteInvoiceCompany(t,r,n).then(i=>i(e,o))},getInvoiceCompanies(t,r){return s.getInvoiceCompanies(t,r).then(n=>n(e,o))},getInvoiceCompanyById(t,r,n){return s.getInvoiceCompanyById(t,r,n).then(i=>i(e,o))},searchInvoiceCompanies(t,r,n){return s.searchInvoiceCompanies(t,r,n).then(i=>i(e,o))},updateInvoiceCompany(t,r,n,i){return s.updateInvoiceCompany(t,r,n,i).then(l=>l(e,o))}}},tt=class extends v{createInvoiceCompany(o,e){return Z(this.configuration).createInvoiceCompany(o,e).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(o,e,s){return Z(this.configuration).deleteInvoiceCompany(o,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(o,e){return Z(this.configuration).getInvoiceCompanies(o,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(o,e,s){return Z(this.configuration).getInvoiceCompanyById(o,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(o,e,s){return Z(this.configuration).searchInvoiceCompanies(o,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(o,e,s,t){return Z(this.configuration).updateInvoiceCompany(o,e,s,t).then(r=>r(this.axios,this.basePath))}},fs=function(a){return{createKdsStations:async(o,e={})=>{c("createKdsStations","createKdsStationsDto",o);let s="/api/v2/kds/stations",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},deleteKdsStation:async(o,e,s={})=>{c("deleteKdsStation","stationId",o),c("deleteKdsStation","businessId",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},kdsGetOrders:async(o,e,s,t,r,n,i,l,u,d,p,A={})=>{c("kdsGetOrders","status",o),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let D="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(o))),f=new URL(D,y),S;a&&(S=a.baseOptions);let O={method:"GET",...S,...A},V={},I={};await x(V,a),e!==void 0&&(I.businessIds=e),s!==void 0&&(I.profileId=s),t!==void 0&&(I.page=t),r!==void 0&&(I.rowPerPage=r),n!==void 0&&(I.timeSpan=n),i!==void 0&&(I.start=i),l!==void 0&&(I.end=l),u!==void 0&&(I.timezone=u),d&&(I.provider=d),p&&(I.consumptionType=p),g(f,I);let q=S&&S.headers?S.headers:{};return O.headers={...V,...q,...A.headers},{url:h(f),options:O}},kdsGetProfiles:async(o,e={})=>{c("kdsGetProfiles","businessId",o);let s="/api/v1/kds/profiles",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},kdsMarkOrderReady:async(o,e={})=>{c("kdsMarkOrderReady","id",o);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"PATCH",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},kdsMarkOrdersReady:async(o,e={})=>{c("kdsMarkOrdersReady","kdsMarkOrdersReadyDto",o);let s="/api/v1/kds/orders/ready",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},kdsRevertOrder:async(o,e={})=>{c("kdsRevertOrder","id",o);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"PATCH",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},listKdsStations:async(o,e={})=>{c("listKdsStations","businessId",o);let s="/api/v2/kds/stations",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},updateKdsStation:async(o,e,s={})=>{c("updateKdsStation","stationId",o),c("updateKdsStation","updateKdsStationDto",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PUT",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},K=function(a){let o=fs(a);return{async createKdsStations(e,s){let t=await o.createKdsStations(e,s);return P(t,R,m,a)},async deleteKdsStation(e,s,t){let r=await o.deleteKdsStation(e,s,t);return P(r,R,m,a)},async kdsGetOrders(e,s,t,r,n,i,l,u,d,p,A,D){let f=await o.kdsGetOrders(e,s,t,r,n,i,l,u,d,p,A,D);return P(f,R,m,a)},async kdsGetProfiles(e,s){let t=await o.kdsGetProfiles(e,s);return P(t,R,m,a)},async kdsMarkOrderReady(e,s){let t=await o.kdsMarkOrderReady(e,s);return P(t,R,m,a)},async kdsMarkOrdersReady(e,s){let t=await o.kdsMarkOrdersReady(e,s);return P(t,R,m,a)},async kdsRevertOrder(e,s){let t=await o.kdsRevertOrder(e,s);return P(t,R,m,a)},async listKdsStations(e,s){let t=await o.listKdsStations(e,s);return P(t,R,m,a)},async updateKdsStation(e,s,t){let r=await o.updateKdsStation(e,s,t);return P(r,R,m,a)}}},Ja=function(a,o,e){let s=K(a);return{createKdsStations(t,r){return s.createKdsStations(t,r).then(n=>n(e,o))},deleteKdsStation(t,r,n){return s.deleteKdsStation(t,r,n).then(i=>i(e,o))},kdsGetOrders(t,r,n,i,l,u,d,p,A,D,f,S){return s.kdsGetOrders(t,r,n,i,l,u,d,p,A,D,f,S).then(O=>O(e,o))},kdsGetProfiles(t,r){return s.kdsGetProfiles(t,r).then(n=>n(e,o))},kdsMarkOrderReady(t,r){return s.kdsMarkOrderReady(t,r).then(n=>n(e,o))},kdsMarkOrdersReady(t,r){return s.kdsMarkOrdersReady(t,r).then(n=>n(e,o))},kdsRevertOrder(t,r){return s.kdsRevertOrder(t,r).then(n=>n(e,o))},listKdsStations(t,r){return s.listKdsStations(t,r).then(n=>n(e,o))},updateKdsStation(t,r,n){return s.updateKdsStation(t,r,n).then(i=>i(e,o))}}},st=class extends v{createKdsStations(o,e){return K(this.configuration).createKdsStations(o,e).then(s=>s(this.axios,this.basePath))}deleteKdsStation(o,e,s){return K(this.configuration).deleteKdsStation(o,e,s).then(t=>t(this.axios,this.basePath))}kdsGetOrders(o,e,s,t,r,n,i,l,u,d,p,A){return K(this.configuration).kdsGetOrders(o,e,s,t,r,n,i,l,u,d,p,A).then(D=>D(this.axios,this.basePath))}kdsGetProfiles(o,e){return K(this.configuration).kdsGetProfiles(o,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(o,e){return K(this.configuration).kdsMarkOrderReady(o,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrdersReady(o,e){return K(this.configuration).kdsMarkOrdersReady(o,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(o,e){return K(this.configuration).kdsRevertOrder(o,e).then(s=>s(this.axios,this.basePath))}listKdsStations(o,e){return K(this.configuration).listKdsStations(o,e).then(s=>s(this.axios,this.basePath))}updateKdsStation(o,e,s){return K(this.configuration).updateKdsStation(o,e,s).then(t=>t(this.axios,this.basePath))}},Ds=function(a){return{getKioskOrder:async(o,e,s={})=>{c("getKioskOrder","orderId",o),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(o))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={};g(r,{});let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},syncKioskOrder:async(o,e={})=>{c("syncKioskOrder","syncKioskOrderDto",o);let s="/api/v1/kiosk/orders/sync",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Ve=function(a){let o=Ds(a);return{async getKioskOrder(e,s,t){let r=await o.getKioskOrder(e,s,t);return P(r,R,m,a)},async syncKioskOrder(e,s){let t=await o.syncKioskOrder(e,s);return P(t,R,m,a)}}},ei=function(a,o,e){let s=Ve(a);return{getKioskOrder(t,r,n){return s.getKioskOrder(t,r,n).then(i=>i(e,o))},syncKioskOrder(t,r){return s.syncKioskOrder(t,r).then(n=>n(e,o))}}},rt=class extends v{getKioskOrder(o,e,s){return Ve(this.configuration).getKioskOrder(o,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(o,e){return Ve(this.configuration).syncKioskOrder(o,e).then(s=>s(this.axios,this.basePath))}},Ss=function(a){return{restoreRedemption:async(o,e={})=>{c("restoreRedemption","restoreLoyaltyRedemptionDto",o);let s="/api/v1/loyalty-commerce/redemptions/restore",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Qt=function(a){let o=Ss(a);return{async restoreRedemption(e,s){let t=await o.restoreRedemption(e,s);return P(t,R,m,a)}}},ti=function(a,o,e){let s=Qt(a);return{restoreRedemption(t,r){return s.restoreRedemption(t,r).then(n=>n(e,o))}}},ot=class extends v{restoreRedemption(o,e){return Qt(this.configuration).restoreRedemption(o,e).then(s=>s(this.axios,this.basePath))}},Cs=function(a){return{claimKioskOffer:async(o,e={})=>{c("claimKioskOffer","claimKioskOfferDto",o);let s="/api/v1/loyalty/users/claim",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},createLoyaltyUser:async(o,e,s={})=>{c("createLoyaltyUser","businessId",o),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.businessId=o),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getAdminTransactions:async(o,e,s,t={})=>{c("getAdminTransactions","businessId",o);let r="/api/v1/loyalty/admin/transactions",n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),o!==void 0&&(d.businessId=o),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getLoyaltyInfo:async(o,e={})=>{c("getLoyaltyInfo","businessId",o);let s="/api/v1/loyalty/info",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getUserById:async(o,e,s={})=>{c("getUserById","businessId",o),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.businessId=o),e!==void 0&&(u.userId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getWalletRewards:async(o,e,s={})=>{c("getWalletRewards","businessId",o),c("getWalletRewards","userId",e);let t="/api/v1/loyalty/users/wallet-rewards",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.businessId=o),e!==void 0&&(u.userId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},memberContext:async(o,e={})=>{c("memberContext","loyaltyMemberContextRequestDto",o);let s="/api/v1/loyalty/member-context",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},resolvePerks:async(o,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",o);let s="/api/v1/loyalty/resolve",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},searchUser:async(o,e,s,t,r={})=>{c("searchUser","businessId",o);let n="/api/v1/loyalty/users/search",i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await x(d,a),e!==void 0&&(p.phone=e),s!==void 0&&(p.country_code=s),t!==void 0&&(p.email=t),o!==void 0&&(p.businessId=o),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},updatePoints:async(o,e,s={})=>{c("updatePoints","businessId",o),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.businessId=o),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},validateWallet:async(o,e,s,t={})=>{c("validateWallet","businessId",o),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let r="/api/v1/loyalty/wallets/validate",n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),o!==void 0&&(d.businessId=o),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}}}},_=function(a){let o=Cs(a);return{async claimKioskOffer(e,s){let t=await o.claimKioskOffer(e,s);return P(t,R,m,a)},async createLoyaltyUser(e,s,t){let r=await o.createLoyaltyUser(e,s,t);return P(r,R,m,a)},async getAdminTransactions(e,s,t,r){let n=await o.getAdminTransactions(e,s,t,r);return P(n,R,m,a)},async getLoyaltyInfo(e,s){let t=await o.getLoyaltyInfo(e,s);return P(t,R,m,a)},async getUserById(e,s,t){let r=await o.getUserById(e,s,t);return P(r,R,m,a)},async getWalletRewards(e,s,t){let r=await o.getWalletRewards(e,s,t);return P(r,R,m,a)},async memberContext(e,s){let t=await o.memberContext(e,s);return P(t,R,m,a)},async resolvePerks(e,s){let t=await o.resolvePerks(e,s);return P(t,R,m,a)},async searchUser(e,s,t,r,n){let i=await o.searchUser(e,s,t,r,n);return P(i,R,m,a)},async updatePoints(e,s,t){let r=await o.updatePoints(e,s,t);return P(r,R,m,a)},async validateWallet(e,s,t,r){let n=await o.validateWallet(e,s,t,r);return P(n,R,m,a)}}},si=function(a,o,e){let s=_(a);return{claimKioskOffer(t,r){return s.claimKioskOffer(t,r).then(n=>n(e,o))},createLoyaltyUser(t,r,n){return s.createLoyaltyUser(t,r,n).then(i=>i(e,o))},getAdminTransactions(t,r,n,i){return s.getAdminTransactions(t,r,n,i).then(l=>l(e,o))},getLoyaltyInfo(t,r){return s.getLoyaltyInfo(t,r).then(n=>n(e,o))},getUserById(t,r,n){return s.getUserById(t,r,n).then(i=>i(e,o))},getWalletRewards(t,r,n){return s.getWalletRewards(t,r,n).then(i=>i(e,o))},memberContext(t,r){return s.memberContext(t,r).then(n=>n(e,o))},resolvePerks(t,r){return s.resolvePerks(t,r).then(n=>n(e,o))},searchUser(t,r,n,i,l){return s.searchUser(t,r,n,i,l).then(u=>u(e,o))},updatePoints(t,r,n){return s.updatePoints(t,r,n).then(i=>i(e,o))},validateWallet(t,r,n,i){return s.validateWallet(t,r,n,i).then(l=>l(e,o))}}},nt=class extends v{claimKioskOffer(o,e){return _(this.configuration).claimKioskOffer(o,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(o,e,s){return _(this.configuration).createLoyaltyUser(o,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(o,e,s,t){return _(this.configuration).getAdminTransactions(o,e,s,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(o,e){return _(this.configuration).getLoyaltyInfo(o,e).then(s=>s(this.axios,this.basePath))}getUserById(o,e,s){return _(this.configuration).getUserById(o,e,s).then(t=>t(this.axios,this.basePath))}getWalletRewards(o,e,s){return _(this.configuration).getWalletRewards(o,e,s).then(t=>t(this.axios,this.basePath))}memberContext(o,e){return _(this.configuration).memberContext(o,e).then(s=>s(this.axios,this.basePath))}resolvePerks(o,e){return _(this.configuration).resolvePerks(o,e).then(s=>s(this.axios,this.basePath))}searchUser(o,e,s,t,r){return _(this.configuration).searchUser(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}updatePoints(o,e,s){return _(this.configuration).updatePoints(o,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(o,e,s,t){return _(this.configuration).validateWallet(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Os=function(a){return{refuseSessionEnd:async(o={})=>{let e="/api/v1/mcp",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"DELETE",...t,...o},n={},i={};await x(n,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},refuseStream:async(o={})=>{let e="/api/v1/mcp",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={},i={};await x(n,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},serveMcpRequest:async(o,e={})=>{c("serveMcpRequest","body",o);let s="/api/v1/mcp",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},ge=function(a){let o=Os(a);return{async refuseSessionEnd(e){let s=await o.refuseSessionEnd(e);return P(s,R,m,a)},async refuseStream(e){let s=await o.refuseStream(e);return P(s,R,m,a)},async serveMcpRequest(e,s){let t=await o.serveMcpRequest(e,s);return P(t,R,m,a)}}},ri=function(a,o,e){let s=ge(a);return{refuseSessionEnd(t){return s.refuseSessionEnd(t).then(r=>r(e,o))},refuseStream(t){return s.refuseStream(t).then(r=>r(e,o))},serveMcpRequest(t,r){return s.serveMcpRequest(t,r).then(n=>n(e,o))}}},at=class extends v{refuseSessionEnd(o){return ge(this.configuration).refuseSessionEnd(o).then(e=>e(this.axios,this.basePath))}refuseStream(o){return ge(this.configuration).refuseStream(o).then(e=>e(this.axios,this.basePath))}serveMcpRequest(o,e){return ge(this.configuration).serveMcpRequest(o,e).then(s=>s(this.axios,this.basePath))}},Vs=function(a){return{editBusinessProductV2:async(o,e,s={})=>{c("editBusinessProductV2","businessId",o),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PATCH",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},resetProductEod:async(o,e={})=>{c("resetProductEod","resetEodDto",o);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Ie=function(a){let o=Vs(a);return{async editBusinessProductV2(e,s,t){let r=await o.editBusinessProductV2(e,s,t);return P(r,R,m,a)},async resetProductEod(e,s){let t=await o.resetProductEod(e,s);return P(t,R,m,a)}}},oi=function(a,o,e){let s=Ie(a);return{editBusinessProductV2(t,r,n){return s.editBusinessProductV2(t,r,n).then(i=>i(e,o))},resetProductEod(t,r){return s.resetProductEod(t,r).then(n=>n(e,o))}}},it=class extends v{editBusinessProductV2(o,e,s){return Ie(this.configuration).editBusinessProductV2(o,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(o,e){return Ie(this.configuration).resetProductEod(o,e).then(s=>s(this.axios,this.basePath))}},Is=function(a){return{createMunchiGiftCard:async(o,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",o);let s="/api/v1/munchi-giftcard/create",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},getMunchiGiftCardData:async(o,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",o);let s="/api/v1/munchi-giftcard/data",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},redeemMunchiGiftCard:async(o,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",o);let s="/api/v1/munchi-giftcard/redeem",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},validateMunchiGiftCard:async(o,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",o);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},ae=function(a){let o=Is(a);return{async createMunchiGiftCard(e,s){let t=await o.createMunchiGiftCard(e,s);return P(t,R,m,a)},async getMunchiGiftCardData(e,s){let t=await o.getMunchiGiftCardData(e,s);return P(t,R,m,a)},async redeemMunchiGiftCard(e,s){let t=await o.redeemMunchiGiftCard(e,s);return P(t,R,m,a)},async validateMunchiGiftCard(e,s){let t=await o.validateMunchiGiftCard(e,s);return P(t,R,m,a)}}},ni=function(a,o,e){let s=ae(a);return{createMunchiGiftCard(t,r){return s.createMunchiGiftCard(t,r).then(n=>n(e,o))},getMunchiGiftCardData(t,r){return s.getMunchiGiftCardData(t,r).then(n=>n(e,o))},redeemMunchiGiftCard(t,r){return s.redeemMunchiGiftCard(t,r).then(n=>n(e,o))},validateMunchiGiftCard(t,r){return s.validateMunchiGiftCard(t,r).then(n=>n(e,o))}}},lt=class extends v{createMunchiGiftCard(o,e){return ae(this.configuration).createMunchiGiftCard(o,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(o,e){return ae(this.configuration).getMunchiGiftCardData(o,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(o,e){return ae(this.configuration).redeemMunchiGiftCard(o,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(o,e){return ae(this.configuration).validateMunchiGiftCard(o,e).then(s=>s(this.axios,this.basePath))}},vs=function(a){return{addVenueSubscriptionsV2:async(o,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",o);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},removeVenueSubscriptionsV2:async(o,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",o);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"DELETE",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},ve=function(a){let o=vs(a);return{async addVenueSubscriptionsV2(e,s){let t=await o.addVenueSubscriptionsV2(e,s);return P(t,R,m,a)},async removeVenueSubscriptionsV2(e,s){let t=await o.removeVenueSubscriptionsV2(e,s);return P(t,R,m,a)}}},ai=function(a,o,e){let s=ve(a);return{addVenueSubscriptionsV2(t,r){return s.addVenueSubscriptionsV2(t,r).then(n=>n(e,o))},removeVenueSubscriptionsV2(t,r){return s.removeVenueSubscriptionsV2(t,r).then(n=>n(e,o))}}},ut=class extends v{addVenueSubscriptionsV2(o,e){return ve(this.configuration).addVenueSubscriptionsV2(o,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(o,e){return ve(this.configuration).removeVenueSubscriptionsV2(o,e).then(s=>s(this.axios,this.basePath))}},Ts=function(a){return{connectDeliveryPlatform:async(o,e,s={})=>{c("connectDeliveryPlatform","venueId",o),c("connectDeliveryPlatform","connectDeliveryPlatformDto",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms".replace("{venueId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},devicesOfVenue:async(o,e={})=>{c("devicesOfVenue","venueId",o);let s="/api/v1/ops/venues/{venueId}/devices".replace("{venueId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},disconnectDeliveryPlatform:async(o,e,s={})=>{c("disconnectDeliveryPlatform","venueId",o),c("disconnectDeliveryPlatform","channel",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms/{channel}".replace("{venueId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},searchVenues:async(o,e,s={})=>{c("searchVenues","search",o);let t="/api/v1/ops/venues",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),o!==void 0&&(u.search=o),e!==void 0&&(u.limit=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},ie=function(a){let o=Ts(a);return{async connectDeliveryPlatform(e,s,t){let r=await o.connectDeliveryPlatform(e,s,t);return P(r,R,m,a)},async devicesOfVenue(e,s){let t=await o.devicesOfVenue(e,s);return P(t,R,m,a)},async disconnectDeliveryPlatform(e,s,t){let r=await o.disconnectDeliveryPlatform(e,s,t);return P(r,R,m,a)},async searchVenues(e,s,t){let r=await o.searchVenues(e,s,t);return P(r,R,m,a)}}},ii=function(a,o,e){let s=ie(a);return{connectDeliveryPlatform(t,r,n){return s.connectDeliveryPlatform(t,r,n).then(i=>i(e,o))},devicesOfVenue(t,r){return s.devicesOfVenue(t,r).then(n=>n(e,o))},disconnectDeliveryPlatform(t,r,n){return s.disconnectDeliveryPlatform(t,r,n).then(i=>i(e,o))},searchVenues(t,r,n){return s.searchVenues(t,r,n).then(i=>i(e,o))}}},dt=class extends v{connectDeliveryPlatform(o,e,s){return ie(this.configuration).connectDeliveryPlatform(o,e,s).then(t=>t(this.axios,this.basePath))}devicesOfVenue(o,e){return ie(this.configuration).devicesOfVenue(o,e).then(s=>s(this.axios,this.basePath))}disconnectDeliveryPlatform(o,e,s){return ie(this.configuration).disconnectDeliveryPlatform(o,e,s).then(t=>t(this.axios,this.basePath))}searchVenues(o,e,s){return ie(this.configuration).searchVenues(o,e,s).then(t=>t(this.axios,this.basePath))}},qs=function(a){return{completeOrder:async(o,e,s,t={})=>{c("completeOrder","businessId",o),c("completeOrder","orderId",e),c("completeOrder","completeOrderDto",s);let r="/api/v1/businesses/{businessId}/orders/{orderId}/complete".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},Ht=function(a){let o=qs(a);return{async completeOrder(e,s,t,r){let n=await o.completeOrder(e,s,t,r);return P(n,R,m,a)}}},li=function(a,o,e){let s=Ht(a);return{completeOrder(t,r,n,i){return s.completeOrder(t,r,n,i).then(l=>l(e,o))}}},ct=class extends v{completeOrder(o,e,s,t){return Ht(this.configuration).completeOrder(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Es=function(a){return{findOneByExternalId:async(o,e={})=>{c("findOneByExternalId","externalId",o);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}}}},Gt=function(a){let o=Es(a);return{async findOneByExternalId(e,s){let t=await o.findOneByExternalId(e,s);return P(t,R,m,a)}}},ui=function(a,o,e){let s=Gt(a);return{findOneByExternalId(t,r){return s.findOneByExternalId(t,r).then(n=>n(e,o))}}},pt=class extends v{findOneByExternalId(o,e){return Gt(this.configuration).findOneByExternalId(o,e).then(s=>s(this.axios,this.basePath))}},Us=function(a){return{acceptOrder:async(o,e={})=>{c("acceptOrder","acceptOrderDto",o);let s="/api/v1/orders/accept",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},changePosOrdersStatusInBulk:async(o,e={})=>{c("changePosOrdersStatusInBulk","changePosOrdersStatusInBulkDto",o);let s="/api/v2/orders/pos/bulk-status",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},confirmPreOrder:async(o,e={})=>{c("confirmPreOrder","confirmPreorderDto",o);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},deletePosParkedOrderV2:async(o,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",o);let s="/api/v2/orders/pos/park",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},deliverOrder:async(o,e={})=>{c("deliverOrder","deliveredOrderDto",o);let s="/api/v1/orders/delivered",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},dispatchPosOrderV5:async(o,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",o);let s="/api/v5/orders/pos/dispatch",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},getOrdersV2:async(o,e,s,t,r={})=>{c("getOrdersV2","status",o),c("getOrdersV2","businessIds",e);let n="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(o))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};e!==void 0&&(p.businessIds=e),s!==void 0&&(p.posBusinessId=s),t!==void 0&&(p.extraProvider=t),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},getOrdersV3:async(o,e,s,t,r={})=>{c("getOrdersV3","status",o),c("getOrdersV3","businessIds",e);let n="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(o))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};e!==void 0&&(p.businessIds=e),s!==void 0&&(p.posBusinessId=s),t!==void 0&&(p.extraProvider=t),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},getParkedPosOrderV2:async(o,e={})=>{c("getParkedPosOrderV2","businessId",o);let s="/api/v2/orders/pos/park",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getPosOrderById:async(o,e={})=>{c("getPosOrderById","getPosOrderDto",o);let s="/api/v1/orders/pos",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},markOrderAsReady:async(o,e={})=>{c("markOrderAsReady","readyOrderDto",o);let s="/api/v1/orders/ready",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},parkPosOrderV5:async(o,e={})=>{c("parkPosOrderV5","parkPosOrderDto",o);let s="/api/v5/orders/pos/park",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},processPosOrderActions:async(o,e={})=>{c("processPosOrderActions","processOrderActionsDto",o);let s="/api/v4/orders/pos/actions",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},rejectOrder:async(o,e={})=>{c("rejectOrder","rejectOrderDto",o);let s="/api/v1/orders/reject",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},syncPosOrder:async(o,e={})=>{c("syncPosOrder","syncPosOrderDto",o);let s="/api/v1/orders/pos/sync",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},updatePosOrderV2:async(o,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",o);let s="/api/v2/orders/pos/update",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},M=function(a){let o=Us(a);return{async acceptOrder(e,s){let t=await o.acceptOrder(e,s);return P(t,R,m,a)},async changePosOrdersStatusInBulk(e,s){let t=await o.changePosOrdersStatusInBulk(e,s);return P(t,R,m,a)},async confirmPreOrder(e,s){let t=await o.confirmPreOrder(e,s);return P(t,R,m,a)},async deletePosParkedOrderV2(e,s){let t=await o.deletePosParkedOrderV2(e,s);return P(t,R,m,a)},async deliverOrder(e,s){let t=await o.deliverOrder(e,s);return P(t,R,m,a)},async dispatchPosOrderV5(e,s){let t=await o.dispatchPosOrderV5(e,s);return P(t,R,m,a)},async getOrdersV2(e,s,t,r,n){let i=await o.getOrdersV2(e,s,t,r,n);return P(i,R,m,a)},async getOrdersV3(e,s,t,r,n){let i=await o.getOrdersV3(e,s,t,r,n);return P(i,R,m,a)},async getParkedPosOrderV2(e,s){let t=await o.getParkedPosOrderV2(e,s);return P(t,R,m,a)},async getPosOrderById(e,s){let t=await o.getPosOrderById(e,s);return P(t,R,m,a)},async markOrderAsReady(e,s){let t=await o.markOrderAsReady(e,s);return P(t,R,m,a)},async parkPosOrderV5(e,s){let t=await o.parkPosOrderV5(e,s);return P(t,R,m,a)},async processPosOrderActions(e,s){let t=await o.processPosOrderActions(e,s);return P(t,R,m,a)},async rejectOrder(e,s){let t=await o.rejectOrder(e,s);return P(t,R,m,a)},async syncPosOrder(e,s){let t=await o.syncPosOrder(e,s);return P(t,R,m,a)},async updatePosOrderV2(e,s){let t=await o.updatePosOrderV2(e,s);return P(t,R,m,a)}}},di=function(a,o,e){let s=M(a);return{acceptOrder(t,r){return s.acceptOrder(t,r).then(n=>n(e,o))},changePosOrdersStatusInBulk(t,r){return s.changePosOrdersStatusInBulk(t,r).then(n=>n(e,o))},confirmPreOrder(t,r){return s.confirmPreOrder(t,r).then(n=>n(e,o))},deletePosParkedOrderV2(t,r){return s.deletePosParkedOrderV2(t,r).then(n=>n(e,o))},deliverOrder(t,r){return s.deliverOrder(t,r).then(n=>n(e,o))},dispatchPosOrderV5(t,r){return s.dispatchPosOrderV5(t,r).then(n=>n(e,o))},getOrdersV2(t,r,n,i,l){return s.getOrdersV2(t,r,n,i,l).then(u=>u(e,o))},getOrdersV3(t,r,n,i,l){return s.getOrdersV3(t,r,n,i,l).then(u=>u(e,o))},getParkedPosOrderV2(t,r){return s.getParkedPosOrderV2(t,r).then(n=>n(e,o))},getPosOrderById(t,r){return s.getPosOrderById(t,r).then(n=>n(e,o))},markOrderAsReady(t,r){return s.markOrderAsReady(t,r).then(n=>n(e,o))},parkPosOrderV5(t,r){return s.parkPosOrderV5(t,r).then(n=>n(e,o))},processPosOrderActions(t,r){return s.processPosOrderActions(t,r).then(n=>n(e,o))},rejectOrder(t,r){return s.rejectOrder(t,r).then(n=>n(e,o))},syncPosOrder(t,r){return s.syncPosOrder(t,r).then(n=>n(e,o))},updatePosOrderV2(t,r){return s.updatePosOrderV2(t,r).then(n=>n(e,o))}}},mt=class extends v{acceptOrder(o,e){return M(this.configuration).acceptOrder(o,e).then(s=>s(this.axios,this.basePath))}changePosOrdersStatusInBulk(o,e){return M(this.configuration).changePosOrdersStatusInBulk(o,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(o,e){return M(this.configuration).confirmPreOrder(o,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(o,e){return M(this.configuration).deletePosParkedOrderV2(o,e).then(s=>s(this.axios,this.basePath))}deliverOrder(o,e){return M(this.configuration).deliverOrder(o,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(o,e){return M(this.configuration).dispatchPosOrderV5(o,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(o,e,s,t,r){return M(this.configuration).getOrdersV2(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}getOrdersV3(o,e,s,t,r){return M(this.configuration).getOrdersV3(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}getParkedPosOrderV2(o,e){return M(this.configuration).getParkedPosOrderV2(o,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(o,e){return M(this.configuration).getPosOrderById(o,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(o,e){return M(this.configuration).markOrderAsReady(o,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(o,e){return M(this.configuration).parkPosOrderV5(o,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(o,e){return M(this.configuration).processPosOrderActions(o,e).then(s=>s(this.axios,this.basePath))}rejectOrder(o,e){return M(this.configuration).rejectOrder(o,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(o,e){return M(this.configuration).syncPosOrder(o,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(o,e){return M(this.configuration).updatePosOrderV2(o,e).then(s=>s(this.axios,this.basePath))}},ks=function(a){return{listPosPermissions:async(o={})=>{let e="/api/v1/pos-permissions",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={},i={};await x(n,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}}}},$t=function(a){let o=ks(a);return{async listPosPermissions(e){let s=await o.listPosPermissions(e);return P(s,R,m,a)}}},ci=function(a,o,e){let s=$t(a);return{listPosPermissions(t){return s.listPosPermissions(t).then(r=>r(e,o))}}},yt=class extends v{listPosPermissions(o){return $t(this.configuration).listPosPermissions(o).then(e=>e(this.axios,this.basePath))}},Ms=function(a){return{getPosSessionV2:async(o,e={})=>{c("getPosSessionV2","businessId",o);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}}}},zt=function(a){let o=Ms(a);return{async getPosSessionV2(e,s){let t=await o.getPosSessionV2(e,s);return P(t,R,m,a)}}},pi=function(a,o,e){let s=zt(a);return{getPosSessionV2(t,r){return s.getPosSessionV2(t,r).then(n=>n(e,o))}}},gt=class extends v{getPosSessionV2(o,e){return zt(this.configuration).getPosSessionV2(o,e).then(s=>s(this.axios,this.basePath))}},Bs=function(a){return{payTerminalInit:async(o,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",o);let s="/api/v1/pay-terminal/init",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalLockStatus:async(o,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",o);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalLockSync:async(o,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",o);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalLockVerify:async(o,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",o);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalPair:async(o,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",o);let s="/api/v1/pay-terminal/pair",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalPresence:async(o,e={})=>{c("payTerminalPresence","payTerminalSessionTokenBodyDto",o);let s="/api/v1/pay-terminal/presence",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalSessionToken:async(o,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",o);let s="/api/v1/pay-terminal/session-token",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},payTerminalUnpair:async(o,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",o);let s="/api/v1/pay-terminal/unpair",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},H=function(a){let o=Bs(a);return{async payTerminalInit(e,s){let t=await o.payTerminalInit(e,s);return P(t,R,m,a)},async payTerminalLockStatus(e,s){let t=await o.payTerminalLockStatus(e,s);return P(t,R,m,a)},async payTerminalLockSync(e,s){let t=await o.payTerminalLockSync(e,s);return P(t,R,m,a)},async payTerminalLockVerify(e,s){let t=await o.payTerminalLockVerify(e,s);return P(t,R,m,a)},async payTerminalPair(e,s){let t=await o.payTerminalPair(e,s);return P(t,R,m,a)},async payTerminalPresence(e,s){let t=await o.payTerminalPresence(e,s);return P(t,R,m,a)},async payTerminalSessionToken(e,s){let t=await o.payTerminalSessionToken(e,s);return P(t,R,m,a)},async payTerminalUnpair(e,s){let t=await o.payTerminalUnpair(e,s);return P(t,R,m,a)}}},mi=function(a,o,e){let s=H(a);return{payTerminalInit(t,r){return s.payTerminalInit(t,r).then(n=>n(e,o))},payTerminalLockStatus(t,r){return s.payTerminalLockStatus(t,r).then(n=>n(e,o))},payTerminalLockSync(t,r){return s.payTerminalLockSync(t,r).then(n=>n(e,o))},payTerminalLockVerify(t,r){return s.payTerminalLockVerify(t,r).then(n=>n(e,o))},payTerminalPair(t,r){return s.payTerminalPair(t,r).then(n=>n(e,o))},payTerminalPresence(t,r){return s.payTerminalPresence(t,r).then(n=>n(e,o))},payTerminalSessionToken(t,r){return s.payTerminalSessionToken(t,r).then(n=>n(e,o))},payTerminalUnpair(t,r){return s.payTerminalUnpair(t,r).then(n=>n(e,o))}}},ht=class extends v{payTerminalInit(o,e){return H(this.configuration).payTerminalInit(o,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(o,e){return H(this.configuration).payTerminalLockStatus(o,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(o,e){return H(this.configuration).payTerminalLockSync(o,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(o,e){return H(this.configuration).payTerminalLockVerify(o,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(o,e){return H(this.configuration).payTerminalPair(o,e).then(s=>s(this.axios,this.basePath))}payTerminalPresence(o,e){return H(this.configuration).payTerminalPresence(o,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(o,e){return H(this.configuration).payTerminalSessionToken(o,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(o,e){return H(this.configuration).payTerminalUnpair(o,e).then(s=>s(this.axios,this.basePath))}},ws=function(a){return{cancelNetsTerminalTransaction:async(o,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",o);let s="/api/v3/payment/nets/cancel",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},cancelVivaTransactionV2:async(o,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",o);let s="/api/v2/payment/viva/cancel",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},getPaymentReference:async(o,e={})=>{c("getPaymentReference","getPaymentReferenceDto",o);let s="/api/v1/payment/reference",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},getPaymentStatus:async(o,e={})=>{c("getPaymentStatus","getPaymentStatusDto",o);let s="/api/v1/payment/status",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},initiateNetsTerminalTransaction:async(o,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",o);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},initiateTerminalTransaction:async(o,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",o);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},processOnlineOrderRefund:async(o,e={})=>{c("processOnlineOrderRefund","orderResponseDto",o);let s="/api/v1/payment/online-orders/refund",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},refundSingleVivaTransaction:async(o,e={})=>{c("refundSingleVivaTransaction","createRefundDto",o);let s="/api/v4/payment/viva/refund/single",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},G=function(a){let o=ws(a);return{async cancelNetsTerminalTransaction(e,s){let t=await o.cancelNetsTerminalTransaction(e,s);return P(t,R,m,a)},async cancelVivaTransactionV2(e,s){let t=await o.cancelVivaTransactionV2(e,s);return P(t,R,m,a)},async getPaymentReference(e,s){let t=await o.getPaymentReference(e,s);return P(t,R,m,a)},async getPaymentStatus(e,s){let t=await o.getPaymentStatus(e,s);return P(t,R,m,a)},async initiateNetsTerminalTransaction(e,s){let t=await o.initiateNetsTerminalTransaction(e,s);return P(t,R,m,a)},async initiateTerminalTransaction(e,s){let t=await o.initiateTerminalTransaction(e,s);return P(t,R,m,a)},async processOnlineOrderRefund(e,s){let t=await o.processOnlineOrderRefund(e,s);return P(t,R,m,a)},async refundSingleVivaTransaction(e,s){let t=await o.refundSingleVivaTransaction(e,s);return P(t,R,m,a)}}},yi=function(a,o,e){let s=G(a);return{cancelNetsTerminalTransaction(t,r){return s.cancelNetsTerminalTransaction(t,r).then(n=>n(e,o))},cancelVivaTransactionV2(t,r){return s.cancelVivaTransactionV2(t,r).then(n=>n(e,o))},getPaymentReference(t,r){return s.getPaymentReference(t,r).then(n=>n(e,o))},getPaymentStatus(t,r){return s.getPaymentStatus(t,r).then(n=>n(e,o))},initiateNetsTerminalTransaction(t,r){return s.initiateNetsTerminalTransaction(t,r).then(n=>n(e,o))},initiateTerminalTransaction(t,r){return s.initiateTerminalTransaction(t,r).then(n=>n(e,o))},processOnlineOrderRefund(t,r){return s.processOnlineOrderRefund(t,r).then(n=>n(e,o))},refundSingleVivaTransaction(t,r){return s.refundSingleVivaTransaction(t,r).then(n=>n(e,o))}}},Pt=class extends v{cancelNetsTerminalTransaction(o,e){return G(this.configuration).cancelNetsTerminalTransaction(o,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(o,e){return G(this.configuration).cancelVivaTransactionV2(o,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(o,e){return G(this.configuration).getPaymentReference(o,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(o,e){return G(this.configuration).getPaymentStatus(o,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(o,e){return G(this.configuration).initiateNetsTerminalTransaction(o,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(o,e){return G(this.configuration).initiateTerminalTransaction(o,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(o,e){return G(this.configuration).processOnlineOrderRefund(o,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(o,e){return G(this.configuration).refundSingleVivaTransaction(o,e).then(s=>s(this.axios,this.basePath))}},Fs=function(a){return{changePaymentMethodGiftCardLogin:async(o,e,s,t,r={})=>{c("changePaymentMethodGiftCardLogin","businessId",o),c("changePaymentMethodGiftCardLogin","channel",e),c("changePaymentMethodGiftCardLogin","id",s),c("changePaymentMethodGiftCardLogin","giftCardCredentialsInputDto",t);let n="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}/gift-card-login".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},changePaymentMethodOption:async(o,e,s,t,r={})=>{c("changePaymentMethodOption","businessId",o),c("changePaymentMethodOption","channel",e),c("changePaymentMethodOption","id",s),c("changePaymentMethodOption","changePaymentMethodOptionDto",t);let n="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},createPaymentMethod:async(o,e,s,t={})=>{c("createPaymentMethod","businessId",o),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},deletePaymentMethodOption:async(o,e,s,t={})=>{c("deletePaymentMethodOption","businessId",o),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(n,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getCatalog:async(o,e,s,t={})=>{c("getCatalog","businessId",o),c("getCatalog","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getPaymentMethods:async(o,e,s,t={})=>{c("getPaymentMethods","businessId",o),c("getPaymentMethods","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getTypes:async(o={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},reorder:async(o,e,s,t={})=>{c("reorder","businessId",o),c("reorder","channel",e),c("reorder","bulkRankDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},setPaymentMethodPositions:async(o,e,s,t={})=>{c("setPaymentMethodPositions","businessId",o),c("setPaymentMethodPositions","channel",e),c("setPaymentMethodPositions","paymentMethodPositionsDto",s);let r="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/positions".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updatePaymentMethodOption:async(o,e,s,t,r={})=>{c("updatePaymentMethodOption","businessId",o),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",s),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(o))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}}}},N=function(a){let o=Fs(a);return{async changePaymentMethodGiftCardLogin(e,s,t,r,n){let i=await o.changePaymentMethodGiftCardLogin(e,s,t,r,n);return P(i,R,m,a)},async changePaymentMethodOption(e,s,t,r,n){let i=await o.changePaymentMethodOption(e,s,t,r,n);return P(i,R,m,a)},async createPaymentMethod(e,s,t,r){let n=await o.createPaymentMethod(e,s,t,r);return P(n,R,m,a)},async deletePaymentMethodOption(e,s,t,r){let n=await o.deletePaymentMethodOption(e,s,t,r);return P(n,R,m,a)},async getCatalog(e,s,t,r){let n=await o.getCatalog(e,s,t,r);return P(n,R,m,a)},async getPaymentMethods(e,s,t,r){let n=await o.getPaymentMethods(e,s,t,r);return P(n,R,m,a)},async getTypes(e){let s=await o.getTypes(e);return P(s,R,m,a)},async reorder(e,s,t,r){let n=await o.reorder(e,s,t,r);return P(n,R,m,a)},async setPaymentMethodPositions(e,s,t,r){let n=await o.setPaymentMethodPositions(e,s,t,r);return P(n,R,m,a)},async updatePaymentMethodOption(e,s,t,r,n){let i=await o.updatePaymentMethodOption(e,s,t,r,n);return P(i,R,m,a)}}},gi=function(a,o,e){let s=N(a);return{changePaymentMethodGiftCardLogin(t,r,n,i,l){return s.changePaymentMethodGiftCardLogin(t,r,n,i,l).then(u=>u(e,o))},changePaymentMethodOption(t,r,n,i,l){return s.changePaymentMethodOption(t,r,n,i,l).then(u=>u(e,o))},createPaymentMethod(t,r,n,i){return s.createPaymentMethod(t,r,n,i).then(l=>l(e,o))},deletePaymentMethodOption(t,r,n,i){return s.deletePaymentMethodOption(t,r,n,i).then(l=>l(e,o))},getCatalog(t,r,n,i){return s.getCatalog(t,r,n,i).then(l=>l(e,o))},getPaymentMethods(t,r,n,i){return s.getPaymentMethods(t,r,n,i).then(l=>l(e,o))},getTypes(t){return s.getTypes(t).then(r=>r(e,o))},reorder(t,r,n,i){return s.reorder(t,r,n,i).then(l=>l(e,o))},setPaymentMethodPositions(t,r,n,i){return s.setPaymentMethodPositions(t,r,n,i).then(l=>l(e,o))},updatePaymentMethodOption(t,r,n,i,l){return s.updatePaymentMethodOption(t,r,n,i,l).then(u=>u(e,o))}}},Rt=class extends v{changePaymentMethodGiftCardLogin(o,e,s,t,r){return N(this.configuration).changePaymentMethodGiftCardLogin(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}changePaymentMethodOption(o,e,s,t,r){return N(this.configuration).changePaymentMethodOption(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}createPaymentMethod(o,e,s,t){return N(this.configuration).createPaymentMethod(o,e,s,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(o,e,s,t){return N(this.configuration).deletePaymentMethodOption(o,e,s,t).then(r=>r(this.axios,this.basePath))}getCatalog(o,e,s,t){return N(this.configuration).getCatalog(o,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentMethods(o,e,s,t){return N(this.configuration).getPaymentMethods(o,e,s,t).then(r=>r(this.axios,this.basePath))}getTypes(o){return N(this.configuration).getTypes(o).then(e=>e(this.axios,this.basePath))}reorder(o,e,s,t){return N(this.configuration).reorder(o,e,s,t).then(r=>r(this.axios,this.basePath))}setPaymentMethodPositions(o,e,s,t){return N(this.configuration).setPaymentMethodPositions(o,e,s,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(o,e,s,t,r){return N(this.configuration).updatePaymentMethodOption(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}},Ls=function(a){return{cancelSession:async(o,e={})=>{c("cancelSession","clientToken",o);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getOrderSettlementStatus:async(o,e,s,t={})=>{c("getOrderSettlementStatus","businessId",o),c("getOrderSettlementStatus","orderId",e);let r="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},getPaymentSession:async(o,e={})=>{c("getPaymentSession","clientToken",o);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getPaymentSessionAnalytics:async(o,e,s,t,r={})=>{c("getPaymentSessionAnalytics","businessId",o),c("getPaymentSessionAnalytics","timeSpan",e);let n="/api/v1/payment-session/analytics",i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};o!==void 0&&(p.businessId=o),e!==void 0&&(p.timeSpan=e),s!==void 0&&(p.start=s),t!==void 0&&(p.end=t),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},getPaymentSessionCurrency:async(o,e={})=>{c("getPaymentSessionCurrency","sessionId",o);let s="/api/v1/payment-session/currency/{sessionId}".replace("{sessionId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},initiateEpassiSession:async(o,e,s,t={})=>{c("initiateEpassiSession","xEpassiQrCode",o),c("initiateEpassiSession","initiateEpassiSessionDto",e);let r="/api/v1/payment-session/epassi/initiate",n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};o!=null&&(u["X-Epassi-Qr-Code"]=String(o)),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(e,l,a),{url:h(n),options:l}},initiateNetsSession:async(o,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",o);let t="/api/v1/payment-session/nets/initiate",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(o,i,a),{url:h(r),options:i}},initiateVivaA2aSession:async(o,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",o);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},initiateVivaSession:async(o,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",o);let t="/api/v1/payment-session/viva/initiate",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(o,i,a),{url:h(r),options:i}},initiateWorldlineSession:async(o,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",o);let t="/api/v1/payment-session/worldline/initiate",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(o,i,a),{url:h(r),options:i}},paymentSessionGetChargeStatus:async(o,e={})=>{c("paymentSessionGetChargeStatus","chargeId",o);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},paymentSessionRegisterChargeMapping:async(o,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",o);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},pollEpassiSession:async(o,e={})=>{c("pollEpassiSession","epassiSessionReferenceDto",o);let s="/api/v1/payment-session/epassi/poll",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},pollVivaSession:async(o,e={})=>{c("pollVivaSession","pollVivaSessionDto",o);let s="/api/v1/payment-session/poll",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},pollWorldlineSession:async(o,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",o);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},recordManualPayment:async(o,e,s={})=>{c("recordManualPayment","createManualSessionDto",o);let t="/api/v1/payment-session/manual",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(o,i,a),{url:h(r),options:i}},refundEpassiSession:async(o,e={})=>{c("refundEpassiSession","epassiSessionReferenceDto",o);let s="/api/v1/payment-session/epassi/refund",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},refundNetsSession:async(o,e={})=>{c("refundNetsSession","reverseSessionDto",o);let s="/api/v1/payment-session/nets/refund",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},refundVivaSession:async(o,e={})=>{c("refundVivaSession","reverseSessionDto",o);let s="/api/v1/payment-session/refund",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},refundWorldlineSession:async(o,e={})=>{c("refundWorldlineSession","reverseSessionDto",o);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},retryWorldlineReversal:async(o,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",o);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},revertNetsSession:async(o,e={})=>{c("revertNetsSession","reverseSessionDto",o);let s="/api/v1/payment-session/nets/revert",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},revertVivaSession:async(o,e={})=>{c("revertVivaSession","reverseSessionDto",o);let s="/api/v1/payment-session/revert",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},revertWorldlineSession:async(o,e={})=>{c("revertWorldlineSession","reverseSessionDto",o);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},voidManualPayment:async(o,e={})=>{c("voidManualPayment","voidManualSessionDto",o);let s="/api/v1/payment-session/void",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},E=function(a){let o=Ls(a);return{async cancelSession(e,s){let t=await o.cancelSession(e,s);return P(t,R,m,a)},async getOrderSettlementStatus(e,s,t,r){let n=await o.getOrderSettlementStatus(e,s,t,r);return P(n,R,m,a)},async getPaymentSession(e,s){let t=await o.getPaymentSession(e,s);return P(t,R,m,a)},async getPaymentSessionAnalytics(e,s,t,r,n){let i=await o.getPaymentSessionAnalytics(e,s,t,r,n);return P(i,R,m,a)},async getPaymentSessionCurrency(e,s){let t=await o.getPaymentSessionCurrency(e,s);return P(t,R,m,a)},async initiateEpassiSession(e,s,t,r){let n=await o.initiateEpassiSession(e,s,t,r);return P(n,R,m,a)},async initiateNetsSession(e,s,t){let r=await o.initiateNetsSession(e,s,t);return P(r,R,m,a)},async initiateVivaA2aSession(e,s){let t=await o.initiateVivaA2aSession(e,s);return P(t,R,m,a)},async initiateVivaSession(e,s,t){let r=await o.initiateVivaSession(e,s,t);return P(r,R,m,a)},async initiateWorldlineSession(e,s,t){let r=await o.initiateWorldlineSession(e,s,t);return P(r,R,m,a)},async paymentSessionGetChargeStatus(e,s){let t=await o.paymentSessionGetChargeStatus(e,s);return P(t,R,m,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await o.paymentSessionRegisterChargeMapping(e,s);return P(t,R,m,a)},async pollEpassiSession(e,s){let t=await o.pollEpassiSession(e,s);return P(t,R,m,a)},async pollVivaSession(e,s){let t=await o.pollVivaSession(e,s);return P(t,R,m,a)},async pollWorldlineSession(e,s){let t=await o.pollWorldlineSession(e,s);return P(t,R,m,a)},async recordManualPayment(e,s,t){let r=await o.recordManualPayment(e,s,t);return P(r,R,m,a)},async refundEpassiSession(e,s){let t=await o.refundEpassiSession(e,s);return P(t,R,m,a)},async refundNetsSession(e,s){let t=await o.refundNetsSession(e,s);return P(t,R,m,a)},async refundVivaSession(e,s){let t=await o.refundVivaSession(e,s);return P(t,R,m,a)},async refundWorldlineSession(e,s){let t=await o.refundWorldlineSession(e,s);return P(t,R,m,a)},async retryWorldlineReversal(e,s){let t=await o.retryWorldlineReversal(e,s);return P(t,R,m,a)},async revertNetsSession(e,s){let t=await o.revertNetsSession(e,s);return P(t,R,m,a)},async revertVivaSession(e,s){let t=await o.revertVivaSession(e,s);return P(t,R,m,a)},async revertWorldlineSession(e,s){let t=await o.revertWorldlineSession(e,s);return P(t,R,m,a)},async voidManualPayment(e,s){let t=await o.voidManualPayment(e,s);return P(t,R,m,a)}}},hi=function(a,o,e){let s=E(a);return{cancelSession(t,r){return s.cancelSession(t,r).then(n=>n(e,o))},getOrderSettlementStatus(t,r,n,i){return s.getOrderSettlementStatus(t,r,n,i).then(l=>l(e,o))},getPaymentSession(t,r){return s.getPaymentSession(t,r).then(n=>n(e,o))},getPaymentSessionAnalytics(t,r,n,i,l){return s.getPaymentSessionAnalytics(t,r,n,i,l).then(u=>u(e,o))},getPaymentSessionCurrency(t,r){return s.getPaymentSessionCurrency(t,r).then(n=>n(e,o))},initiateEpassiSession(t,r,n,i){return s.initiateEpassiSession(t,r,n,i).then(l=>l(e,o))},initiateNetsSession(t,r,n){return s.initiateNetsSession(t,r,n).then(i=>i(e,o))},initiateVivaA2aSession(t,r){return s.initiateVivaA2aSession(t,r).then(n=>n(e,o))},initiateVivaSession(t,r,n){return s.initiateVivaSession(t,r,n).then(i=>i(e,o))},initiateWorldlineSession(t,r,n){return s.initiateWorldlineSession(t,r,n).then(i=>i(e,o))},paymentSessionGetChargeStatus(t,r){return s.paymentSessionGetChargeStatus(t,r).then(n=>n(e,o))},paymentSessionRegisterChargeMapping(t,r){return s.paymentSessionRegisterChargeMapping(t,r).then(n=>n(e,o))},pollEpassiSession(t,r){return s.pollEpassiSession(t,r).then(n=>n(e,o))},pollVivaSession(t,r){return s.pollVivaSession(t,r).then(n=>n(e,o))},pollWorldlineSession(t,r){return s.pollWorldlineSession(t,r).then(n=>n(e,o))},recordManualPayment(t,r,n){return s.recordManualPayment(t,r,n).then(i=>i(e,o))},refundEpassiSession(t,r){return s.refundEpassiSession(t,r).then(n=>n(e,o))},refundNetsSession(t,r){return s.refundNetsSession(t,r).then(n=>n(e,o))},refundVivaSession(t,r){return s.refundVivaSession(t,r).then(n=>n(e,o))},refundWorldlineSession(t,r){return s.refundWorldlineSession(t,r).then(n=>n(e,o))},retryWorldlineReversal(t,r){return s.retryWorldlineReversal(t,r).then(n=>n(e,o))},revertNetsSession(t,r){return s.revertNetsSession(t,r).then(n=>n(e,o))},revertVivaSession(t,r){return s.revertVivaSession(t,r).then(n=>n(e,o))},revertWorldlineSession(t,r){return s.revertWorldlineSession(t,r).then(n=>n(e,o))},voidManualPayment(t,r){return s.voidManualPayment(t,r).then(n=>n(e,o))}}},bt=class extends v{cancelSession(o,e){return E(this.configuration).cancelSession(o,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(o,e,s,t){return E(this.configuration).getOrderSettlementStatus(o,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentSession(o,e){return E(this.configuration).getPaymentSession(o,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(o,e,s,t,r){return E(this.configuration).getPaymentSessionAnalytics(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}getPaymentSessionCurrency(o,e){return E(this.configuration).getPaymentSessionCurrency(o,e).then(s=>s(this.axios,this.basePath))}initiateEpassiSession(o,e,s,t){return E(this.configuration).initiateEpassiSession(o,e,s,t).then(r=>r(this.axios,this.basePath))}initiateNetsSession(o,e,s){return E(this.configuration).initiateNetsSession(o,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(o,e){return E(this.configuration).initiateVivaA2aSession(o,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(o,e,s){return E(this.configuration).initiateVivaSession(o,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(o,e,s){return E(this.configuration).initiateWorldlineSession(o,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(o,e){return E(this.configuration).paymentSessionGetChargeStatus(o,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(o,e){return E(this.configuration).paymentSessionRegisterChargeMapping(o,e).then(s=>s(this.axios,this.basePath))}pollEpassiSession(o,e){return E(this.configuration).pollEpassiSession(o,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(o,e){return E(this.configuration).pollVivaSession(o,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(o,e){return E(this.configuration).pollWorldlineSession(o,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(o,e,s){return E(this.configuration).recordManualPayment(o,e,s).then(t=>t(this.axios,this.basePath))}refundEpassiSession(o,e){return E(this.configuration).refundEpassiSession(o,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(o,e){return E(this.configuration).refundNetsSession(o,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(o,e){return E(this.configuration).refundVivaSession(o,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(o,e){return E(this.configuration).refundWorldlineSession(o,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(o,e){return E(this.configuration).retryWorldlineReversal(o,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(o,e){return E(this.configuration).revertNetsSession(o,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(o,e){return E(this.configuration).revertVivaSession(o,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(o,e){return E(this.configuration).revertWorldlineSession(o,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(o,e){return E(this.configuration).voidManualPayment(o,e).then(s=>s(this.axios,this.basePath))}},_s=function(a){return{deletePrinterByAddress:async(o,e,s={})=>{c("deletePrinterByAddress","businessId",o),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};o!==void 0&&(u.businessId=o),e!==void 0&&(u.address=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},upsertPrinter:async(o,e={})=>{c("upsertPrinter","upsertPrinterDto",o);let s="/api/v1/printer",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Te=function(a){let o=_s(a);return{async deletePrinterByAddress(e,s,t){let r=await o.deletePrinterByAddress(e,s,t);return P(r,R,m,a)},async upsertPrinter(e,s){let t=await o.upsertPrinter(e,s);return P(t,R,m,a)}}},Pi=function(a,o,e){let s=Te(a);return{deletePrinterByAddress(t,r,n){return s.deletePrinterByAddress(t,r,n).then(i=>i(e,o))},upsertPrinter(t,r){return s.upsertPrinter(t,r).then(n=>n(e,o))}}},At=class extends v{deletePrinterByAddress(o,e,s){return Te(this.configuration).deletePrinterByAddress(o,e,s).then(t=>t(this.axios,this.basePath))}upsertPrinter(o,e){return Te(this.configuration).upsertPrinter(o,e).then(s=>s(this.axios,this.basePath))}},Ns=function(a){return{getChannelInventoryV2:async(o,e,s,t={})=>{c("getChannelInventoryV2","businessId",o),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(o))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};g(n,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},updateChannelInventoryV2:async(o,e,s,t,r={})=>{c("updateChannelInventoryV2","businessId",o),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",s),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(o))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},updateProductSkuV2:async(o,e,s,t,r={})=>{c("updateProductSkuV2","businessId",o),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",s),c("updateProductSkuV2","updateProductSkuDto",t);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(o))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},updateProductSkusV2:async(o,e,s,t,r={})=>{c("updateProductSkusV2","businessId",o),c("updateProductSkusV2","categoryId",e),c("updateProductSkusV2","productId",s),c("updateProductSkusV2","updateProductSkusDto",t);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/skus".replace("{businessId}",encodeURIComponent(String(o))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}}}},le=function(a){let o=Ns(a);return{async getChannelInventoryV2(e,s,t,r){let n=await o.getChannelInventoryV2(e,s,t,r);return P(n,R,m,a)},async updateChannelInventoryV2(e,s,t,r,n){let i=await o.updateChannelInventoryV2(e,s,t,r,n);return P(i,R,m,a)},async updateProductSkuV2(e,s,t,r,n){let i=await o.updateProductSkuV2(e,s,t,r,n);return P(i,R,m,a)},async updateProductSkusV2(e,s,t,r,n){let i=await o.updateProductSkusV2(e,s,t,r,n);return P(i,R,m,a)}}},Ri=function(a,o,e){let s=le(a);return{getChannelInventoryV2(t,r,n,i){return s.getChannelInventoryV2(t,r,n,i).then(l=>l(e,o))},updateChannelInventoryV2(t,r,n,i,l){return s.updateChannelInventoryV2(t,r,n,i,l).then(u=>u(e,o))},updateProductSkuV2(t,r,n,i,l){return s.updateProductSkuV2(t,r,n,i,l).then(u=>u(e,o))},updateProductSkusV2(t,r,n,i,l){return s.updateProductSkusV2(t,r,n,i,l).then(u=>u(e,o))}}},xt=class extends v{getChannelInventoryV2(o,e,s,t){return le(this.configuration).getChannelInventoryV2(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(o,e,s,t,r){return le(this.configuration).updateChannelInventoryV2(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}updateProductSkuV2(o,e,s,t,r){return le(this.configuration).updateProductSkuV2(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}updateProductSkusV2(o,e,s,t,r){return le(this.configuration).updateProductSkusV2(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}},js=function(a){return{listAutomaticPromotions:async(o,e={})=>{c("listAutomaticPromotions","businessId",o);let s="/api/v2/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},listKioskAutomaticPromotions:async(o,e={})=>{c("listKioskAutomaticPromotions","businessId",o);let s="/api/v2/kiosk/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},priceBasketWithPromotions:async(o,e,s={})=>{c("priceBasketWithPromotions","businessId",o),c("priceBasketWithPromotions","priceBasketDto",e);let t="/api/v2/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},priceKioskBasketWithPromotions:async(o,e,s={})=>{c("priceKioskBasketWithPromotions","businessId",o),c("priceKioskBasketWithPromotions","priceBasketDto",e);let t="/api/v2/kiosk/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},ue=function(a){let o=js(a);return{async listAutomaticPromotions(e,s){let t=await o.listAutomaticPromotions(e,s);return P(t,R,m,a)},async listKioskAutomaticPromotions(e,s){let t=await o.listKioskAutomaticPromotions(e,s);return P(t,R,m,a)},async priceBasketWithPromotions(e,s,t){let r=await o.priceBasketWithPromotions(e,s,t);return P(r,R,m,a)},async priceKioskBasketWithPromotions(e,s,t){let r=await o.priceKioskBasketWithPromotions(e,s,t);return P(r,R,m,a)}}},bi=function(a,o,e){let s=ue(a);return{listAutomaticPromotions(t,r){return s.listAutomaticPromotions(t,r).then(n=>n(e,o))},listKioskAutomaticPromotions(t,r){return s.listKioskAutomaticPromotions(t,r).then(n=>n(e,o))},priceBasketWithPromotions(t,r,n){return s.priceBasketWithPromotions(t,r,n).then(i=>i(e,o))},priceKioskBasketWithPromotions(t,r,n){return s.priceKioskBasketWithPromotions(t,r,n).then(i=>i(e,o))}}},ft=class extends v{listAutomaticPromotions(o,e){return ue(this.configuration).listAutomaticPromotions(o,e).then(s=>s(this.axios,this.basePath))}listKioskAutomaticPromotions(o,e){return ue(this.configuration).listKioskAutomaticPromotions(o,e).then(s=>s(this.axios,this.basePath))}priceBasketWithPromotions(o,e,s){return ue(this.configuration).priceBasketWithPromotions(o,e,s).then(t=>t(this.axios,this.basePath))}priceKioskBasketWithPromotions(o,e,s){return ue(this.configuration).priceKioskBasketWithPromotions(o,e,s).then(t=>t(this.axios,this.basePath))}},Ws=function(a){return{createOnboardingSession:async(o,e,s={})=>{c("createOnboardingSession","channel",o),c("createOnboardingSession","createOnboardingSessionDto",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},disconnectOnboarding:async(o,e,s={})=>{c("disconnectOnboarding","channel",o),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(o))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={};g(r,{});let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getMenuIntegrations:async(o,e={})=>{c("getMenuIntegrations","businessId",o);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getOnboardingStatus:async(o,e,s={})=>{c("getOnboardingStatus","channel",o),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(o))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={};g(r,{});let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOnboardingStores:async(o,e,s={})=>{c("listOnboardingStores","channel",o),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(o))).replace("{state}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={};g(r,{});let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},provisionOnboardingStore:async(o,e,s,t={})=>{c("provisionOnboardingStore","channel",o),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","provisionOnboardingStoreDto",s);let r="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(o))).replace("{state}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateProviderSettings:async(o,e,s={})=>{c("updateProviderSettings","businessId",o),c("updateProviderSettings","updateProviderSettingsDto",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PATCH",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},updateVenueProviders:async(o,e,s={})=>{c("updateVenueProviders","businessId",o),c("updateVenueProviders","updateVenueProvidersDto",e);let t="/api/v2/venues/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PUT",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},$=function(a){let o=Ws(a);return{async createOnboardingSession(e,s,t){let r=await o.createOnboardingSession(e,s,t);return P(r,R,m,a)},async disconnectOnboarding(e,s,t){let r=await o.disconnectOnboarding(e,s,t);return P(r,R,m,a)},async getMenuIntegrations(e,s){let t=await o.getMenuIntegrations(e,s);return P(t,R,m,a)},async getOnboardingStatus(e,s,t){let r=await o.getOnboardingStatus(e,s,t);return P(r,R,m,a)},async listOnboardingStores(e,s,t){let r=await o.listOnboardingStores(e,s,t);return P(r,R,m,a)},async provisionOnboardingStore(e,s,t,r){let n=await o.provisionOnboardingStore(e,s,t,r);return P(n,R,m,a)},async updateProviderSettings(e,s,t){let r=await o.updateProviderSettings(e,s,t);return P(r,R,m,a)},async updateVenueProviders(e,s,t){let r=await o.updateVenueProviders(e,s,t);return P(r,R,m,a)}}},Ai=function(a,o,e){let s=$(a);return{createOnboardingSession(t,r,n){return s.createOnboardingSession(t,r,n).then(i=>i(e,o))},disconnectOnboarding(t,r,n){return s.disconnectOnboarding(t,r,n).then(i=>i(e,o))},getMenuIntegrations(t,r){return s.getMenuIntegrations(t,r).then(n=>n(e,o))},getOnboardingStatus(t,r,n){return s.getOnboardingStatus(t,r,n).then(i=>i(e,o))},listOnboardingStores(t,r,n){return s.listOnboardingStores(t,r,n).then(i=>i(e,o))},provisionOnboardingStore(t,r,n,i){return s.provisionOnboardingStore(t,r,n,i).then(l=>l(e,o))},updateProviderSettings(t,r,n){return s.updateProviderSettings(t,r,n).then(i=>i(e,o))},updateVenueProviders(t,r,n){return s.updateVenueProviders(t,r,n).then(i=>i(e,o))}}},Dt=class extends v{createOnboardingSession(o,e,s){return $(this.configuration).createOnboardingSession(o,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(o,e,s){return $(this.configuration).disconnectOnboarding(o,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(o,e){return $(this.configuration).getMenuIntegrations(o,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(o,e,s){return $(this.configuration).getOnboardingStatus(o,e,s).then(t=>t(this.axios,this.basePath))}listOnboardingStores(o,e,s){return $(this.configuration).listOnboardingStores(o,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(o,e,s,t){return $(this.configuration).provisionOnboardingStore(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateProviderSettings(o,e,s){return $(this.configuration).updateProviderSettings(o,e,s).then(t=>t(this.axios,this.basePath))}updateVenueProviders(o,e,s){return $(this.configuration).updateVenueProviders(o,e,s).then(t=>t(this.axios,this.basePath))}},Ks=function(a){return{receiptFooterGetConfig:async(o,e,s={})=>{c("receiptFooterGetConfig","businessId",o),c("receiptFooterGetConfig","xAppX",e);let t="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!=null&&(l["x-app-x"]=String(e)),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},receiptFooterUpsertConfig:async(o,e,s,t={})=>{c("receiptFooterUpsertConfig","businessId",o),c("receiptFooterUpsertConfig","xAppX",e),c("receiptFooterUpsertConfig","upsertReceiptFooterDto",s);let r="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},qe=function(a){let o=Ks(a);return{async receiptFooterGetConfig(e,s,t){let r=await o.receiptFooterGetConfig(e,s,t);return P(r,R,m,a)},async receiptFooterUpsertConfig(e,s,t,r){let n=await o.receiptFooterUpsertConfig(e,s,t,r);return P(n,R,m,a)}}},xi=function(a,o,e){let s=qe(a);return{receiptFooterGetConfig(t,r,n){return s.receiptFooterGetConfig(t,r,n).then(i=>i(e,o))},receiptFooterUpsertConfig(t,r,n,i){return s.receiptFooterUpsertConfig(t,r,n,i).then(l=>l(e,o))}}},St=class extends v{receiptFooterGetConfig(o,e,s){return qe(this.configuration).receiptFooterGetConfig(o,e,s).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(o,e,s,t){return qe(this.configuration).receiptFooterUpsertConfig(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Qs=function(a){return{cancelPlanV2:async(o,e,s,t={})=>{c("cancelPlanV2","businessId",o),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(n,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},createRefundPlanV2:async(o,e,s,t={})=>{c("createRefundPlanV2","businessId",o),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},getRefundPlanV2:async(o,e,s,t={})=>{c("getRefundPlanV2","businessId",o),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},recordRefundPlanV2:async(o,e,s,t,r={})=>{c("recordRefundPlanV2","businessId",o),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",s),c("recordRefundPlanV2","completedStepDto",t);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},refundOnlineOrder:async(o,e,s,t={})=>{c("refundOnlineOrder","businessId",o),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},resolveRefundChoiceV2:async(o,e,s,t,r={})=>{c("resolveRefundChoiceV2","businessId",o),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",s),c("resolveRefundChoiceV2","resolveChoiceDto",t);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};d["Content-Type"]="application/json",g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},startProcessPlanV2:async(o,e,s,t={})=>{c("startProcessPlanV2","businessId",o),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(n,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}}}},z=function(a){let o=Qs(a);return{async cancelPlanV2(e,s,t,r){let n=await o.cancelPlanV2(e,s,t,r);return P(n,R,m,a)},async createRefundPlanV2(e,s,t,r){let n=await o.createRefundPlanV2(e,s,t,r);return P(n,R,m,a)},async getRefundPlanV2(e,s,t,r){let n=await o.getRefundPlanV2(e,s,t,r);return P(n,R,m,a)},async recordRefundPlanV2(e,s,t,r,n){let i=await o.recordRefundPlanV2(e,s,t,r,n);return P(i,R,m,a)},async refundOnlineOrder(e,s,t,r){let n=await o.refundOnlineOrder(e,s,t,r);return P(n,R,m,a)},async resolveRefundChoiceV2(e,s,t,r,n){let i=await o.resolveRefundChoiceV2(e,s,t,r,n);return P(i,R,m,a)},async startProcessPlanV2(e,s,t,r){let n=await o.startProcessPlanV2(e,s,t,r);return P(n,R,m,a)}}},fi=function(a,o,e){let s=z(a);return{cancelPlanV2(t,r,n,i){return s.cancelPlanV2(t,r,n,i).then(l=>l(e,o))},createRefundPlanV2(t,r,n,i){return s.createRefundPlanV2(t,r,n,i).then(l=>l(e,o))},getRefundPlanV2(t,r,n,i){return s.getRefundPlanV2(t,r,n,i).then(l=>l(e,o))},recordRefundPlanV2(t,r,n,i,l){return s.recordRefundPlanV2(t,r,n,i,l).then(u=>u(e,o))},refundOnlineOrder(t,r,n,i){return s.refundOnlineOrder(t,r,n,i).then(l=>l(e,o))},resolveRefundChoiceV2(t,r,n,i,l){return s.resolveRefundChoiceV2(t,r,n,i,l).then(u=>u(e,o))},startProcessPlanV2(t,r,n,i){return s.startProcessPlanV2(t,r,n,i).then(l=>l(e,o))}}},Ct=class extends v{cancelPlanV2(o,e,s,t){return z(this.configuration).cancelPlanV2(o,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlanV2(o,e,s,t){return z(this.configuration).createRefundPlanV2(o,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlanV2(o,e,s,t){return z(this.configuration).getRefundPlanV2(o,e,s,t).then(r=>r(this.axios,this.basePath))}recordRefundPlanV2(o,e,s,t,r){return z(this.configuration).recordRefundPlanV2(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}refundOnlineOrder(o,e,s,t){return z(this.configuration).refundOnlineOrder(o,e,s,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoiceV2(o,e,s,t,r){return z(this.configuration).resolveRefundChoiceV2(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}startProcessPlanV2(o,e,s,t){return z(this.configuration).startProcessPlanV2(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Hs=function(a){return{getBoughtTogether:async(o,e,s,t,r,n,i,l,u,d,p={})=>{c("getBoughtTogether","businessIds",o);let A="/api/v6/report/sales/bought-together",D=new URL(A,y),f;a&&(f=a.baseOptions);let S={method:"GET",...f,...p},O={},V={};await x(O,a),e!==void 0&&(V.timeSpan=e),s!==void 0&&(V.start=s),t!==void 0&&(V.end=t),o&&(V.businessIds=o),r!==void 0&&(V.timezone=r),n&&(V.apps=n),i!==void 0&&(V.breakdown=i),l!==void 0&&(V.language=l),u!==void 0&&(V.itemKey=u),d!==void 0&&(V.limit=d),g(D,V);let I=f&&f.headers?f.headers:{};return S.headers={...O,...I,...p.headers},{url:h(D),options:S}},getEndOfDayReportFile:async(o,e,s,t,r,n,i,l={})=>{c("getEndOfDayReportFile","businessId",o);let u="/api/v6/report/end-of-day/file",d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"GET",...p,...l},D={},f={};await x(D,a),e!==void 0&&(f.timeSpan=e),s!==void 0&&(f.start=s),t!==void 0&&(f.end=t),o!==void 0&&(f.businessId=o),r!==void 0&&(f.timezone=r),n!==void 0&&(f.provider=n),i!==void 0&&(f.language=i),g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},{url:h(d),options:A}},getEndOfDayReportV5:async(o,e,s,t,r,n,i={})=>{c("getEndOfDayReportV5","businessIds",o);let l="/api/v5/report/end-of-day",u=new URL(l,y),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},A={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),o&&(D.businessIds=o),r!==void 0&&(D.timezone=r),n!==void 0&&(D.provider=n),g(u,D);let f=d&&d.headers?d.headers:{};return p.headers={...A,...f,...i.headers},{url:h(u),options:p}},getSalesReport:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f={})=>{c("getSalesReport","businessIds",o);let S="/api/v6/report/sales",O=new URL(S,y),V;a&&(V=a.baseOptions);let I={method:"GET",...V,...f},q={},T={};await x(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),o&&(T.businessIds=o),r!==void 0&&(T.timezone=r),n&&(T.apps=n),i&&(T.parts=i),l!==void 0&&(T.breakdown=l),u!==void 0&&(T.language=u),d!==void 0&&(T.compareStart=d),p!==void 0&&(T.compareEnd=p),A!==void 0&&(T.compareSameTime=A),D!==void 0&&(T.baseline=D),g(O,T);let C=V&&V.headers?V.headers:{};return I.headers={...q,...C,...f.headers},{url:h(O),options:I}},getSalesReportFile:async(o,e,s,t,r,n,i,l={})=>{c("getSalesReportFile","businessId",o);let u="/api/v6/report/sales/file",d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"GET",...p,...l},D={},f={};await x(D,a),e!==void 0&&(f.timeSpan=e),s!==void 0&&(f.start=s),t!==void 0&&(f.end=t),o!==void 0&&(f.businessId=o),r!==void 0&&(f.timezone=r),n!==void 0&&(f.language=n),i!==void 0&&(f.format=i),g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},{url:h(d),options:A}},getSalesReportHours:async(o,e,s,t,r,n,i,l,u,d={})=>{c("getSalesReportHours","businessIds",o);let p="/api/v6/report/sales/hours",A=new URL(p,y),D;a&&(D=a.baseOptions);let f={method:"GET",...D,...d},S={},O={};await x(S,a),e!==void 0&&(O.timeSpan=e),s!==void 0&&(O.start=s),t!==void 0&&(O.end=t),o&&(O.businessIds=o),r!==void 0&&(O.timezone=r),n&&(O.apps=n),i!==void 0&&(O.breakdown=i),l!==void 0&&(O.language=l),u!==void 0&&(O.isoWeekday=u),g(A,O);let V=D&&D.headers?D.headers:{};return f.headers={...S,...V,...d.headers},{url:h(A),options:f}},getSalesReportOrderTypes:async(o,e,s,t,r,n,i,l,u={})=>{c("getSalesReportOrderTypes","businessIds",o);let d="/api/v6/report/sales/order-types",p=new URL(d,y),A;a&&(A=a.baseOptions);let D={method:"GET",...A,...u},f={},S={};await x(f,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),o&&(S.businessIds=o),r!==void 0&&(S.timezone=r),n&&(S.apps=n),i!==void 0&&(S.breakdown=i),l!==void 0&&(S.language=l),g(p,S);let O=A&&A.headers?A.headers:{};return D.headers={...f,...O,...u.headers},{url:h(p),options:D}},getSalesReportStaff:async(o,e,s,t,r,n,i,l={})=>{c("getSalesReportStaff","businessIds",o);let u="/api/v6/report/sales/staff",d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"GET",...p,...l},D={},f={};await x(D,a),e!==void 0&&(f.timeSpan=e),s!==void 0&&(f.start=s),t!==void 0&&(f.end=t),o&&(f.businessIds=o),r!==void 0&&(f.timezone=r),n&&(f.apps=n),i!==void 0&&(f.language=i),g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},{url:h(d),options:A}},getShortSalesReport:async(o,e,s,t,r,n,i,l,u,d,p,A,D,f={})=>{c("getShortSalesReport","businessIds",o);let S="/api/v6/report/sales/short",O=new URL(S,y),V;a&&(V=a.baseOptions);let I={method:"GET",...V,...f},q={},T={};await x(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),o&&(T.businessIds=o),r!==void 0&&(T.timezone=r),n&&(T.apps=n),i&&(T.parts=i),l!==void 0&&(T.breakdown=l),u!==void 0&&(T.language=u),d!==void 0&&(T.compareStart=d),p!==void 0&&(T.compareEnd=p),A!==void 0&&(T.compareSameTime=A),D!==void 0&&(T.baseline=D),g(O,T);let C=V&&V.headers?V.headers:{};return I.headers={...q,...C,...f.headers},{url:h(O),options:I}},sendReportEmailV5:async(o,e,s,t,r,n,i,l={})=>{c("sendReportEmailV5","businessIds",o),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"POST",...p,...l},D={},f={};t!==void 0&&(f.timeSpan=t),r!==void 0&&(f.start=r),n!==void 0&&(f.end=n),o&&(f.businessIds=o),e!==void 0&&(f.timezone=e),i!==void 0&&(f.provider=i),D["Content-Type"]="application/json",g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},A.data=b(s,A,a),{url:h(d),options:A}}}},j=function(a){let o=Hs(a);return{async getBoughtTogether(e,s,t,r,n,i,l,u,d,p,A){let D=await o.getBoughtTogether(e,s,t,r,n,i,l,u,d,p,A);return P(D,R,m,a)},async getEndOfDayReportFile(e,s,t,r,n,i,l,u){let d=await o.getEndOfDayReportFile(e,s,t,r,n,i,l,u);return P(d,R,m,a)},async getEndOfDayReportV5(e,s,t,r,n,i,l){let u=await o.getEndOfDayReportV5(e,s,t,r,n,i,l);return P(u,R,m,a)},async getSalesReport(e,s,t,r,n,i,l,u,d,p,A,D,f,S){let O=await o.getSalesReport(e,s,t,r,n,i,l,u,d,p,A,D,f,S);return P(O,R,m,a)},async getSalesReportFile(e,s,t,r,n,i,l,u){let d=await o.getSalesReportFile(e,s,t,r,n,i,l,u);return P(d,R,m,a)},async getSalesReportHours(e,s,t,r,n,i,l,u,d,p){let A=await o.getSalesReportHours(e,s,t,r,n,i,l,u,d,p);return P(A,R,m,a)},async getSalesReportOrderTypes(e,s,t,r,n,i,l,u,d){let p=await o.getSalesReportOrderTypes(e,s,t,r,n,i,l,u,d);return P(p,R,m,a)},async getSalesReportStaff(e,s,t,r,n,i,l,u){let d=await o.getSalesReportStaff(e,s,t,r,n,i,l,u);return P(d,R,m,a)},async getShortSalesReport(e,s,t,r,n,i,l,u,d,p,A,D,f,S){let O=await o.getShortSalesReport(e,s,t,r,n,i,l,u,d,p,A,D,f,S);return P(O,R,m,a)},async sendReportEmailV5(e,s,t,r,n,i,l,u){let d=await o.sendReportEmailV5(e,s,t,r,n,i,l,u);return P(d,R,m,a)}}},Di=function(a,o,e){let s=j(a);return{getBoughtTogether(t,r,n,i,l,u,d,p,A,D,f){return s.getBoughtTogether(t,r,n,i,l,u,d,p,A,D,f).then(S=>S(e,o))},getEndOfDayReportFile(t,r,n,i,l,u,d,p){return s.getEndOfDayReportFile(t,r,n,i,l,u,d,p).then(A=>A(e,o))},getEndOfDayReportV5(t,r,n,i,l,u,d){return s.getEndOfDayReportV5(t,r,n,i,l,u,d).then(p=>p(e,o))},getSalesReport(t,r,n,i,l,u,d,p,A,D,f,S,O,V){return s.getSalesReport(t,r,n,i,l,u,d,p,A,D,f,S,O,V).then(I=>I(e,o))},getSalesReportFile(t,r,n,i,l,u,d,p){return s.getSalesReportFile(t,r,n,i,l,u,d,p).then(A=>A(e,o))},getSalesReportHours(t,r,n,i,l,u,d,p,A,D){return s.getSalesReportHours(t,r,n,i,l,u,d,p,A,D).then(f=>f(e,o))},getSalesReportOrderTypes(t,r,n,i,l,u,d,p,A){return s.getSalesReportOrderTypes(t,r,n,i,l,u,d,p,A).then(D=>D(e,o))},getSalesReportStaff(t,r,n,i,l,u,d,p){return s.getSalesReportStaff(t,r,n,i,l,u,d,p).then(A=>A(e,o))},getShortSalesReport(t,r,n,i,l,u,d,p,A,D,f,S,O,V){return s.getShortSalesReport(t,r,n,i,l,u,d,p,A,D,f,S,O,V).then(I=>I(e,o))},sendReportEmailV5(t,r,n,i,l,u,d,p){return s.sendReportEmailV5(t,r,n,i,l,u,d,p).then(A=>A(e,o))}}},Ot=class extends v{getBoughtTogether(o,e,s,t,r,n,i,l,u,d,p){return j(this.configuration).getBoughtTogether(o,e,s,t,r,n,i,l,u,d,p).then(A=>A(this.axios,this.basePath))}getEndOfDayReportFile(o,e,s,t,r,n,i,l){return j(this.configuration).getEndOfDayReportFile(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}getEndOfDayReportV5(o,e,s,t,r,n,i){return j(this.configuration).getEndOfDayReportV5(o,e,s,t,r,n,i).then(l=>l(this.axios,this.basePath))}getSalesReport(o,e,s,t,r,n,i,l,u,d,p,A,D,f){return j(this.configuration).getSalesReport(o,e,s,t,r,n,i,l,u,d,p,A,D,f).then(S=>S(this.axios,this.basePath))}getSalesReportFile(o,e,s,t,r,n,i,l){return j(this.configuration).getSalesReportFile(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}getSalesReportHours(o,e,s,t,r,n,i,l,u,d){return j(this.configuration).getSalesReportHours(o,e,s,t,r,n,i,l,u,d).then(p=>p(this.axios,this.basePath))}getSalesReportOrderTypes(o,e,s,t,r,n,i,l,u){return j(this.configuration).getSalesReportOrderTypes(o,e,s,t,r,n,i,l,u).then(d=>d(this.axios,this.basePath))}getSalesReportStaff(o,e,s,t,r,n,i,l){return j(this.configuration).getSalesReportStaff(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}getShortSalesReport(o,e,s,t,r,n,i,l,u,d,p,A,D,f){return j(this.configuration).getShortSalesReport(o,e,s,t,r,n,i,l,u,d,p,A,D,f).then(S=>S(this.axios,this.basePath))}sendReportEmailV5(o,e,s,t,r,n,i,l){return j(this.configuration).sendReportEmailV5(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}},Gs=function(a){return{getOrganisationReportRunFile:async(o,e,s,t={})=>{c("getOrganisationReportRunFile","groupId",o),c("getOrganisationReportRunFile","runId",e),c("getOrganisationReportRunFile","format",s);let r="/api/v6/groups/{groupId}/report-runs/{runId}/file".replace("{groupId}",encodeURIComponent(String(o))).replace("{runId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),s!==void 0&&(d.format=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getOrganisationSavedReportSchedule:async(o,e,s={})=>{c("getOrganisationSavedReportSchedule","groupId",o),c("getOrganisationSavedReportSchedule","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}/schedule".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getReportRun:async(o,e={})=>{c("getReportRun","runId",o);let s="/api/v6/report-runs/{runId}".replace("{runId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getStoreReadyMadeReportSchedule:async(o,e,s={})=>{c("getStoreReadyMadeReportSchedule","businessId",o),c("getStoreReadyMadeReportSchedule","readyMadeReport",e);let t="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/schedule".replace("{businessId}",encodeURIComponent(String(o))).replace("{readyMadeReport}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getStoreReportRunFile:async(o,e,s,t={})=>{c("getStoreReportRunFile","businessId",o),c("getStoreReportRunFile","runId",e),c("getStoreReportRunFile","format",s);let r="/api/v6/businesses/{businessId}/report-runs/{runId}/file".replace("{businessId}",encodeURIComponent(String(o))).replace("{runId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),s!==void 0&&(d.format=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},getStoreSavedReportSchedule:async(o,e,s={})=>{c("getStoreSavedReportSchedule","businessId",o),c("getStoreSavedReportSchedule","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}/schedule".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOrganisationSavedReportRuns:async(o,e,s,t,r={})=>{c("listOrganisationSavedReportRuns","groupId",o),c("listOrganisationSavedReportRuns","reportId",e);let n="/api/v6/groups/{groupId}/reports/{reportId}/runs".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await x(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},listStoreReadyMadeReportRuns:async(o,e,s,t,r={})=>{c("listStoreReadyMadeReportRuns","businessId",o),c("listStoreReadyMadeReportRuns","readyMadeReport",e);let n="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/runs".replace("{businessId}",encodeURIComponent(String(o))).replace("{readyMadeReport}",encodeURIComponent(String(e))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await x(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},listStoreSavedReportRuns:async(o,e,s,t,r={})=>{c("listStoreSavedReportRuns","businessId",o),c("listStoreSavedReportRuns","reportId",e);let n="/api/v6/businesses/{businessId}/reports/{reportId}/runs".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),i=new URL(n,y),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await x(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),g(i,p);let A=l&&l.headers?l.headers:{};return u.headers={...d,...A,...r.headers},{url:h(i),options:u}},setOrganisationSavedReportSchedule:async(o,e,s,t={})=>{c("setOrganisationSavedReportSchedule","groupId",o),c("setOrganisationSavedReportSchedule","reportId",e),c("setOrganisationSavedReportSchedule","setReportScheduleDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/schedule".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},setStoreReadyMadeReportSchedule:async(o,e,s,t={})=>{c("setStoreReadyMadeReportSchedule","businessId",o),c("setStoreReadyMadeReportSchedule","readyMadeReport",e),c("setStoreReadyMadeReportSchedule","setReportScheduleDto",s);let r="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/schedule".replace("{businessId}",encodeURIComponent(String(o))).replace("{readyMadeReport}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},setStoreSavedReportSchedule:async(o,e,s,t={})=>{c("setStoreSavedReportSchedule","businessId",o),c("setStoreSavedReportSchedule","reportId",e),c("setStoreSavedReportSchedule","setReportScheduleDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/schedule".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},L=function(a){let o=Gs(a);return{async getOrganisationReportRunFile(e,s,t,r){let n=await o.getOrganisationReportRunFile(e,s,t,r);return P(n,R,m,a)},async getOrganisationSavedReportSchedule(e,s,t){let r=await o.getOrganisationSavedReportSchedule(e,s,t);return P(r,R,m,a)},async getReportRun(e,s){let t=await o.getReportRun(e,s);return P(t,R,m,a)},async getStoreReadyMadeReportSchedule(e,s,t){let r=await o.getStoreReadyMadeReportSchedule(e,s,t);return P(r,R,m,a)},async getStoreReportRunFile(e,s,t,r){let n=await o.getStoreReportRunFile(e,s,t,r);return P(n,R,m,a)},async getStoreSavedReportSchedule(e,s,t){let r=await o.getStoreSavedReportSchedule(e,s,t);return P(r,R,m,a)},async listOrganisationSavedReportRuns(e,s,t,r,n){let i=await o.listOrganisationSavedReportRuns(e,s,t,r,n);return P(i,R,m,a)},async listStoreReadyMadeReportRuns(e,s,t,r,n){let i=await o.listStoreReadyMadeReportRuns(e,s,t,r,n);return P(i,R,m,a)},async listStoreSavedReportRuns(e,s,t,r,n){let i=await o.listStoreSavedReportRuns(e,s,t,r,n);return P(i,R,m,a)},async setOrganisationSavedReportSchedule(e,s,t,r){let n=await o.setOrganisationSavedReportSchedule(e,s,t,r);return P(n,R,m,a)},async setStoreReadyMadeReportSchedule(e,s,t,r){let n=await o.setStoreReadyMadeReportSchedule(e,s,t,r);return P(n,R,m,a)},async setStoreSavedReportSchedule(e,s,t,r){let n=await o.setStoreSavedReportSchedule(e,s,t,r);return P(n,R,m,a)}}},Si=function(a,o,e){let s=L(a);return{getOrganisationReportRunFile(t,r,n,i){return s.getOrganisationReportRunFile(t,r,n,i).then(l=>l(e,o))},getOrganisationSavedReportSchedule(t,r,n){return s.getOrganisationSavedReportSchedule(t,r,n).then(i=>i(e,o))},getReportRun(t,r){return s.getReportRun(t,r).then(n=>n(e,o))},getStoreReadyMadeReportSchedule(t,r,n){return s.getStoreReadyMadeReportSchedule(t,r,n).then(i=>i(e,o))},getStoreReportRunFile(t,r,n,i){return s.getStoreReportRunFile(t,r,n,i).then(l=>l(e,o))},getStoreSavedReportSchedule(t,r,n){return s.getStoreSavedReportSchedule(t,r,n).then(i=>i(e,o))},listOrganisationSavedReportRuns(t,r,n,i,l){return s.listOrganisationSavedReportRuns(t,r,n,i,l).then(u=>u(e,o))},listStoreReadyMadeReportRuns(t,r,n,i,l){return s.listStoreReadyMadeReportRuns(t,r,n,i,l).then(u=>u(e,o))},listStoreSavedReportRuns(t,r,n,i,l){return s.listStoreSavedReportRuns(t,r,n,i,l).then(u=>u(e,o))},setOrganisationSavedReportSchedule(t,r,n,i){return s.setOrganisationSavedReportSchedule(t,r,n,i).then(l=>l(e,o))},setStoreReadyMadeReportSchedule(t,r,n,i){return s.setStoreReadyMadeReportSchedule(t,r,n,i).then(l=>l(e,o))},setStoreSavedReportSchedule(t,r,n,i){return s.setStoreSavedReportSchedule(t,r,n,i).then(l=>l(e,o))}}},Vt=class extends v{getOrganisationReportRunFile(o,e,s,t){return L(this.configuration).getOrganisationReportRunFile(o,e,s,t).then(r=>r(this.axios,this.basePath))}getOrganisationSavedReportSchedule(o,e,s){return L(this.configuration).getOrganisationSavedReportSchedule(o,e,s).then(t=>t(this.axios,this.basePath))}getReportRun(o,e){return L(this.configuration).getReportRun(o,e).then(s=>s(this.axios,this.basePath))}getStoreReadyMadeReportSchedule(o,e,s){return L(this.configuration).getStoreReadyMadeReportSchedule(o,e,s).then(t=>t(this.axios,this.basePath))}getStoreReportRunFile(o,e,s,t){return L(this.configuration).getStoreReportRunFile(o,e,s,t).then(r=>r(this.axios,this.basePath))}getStoreSavedReportSchedule(o,e,s){return L(this.configuration).getStoreSavedReportSchedule(o,e,s).then(t=>t(this.axios,this.basePath))}listOrganisationSavedReportRuns(o,e,s,t,r){return L(this.configuration).listOrganisationSavedReportRuns(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}listStoreReadyMadeReportRuns(o,e,s,t,r){return L(this.configuration).listStoreReadyMadeReportRuns(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}listStoreSavedReportRuns(o,e,s,t,r){return L(this.configuration).listStoreSavedReportRuns(o,e,s,t,r).then(n=>n(this.axios,this.basePath))}setOrganisationSavedReportSchedule(o,e,s,t){return L(this.configuration).setOrganisationSavedReportSchedule(o,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreReadyMadeReportSchedule(o,e,s,t){return L(this.configuration).setStoreReadyMadeReportSchedule(o,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreSavedReportSchedule(o,e,s,t){return L(this.configuration).setStoreSavedReportSchedule(o,e,s,t).then(r=>r(this.axios,this.basePath))}},$s=function(a){return{getEndOfDayReportForTill:async(o,e,s,t,r,n,i={})=>{c("getEndOfDayReportForTill","businessIds",o);let l="/api/v6/report/end-of-day",u=new URL(l,y),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},A={},D={};await x(A,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),o&&(D.businessIds=o),r!==void 0&&(D.timezone=r),n!==void 0&&(D.provider=n),g(u,D);let f=d&&d.headers?d.headers:{};return p.headers={...A,...f,...i.headers},{url:h(u),options:p}},sendEndOfDayReportForTill:async(o,e,s,t,r,n,i,l={})=>{c("sendEndOfDayReportForTill","businessIds",o),c("sendEndOfDayReportForTill","sendReportEmailDto",e);let u="/api/v6/report/email",d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"POST",...p,...l},D={},f={};await x(D,a),s!==void 0&&(f.timeSpan=s),t!==void 0&&(f.start=t),r!==void 0&&(f.end=r),o&&(f.businessIds=o),n!==void 0&&(f.timezone=n),i!==void 0&&(f.provider=i),D["Content-Type"]="application/json",g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},A.data=b(e,A,a),{url:h(d),options:A}}}},Ee=function(a){let o=$s(a);return{async getEndOfDayReportForTill(e,s,t,r,n,i,l){let u=await o.getEndOfDayReportForTill(e,s,t,r,n,i,l);return P(u,R,m,a)},async sendEndOfDayReportForTill(e,s,t,r,n,i,l,u){let d=await o.sendEndOfDayReportForTill(e,s,t,r,n,i,l,u);return P(d,R,m,a)}}},Ci=function(a,o,e){let s=Ee(a);return{getEndOfDayReportForTill(t,r,n,i,l,u,d){return s.getEndOfDayReportForTill(t,r,n,i,l,u,d).then(p=>p(e,o))},sendEndOfDayReportForTill(t,r,n,i,l,u,d,p){return s.sendEndOfDayReportForTill(t,r,n,i,l,u,d,p).then(A=>A(e,o))}}},It=class extends v{getEndOfDayReportForTill(o,e,s,t,r,n,i){return Ee(this.configuration).getEndOfDayReportForTill(o,e,s,t,r,n,i).then(l=>l(this.axios,this.basePath))}sendEndOfDayReportForTill(o,e,s,t,r,n,i,l){return Ee(this.configuration).sendEndOfDayReportForTill(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}},zs=function(a){return{changeResQOffer:async(o,e,s,t={})=>{c("changeResQOffer","businessId",o),c("changeResQOffer","offerId",e),c("changeResQOffer","changeResQOfferDto",s);let r="/api/v2/venues/{businessId}/resq/offers/{offerId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{offerId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},createResQOffer:async(o,e,s={})=>{c("createResQOffer","businessId",o),c("createResQOffer","createResQOfferDto",e);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},deactivateResQOffer:async(o,e,s={})=>{c("deactivateResQOffer","businessId",o),c("deactivateResQOffer","offerId",e);let t="/api/v2/venues/{businessId}/resq/offers/{offerId}/deactivate".replace("{businessId}",encodeURIComponent(String(o))).replace("{offerId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getResQOrder:async(o,e,s={})=>{c("getResQOrder","businessId",o),c("getResQOrder","orderId",e);let t="/api/v2/venues/{businessId}/resq/orders/{orderId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{orderId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listResQOffers:async(o,e,s={})=>{c("listResQOffers","businessId",o);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.page=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listResQOrders:async(o,e,s={})=>{c("listResQOrders","businessId",o);let t="/api/v2/venues/{businessId}/resq/orders".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),e!==void 0&&(u.page=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},J=function(a){let o=zs(a);return{async changeResQOffer(e,s,t,r){let n=await o.changeResQOffer(e,s,t,r);return P(n,R,m,a)},async createResQOffer(e,s,t){let r=await o.createResQOffer(e,s,t);return P(r,R,m,a)},async deactivateResQOffer(e,s,t){let r=await o.deactivateResQOffer(e,s,t);return P(r,R,m,a)},async getResQOrder(e,s,t){let r=await o.getResQOrder(e,s,t);return P(r,R,m,a)},async listResQOffers(e,s,t){let r=await o.listResQOffers(e,s,t);return P(r,R,m,a)},async listResQOrders(e,s,t){let r=await o.listResQOrders(e,s,t);return P(r,R,m,a)}}},Oi=function(a,o,e){let s=J(a);return{changeResQOffer(t,r,n,i){return s.changeResQOffer(t,r,n,i).then(l=>l(e,o))},createResQOffer(t,r,n){return s.createResQOffer(t,r,n).then(i=>i(e,o))},deactivateResQOffer(t,r,n){return s.deactivateResQOffer(t,r,n).then(i=>i(e,o))},getResQOrder(t,r,n){return s.getResQOrder(t,r,n).then(i=>i(e,o))},listResQOffers(t,r,n){return s.listResQOffers(t,r,n).then(i=>i(e,o))},listResQOrders(t,r,n){return s.listResQOrders(t,r,n).then(i=>i(e,o))}}},vt=class extends v{changeResQOffer(o,e,s,t){return J(this.configuration).changeResQOffer(o,e,s,t).then(r=>r(this.axios,this.basePath))}createResQOffer(o,e,s){return J(this.configuration).createResQOffer(o,e,s).then(t=>t(this.axios,this.basePath))}deactivateResQOffer(o,e,s){return J(this.configuration).deactivateResQOffer(o,e,s).then(t=>t(this.axios,this.basePath))}getResQOrder(o,e,s){return J(this.configuration).getResQOrder(o,e,s).then(t=>t(this.axios,this.basePath))}listResQOffers(o,e,s){return J(this.configuration).listResQOffers(o,e,s).then(t=>t(this.axios,this.basePath))}listResQOrders(o,e,s){return J(this.configuration).listResQOrders(o,e,s).then(t=>t(this.axios,this.basePath))}},Ys=function(a){return{createReservation:async(o,e={})=>{c("createReservation","createReservationDto",o);let s="/api/v1/reservations",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},getReservationAvailability:async(o,e,s,t,r,n={})=>{c("getReservationAvailability","businessId",o),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let i="/api/v1/reservations/availability",l=new URL(i,y),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...n},p={},A={};await x(p,a),o!==void 0&&(A.businessId=o),e!==void 0&&(A.date=e),s!==void 0&&(A.partySize=s),t!==void 0&&(A.sectionId=t),r!==void 0&&(A.excludeReservationId=r),g(l,A);let D=u&&u.headers?u.headers:{};return d.headers={...p,...D,...n.headers},{url:h(l),options:d}},getReservationPolicy:async(o,e={})=>{c("getReservationPolicy","businessId",o);let s="/api/v1/reservations/policy",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},linkReservationIntegration:async(o,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",o);let s="/api/v1/reservations/link",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},listReservations:async(o,e,s,t={})=>{c("listReservations","businessId",o);let r="/api/v1/reservations",n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),o!==void 0&&(d.businessId=o),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},reservationInboundWebhook:async(o,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",o);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},unlinkReservationIntegration:async(o,e={})=>{c("unlinkReservationIntegration","businessId",o);let s="/api/v1/reservations/link",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"DELETE",...r,...e},i={},l={};await x(i,a),o!==void 0&&(l.businessId=o),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},updateReservation:async(o,e,s,t={})=>{c("updateReservation","id",o),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let r="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateReservationPolicy:async(o,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",o);let s="/api/v1/reservations/policy",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"PATCH",...r,...e},i={},l={};await x(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},updateReservationStatus:async(o,e,s,t={})=>{c("updateReservationStatus","id",o),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let r="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},W=function(a){let o=Ys(a);return{async createReservation(e,s){let t=await o.createReservation(e,s);return P(t,R,m,a)},async getReservationAvailability(e,s,t,r,n,i){let l=await o.getReservationAvailability(e,s,t,r,n,i);return P(l,R,m,a)},async getReservationPolicy(e,s){let t=await o.getReservationPolicy(e,s);return P(t,R,m,a)},async linkReservationIntegration(e,s){let t=await o.linkReservationIntegration(e,s);return P(t,R,m,a)},async listReservations(e,s,t,r){let n=await o.listReservations(e,s,t,r);return P(n,R,m,a)},async reservationInboundWebhook(e,s){let t=await o.reservationInboundWebhook(e,s);return P(t,R,m,a)},async unlinkReservationIntegration(e,s){let t=await o.unlinkReservationIntegration(e,s);return P(t,R,m,a)},async updateReservation(e,s,t,r){let n=await o.updateReservation(e,s,t,r);return P(n,R,m,a)},async updateReservationPolicy(e,s){let t=await o.updateReservationPolicy(e,s);return P(t,R,m,a)},async updateReservationStatus(e,s,t,r){let n=await o.updateReservationStatus(e,s,t,r);return P(n,R,m,a)}}},Vi=function(a,o,e){let s=W(a);return{createReservation(t,r){return s.createReservation(t,r).then(n=>n(e,o))},getReservationAvailability(t,r,n,i,l,u){return s.getReservationAvailability(t,r,n,i,l,u).then(d=>d(e,o))},getReservationPolicy(t,r){return s.getReservationPolicy(t,r).then(n=>n(e,o))},linkReservationIntegration(t,r){return s.linkReservationIntegration(t,r).then(n=>n(e,o))},listReservations(t,r,n,i){return s.listReservations(t,r,n,i).then(l=>l(e,o))},reservationInboundWebhook(t,r){return s.reservationInboundWebhook(t,r).then(n=>n(e,o))},unlinkReservationIntegration(t,r){return s.unlinkReservationIntegration(t,r).then(n=>n(e,o))},updateReservation(t,r,n,i){return s.updateReservation(t,r,n,i).then(l=>l(e,o))},updateReservationPolicy(t,r){return s.updateReservationPolicy(t,r).then(n=>n(e,o))},updateReservationStatus(t,r,n,i){return s.updateReservationStatus(t,r,n,i).then(l=>l(e,o))}}},Tt=class extends v{createReservation(o,e){return W(this.configuration).createReservation(o,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(o,e,s,t,r,n){return W(this.configuration).getReservationAvailability(o,e,s,t,r,n).then(i=>i(this.axios,this.basePath))}getReservationPolicy(o,e){return W(this.configuration).getReservationPolicy(o,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(o,e){return W(this.configuration).linkReservationIntegration(o,e).then(s=>s(this.axios,this.basePath))}listReservations(o,e,s,t){return W(this.configuration).listReservations(o,e,s,t).then(r=>r(this.axios,this.basePath))}reservationInboundWebhook(o,e){return W(this.configuration).reservationInboundWebhook(o,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(o,e){return W(this.configuration).unlinkReservationIntegration(o,e).then(s=>s(this.axios,this.basePath))}updateReservation(o,e,s,t){return W(this.configuration).updateReservation(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateReservationPolicy(o,e){return W(this.configuration).updateReservationPolicy(o,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(o,e,s,t){return W(this.configuration).updateReservationStatus(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Xs=function(a){return{createOrganisationSavedReport:async(o,e,s={})=>{c("createOrganisationSavedReport","groupId",o),c("createOrganisationSavedReport","createSavedReportDto",e);let t="/api/v6/groups/{groupId}/reports".replace("{groupId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createStoreSavedReport:async(o,e,s={})=>{c("createStoreSavedReport","businessId",o),c("createStoreSavedReport","createSavedReportDto",e);let t="/api/v6/businesses/{businessId}/reports".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},deleteOrganisationSavedReport:async(o,e,s={})=>{c("deleteOrganisationSavedReport","groupId",o),c("deleteOrganisationSavedReport","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},deleteStoreSavedReport:async(o,e,s={})=>{c("deleteStoreSavedReport","businessId",o),c("deleteStoreSavedReport","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"DELETE",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},duplicateOrganisationSavedReport:async(o,e,s,t={})=>{c("duplicateOrganisationSavedReport","groupId",o),c("duplicateOrganisationSavedReport","reportId",e),c("duplicateOrganisationSavedReport","duplicateSavedReportDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/duplicate".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},duplicateStoreSavedReport:async(o,e,s,t={})=>{c("duplicateStoreSavedReport","businessId",o),c("duplicateStoreSavedReport","reportId",e),c("duplicateStoreSavedReport","duplicateSavedReportDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/duplicate".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},getOrganisationSavedReport:async(o,e,s={})=>{c("getOrganisationSavedReport","groupId",o),c("getOrganisationSavedReport","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getPublicSavedReport:async(o,e={})=>{c("getPublicSavedReport","token",o);let s="/api/v6/public-reports/{token}".replace("{token}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getStoreSavedReport:async(o,e,s={})=>{c("getStoreSavedReport","businessId",o),c("getStoreSavedReport","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};await x(l,a),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOrganisationSavedReports:async(o,e,s,t={})=>{c("listOrganisationSavedReports","groupId",o);let r="/api/v6/groups/{groupId}/reports".replace("{groupId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.limit=e),s!==void 0&&(d.after=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},listStoreSavedReports:async(o,e,s,t={})=>{c("listStoreSavedReports","businessId",o);let r="/api/v6/businesses/{businessId}/reports".replace("{businessId}",encodeURIComponent(String(o))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await x(u,a),e!==void 0&&(d.limit=e),s!==void 0&&(d.after=s),g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(n),options:l}},setOrganisationSavedReportVisibility:async(o,e,s,t={})=>{c("setOrganisationSavedReportVisibility","groupId",o),c("setOrganisationSavedReportVisibility","reportId",e),c("setOrganisationSavedReportVisibility","setSavedReportVisibilityDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/visibility".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},setStoreSavedReportVisibility:async(o,e,s,t={})=>{c("setStoreSavedReportVisibility","businessId",o),c("setStoreSavedReportVisibility","reportId",e),c("setStoreSavedReportVisibility","setSavedReportVisibilityDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/visibility".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateOrganisationSavedReport:async(o,e,s,t={})=>{c("updateOrganisationSavedReport","groupId",o),c("updateOrganisationSavedReport","reportId",e),c("updateOrganisationSavedReport","updateSavedReportDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}},updateStoreSavedReport:async(o,e,s,t={})=>{c("updateStoreSavedReport","businessId",o),c("updateStoreSavedReport","reportId",e),c("updateStoreSavedReport","updateSavedReportDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(o))).replace("{reportId}",encodeURIComponent(String(e))),n=new URL(r,y),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await x(u,a),u["Content-Type"]="application/json",g(n,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(n),options:l}}}},B=function(a){let o=Xs(a);return{async createOrganisationSavedReport(e,s,t){let r=await o.createOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async createStoreSavedReport(e,s,t){let r=await o.createStoreSavedReport(e,s,t);return P(r,R,m,a)},async deleteOrganisationSavedReport(e,s,t){let r=await o.deleteOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async deleteStoreSavedReport(e,s,t){let r=await o.deleteStoreSavedReport(e,s,t);return P(r,R,m,a)},async duplicateOrganisationSavedReport(e,s,t,r){let n=await o.duplicateOrganisationSavedReport(e,s,t,r);return P(n,R,m,a)},async duplicateStoreSavedReport(e,s,t,r){let n=await o.duplicateStoreSavedReport(e,s,t,r);return P(n,R,m,a)},async getOrganisationSavedReport(e,s,t){let r=await o.getOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async getPublicSavedReport(e,s){let t=await o.getPublicSavedReport(e,s);return P(t,R,m,a)},async getStoreSavedReport(e,s,t){let r=await o.getStoreSavedReport(e,s,t);return P(r,R,m,a)},async listOrganisationSavedReports(e,s,t,r){let n=await o.listOrganisationSavedReports(e,s,t,r);return P(n,R,m,a)},async listStoreSavedReports(e,s,t,r){let n=await o.listStoreSavedReports(e,s,t,r);return P(n,R,m,a)},async setOrganisationSavedReportVisibility(e,s,t,r){let n=await o.setOrganisationSavedReportVisibility(e,s,t,r);return P(n,R,m,a)},async setStoreSavedReportVisibility(e,s,t,r){let n=await o.setStoreSavedReportVisibility(e,s,t,r);return P(n,R,m,a)},async updateOrganisationSavedReport(e,s,t,r){let n=await o.updateOrganisationSavedReport(e,s,t,r);return P(n,R,m,a)},async updateStoreSavedReport(e,s,t,r){let n=await o.updateStoreSavedReport(e,s,t,r);return P(n,R,m,a)}}},Ii=function(a,o,e){let s=B(a);return{createOrganisationSavedReport(t,r,n){return s.createOrganisationSavedReport(t,r,n).then(i=>i(e,o))},createStoreSavedReport(t,r,n){return s.createStoreSavedReport(t,r,n).then(i=>i(e,o))},deleteOrganisationSavedReport(t,r,n){return s.deleteOrganisationSavedReport(t,r,n).then(i=>i(e,o))},deleteStoreSavedReport(t,r,n){return s.deleteStoreSavedReport(t,r,n).then(i=>i(e,o))},duplicateOrganisationSavedReport(t,r,n,i){return s.duplicateOrganisationSavedReport(t,r,n,i).then(l=>l(e,o))},duplicateStoreSavedReport(t,r,n,i){return s.duplicateStoreSavedReport(t,r,n,i).then(l=>l(e,o))},getOrganisationSavedReport(t,r,n){return s.getOrganisationSavedReport(t,r,n).then(i=>i(e,o))},getPublicSavedReport(t,r){return s.getPublicSavedReport(t,r).then(n=>n(e,o))},getStoreSavedReport(t,r,n){return s.getStoreSavedReport(t,r,n).then(i=>i(e,o))},listOrganisationSavedReports(t,r,n,i){return s.listOrganisationSavedReports(t,r,n,i).then(l=>l(e,o))},listStoreSavedReports(t,r,n,i){return s.listStoreSavedReports(t,r,n,i).then(l=>l(e,o))},setOrganisationSavedReportVisibility(t,r,n,i){return s.setOrganisationSavedReportVisibility(t,r,n,i).then(l=>l(e,o))},setStoreSavedReportVisibility(t,r,n,i){return s.setStoreSavedReportVisibility(t,r,n,i).then(l=>l(e,o))},updateOrganisationSavedReport(t,r,n,i){return s.updateOrganisationSavedReport(t,r,n,i).then(l=>l(e,o))},updateStoreSavedReport(t,r,n,i){return s.updateStoreSavedReport(t,r,n,i).then(l=>l(e,o))}}},qt=class extends v{createOrganisationSavedReport(o,e,s){return B(this.configuration).createOrganisationSavedReport(o,e,s).then(t=>t(this.axios,this.basePath))}createStoreSavedReport(o,e,s){return B(this.configuration).createStoreSavedReport(o,e,s).then(t=>t(this.axios,this.basePath))}deleteOrganisationSavedReport(o,e,s){return B(this.configuration).deleteOrganisationSavedReport(o,e,s).then(t=>t(this.axios,this.basePath))}deleteStoreSavedReport(o,e,s){return B(this.configuration).deleteStoreSavedReport(o,e,s).then(t=>t(this.axios,this.basePath))}duplicateOrganisationSavedReport(o,e,s,t){return B(this.configuration).duplicateOrganisationSavedReport(o,e,s,t).then(r=>r(this.axios,this.basePath))}duplicateStoreSavedReport(o,e,s,t){return B(this.configuration).duplicateStoreSavedReport(o,e,s,t).then(r=>r(this.axios,this.basePath))}getOrganisationSavedReport(o,e,s){return B(this.configuration).getOrganisationSavedReport(o,e,s).then(t=>t(this.axios,this.basePath))}getPublicSavedReport(o,e){return B(this.configuration).getPublicSavedReport(o,e).then(s=>s(this.axios,this.basePath))}getStoreSavedReport(o,e,s){return B(this.configuration).getStoreSavedReport(o,e,s).then(t=>t(this.axios,this.basePath))}listOrganisationSavedReports(o,e,s,t){return B(this.configuration).listOrganisationSavedReports(o,e,s,t).then(r=>r(this.axios,this.basePath))}listStoreSavedReports(o,e,s,t){return B(this.configuration).listStoreSavedReports(o,e,s,t).then(r=>r(this.axios,this.basePath))}setOrganisationSavedReportVisibility(o,e,s,t){return B(this.configuration).setOrganisationSavedReportVisibility(o,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreSavedReportVisibility(o,e,s,t){return B(this.configuration).setStoreSavedReportVisibility(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateOrganisationSavedReport(o,e,s,t){return B(this.configuration).updateOrganisationSavedReport(o,e,s,t).then(r=>r(this.axios,this.basePath))}updateStoreSavedReport(o,e,s,t){return B(this.configuration).updateStoreSavedReport(o,e,s,t).then(r=>r(this.axios,this.basePath))}},Zs=function(a){return{clockIn:async(o,e,s={})=>{c("clockIn","businessId",o),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},clockOut:async(o,e,s={})=>{c("clockOut","businessId",o),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"PUT",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getTodayShift:async(o,e,s={})=>{c("getTodayShift","businessId",o),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},lockTill:async(o,e={})=>{c("lockTill","businessId",o);let s="/api/v2/businesses/{businessId}/shifts/lock".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},unlock:async(o,e,s={})=>{c("unlock","businessId",o),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},unlockTillWithPin:async(o,e,s={})=>{c("unlockTillWithPin","businessId",o),c("unlockTillWithPin","xPosPin",e);let t="/api/v2/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};await x(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},ee=function(a){let o=Zs(a);return{async clockIn(e,s,t){let r=await o.clockIn(e,s,t);return P(r,R,m,a)},async clockOut(e,s,t){let r=await o.clockOut(e,s,t);return P(r,R,m,a)},async getTodayShift(e,s,t){let r=await o.getTodayShift(e,s,t);return P(r,R,m,a)},async lockTill(e,s){let t=await o.lockTill(e,s);return P(t,R,m,a)},async unlock(e,s,t){let r=await o.unlock(e,s,t);return P(r,R,m,a)},async unlockTillWithPin(e,s,t){let r=await o.unlockTillWithPin(e,s,t);return P(r,R,m,a)}}},vi=function(a,o,e){let s=ee(a);return{clockIn(t,r,n){return s.clockIn(t,r,n).then(i=>i(e,o))},clockOut(t,r,n){return s.clockOut(t,r,n).then(i=>i(e,o))},getTodayShift(t,r,n){return s.getTodayShift(t,r,n).then(i=>i(e,o))},lockTill(t,r){return s.lockTill(t,r).then(n=>n(e,o))},unlock(t,r,n){return s.unlock(t,r,n).then(i=>i(e,o))},unlockTillWithPin(t,r,n){return s.unlockTillWithPin(t,r,n).then(i=>i(e,o))}}},Et=class extends v{clockIn(o,e,s){return ee(this.configuration).clockIn(o,e,s).then(t=>t(this.axios,this.basePath))}clockOut(o,e,s){return ee(this.configuration).clockOut(o,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(o,e,s){return ee(this.configuration).getTodayShift(o,e,s).then(t=>t(this.axios,this.basePath))}lockTill(o,e){return ee(this.configuration).lockTill(o,e).then(s=>s(this.axios,this.basePath))}unlock(o,e,s){return ee(this.configuration).unlock(o,e,s).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(o,e,s){return ee(this.configuration).unlockTillWithPin(o,e,s).then(t=>t(this.axios,this.basePath))}},Js=function(a){return{deactivateStation:async(o={})=>{let e="/api/v1/station/deactivate",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},getStation:async(o={})=>{let e="/api/v1/station",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},syncStation:async(o,e={})=>{c("syncStation","syncStationDto",o);let s="/api/v1/station/sync",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},he=function(a){let o=Js(a);return{async deactivateStation(e){let s=await o.deactivateStation(e);return P(s,R,m,a)},async getStation(e){let s=await o.getStation(e);return P(s,R,m,a)},async syncStation(e,s){let t=await o.syncStation(e,s);return P(t,R,m,a)}}},Ti=function(a,o,e){let s=he(a);return{deactivateStation(t){return s.deactivateStation(t).then(r=>r(e,o))},getStation(t){return s.getStation(t).then(r=>r(e,o))},syncStation(t,r){return s.syncStation(t,r).then(n=>n(e,o))}}},Ut=class extends v{deactivateStation(o){return he(this.configuration).deactivateStation(o).then(e=>e(this.axios,this.basePath))}getStation(o){return he(this.configuration).getStation(o).then(e=>e(this.axios,this.basePath))}syncStation(o,e){return he(this.configuration).syncStation(o,e).then(s=>s(this.axios,this.basePath))}},er=function(a){return{connectTerminal:async(o,e={})=>{c("connectTerminal","connectTerminalDto",o);let s="/api/v1/terminal/connect",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},disconnectTerminal:async(o={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},discoverTerminal:async(o,e={})=>{c("discoverTerminal","discoverTerminalDto",o);let s="/api/v1/terminal/discover",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Pe=function(a){let o=er(a);return{async connectTerminal(e,s){let t=await o.connectTerminal(e,s);return P(t,R,m,a)},async disconnectTerminal(e){let s=await o.disconnectTerminal(e);return P(s,R,m,a)},async discoverTerminal(e,s){let t=await o.discoverTerminal(e,s);return P(t,R,m,a)}}},qi=function(a,o,e){let s=Pe(a);return{connectTerminal(t,r){return s.connectTerminal(t,r).then(n=>n(e,o))},disconnectTerminal(t){return s.disconnectTerminal(t).then(r=>r(e,o))},discoverTerminal(t,r){return s.discoverTerminal(t,r).then(n=>n(e,o))}}},kt=class extends v{connectTerminal(o,e){return Pe(this.configuration).connectTerminal(o,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(o){return Pe(this.configuration).disconnectTerminal(o).then(e=>e(this.axios,this.basePath))}discoverTerminal(o,e){return Pe(this.configuration).discoverTerminal(o,e).then(s=>s(this.axios,this.basePath))}},tr=function(a){return{getMyVenue:async(o,e={})=>{c("getMyVenue","businessId",o);let s="/api/v3/user/venues/{businessId}".replace("{businessId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={},l={};await x(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getUserBusinessV1:async(o={})=>{let e="/api/v1/user/business",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={},i={};await x(n,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},getUserBusinessV2:async(o={})=>{let e="/api/v2/user/business",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={},i={};await x(n,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},listMyVenues:async(o={})=>{let e="/api/v3/user/venues",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={},i={};await x(n,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}}}},de=function(a){let o=tr(a);return{async getMyVenue(e,s){let t=await o.getMyVenue(e,s);return P(t,R,m,a)},async getUserBusinessV1(e){let s=await o.getUserBusinessV1(e);return P(s,R,m,a)},async getUserBusinessV2(e){let s=await o.getUserBusinessV2(e);return P(s,R,m,a)},async listMyVenues(e){let s=await o.listMyVenues(e);return P(s,R,m,a)}}},Ei=function(a,o,e){let s=de(a);return{getMyVenue(t,r){return s.getMyVenue(t,r).then(n=>n(e,o))},getUserBusinessV1(t){return s.getUserBusinessV1(t).then(r=>r(e,o))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(r=>r(e,o))},listMyVenues(t){return s.listMyVenues(t).then(r=>r(e,o))}}},Mt=class extends v{getMyVenue(o,e){return de(this.configuration).getMyVenue(o,e).then(s=>s(this.axios,this.basePath))}getUserBusinessV1(o){return de(this.configuration).getUserBusinessV1(o).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(o){return de(this.configuration).getUserBusinessV2(o).then(e=>e(this.axios,this.basePath))}listMyVenues(o){return de(this.configuration).listMyVenues(o).then(e=>e(this.axios,this.basePath))}},sr=function(a){return{upsert:async(o,e={})=>{c("upsert","vendureSellerUpsertDto",o);let s="/api/v1/vendure/seller/upsert",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Yt=function(a){let o=sr(a);return{async upsert(e,s){let t=await o.upsert(e,s);return P(t,R,m,a)}}},Ui=function(a,o,e){let s=Yt(a);return{upsert(t,r){return s.upsert(t,r).then(n=>n(e,o))}}},Bt=class extends v{upsert(o,e){return Yt(this.configuration).upsert(o,e).then(s=>s(this.axios,this.basePath))}},rr=function(a){return{createVivaAppToAppPayment:async(o,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",o);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},getVivaSession:async(o,e={})=>{c("getVivaSession","id",o);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},listVivaSessions:async(o,e,s,t,r,n,i,l={})=>{c("listVivaSessions","businessId",o);let u="/api/v1/viva/sessions",d=new URL(u,y),p;a&&(p=a.baseOptions);let A={method:"GET",...p,...l},D={},f={};o!==void 0&&(f.businessId=o),e!==void 0&&(f.page=e),s!==void 0&&(f.rowPerPage=s),t!==void 0&&(f.terminalId=t),r!==void 0&&(f.timeSpan=r),n!==void 0&&(f.start=n),i!==void 0&&(f.end=i),g(d,f);let S=p&&p.headers?p.headers:{};return A.headers={...D,...S,...l.headers},{url:h(d),options:A}},refundVivaPayment:async(o,e,s={})=>{c("refundVivaPayment","vivaA2aRefundDto",o);let t="/api/v1/viva/refund",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(o,i,a),{url:h(r),options:i}}}},ce=function(a){let o=rr(a);return{async createVivaAppToAppPayment(e,s){let t=await o.createVivaAppToAppPayment(e,s);return P(t,R,m,a)},async getVivaSession(e,s){let t=await o.getVivaSession(e,s);return P(t,R,m,a)},async listVivaSessions(e,s,t,r,n,i,l,u){let d=await o.listVivaSessions(e,s,t,r,n,i,l,u);return P(d,R,m,a)},async refundVivaPayment(e,s,t){let r=await o.refundVivaPayment(e,s,t);return P(r,R,m,a)}}},ki=function(a,o,e){let s=ce(a);return{createVivaAppToAppPayment(t,r){return s.createVivaAppToAppPayment(t,r).then(n=>n(e,o))},getVivaSession(t,r){return s.getVivaSession(t,r).then(n=>n(e,o))},listVivaSessions(t,r,n,i,l,u,d,p){return s.listVivaSessions(t,r,n,i,l,u,d,p).then(A=>A(e,o))},refundVivaPayment(t,r,n){return s.refundVivaPayment(t,r,n).then(i=>i(e,o))}}},wt=class extends v{createVivaAppToAppPayment(o,e){return ce(this.configuration).createVivaAppToAppPayment(o,e).then(s=>s(this.axios,this.basePath))}getVivaSession(o,e){return ce(this.configuration).getVivaSession(o,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(o,e,s,t,r,n,i,l){return ce(this.configuration).listVivaSessions(o,e,s,t,r,n,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(o,e,s){return ce(this.configuration).refundVivaPayment(o,e,s).then(t=>t(this.axios,this.basePath))}},or=function(a){return{handleAssignmentWebhook:async(o,e={})=>{c("handleAssignmentWebhook","supabaseAssignmentHookDto",o);let s="/api/webhook/add-employee-assignments",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleBusinessWebhook:async(o,e={})=>{c("handleBusinessWebhook","supabaseBusinessHookDto",o);let s="/api/webhook/add-business",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleFoodoraEvent:async(o,e={})=>{c("handleFoodoraEvent","orderUpdateDto",o);let s="/api/webhook/order/event",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleLoadEmployee:async(o,e={})=>{c("handleLoadEmployee","supabaseEmployeeHookDto",o);let s="/api/webhook/load-employee",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleNetsEvents:async(o,e={})=>{let s="/api/webhook/nets",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};o!=null&&(i["connectcloud-request-id"]=String(o)),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},handleNetsEventsV2:async(o,e={})=>{let s="/api/webhook/v2/nets",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};o!=null&&(i["connectcloud-request-id"]=String(o)),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},handleNetsSessionEvents:async(o,e={})=>{let s="/api/webhook/nets/payments",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};o!=null&&(i["connectcloud-request-id"]=String(o)),g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},handleNetsSessionEventsForClientToken:async(o,e,s={})=>{c("handleNetsSessionEventsForClientToken","clientToken",o);let t="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};e!=null&&(l["connectcloud-request-id"]=String(e)),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},handlePreorderReminder:async(o,e={})=>{c("handlePreorderReminder","preOrderReminderDto",o);let s="/api/webhook/preorder-reminder",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleRoleWebhook:async(o,e={})=>{c("handleRoleWebhook","supabaseRoleHookDto",o);let s="/api/webhook/add-roles",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleShiftWebhook:async(o,e={})=>{c("handleShiftWebhook","supabaseShiftHookDto",o);let s="/api/webhook/add-employee-shifts",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleVivaEvents:async(o,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",o);let s="/api/webhook/viva/verification",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleVivaSessionEvents:async(o,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",o);let s="/api/webhook/viva/payments",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleWebhook:async(o,e={})=>{let s="/api/webhook/ship-day",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},handleWoltDriveEventByCountry:async(o,e,s={})=>{c("handleWoltDriveEventByCountry","country",o),c("handleWoltDriveEventByCountry","woltDriveWebhookDto",e);let t="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},handleWorldlineEvents:async(o={})=>{let e="/api/webhook/worldline/events",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},handleWorldlineSessionEvents:async(o={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},processDispatchTask:async(o,e,s={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",o),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};o!=null&&(l["x-cloudtasks-taskretrycount"]=String(o)),l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},processPosOrderActionsQueue:async(o,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",o);let s="/api/webhook/pos/order-actions/process",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},updateWoltProduct:async(o,e={})=>{c("updateWoltProduct","woltSwitchesTaskDto",o);let s="/api/webhook/wolt/product/edit",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},verifyVivaSessionWebhook:async(o={})=>{let e="/api/webhook/viva/payments",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}},verifyVivaWebhook:async(o={})=>{let e="/api/webhook/viva/verification",s=new URL(e,y),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...o},n={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...n,...l,...o.headers},{url:h(s),options:r}}}},U=function(a){let o=or(a);return{async handleAssignmentWebhook(e,s){let t=await o.handleAssignmentWebhook(e,s);return P(t,R,m,a)},async handleBusinessWebhook(e,s){let t=await o.handleBusinessWebhook(e,s);return P(t,R,m,a)},async handleFoodoraEvent(e,s){let t=await o.handleFoodoraEvent(e,s);return P(t,R,m,a)},async handleLoadEmployee(e,s){let t=await o.handleLoadEmployee(e,s);return P(t,R,m,a)},async handleNetsEvents(e,s){let t=await o.handleNetsEvents(e,s);return P(t,R,m,a)},async handleNetsEventsV2(e,s){let t=await o.handleNetsEventsV2(e,s);return P(t,R,m,a)},async handleNetsSessionEvents(e,s){let t=await o.handleNetsSessionEvents(e,s);return P(t,R,m,a)},async handleNetsSessionEventsForClientToken(e,s,t){let r=await o.handleNetsSessionEventsForClientToken(e,s,t);return P(r,R,m,a)},async handlePreorderReminder(e,s){let t=await o.handlePreorderReminder(e,s);return P(t,R,m,a)},async handleRoleWebhook(e,s){let t=await o.handleRoleWebhook(e,s);return P(t,R,m,a)},async handleShiftWebhook(e,s){let t=await o.handleShiftWebhook(e,s);return P(t,R,m,a)},async handleVivaEvents(e,s){let t=await o.handleVivaEvents(e,s);return P(t,R,m,a)},async handleVivaSessionEvents(e,s){let t=await o.handleVivaSessionEvents(e,s);return P(t,R,m,a)},async handleWebhook(e,s){let t=await o.handleWebhook(e,s);return P(t,R,m,a)},async handleWoltDriveEventByCountry(e,s,t){let r=await o.handleWoltDriveEventByCountry(e,s,t);return P(r,R,m,a)},async handleWorldlineEvents(e){let s=await o.handleWorldlineEvents(e);return P(s,R,m,a)},async handleWorldlineSessionEvents(e){let s=await o.handleWorldlineSessionEvents(e);return P(s,R,m,a)},async processDispatchTask(e,s,t){let r=await o.processDispatchTask(e,s,t);return P(r,R,m,a)},async processPosOrderActionsQueue(e,s){let t=await o.processPosOrderActionsQueue(e,s);return P(t,R,m,a)},async updateWoltProduct(e,s){let t=await o.updateWoltProduct(e,s);return P(t,R,m,a)},async verifyVivaSessionWebhook(e){let s=await o.verifyVivaSessionWebhook(e);return P(s,R,m,a)},async verifyVivaWebhook(e){let s=await o.verifyVivaWebhook(e);return P(s,R,m,a)}}},Mi=function(a,o,e){let s=U(a);return{handleAssignmentWebhook(t,r){return s.handleAssignmentWebhook(t,r).then(n=>n(e,o))},handleBusinessWebhook(t,r){return s.handleBusinessWebhook(t,r).then(n=>n(e,o))},handleFoodoraEvent(t,r){return s.handleFoodoraEvent(t,r).then(n=>n(e,o))},handleLoadEmployee(t,r){return s.handleLoadEmployee(t,r).then(n=>n(e,o))},handleNetsEvents(t,r){return s.handleNetsEvents(t,r).then(n=>n(e,o))},handleNetsEventsV2(t,r){return s.handleNetsEventsV2(t,r).then(n=>n(e,o))},handleNetsSessionEvents(t,r){return s.handleNetsSessionEvents(t,r).then(n=>n(e,o))},handleNetsSessionEventsForClientToken(t,r,n){return s.handleNetsSessionEventsForClientToken(t,r,n).then(i=>i(e,o))},handlePreorderReminder(t,r){return s.handlePreorderReminder(t,r).then(n=>n(e,o))},handleRoleWebhook(t,r){return s.handleRoleWebhook(t,r).then(n=>n(e,o))},handleShiftWebhook(t,r){return s.handleShiftWebhook(t,r).then(n=>n(e,o))},handleVivaEvents(t,r){return s.handleVivaEvents(t,r).then(n=>n(e,o))},handleVivaSessionEvents(t,r){return s.handleVivaSessionEvents(t,r).then(n=>n(e,o))},handleWebhook(t,r){return s.handleWebhook(t,r).then(n=>n(e,o))},handleWoltDriveEventByCountry(t,r,n){return s.handleWoltDriveEventByCountry(t,r,n).then(i=>i(e,o))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(r=>r(e,o))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(r=>r(e,o))},processDispatchTask(t,r,n){return s.processDispatchTask(t,r,n).then(i=>i(e,o))},processPosOrderActionsQueue(t,r){return s.processPosOrderActionsQueue(t,r).then(n=>n(e,o))},updateWoltProduct(t,r){return s.updateWoltProduct(t,r).then(n=>n(e,o))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(r=>r(e,o))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(r=>r(e,o))}}},Ft=class extends v{handleAssignmentWebhook(o,e){return U(this.configuration).handleAssignmentWebhook(o,e).then(s=>s(this.axios,this.basePath))}handleBusinessWebhook(o,e){return U(this.configuration).handleBusinessWebhook(o,e).then(s=>s(this.axios,this.basePath))}handleFoodoraEvent(o,e){return U(this.configuration).handleFoodoraEvent(o,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(o,e){return U(this.configuration).handleLoadEmployee(o,e).then(s=>s(this.axios,this.basePath))}handleNetsEvents(o,e){return U(this.configuration).handleNetsEvents(o,e).then(s=>s(this.axios,this.basePath))}handleNetsEventsV2(o,e){return U(this.configuration).handleNetsEventsV2(o,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEvents(o,e){return U(this.configuration).handleNetsSessionEvents(o,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(o,e,s){return U(this.configuration).handleNetsSessionEventsForClientToken(o,e,s).then(t=>t(this.axios,this.basePath))}handlePreorderReminder(o,e){return U(this.configuration).handlePreorderReminder(o,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(o,e){return U(this.configuration).handleRoleWebhook(o,e).then(s=>s(this.axios,this.basePath))}handleShiftWebhook(o,e){return U(this.configuration).handleShiftWebhook(o,e).then(s=>s(this.axios,this.basePath))}handleVivaEvents(o,e){return U(this.configuration).handleVivaEvents(o,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(o,e){return U(this.configuration).handleVivaSessionEvents(o,e).then(s=>s(this.axios,this.basePath))}handleWebhook(o,e){return U(this.configuration).handleWebhook(o,e).then(s=>s(this.axios,this.basePath))}handleWoltDriveEventByCountry(o,e,s){return U(this.configuration).handleWoltDriveEventByCountry(o,e,s).then(t=>t(this.axios,this.basePath))}handleWorldlineEvents(o){return U(this.configuration).handleWorldlineEvents(o).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(o){return U(this.configuration).handleWorldlineSessionEvents(o).then(e=>e(this.axios,this.basePath))}processDispatchTask(o,e,s){return U(this.configuration).processDispatchTask(o,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(o,e){return U(this.configuration).processPosOrderActionsQueue(o,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(o,e){return U(this.configuration).updateWoltProduct(o,e).then(s=>s(this.axios,this.basePath))}verifyVivaSessionWebhook(o){return U(this.configuration).verifyVivaSessionWebhook(o).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(o){return U(this.configuration).verifyVivaWebhook(o).then(e=>e(this.axios,this.basePath))}},nr=function(a){return{cancelPayment:async(o,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",o);let s="/api/v1/worldline/payment/cancel",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},createPayment:async(o,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",o);let s="/api/v1/worldline/payment",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}},createRefund:async(o,e={})=>{c("createRefund","createWorldlineRefundDto",o);let s="/api/v1/worldline/refund",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Re=function(a){let o=nr(a);return{async cancelPayment(e,s){let t=await o.cancelPayment(e,s);return P(t,R,m,a)},async createPayment(e,s){let t=await o.createPayment(e,s);return P(t,R,m,a)},async createRefund(e,s){let t=await o.createRefund(e,s);return P(t,R,m,a)}}},Bi=function(a,o,e){let s=Re(a);return{cancelPayment(t,r){return s.cancelPayment(t,r).then(n=>n(e,o))},createPayment(t,r){return s.createPayment(t,r).then(n=>n(e,o))},createRefund(t,r){return s.createRefund(t,r).then(n=>n(e,o))}}},Lt=class extends v{cancelPayment(o,e){return Re(this.configuration).cancelPayment(o,e).then(s=>s(this.axios,this.basePath))}createPayment(o,e){return Re(this.configuration).createPayment(o,e).then(s=>s(this.axios,this.basePath))}createRefund(o,e){return Re(this.configuration).createRefund(o,e).then(s=>s(this.axios,this.basePath))}},ar=function(a){return{createPaymentRequest:async(o,e,s={})=>{c("createPaymentRequest","terminalId",o),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createRefundRequest:async(o,e,s={})=>{c("createRefundRequest","terminalId",o),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"POST",...n,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getPaymentResult:async(o,e={})=>{c("getPaymentResult","operationId",o);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},getTerminalAuthContext:async(o,e,s={})=>{c("getTerminalAuthContext","terminalId",o),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getTerminalContext:async(o,e,s={})=>{c("getTerminalContext","terminalId",o),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(o))),r=new URL(t,y),n;a&&(n=a.baseOptions);let i={method:"GET",...n,...s},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=n&&n.headers?n.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getTerminalState:async(o,e={})=>{c("getTerminalState","terminalId",o);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(o))),t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},{url:h(t),options:n}},handleCallback:async(o,e={})=>{let s="/api/v2/worldline/internal/callback",t=new URL(s,y),r;a&&(r=a.baseOptions);let n={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return n.headers={...i,...u,...e.headers},n.data=b(o,n,a),{url:h(t),options:n}}}},Y=function(a){let o=ar(a);return{async createPaymentRequest(e,s,t){let r=await o.createPaymentRequest(e,s,t);return P(r,R,m,a)},async createRefundRequest(e,s,t){let r=await o.createRefundRequest(e,s,t);return P(r,R,m,a)},async getPaymentResult(e,s){let t=await o.getPaymentResult(e,s);return P(t,R,m,a)},async getTerminalAuthContext(e,s,t){let r=await o.getTerminalAuthContext(e,s,t);return P(r,R,m,a)},async getTerminalContext(e,s,t){let r=await o.getTerminalContext(e,s,t);return P(r,R,m,a)},async getTerminalState(e,s){let t=await o.getTerminalState(e,s);return P(t,R,m,a)},async handleCallback(e,s){let t=await o.handleCallback(e,s);return P(t,R,m,a)}}},wi=function(a,o,e){let s=Y(a);return{createPaymentRequest(t,r,n){return s.createPaymentRequest(t,r,n).then(i=>i(e,o))},createRefundRequest(t,r,n){return s.createRefundRequest(t,r,n).then(i=>i(e,o))},getPaymentResult(t,r){return s.getPaymentResult(t,r).then(n=>n(e,o))},getTerminalAuthContext(t,r,n){return s.getTerminalAuthContext(t,r,n).then(i=>i(e,o))},getTerminalContext(t,r,n){return s.getTerminalContext(t,r,n).then(i=>i(e,o))},getTerminalState(t,r){return s.getTerminalState(t,r).then(n=>n(e,o))},handleCallback(t,r){return s.handleCallback(t,r).then(n=>n(e,o))}}},_t=class extends v{createPaymentRequest(o,e,s){return Y(this.configuration).createPaymentRequest(o,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(o,e,s){return Y(this.configuration).createRefundRequest(o,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(o,e){return Y(this.configuration).getPaymentResult(o,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(o,e,s){return Y(this.configuration).getTerminalAuthContext(o,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(o,e,s){return Y(this.configuration).getTerminalContext(o,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(o,e){return Y(this.configuration).getTerminalState(o,e).then(s=>s(this.axios,this.basePath))}handleCallback(o,e){return Y(this.configuration).handleCallback(o,e).then(s=>s(this.axios,this.basePath))}};var Xt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(o={}){this.apiKey=o.apiKey,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.baseOptions=o.baseOptions,this.formDataCtor=o.formDataCtor}isJsonMime(o){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return o!==null&&(e.test(o)||o.toLowerCase()==="application/json-patch+json")}};var ir={BIF:0,CLP:0,DJF:0,GNF:0,ISK:0,JPY:0,KMF:0,KRW:0,PYG:0,RWF:0,UGX:0,UYI:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,BHD:3,IQD:3,JOD:3,KWD:3,LYD:3,OMR:3,TND:3,CLF:4,UYW:4};function Ue(a){return ir[a.toUpperCase()]??2}function be(a){return 10**Ue(a)}function Wi(a,o){if(!Number.isFinite(a))return Math.round(a*be(o));let[e,s="0"]=String(a).split("e");return Math.round(+`${e}e${Number(s)+Ue(o)}`)}function lr(a,o){return a/be(o)}function Ki(a,o,e={}){let s=Ue(a.currency);return new Intl.NumberFormat(o,{style:"currency",currency:a.currency.toUpperCase(),currencyDisplay:e.currencyDisplay??"symbol",signDisplay:e.signDisplay??"auto",minimumFractionDigits:s,maximumFractionDigits:s}).format(lr(a.amount,a.currency))}function Qi(a,o){let e=o?.increment??0;if(a<=0||!Number.isFinite(a)||e<=1)return{actualAmount:a,roundedAmount:a,roundingDifference:0};let s=a%e,t=s*2<e?a-s:a+(e-s);return{actualAmount:a,roundedAmount:t,roundingDifference:t-a}}var $i={getMultiplier(a){return be(a)}};var ur={FI:{cashRounding:{increment:5},customerLanguages:["fi","sv","en"]},EE:{cashRounding:{increment:5},customerLanguages:["et","ru","en"]},SE:{cashRounding:{increment:100}},ES:{customerLanguages:["es","ca","en"]}};function dr(a){if(typeof Intl.Locale=="function")try{return new Intl.Locale(`und-${a}`).maximize().language}catch{return}}function Yi(a){if(!a)return{cashRounding:null,customerLanguages:["en"]};let o=a.toUpperCase(),e=ur[o]??{},s=dr(o);return{cashRounding:e.cashRounding??null,customerLanguages:e.customerLanguages??(s&&s!=="und"?[...new Set([s,"en"])]:["en"])}}function Xi(a,o){let e=a.split("-")[0].toLowerCase();if(!o)return e;let s=`${e}-${o.toUpperCase()}`;return Intl.NumberFormat.supportedLocalesOf([s]).length>0?s:e}import Ae from"lodash";var ke=a=>Ae.orderBy(a,["rank","id"],["asc","asc"]),cr=a=>{let o=a.subcategories;return Array.isArray(o)?o:[]},pr=(a,o)=>({...a,colorCode:a.colorCode??o}),mr=(a,o)=>Ae.compact(a.map(e=>o.get(e))),Zt=(a,o)=>a.flatMap(e=>{let s=o[e];return s?[e,...Zt(s.childIds,o)]:[]}),Jt=(a,o)=>a.flatMap(e=>{let s=o[e];return s?.enabled?[e,...Jt(s.childIds,o)]:[]}),el=a=>{let o=new Map,e={},s={},t=ke(a),r=t.map(i=>String(i.id)),n=(i=[],l)=>i.map(u=>{let d=String(u.id);return o.set(d,pr(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=n(i.products,u),p=(D,f)=>{let S=String(D.id),O=n(D.products,u),I=ke(cr(D)).map(q=>p(q,S));return s[S]={id:S,name:D.name,rank:D.rank??0,enabled:!!D.enabled,parentCategoryId:l,parentSubcategoryId:f,productIds:O,childIds:I},S},A=ke(i.subcategories??[]).map(D=>p(D,null));e[l]={...i,productIds:d,subcategoryIds:A}}),{sortedCategories:t,productMap:o,categoriesById:e,subcategoriesById:s,categoryIdsOrder:r}},tl=(a,o,e,s)=>{let t=o[a];if(!t)return[];let r=Jt(t.subcategoryIds,e),n=Ae.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return mr(n,s)},sl=(a,o,e)=>{let s=o[a];if(!s)return[];let t=Zt(s.subcategoryIds,e);return Ae.compact(t.map(r=>e[r]))};var yr="2.4.0";export{Vr as ABLYEVENT,Me as ActionPasscodesApi,ts as ActionPasscodesApiAxiosParamCreator,Ea as ActionPasscodesApiFactory,Nt as ActionPasscodesApiFp,Ir as ActionsEnum,Be as AnalyticsDashboardsApi,ss as AnalyticsDashboardsApiAxiosParamCreator,Ua as AnalyticsDashboardsApiFactory,re as AnalyticsDashboardsApiFp,we as AuthApi,rs as AuthApiAxiosParamCreator,ka as AuthApiFactory,oe as AuthApiFp,Tr as AutonomousVehicleType,qr as BasketNotPricedReason,Fe as BusinessApi,os as BusinessApiAxiosParamCreator,Ma as BusinessApiFactory,k as BusinessApiFp,Er as BusinessBackgroundType,Ur as BusinessEventAction,kr as BusinessEventType,Mr as BusinessPaymentIntegrationType,Le as BusinessScheduleApi,ns as BusinessScheduleApiAxiosParamCreator,Ba as BusinessScheduleApiFactory,jt as BusinessScheduleApiFp,Br as BusinessStatusEnum,wr as CashLogReason,Fr as CashLogType,_e as CashManagementApi,as as CashManagementApiAxiosParamCreator,wa as CashManagementApiFactory,X as CashManagementApiFp,Ne as CashManagementV6Api,is as CashManagementV6ApiAxiosParamCreator,Fa as CashManagementV6ApiFactory,Wt as CashManagementV6ApiFp,Lr as CashSessionStatus,je as CashSessionV2Api,ls as CashSessionV2ApiAxiosParamCreator,La as CashSessionV2ApiFactory,Kt as CashSessionV2ApiFp,_r as CashSignalType,Nr as CdsSessionRole,jr as ChannelEnum,We as ChannelMenuApi,us as ChannelMenuApiAxiosParamCreator,_a as ChannelMenuApiFactory,me as ChannelMenuApiFp,Wr as ChargeStatusEnum,Kr as CheckoutModelEnum,Hr as ConditionType,Ke as ConfigManagementApi,ds as ConfigManagementApiAxiosParamCreator,Na as ConfigManagementApiFactory,w as ConfigManagementApiFp,Xt as Configuration,Gr as ConsumptionType,$r as CouponRefusal,Qe as CouponsApi,cs as CouponsApiAxiosParamCreator,ja as CouponsApiFactory,fe as CouponsApiFp,He as CoursesApi,ps as CoursesApiAxiosParamCreator,Wa as CoursesApiFactory,De as CoursesApiFp,zr as CredentialType,Yr as CurrencyCode,$i as CurrencyRegistry,Xr as DatabaseEventType,Zr as DayOfWeek,Jr as DeliveryCourierProvider,eo as DeliveryIntentAction,Ge as DeliveryIntentApi,ms as DeliveryIntentApiAxiosParamCreator,Ka as DeliveryIntentApiFactory,Se as DeliveryIntentApiFp,to as DeliveryIntentStatus,so as DeliveryPlatformConnection,ro as DeliveryPlatformOpsConnect,oo as DeliveryStatus,no as DeliveryType,ao as DeviceType,io as DiscountScope,lo as DiscountScopeType,uo as DiscountSourceType,co as DiscountType,$e as DisplayApi,ys as DisplayApiAxiosParamCreator,Qa as DisplayApiFactory,ne as DisplayApiFp,ze as EmployeeRolesApi,gs as EmployeeRolesApiAxiosParamCreator,Ha as EmployeeRolesApiFactory,te as EmployeeRolesApiFp,Ye as EmployeesApi,hs as EmployeesApiAxiosParamCreator,Ga as EmployeesApiFactory,se as EmployeesApiFp,po as EntityType,oa as ErrorEnum,vr as EventTypeEnum,mo as FeeType,yo as FileFormat,Xe as FloorPlanApi,Ps as FloorPlanApiAxiosParamCreator,$a as FloorPlanApiFactory,F as FloorPlanApiFp,go as GiftCardErrorCode,Ze as GiftcardApi,Rs as GiftcardApiAxiosParamCreator,za as GiftcardApiFactory,Ce as GiftcardApiFp,Je as HistoryApi,bs as HistoryApiAxiosParamCreator,Ya as HistoryApiFactory,Oe as HistoryApiFp,et as HistoryV6Api,As as HistoryV6ApiAxiosParamCreator,Xa as HistoryV6ApiFactory,ye as HistoryV6ApiFp,ho as IngredientSectionHeadingCode,Po as IntegrationType,tt as InvoiceCompaniesApi,xs as InvoiceCompaniesApiAxiosParamCreator,Za as InvoiceCompaniesApiFactory,Z as InvoiceCompaniesApiFp,st as KDSApi,fs as KDSApiAxiosParamCreator,Ja as KDSApiFactory,K as KDSApiFp,Ro as KDSEVENTNAME,bo as KdsBulkReadySkipReason,Ao as KdsOrderType,xo as KioskEventType,fo as KioskLayout,rt as KiosksApi,Ds as KiosksApiAxiosParamCreator,ei as KiosksApiFactory,Ve as KiosksApiFp,Do as KitchenItemStatus,So as KitchenStatus,Co as LocatorType,Oo as LoyaltyActionKey,Vo as LoyaltyCatalogType,Io as LoyaltyChannel,ot as LoyaltyCommerceApi,Ss as LoyaltyCommerceApiAxiosParamCreator,ti as LoyaltyCommerceApiFactory,Qt as LoyaltyCommerceApiFp,nt as LoyaltyIntegerationsApi,Cs as LoyaltyIntegerationsApiAxiosParamCreator,si as LoyaltyIntegerationsApiFactory,_ as LoyaltyIntegerationsApiFp,vo as LoyaltyPerkStatus,To as LoyaltyRedemptionStatus,qo as LoyaltyRestoreRequestStatus,Eo as LoyaltyRewardType,Uo as LoyaltyRuleActionType,ko as LoyaltyRuleApplicationMode,Mo as LoyaltyRuleConditionType,Bo as LoyaltyRuleFulfillmentMode,wo as LoyaltyRuleSelection,Fo as LoyaltyRuleStackingMode,Lo as LoyaltyRuleTargetType,at as MCPApi,Os as MCPApiAxiosParamCreator,ri as MCPApiFactory,ge as MCPApiFp,yr as MUNCHI_CORE_VERSION,it as MenuApi,Vs as MenuApiAxiosParamCreator,oi as MenuApiFactory,Ie as MenuApiFp,_o as MenuType,lt as MunchiGiftCardApi,Is as MunchiGiftCardApiAxiosParamCreator,ni as MunchiGiftCardApiFactory,ae as MunchiGiftCardApiFp,No as NetsRevertMethod,ut as NotificationApi,vs as NotificationApiAxiosParamCreator,ai as NotificationApiFactory,ve as NotificationApiFp,jo as OperatingMode,dt as OpsApi,Ts as OpsApiAxiosParamCreator,ii as OpsApiFactory,ie as OpsApiFp,Qr as OrderCollectionEnum,ct as OrderCompletionApi,qs as OrderCompletionApiAxiosParamCreator,li as OrderCompletionApiFactory,Ht as OrderCompletionApiFp,Wo as OrderFormat,pt as OrderInternalApi,Es as OrderInternalApiAxiosParamCreator,ui as OrderInternalApiFactory,Gt as OrderInternalApiFp,Ko as OrderMode,Qo as OrderRefundStatus,Ho as OrderSource,Go as OrderStatus,$o as OrderStatusEnum,zo as OrderType,Yo as OrderTypePOS,mt as OrdersApi,Us as OrdersApiAxiosParamCreator,di as OrdersApiFactory,M as OrdersApiFp,yt as POSPermissionsApi,ks as POSPermissionsApiAxiosParamCreator,ci as POSPermissionsApiFactory,$t as POSPermissionsApiFp,gt as POSSessionApi,Ms as POSSessionApiAxiosParamCreator,pi as POSSessionApiFactory,zt as POSSessionApiFp,ht as PayTerminalApi,Bs as PayTerminalApiAxiosParamCreator,mi as PayTerminalApiFactory,H as PayTerminalApiFp,Xo as PayTerminalSessionRole,Pt as PaymentApi,ws as PaymentApiAxiosParamCreator,yi as PaymentApiFactory,G as PaymentApiFp,Zo as PaymentApp,Jo as PaymentCheckoutFlow,en as PaymentEventType,tn as PaymentFailureCode,sn as PaymentMethod,Rt as PaymentMethodsApi,Fs as PaymentMethodsApiAxiosParamCreator,gi as PaymentMethodsApiFactory,N as PaymentMethodsApiFp,rn as PaymentOutcomeStatus,on as PaymentProvider,nn as PaymentProviderEnum,an as PaymentReportingBucket,bt as PaymentSessionApi,Ls as PaymentSessionApiAxiosParamCreator,hi as PaymentSessionApiFactory,E as PaymentSessionApiFp,ln as PaymentSessionPurpose,un as PaymentSessionStatus,dn as PaymentStatus,cn as PaymentSurchargePaidBy,pn as PaymentTypeEnum,mn as PeriodPreset,yn as PosBulkOrderStatus,gn as PosBulkStatusSkipReason,hn as PosDiscountTargetType,Pn as PosDiscountType,Rn as PosPaymentStatus,bn as PosPaymentType,An as PosPermission,xn as PosPermissionGroup,fn as PosPermissionKind,Dn as PreorderStatus,Sn as PriceType,Cn as PrinterConnectionType,On as PrinterModelType,Vn as PrinterTypeEnum,At as PrintersApi,_s as PrintersApiAxiosParamCreator,Pi as PrintersApiFactory,Te as PrintersApiFp,xt as ProductApi,Ns as ProductApiAxiosParamCreator,Ri as ProductApiFactory,le as ProductApiFp,In as ProductAvailability,vn as ProductDetailLayout,Tn as PromotionDiscountType,ft as PromotionsApi,js as PromotionsApiAxiosParamCreator,bi as PromotionsApiFactory,ue as PromotionsApiFp,Dt as ProviderApi,Ws as ProviderApiAxiosParamCreator,Ai as ProviderApiFactory,$ as ProviderApiFp,qn as ProviderEnum,En as PubSubAction,Un as PubSubTarget,kn as ReadyMadeReport,St as ReceiptFooterApi,Ks as ReceiptFooterApiAxiosParamCreator,xi as ReceiptFooterApiFactory,qe as ReceiptFooterApiFp,Mn as ReceiptFooterDocumentType,Bn as RecordManualStatus,wn as RefundFailureReasonKey,Fn as RefundMode,Ln as RefundOverallStatus,_n as RefundStatusEnum,Nn as RefundStepStatus,Ct as RefundsApi,Qs as RefundsApiAxiosParamCreator,fi as RefundsApiFactory,z as RefundsApiFp,Ot as ReportApi,Hs as ReportApiAxiosParamCreator,Di as ReportApiFactory,j as ReportApiFp,jn as ReportApp,Wn as ReportBaselineLeftOut,Kn as ReportBreakdown,Qn as ReportCadence,Hn as ReportChangeField,Gn as ReportLanguage,$n as ReportOrderType,zn as ReportPart,Yn as ReportRunStatus,Vt as ReportSchedulesApi,Gs as ReportSchedulesApiAxiosParamCreator,Si as ReportSchedulesApiFactory,L as ReportSchedulesApiFp,It as ReportV6Api,$s as ReportV6ApiAxiosParamCreator,Ci as ReportV6ApiFactory,Ee as ReportV6ApiFp,vt as ResQApi,zs as ResQApiAxiosParamCreator,Oi as ResQApiFactory,J as ResQApiFp,Xn as ResQOfferTag,Zn as ReservationSource,Jn as ReservationStatus,Tt as ReservationsApi,Ys as ReservationsApiAxiosParamCreator,Vi as ReservationsApiFactory,W as ReservationsApiFp,ea as SYNCKEY,ta as SavedReportKind,sa as SavedReportVisibility,qt as SavedReportsApi,Xs as SavedReportsApiAxiosParamCreator,Ii as SavedReportsApiFactory,B as SavedReportsApiFp,ra as ScheduleType,Et as ShiftTrackingApi,Zs as ShiftTrackingApiAxiosParamCreator,vi as ShiftTrackingApiFactory,ee as ShiftTrackingApiFp,na as ShipdayEventWebhook,aa as ShipdayOrderStatus,ia as SimplePaymentStatus,la as SourceType,ua as StaffActivityActionType,da as StationType,Ut as StationsApi,Js as StationsApiAxiosParamCreator,Ti as StationsApiFactory,he as StationsApiFp,ca as Status,pa as SystemProfileType,ma as TableGroupType,ya as TableShape,ga as TableStatus,kt as TerminalApi,er as TerminalApiAxiosParamCreator,qi as TerminalApiFactory,Pe as TerminalApiFp,ha as TerminalConnectionType,Pa as TimeSpan,Ra as TransactionEventType,ba as TransactionType,Aa as Type,xa as UpsellMode,Mt as UserApi,tr as UserApiAxiosParamCreator,Ei as UserApiFactory,de as UserApiFp,Bt as VendureSellerApi,sr as VendureSellerApiAxiosParamCreator,Ui as VendureSellerApiFactory,Yt as VendureSellerApiFp,fa as VenueProviderOutcome,wt as VivaApi,rr as VivaApiAxiosParamCreator,ki as VivaApiFactory,ce as VivaApiFp,Da as VivaAppToAppPaymentMethod,Sa as VivaCurrencyCode,Ca as VivaErrorId,Oa as VivaEventId,Va as VivaWebhookEventType,Ft as WebhookApi,or as WebhookApiAxiosParamCreator,Mi as WebhookApiFactory,U as WebhookApiFp,Lt as WorldlineApi,nr as WorldlineApiAxiosParamCreator,Bi as WorldlineApiFactory,Re as WorldlineApiFp,_t as WorldlineInternalApi,ar as WorldlineInternalApiAxiosParamCreator,wi as WorldlineInternalApiFactory,Y as WorldlineInternalApiFp,Ia as WorldlineOperationStatus,va as WorldlinePaymentResultStatus,Ta as WorldlineResponseStatus,qa as WorldlineRevertMethod,el as buildPosCategoryIndex,Qi as cashRound,Jt as collectEnabledSubcategoryIdsDepthFirst,Zt as collectSubcategoryIdsDepthFirst,Yi as countryQuirks,Ki as formatMoney,lr as fromMinor,tl as getCategoryProductsIncludingSubcategories,sl as getSubcategoriesForCategory,mr as mapProductIdsToProducts,Ue as minorUnitDigits,be as minorUnitMultiplier,Xi as regionLocale,Wi as toMinor};