@munchi_oy/core 2.1.0 → 2.2.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 $t from"axios";var p="http://localhost".replace(/\/+$/,"");var S=class{constructor(r,e=p,s=$t){this.basePath=e;this.axios=s;r&&(this.configuration=r,this.basePath=r.basePath||this.basePath)}configuration},le=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,r,e){if(e==null)throw new le(r,`Required parameter ${r} was null or undefined when calling ${a}.`)};var R=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 be(a,r,e=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(s=>be(a,s,e)):Object.keys(r).forEach(s=>be(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);be(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 br={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed",CashManagement:"cash-management"},Ar={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Rr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},fr={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},xr={Unavailable:"UNAVAILABLE"},Cr={Image:"image",Video:"video",Animation:"animation"},Dr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Or={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Sr={GiftCard:"GiftCard"},Vr={Online:"ONLINE",Offline:"OFFLINE"},Ir={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"},vr={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Tr={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},qr={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Er={Pos:"pos",Display:"display"},Ur={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"},kr={Pending:"pending",Success:"success",Failure:"failure"},Mr={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Br={Kiosk:"kiosk"},wr={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Fr={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},Lr={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"},_r={ApiKey:"api_key",BasicAuth:"basic_auth",Oauth2:"oauth_2"},Nr={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"},jr={Insert:"INSERT",Update:"UPDATE",Delete:"DELETE"},Wr={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},Kr={Shipday:"shipday",UberDirect:"uber_direct"},Qr={Create:"CREATE",Update:"UPDATE",Cancel:"CANCEL"},Gr={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},Hr={Created:"created",Reactivated:"reactivated",AlreadyActive:"already_active"},$r={Foodora:"Foodora",Bolt:"Bolt"},Yr={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"},Xr={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Jr={Item:"ITEM",Cart:"CART"},Zr={Business:"BUSINESS",Owner:"OWNER"},en={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},tn={Percentage:"PERCENTAGE",Fixed:"FIXED"},sn={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},rn={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},nn={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},on={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},an={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},ln={Found:"NOT_FOUND",Pos:"NOT_POS",InProgress:"NOT_IN_PROGRESS"},un={Standard:"STANDARD",Broadcast:"BROADCAST"},cn={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},dn={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"},mn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},yn={Table:"table",Indicator:"indicator"},gn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},hn={Product:"product",Coupon:"coupon"},Pn={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},bn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},An={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},Rn={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},fn={Product:"product",Coupon:"coupon"},xn={Percentage:"percentage",Fixed:"fixed"},Cn={Manual:"manual",Automatic:"automatic"},Dn={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"},On={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},Sn={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},Vn={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},In={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},vn={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Tn={Reversal:"REVERSAL",Refund:"REFUND"},qn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},En={Open:"OPEN",Instant:"INSTANT"},Un={Instant:"INSTANT",PreOrder:"PRE_ORDER"},kn={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Mn={Platform:"PLATFORM",Pos:"POS"},Bn={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"},Fn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ln={DineIn:"dine_in",PickUp:"pick_up"},_n={Pos:"pos",Terminal:"terminal"},Nn={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},jn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Wn={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},Kn={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"},Qn={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"},Gn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},Hn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi"},$n={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi"},Yn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},zn={Sale:"SALE",Refund:"REFUND",Void:"VOID"},Xn={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"},Jn={Paid:"paid",Pending:"pending"},Zn={Business:"BUSINESS",Customer:"CUSTOMER"},eo={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},to={Ready:"ready",Delivered:"delivered"},so={NotFound:"NOT_FOUND",NotInProgress:"NOT_IN_PROGRESS",KitchenControlled:"KITCHEN_CONTROLLED",NotReady:"NOT_READY"},ro={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},no={Percentage:"percentage",Fixed:"fixed"},oo={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},ao={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},io={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"},lo={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"},uo={Screen:"screen",Action:"action",Visibility:"visibility"},co={Waiting:"waiting",Confirm:"confirm"},po={Preset:"PRESET",Open:"OPEN"},mo={Bluetooth:"bluetooth",Network:"network"},yo={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},go={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},ho={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Po={Modal:"MODAL",Screen:"SCREEN"},bo={Percentage:"PERCENTAGE",Fixed:"FIXED"},Ao={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"},Ro={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},fo={Kds:"KDS"},xo={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},Co={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},Do={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"},Oo={Full:"FULL",Item:"ITEM"},So={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Vo={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Io={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},vo={Pos:"pos",Kiosk:"kiosk",Storefront:"storefront",Mobile:"mobile"},To={IsTheBaseline:"is_the_baseline",OtherCurrency:"other_currency"},qo={None:"none",Venue:"venue",App:"app",VenueApp:"venue_app"},Eo={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"},Uo={Fi:"fi",En:"en"},ko={Summary:"summary",Items:"items",Vat:"vat",Payments:"payments",Discounts:"discounts"},Mo={Meal:"meal",Snack:"snack",Ingredients:"ingredients",GroceryBag:"grocery-bag",Dessert:"dessert",Flowers:"flowers",Fee:"fee",Wholesale:"wholesale",HomeCosmetics:"home-cosmetics"},Bo={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},wo={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},Fo={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"},Lo={Physical:"PHYSICAL"},_o={NoAriAccess:"NO_ARI_ACCESS",NotStoreOwner:"NOT_STORE_OWNER",RightsUnavailable:"RIGHTS_UNAVAILABLE"},No={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"},jo={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"},Wo={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Ko={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Qo={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"},Go={Kiosk:"KIOSK",Pos:"POS"},Ho={Active:"ACTIVE",Inactive:"INACTIVE"},$o={NoStation:"NO_STATION"},Yo={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},zo={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},Xo={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Jo={Network:"NETWORK"},Zo={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},ea={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ta={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},sa={Instant:"instant",Preorder:"preorder"},ra={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},na={Created:"created",Updated:"updated",Unchanged:"unchanged"},oa={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},aa={_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"},ia={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},la={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},ua={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},ca={Queued:"QUEUED",InProgress:"IN_PROGRESS",Completed:"COMPLETED",Failed:"FAILED",Cancelled:"CANCELLED"},da={Pending:"PENDING",Completed:"COMPLETED",Failed:"FAILED"},pa={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},ma={Reversal:"REVERSAL",Refund:"REFUND"},Yt=function(a){return{checkActionPasscode:async(r,e,s,t={})=>{c("checkActionPasscode","businessId",r),c("checkActionPasscode","xPosPin",e),c("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={},d={};await R(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",y(o,d);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}}}},Mt=function(a){let r=Yt(a);return{async checkActionPasscode(e,s,t,n){let o=await r.checkActionPasscode(e,s,t,n);return h(o,P,p,a)}}},ya=function(a,r,e){let s=Mt(a);return{checkActionPasscode(t,n,o,i){return s.checkActionPasscode(t,n,o,i).then(l=>l(e,r))}}},Ee=class extends S{checkActionPasscode(r,e,s,t){return Mt(this.configuration).checkActionPasscode(r,e,s,t).then(n=>n(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={})=>{c("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={})=>{c("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}}}},ee=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)}}},ga=function(a,r,e){let s=ee(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))}}},Ue=class extends S{firebaseAuth(r){return ee(this.configuration).firebaseAuth(r).then(e=>e(this.axios,this.basePath))}login(r,e){return ee(this.configuration).login(r,e).then(s=>s(this.axios,this.basePath))}logout(r){return ee(this.configuration).logout(r).then(e=>e(this.axios,this.basePath))}refreshToken(r,e){return ee(this.configuration).refreshToken(r,e).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{getAdvancedDiscounts:async(r,e={})=>{c("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 R(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={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV3:async(r,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getBusinessChannelConfigV2:async(r,e,s={})=>{c("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 R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfig:async(r,e,s={})=>{c("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 R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfigById:async(r,e,s={})=>{c("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 R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfigByIdV2:async(r,e,s={})=>{c("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 R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV2:async(r,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV3:async(r,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV4:async(r,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessProviderStatus:async(r,e={})=>{c("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 R(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 R(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={})=>{c("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 R(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={})=>{c("getSingleBusinessProviderStatus","businessId",r),c("getSingleBusinessProviderStatus","provider",e),c("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={},d={};await R(u,a),y(o,d);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getVenueCurrency:async(r,e={})=>{c("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 R(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={})=>{c("setBusinessStatus","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},setBusinessStatusSchedule:async(r,e,s={})=>{c("setBusinessStatusSchedule","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},U=function(a){let r=Xt(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)}}},ha=function(a,r,e){let s=U(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))}}},ke=class extends S{getAdvancedDiscounts(r,e){return U(this.configuration).getAdvancedDiscounts(r,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(r,e,s){return U(this.configuration).getBusinessCategoriesByMenuIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(r,e,s){return U(this.configuration).getBusinessCategoriesByMenuIdV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(r,e,s){return U(this.configuration).getBusinessChannelConfigV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(r,e,s){return U(this.configuration).getBusinessConfig(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(r,e,s){return U(this.configuration).getBusinessConfigById(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(r,e,s){return U(this.configuration).getBusinessConfigByIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(r,e,s){return U(this.configuration).getBusinessMenuByTypeV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(r,e,s){return U(this.configuration).getBusinessMenuByTypeV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(r,e,s){return U(this.configuration).getBusinessMenuByTypeV4(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(r,e){return U(this.configuration).getBusinessProviderStatus(r,e).then(s=>s(this.axios,this.basePath))}getBusinessTax(r,e){return U(this.configuration).getBusinessTax(r,e).then(s=>s(this.axios,this.basePath))}getProvidersSupportedIntegrations(r,e){return U(this.configuration).getProvidersSupportedIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(r,e,s,t){return U(this.configuration).getSingleBusinessProviderStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getVenueCurrency(r,e){return U(this.configuration).getVenueCurrency(r,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(r,e,s){return U(this.configuration).setBusinessStatus(r,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(r,e,s){return U(this.configuration).setBusinessStatusSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}},Jt=function(a){return{upsertSchedule:async(r,e,s={})=>{c("upsertSchedule","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},Bt=function(a){let r=Jt(a);return{async upsertSchedule(e,s,t){let n=await r.upsertSchedule(e,s,t);return h(n,P,p,a)}}},Pa=function(a,r,e){let s=Bt(a);return{upsertSchedule(t,n,o){return s.upsertSchedule(t,n,o).then(i=>i(e,r))}}},Me=class extends S{upsertSchedule(r,e,s){return Bt(this.configuration).upsertSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}},Zt=function(a){return{create:async(r,e,s={})=>{c("create","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getCashLogs:async(r,e,s,t,n,o,i,l={})=>{c("getCashLogs","businessId",r);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(r))),d=new URL(u,m),b;a&&(b=a.baseOptions);let f={method:"GET",...b,...l},C={},x={};await R(C,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(d,x);let O=b&&b.headers?b.headers:{};return f.headers={...C,...O,...l.headers},{url:g(d),options:f}},getCashSession:async(r,e={})=>{c("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 R(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={})=>{c("getSessionReport","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},recordCashLog:async(r,e,s={})=>{c("recordCashLog","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},sendSessionReport:async(r,e,s,t,n={})=>{c("sendSessionReport","businessId",r),c("sendSessionReport","sessionId",e),c("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},d={},b={};await R(d,a),t!=null&&(d["x-app-x"]=String(t)),d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(s,u,a),{url:g(i),options:u}}}},$=function(a){let r=Zt(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 d=await r.getCashLogs(e,s,t,n,o,i,l,u);return h(d,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)}}},ba=function(a,r,e){let s=$(a);return{create(t,n,o){return s.create(t,n,o).then(i=>i(e,r))},getCashLogs(t,n,o,i,l,u,d,b){return s.getCashLogs(t,n,o,i,l,u,d,b).then(f=>f(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))}}},Be=class extends S{create(r,e,s){return $(this.configuration).create(r,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(r,e,s,t,n,o,i,l){return $(this.configuration).getCashLogs(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(r,e){return $(this.configuration).getCashSession(r,e).then(s=>s(this.axios,this.basePath))}getSessionReport(r,e,s){return $(this.configuration).getSessionReport(r,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(r,e,s){return $(this.configuration).recordCashLog(r,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(r,e,s,t,n){return $(this.configuration).sendSessionReport(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},es=function(a){return{listCashLogsForTill:async(r,e,s,t,n,o,i,l={})=>{c("listCashLogsForTill","businessId",r);let u="/api/v6/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(r))),d=new URL(u,m),b;a&&(b=a.baseOptions);let f={method:"GET",...b,...l},C={},x={};await R(C,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(d,x);let O=b&&b.headers?b.headers:{};return f.headers={...C,...O,...l.headers},{url:g(d),options:f}}}},wt=function(a){let r=es(a);return{async listCashLogsForTill(e,s,t,n,o,i,l,u){let d=await r.listCashLogsForTill(e,s,t,n,o,i,l,u);return h(d,P,p,a)}}},Aa=function(a,r,e){let s=wt(a);return{listCashLogsForTill(t,n,o,i,l,u,d,b){return s.listCashLogsForTill(t,n,o,i,l,u,d,b).then(f=>f(e,r))}}},we=class extends S{listCashLogsForTill(r,e,s,t,n,o,i,l){return wt(this.configuration).listCashLogsForTill(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},ts=function(a){return{openCashSession:async(r,e,s={})=>{c("openCashSession","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},Ft=function(a){let r=ts(a);return{async openCashSession(e,s,t){let n=await r.openCashSession(e,s,t);return h(n,P,p,a)}}},Ra=function(a,r,e){let s=Ft(a);return{openCashSession(t,n,o){return s.openCashSession(t,n,o).then(i=>i(e,r))}}},Fe=class extends S{openCashSession(r,e,s){return Ft(this.configuration).openCashSession(r,e,s).then(t=>t(this.axios,this.basePath))}},ss=function(a){return{getChannelCatalog:async(r,e,s,t={})=>{c("getChannelCatalog","businessId",r),c("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={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.menuId=s),y(o,d);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={})=>{c("getChannelMenu","businessId",r),c("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={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.deliveryType=s),y(o,d);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getChannelMenuTimes:async(r,e,s={})=>{c("getChannelMenuTimes","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},ue=function(a){let r=ss(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)}}},fa=function(a,r,e){let s=ue(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))}}},Le=class extends S{getChannelCatalog(r,e,s,t){return ue(this.configuration).getChannelCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(r,e,s,t){return ue(this.configuration).getChannelMenu(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(r,e,s){return ue(this.configuration).getChannelMenuTimes(r,e,s).then(t=>t(this.axios,this.basePath))}},rs=function(a){return{configConfigureMunchiGiftCard:async(r,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",r),c("configConfigureMunchiGiftCard","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configGetProviders","businessId",r),c("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 R(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},configManualSync:async(r,e,s={})=>{c("configManualSync","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},configRemovePaymentOption:async(r,e,s,t={})=>{c("configRemovePaymentOption","businessId",r),c("configRemovePaymentOption","id",e),c("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={},d={};await R(u,a),s!=null&&(u["x-app-x"]=String(s)),y(o,d);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={})=>{c("configSaveEpassiCredentials","businessId",r),c("configSaveEpassiCredentials","xAppX",e),c("configSaveEpassiCredentials","xEpassiAccessKey",s),c("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},d={},b={};await R(d,a),e!=null&&(d["x-app-x"]=String(e)),s!=null&&(d["X-Epassi-Access-Key"]=String(s)),d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},configUpsertBusiness:async(r,e,s={})=>{c("configUpsertBusiness","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},configUpsertChannelConfig:async(r,e,s,t={})=>{c("configUpsertChannelConfig","businessId",r),c("configUpsertChannelConfig","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configUpsertGiftCard","businessId",r),c("configUpsertGiftCard","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configUpsertLoyalty","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},configUpsertNets:async(r,e,s,t={})=>{c("configUpsertNets","businessId",r),c("configUpsertNets","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configUpsertPaymentOptions","businessId",r),c("configUpsertPaymentOptions","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configUpsertProviders","businessId",r),c("configUpsertProviders","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configUpsertStripe","businessId",r),c("configUpsertStripe","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("configUpsertViva","businessId",r),c("configUpsertViva","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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=rs(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)}}},xa=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))}}},_e=class extends S{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))}},ns=function(a){return{checkCoupon:async(r,e,s={})=>{c("checkCoupon","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},checkKioskCoupon:async(r,e,s={})=>{c("checkKioskCoupon","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},Ae=function(a){let r=ns(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)}}},Ca=function(a,r,e){let s=Ae(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))}}},Ne=class extends S{checkCoupon(r,e,s){return Ae(this.configuration).checkCoupon(r,e,s).then(t=>t(this.axios,this.basePath))}checkKioskCoupon(r,e,s){return Ae(this.configuration).checkKioskCoupon(r,e,s).then(t=>t(this.axios,this.basePath))}},os=function(a){return{getCourseConfig:async(r,e={})=>{c("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 R(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={})=>{c("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 R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},Re=function(a){let r=os(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)}}},Da=function(a,r,e){let s=Re(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))}}},je=class extends S{getCourseConfig(r,e){return Re(this.configuration).getCourseConfig(r,e).then(s=>s(this.axios,this.basePath))}getCourses(r,e){return Re(this.configuration).getCourses(r,e).then(s=>s(this.axios,this.basePath))}},as=function(a){return{findIntent:async(r,e={})=>{c("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={})=>{c("updateIntent","intentId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},fe=function(a){let r=as(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)}}},Oa=function(a,r,e){let s=fe(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))}}},We=class extends S{findIntent(r,e){return fe(this.configuration).findIntent(r,e).then(s=>s(this.axios,this.basePath))}updateIntent(r,e,s){return fe(this.configuration).updateIntent(r,e,s).then(t=>t(this.axios,this.basePath))}},is=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={})=>{c("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={})=>{c("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={})=>{c("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}}}},te=function(a){let r=is(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)}}},Sa=function(a,r,e){let s=te(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))}}},Ke=class extends S{init(r,e){return te(this.configuration).init(r,e).then(s=>s(this.axios,this.basePath))}pair(r,e){return te(this.configuration).pair(r,e).then(s=>s(this.axios,this.basePath))}sessionToken(r,e){return te(this.configuration).sessionToken(r,e).then(s=>s(this.axios,this.basePath))}unpair(r,e){return te(this.configuration).unpair(r,e).then(s=>s(this.axios,this.basePath))}},ls=function(a){return{addEmployeeRole:async(r,e,s={})=>{c("addEmployeeRole","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},addStarterEmployeeRoles:async(r,e={})=>{c("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 R(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={})=>{c("changeEmployeeRole","businessId",r),c("changeEmployeeRole","roleId",e),c("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={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);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={})=>{c("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 R(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={})=>{c("removeEmployeeRole","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},J=function(a){let r=ls(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)}}},Va=function(a,r,e){let s=J(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))}}},Qe=class extends S{addEmployeeRole(r,e,s){return J(this.configuration).addEmployeeRole(r,e,s).then(t=>t(this.axios,this.basePath))}addStarterEmployeeRoles(r,e){return J(this.configuration).addStarterEmployeeRoles(r,e).then(s=>s(this.axios,this.basePath))}changeEmployeeRole(r,e,s,t){return J(this.configuration).changeEmployeeRole(r,e,s,t).then(n=>n(this.axios,this.basePath))}listEmployeeRoles(r,e){return J(this.configuration).listEmployeeRoles(r,e).then(s=>s(this.axios,this.basePath))}removeEmployeeRole(r,e,s){return J(this.configuration).removeEmployeeRole(r,e,s).then(t=>t(this.axios,this.basePath))}},us=function(a){return{addEmployee:async(r,e,s={})=>{c("addEmployee","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},changeEmployee:async(r,e,s,t={})=>{c("changeEmployee","businessId",r),c("changeEmployee","employeeId",e),c("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={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);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={})=>{c("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={},d={};await R(u,a),e!==void 0&&(d.cursor=e),s!==void 0&&(d.limit=s),y(o,d);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},removeEmployeeFromVenue:async(r,e,s={})=>{c("removeEmployeeFromVenue","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},setEmployeeRole:async(r,e,s,t={})=>{c("setEmployeeRole","businessId",r),c("setEmployeeRole","employeeId",e),c("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={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);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}}}},Z=function(a){let r=us(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)}}},Ia=function(a,r,e){let s=Z(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))}}},Ge=class extends S{addEmployee(r,e,s){return Z(this.configuration).addEmployee(r,e,s).then(t=>t(this.axios,this.basePath))}changeEmployee(r,e,s,t){return Z(this.configuration).changeEmployee(r,e,s,t).then(n=>n(this.axios,this.basePath))}listEmployees(r,e,s,t){return Z(this.configuration).listEmployees(r,e,s,t).then(n=>n(this.axios,this.basePath))}removeEmployeeFromVenue(r,e,s){return Z(this.configuration).removeEmployeeFromVenue(r,e,s).then(t=>t(this.axios,this.basePath))}setEmployeeRole(r,e,s,t){return Z(this.configuration).setEmployeeRole(r,e,s,t).then(n=>n(this.axios,this.basePath))}},cs=function(a){return{createDiningTable:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("deleteDiningTable","id",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},deleteFloorSection:async(r,e,s={})=>{c("deleteFloorSection","id",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},dissolveTableGroup:async(r,e,s={})=>{c("dissolveTableGroup","id",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getFloorPlan:async(r,e={})=>{c("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 R(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={})=>{c("joinTables","businessId",r),c("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 R(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},removeTableFromGroup:async(r,e,s={})=>{c("removeTableFromGroup","id",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},transferTable:async(r,e,s,t={})=>{c("transferTable","id",r),c("transferTable","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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={})=>{c("updateDiningTable","id",r),c("updateDiningTable","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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={})=>{c("updateFloorSection","id",r),c("updateFloorSection","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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={})=>{c("updateTablePosition","id",r),c("updateTablePosition","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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={})=>{c("updateTableStatus","id",r),c("updateTableStatus","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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=cs(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)}}},va=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))}}},He=class extends S{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))}},ds=function(a){return{redeemGiftCard:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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}}}},xe=function(a){let r=ds(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)}}},Ta=function(a,r,e){let s=xe(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))}}},$e=class extends S{redeemGiftCard(r,e){return xe(this.configuration).redeemGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(r,e){return xe(this.configuration).validateGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},ps=function(a){return{getOrderHistoryPOSV5:async(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O={})=>{c("getOrderHistoryPOSV5","businessIds",r);let I="/api/v5/history/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...O},M={},D={};await R(M,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.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),b&&(D.orderType=b),f&&(D.paymentTypePos=f),C!==void 0&&(D.invoiceCompanyId=C),x!==void 0&&(D.timezone=x),y(v,D);let j=V&&V.headers?V.headers:{};return T.headers={...M,...j,...O.headers},{url:g(v),options:T}},getOrderHistoryPOSV5Internal:async(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",r);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...O},M={},D={};await R(M,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.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),b&&(D.orderType=b),f&&(D.paymentTypePos=f),C!==void 0&&(D.invoiceCompanyId=C),x!==void 0&&(D.timezone=x),y(v,D);let j=V&&V.headers?V.headers:{};return T.headers={...M,...j,...O.headers},{url:g(v),options:T}}}},Ce=function(a){let r=ps(a);return{async getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I){let v=await r.getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I);return h(v,P,p,a)},async getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I){let v=await r.getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I);return h(v,P,p,a)}}},qa=function(a,r,e){let s=Ce(a);return{getOrderHistoryPOSV5(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V){return s.getOrderHistoryPOSV5(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V).then(T=>T(e,r))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V){return s.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V).then(T=>T(e,r))}}},Ye=class extends S{getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O){return Ce(this.configuration).getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O){return Ce(this.configuration).getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O).then(I=>I(this.axios,this.basePath))}},ms=function(a){return{listOnlineOrderHistoryForServices:async(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O={})=>{c("listOnlineOrderHistoryForServices","businessIds",r);let I="/api/v6/history/internal/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...O},M={},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.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),b&&(D.orderType=b),f&&(D.paymentTypePos=f),C!==void 0&&(D.invoiceCompanyId=C),x!==void 0&&(D.timezone=x),y(v,D);let j=V&&V.headers?V.headers:{};return T.headers={...M,...j,...O.headers},{url:g(v),options:T}},listOnlineOrderHistoryForTill:async(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O={})=>{c("listOnlineOrderHistoryForTill","businessIds",r);let I="/api/v6/history/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...O},M={},D={};await R(M,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.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),b&&(D.orderType=b),f&&(D.paymentTypePos=f),C!==void 0&&(D.invoiceCompanyId=C),x!==void 0&&(D.timezone=x),y(v,D);let j=V&&V.headers?V.headers:{};return T.headers={...M,...j,...O.headers},{url:g(v),options:T}},listOrderHistoryForTill:async(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O={})=>{c("listOrderHistoryForTill","businessIds",r);let I="/api/v6/history/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let T={method:"GET",...V,...O},M={},D={};await R(M,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.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),b&&(D.orderType=b),f&&(D.paymentTypePos=f),C!==void 0&&(D.invoiceCompanyId=C),x!==void 0&&(D.timezone=x),y(v,D);let j=V&&V.headers?V.headers:{};return T.headers={...M,...j,...O.headers},{url:g(v),options:T}}}},ce=function(a){let r=ms(a);return{async listOnlineOrderHistoryForServices(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I){let v=await r.listOnlineOrderHistoryForServices(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I);return h(v,P,p,a)},async listOnlineOrderHistoryForTill(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I){let v=await r.listOnlineOrderHistoryForTill(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I);return h(v,P,p,a)},async listOrderHistoryForTill(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I){let v=await r.listOrderHistoryForTill(e,s,t,n,o,i,l,u,d,b,f,C,x,O,I);return h(v,P,p,a)}}},Ea=function(a,r,e){let s=ce(a);return{listOnlineOrderHistoryForServices(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V){return s.listOnlineOrderHistoryForServices(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V).then(T=>T(e,r))},listOnlineOrderHistoryForTill(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V){return s.listOnlineOrderHistoryForTill(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V).then(T=>T(e,r))},listOrderHistoryForTill(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V){return s.listOrderHistoryForTill(t,n,o,i,l,u,d,b,f,C,x,O,I,v,V).then(T=>T(e,r))}}},ze=class extends S{listOnlineOrderHistoryForServices(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O){return ce(this.configuration).listOnlineOrderHistoryForServices(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O).then(I=>I(this.axios,this.basePath))}listOnlineOrderHistoryForTill(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O){return ce(this.configuration).listOnlineOrderHistoryForTill(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O).then(I=>I(this.axios,this.basePath))}listOrderHistoryForTill(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O){return ce(this.configuration).listOrderHistoryForTill(r,e,s,t,n,o,i,l,u,d,b,f,C,x,O).then(I=>I(this.axios,this.basePath))}},ys=function(a){return{createInvoiceCompany:async(r,e={})=>{c("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 R(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={})=>{c("deleteInvoiceCompany","id",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getInvoiceCompanies:async(r,e={})=>{c("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 R(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={})=>{c("getInvoiceCompanyById","id",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},searchInvoiceCompanies:async(r,e,s={})=>{c("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 R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.search=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},updateInvoiceCompany:async(r,e,s,t={})=>{c("updateInvoiceCompany","id",r),c("updateInvoiceCompany","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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=ys(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)}}},Ua=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))}}},Xe=class extends S{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))}},gs=function(a){return{createKdsStations:async(r,e={})=>{c("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 R(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={})=>{c("deleteKdsStation","stationId",r),c("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 R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},kdsGetOrders:async(r,e,s,t,n,o,i,l,u,d,b,f={})=>{c("kdsGetOrders","status",r),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let C="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(r))),x=new URL(C,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...f},v={},V={};await R(v,a),e!==void 0&&(V.businessIds=e),s!==void 0&&(V.profileId=s),t!==void 0&&(V.page=t),n!==void 0&&(V.rowPerPage=n),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),b&&(V.consumptionType=b),y(x,V);let T=O&&O.headers?O.headers:{};return I.headers={...v,...T,...f.headers},{url:g(x),options:I}},kdsGetProfiles:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("updateKdsStation","stationId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},N=function(a){let r=gs(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,d,b,f,C){let x=await r.kdsGetOrders(e,s,t,n,o,i,l,u,d,b,f,C);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)}}},ka=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,d,b,f,C,x,O){return s.kdsGetOrders(t,n,o,i,l,u,d,b,f,C,x,O).then(I=>I(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))}}},Je=class extends S{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,d,b,f){return N(this.configuration).kdsGetOrders(r,e,s,t,n,o,i,l,u,d,b,f).then(C=>C(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))}},hs=function(a){return{getKioskOrder:async(r,e,s={})=>{c("getKioskOrder","orderId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},syncKioskOrder:async(r,e={})=>{c("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}}}},De=function(a){let r=hs(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)}}},Ma=function(a,r,e){let s=De(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))}}},Ze=class extends S{getKioskOrder(r,e,s){return De(this.configuration).getKioskOrder(r,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(r,e){return De(this.configuration).syncKioskOrder(r,e).then(s=>s(this.axios,this.basePath))}},Ps=function(a){return{restoreRedemption:async(r,e={})=>{c("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 R(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}}}},Lt=function(a){let r=Ps(a);return{async restoreRedemption(e,s){let t=await r.restoreRedemption(e,s);return h(t,P,p,a)}}},Ba=function(a,r,e){let s=Lt(a);return{restoreRedemption(t,n){return s.restoreRedemption(t,n).then(o=>o(e,r))}}},et=class extends S{restoreRedemption(r,e){return Lt(this.configuration).restoreRedemption(r,e).then(s=>s(this.axios,this.basePath))}},bs=function(a){return{claimKioskOffer:async(r,e={})=>{c("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 R(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={})=>{c("createLoyaltyUser","businessId",r),c("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 R(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getAdminTransactions:async(r,e,s,t={})=>{c("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={},d={};await R(u,a),r!==void 0&&(d.businessId=r),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),y(o,d);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},getLoyaltyInfo:async(r,e={})=>{c("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 R(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={})=>{c("getUserById","businessId",r),c("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 R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getWalletRewards:async(r,e,s={})=>{c("getWalletRewards","businessId",r),c("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 R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},memberContext:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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},d={},b={};await R(d,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 f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},{url:g(i),options:u}},updatePoints:async(r,e,s={})=>{c("updatePoints","businessId",r),c("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 R(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},validateWallet:async(r,e,s,t={})=>{c("validateWallet","businessId",r),c("validateWallet","loyaltyId",e),c("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={},d={};await R(u,a),r!==void 0&&(d.businessId=r),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),y(o,d);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}}}},F=function(a){let r=bs(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)}}},wa=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))}}},tt=class extends S{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))}},As=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 R(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 R(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={})=>{c("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 R(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=As(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)}}},Fa=function(a,r,e){let s=de(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))}}},st=class extends S{refuseSessionEnd(r){return de(this.configuration).refuseSessionEnd(r).then(e=>e(this.axios,this.basePath))}refuseStream(r){return de(this.configuration).refuseStream(r).then(e=>e(this.axios,this.basePath))}serveMcpRequest(r,e){return de(this.configuration).serveMcpRequest(r,e).then(s=>s(this.axios,this.basePath))}},Rs=function(a){return{editBusinessProductV2:async(r,e,s={})=>{c("editBusinessProductV2","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},resetProductEod:async(r,e={})=>{c("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=Rs(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)}}},La=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))}}},rt=class extends S{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))}},fs=function(a){return{createMunchiGiftCard:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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 R(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}}}},se=function(a){let r=fs(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)}}},_a=function(a,r,e){let s=se(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))}}},nt=class extends S{createMunchiGiftCard(r,e){return se(this.configuration).createMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(r,e){return se(this.configuration).getMunchiGiftCardData(r,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(r,e){return se(this.configuration).redeemMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(r,e){return se(this.configuration).validateMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},xs=function(a){return{addVenueSubscriptionsV2:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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}}}},Se=function(a){let r=xs(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)}}},Na=function(a,r,e){let s=Se(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))}}},ot=class extends S{addVenueSubscriptionsV2(r,e){return Se(this.configuration).addVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(r,e){return Se(this.configuration).removeVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}},Cs=function(a){return{connectDeliveryPlatform:async(r,e,s={})=>{c("connectDeliveryPlatform","venueId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},devicesOfVenue:async(r,e={})=>{c("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 R(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={})=>{c("disconnectDeliveryPlatform","venueId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},searchVenues:async(r,e,s={})=>{c("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 R(l,a),r!==void 0&&(u.search=r),e!==void 0&&(u.limit=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},re=function(a){let r=Cs(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)}}},ja=function(a,r,e){let s=re(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))}}},at=class extends S{connectDeliveryPlatform(r,e,s){return re(this.configuration).connectDeliveryPlatform(r,e,s).then(t=>t(this.axios,this.basePath))}devicesOfVenue(r,e){return re(this.configuration).devicesOfVenue(r,e).then(s=>s(this.axios,this.basePath))}disconnectDeliveryPlatform(r,e,s){return re(this.configuration).disconnectDeliveryPlatform(r,e,s).then(t=>t(this.axios,this.basePath))}searchVenues(r,e,s){return re(this.configuration).searchVenues(r,e,s).then(t=>t(this.axios,this.basePath))}},Ds=function(a){return{completeOrder:async(r,e,s,t={})=>{c("completeOrder","businessId",r),c("completeOrder","orderId",e),c("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={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);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}}}},_t=function(a){let r=Ds(a);return{async completeOrder(e,s,t,n){let o=await r.completeOrder(e,s,t,n);return h(o,P,p,a)}}},Wa=function(a,r,e){let s=_t(a);return{completeOrder(t,n,o,i){return s.completeOrder(t,n,o,i).then(l=>l(e,r))}}},it=class extends S{completeOrder(r,e,s,t){return _t(this.configuration).completeOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Os=function(a){return{findOneByExternalId:async(r,e={})=>{c("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}}}},Nt=function(a){let r=Os(a);return{async findOneByExternalId(e,s){let t=await r.findOneByExternalId(e,s);return h(t,P,p,a)}}},Ka=function(a,r,e){let s=Nt(a);return{findOneByExternalId(t,n){return s.findOneByExternalId(t,n).then(o=>o(e,r))}}},lt=class extends S{findOneByExternalId(r,e){return Nt(this.configuration).findOneByExternalId(r,e).then(s=>s(this.axios,this.basePath))}},Ss=function(a){return{acceptOrder:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("getOrdersV2","status",r),c("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},d={},b={};e!==void 0&&(b.businessIds=e),s!==void 0&&(b.posBusinessId=s),t!==void 0&&(b.extraProvider=t),y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},{url:g(i),options:u}},getOrdersV3:async(r,e,s,t,n={})=>{c("getOrdersV3","status",r),c("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},d={},b={};e!==void 0&&(b.businessIds=e),s!==void 0&&(b.posBusinessId=s),t!==void 0&&(b.extraProvider=t),y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},{url:g(i),options:u}},getParkedPosOrderV2:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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}}}},k=function(a){let r=Ss(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)}}},Qa=function(a,r,e){let s=k(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))}}},ut=class extends S{acceptOrder(r,e){return k(this.configuration).acceptOrder(r,e).then(s=>s(this.axios,this.basePath))}changePosOrdersStatusInBulk(r,e){return k(this.configuration).changePosOrdersStatusInBulk(r,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(r,e){return k(this.configuration).confirmPreOrder(r,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(r,e){return k(this.configuration).deletePosParkedOrderV2(r,e).then(s=>s(this.axios,this.basePath))}deliverOrder(r,e){return k(this.configuration).deliverOrder(r,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(r,e){return k(this.configuration).dispatchPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(r,e,s,t,n){return k(this.configuration).getOrdersV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getOrdersV3(r,e,s,t,n){return k(this.configuration).getOrdersV3(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(r,e){return k(this.configuration).getParkedPosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(r,e){return k(this.configuration).getPosOrderById(r,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(r,e){return k(this.configuration).markOrderAsReady(r,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(r,e){return k(this.configuration).parkPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(r,e){return k(this.configuration).processPosOrderActions(r,e).then(s=>s(this.axios,this.basePath))}rejectOrder(r,e){return k(this.configuration).rejectOrder(r,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(r,e){return k(this.configuration).syncPosOrder(r,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(r,e){return k(this.configuration).updatePosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}},Vs=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 R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},jt=function(a){let r=Vs(a);return{async listPosPermissions(e){let s=await r.listPosPermissions(e);return h(s,P,p,a)}}},Ga=function(a,r,e){let s=jt(a);return{listPosPermissions(t){return s.listPosPermissions(t).then(n=>n(e,r))}}},ct=class extends S{listPosPermissions(r){return jt(this.configuration).listPosPermissions(r).then(e=>e(this.axios,this.basePath))}},Is=function(a){return{getPosSessionV2:async(r,e={})=>{c("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}}}},Wt=function(a){let r=Is(a);return{async getPosSessionV2(e,s){let t=await r.getPosSessionV2(e,s);return h(t,P,p,a)}}},Ha=function(a,r,e){let s=Wt(a);return{getPosSessionV2(t,n){return s.getPosSessionV2(t,n).then(o=>o(e,r))}}},dt=class extends S{getPosSessionV2(r,e){return Wt(this.configuration).getPosSessionV2(r,e).then(s=>s(this.axios,this.basePath))}},vs=function(a){return{payTerminalInit:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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}}}},W=function(a){let r=vs(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)}}},$a=function(a,r,e){let s=W(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))}}},pt=class extends S{payTerminalInit(r,e){return W(this.configuration).payTerminalInit(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(r,e){return W(this.configuration).payTerminalLockStatus(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(r,e){return W(this.configuration).payTerminalLockSync(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(r,e){return W(this.configuration).payTerminalLockVerify(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(r,e){return W(this.configuration).payTerminalPair(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPresence(r,e){return W(this.configuration).payTerminalPresence(r,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(r,e){return W(this.configuration).payTerminalSessionToken(r,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(r,e){return W(this.configuration).payTerminalUnpair(r,e).then(s=>s(this.axios,this.basePath))}},Ts=function(a){return{cancelNetsTerminalTransaction:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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}}}},K=function(a){let r=Ts(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)}}},Ya=function(a,r,e){let s=K(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))}}},mt=class extends S{cancelNetsTerminalTransaction(r,e){return K(this.configuration).cancelNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(r,e){return K(this.configuration).cancelVivaTransactionV2(r,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(r,e){return K(this.configuration).getPaymentReference(r,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(r,e){return K(this.configuration).getPaymentStatus(r,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(r,e){return K(this.configuration).initiateNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(r,e){return K(this.configuration).initiateTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(r,e){return K(this.configuration).processOnlineOrderRefund(r,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(r,e){return K(this.configuration).refundSingleVivaTransaction(r,e).then(s=>s(this.axios,this.basePath))}},qs=function(a){return{changePaymentMethodGiftCardLogin:async(r,e,s,t,n={})=>{c("changePaymentMethodGiftCardLogin","businessId",r),c("changePaymentMethodGiftCardLogin","channel",e),c("changePaymentMethodGiftCardLogin","id",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},changePaymentMethodOption:async(r,e,s,t,n={})=>{c("changePaymentMethodOption","businessId",r),c("changePaymentMethodOption","channel",e),c("changePaymentMethodOption","id",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},createPaymentMethod:async(r,e,s,t={})=>{c("createPaymentMethod","businessId",r),c("createPaymentMethod","channel",e),c("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={},d={};u["Content-Type"]="application/json",y(o,d);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={})=>{c("deletePaymentMethodOption","businessId",r),c("deletePaymentMethodOption","channel",e),c("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={})=>{c("getCatalog","businessId",r),c("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={},d={};s!==void 0&&(d.locale=s),y(o,d);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={})=>{c("getPaymentMethods","businessId",r),c("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={},d={};s!==void 0&&(d.locale=s),y(o,d);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={})=>{c("reorder","businessId",r),c("reorder","channel",e),c("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={},d={};u["Content-Type"]="application/json",y(o,d);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={})=>{c("setPaymentMethodPositions","businessId",r),c("setPaymentMethodPositions","channel",e),c("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={},d={};u["Content-Type"]="application/json",y(o,d);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={})=>{c("updatePaymentMethodOption","businessId",r),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}}}},L=function(a){let r=qs(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)}}},za=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))}}},yt=class extends S{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))}},Es=function(a){return{cancelSession:async(r,e={})=>{c("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={})=>{c("getOrderSettlementStatus","businessId",r),c("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={},d={};u["Content-Type"]="application/json",y(o,d);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={})=>{c("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={})=>{c("getPaymentSessionAnalytics","businessId",r),c("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},d={},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 f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},{url:g(i),options:u}},getPaymentSessionCurrency:async(r,e={})=>{c("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={})=>{c("initiateEpassiSession","xEpassiQrCode",r),c("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={},d={};r!=null&&(u["X-Epassi-Qr-Code"]=String(r)),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",y(o,d);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={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},initiateVivaA2aSession:async(r,e={})=>{c("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={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},initiateWorldlineSession:async(r,e,s={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},paymentSessionGetChargeStatus:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}},refundEpassiSession:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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}}}},q=function(a){let r=Es(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)}}},Xa=function(a,r,e){let s=q(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))}}},gt=class extends S{cancelSession(r,e){return q(this.configuration).cancelSession(r,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(r,e,s,t){return q(this.configuration).getOrderSettlementStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getPaymentSession(r,e){return q(this.configuration).getPaymentSession(r,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(r,e,s,t,n){return q(this.configuration).getPaymentSessionAnalytics(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getPaymentSessionCurrency(r,e){return q(this.configuration).getPaymentSessionCurrency(r,e).then(s=>s(this.axios,this.basePath))}initiateEpassiSession(r,e,s,t){return q(this.configuration).initiateEpassiSession(r,e,s,t).then(n=>n(this.axios,this.basePath))}initiateNetsSession(r,e,s){return q(this.configuration).initiateNetsSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(r,e){return q(this.configuration).initiateVivaA2aSession(r,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(r,e,s){return q(this.configuration).initiateVivaSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(r,e,s){return q(this.configuration).initiateWorldlineSession(r,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(r,e){return q(this.configuration).paymentSessionGetChargeStatus(r,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(r,e){return q(this.configuration).paymentSessionRegisterChargeMapping(r,e).then(s=>s(this.axios,this.basePath))}pollEpassiSession(r,e){return q(this.configuration).pollEpassiSession(r,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(r,e){return q(this.configuration).pollVivaSession(r,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(r,e){return q(this.configuration).pollWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(r,e,s){return q(this.configuration).recordManualPayment(r,e,s).then(t=>t(this.axios,this.basePath))}refundEpassiSession(r,e){return q(this.configuration).refundEpassiSession(r,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(r,e){return q(this.configuration).refundNetsSession(r,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(r,e){return q(this.configuration).refundVivaSession(r,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(r,e){return q(this.configuration).refundWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(r,e){return q(this.configuration).retryWorldlineReversal(r,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(r,e){return q(this.configuration).revertNetsSession(r,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(r,e){return q(this.configuration).revertVivaSession(r,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(r,e){return q(this.configuration).revertWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(r,e){return q(this.configuration).voidManualPayment(r,e).then(s=>s(this.axios,this.basePath))}},Us=function(a){return{deletePrinterByAddress:async(r,e,s={})=>{c("deletePrinterByAddress","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},upsertPrinter:async(r,e={})=>{c("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}}}},Ve=function(a){let r=Us(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)}}},Ja=function(a,r,e){let s=Ve(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))}}},ht=class extends S{deletePrinterByAddress(r,e,s){return Ve(this.configuration).deletePrinterByAddress(r,e,s).then(t=>t(this.axios,this.basePath))}upsertPrinter(r,e){return Ve(this.configuration).upsertPrinter(r,e).then(s=>s(this.axios,this.basePath))}},ks=function(a){return{getChannelInventoryV2:async(r,e,s,t={})=>{c("getChannelInventoryV2","businessId",r),c("getChannelInventoryV2","categoryId",e),c("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={})=>{c("updateChannelInventoryV2","businessId",r),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},updateProductSkuV2:async(r,e,s,t,n={})=>{c("updateProductSkuV2","businessId",r),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},updateProductSkusV2:async(r,e,s,t,n={})=>{c("updateProductSkusV2","businessId",r),c("updateProductSkusV2","categoryId",e),c("updateProductSkusV2","productId",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}}}},ne=function(a){let r=ks(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)}}},Za=function(a,r,e){let s=ne(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))}}},Pt=class extends S{getChannelInventoryV2(r,e,s,t){return ne(this.configuration).getChannelInventoryV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(r,e,s,t,n){return ne(this.configuration).updateChannelInventoryV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(r,e,s,t,n){return ne(this.configuration).updateProductSkuV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkusV2(r,e,s,t,n){return ne(this.configuration).updateProductSkusV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},Ms=function(a){return{listAutomaticPromotions:async(r,e={})=>{c("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 R(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={})=>{c("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={})=>{c("priceBasketWithPromotions","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},priceKioskBasketWithPromotions:async(r,e,s={})=>{c("priceKioskBasketWithPromotions","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},oe=function(a){let r=Ms(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)}}},ei=function(a,r,e){let s=oe(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))}}},bt=class extends S{listAutomaticPromotions(r,e){return oe(this.configuration).listAutomaticPromotions(r,e).then(s=>s(this.axios,this.basePath))}listKioskAutomaticPromotions(r,e){return oe(this.configuration).listKioskAutomaticPromotions(r,e).then(s=>s(this.axios,this.basePath))}priceBasketWithPromotions(r,e,s){return oe(this.configuration).priceBasketWithPromotions(r,e,s).then(t=>t(this.axios,this.basePath))}priceKioskBasketWithPromotions(r,e,s){return oe(this.configuration).priceKioskBasketWithPromotions(r,e,s).then(t=>t(this.axios,this.basePath))}},Bs=function(a){return{createOnboardingSession:async(r,e,s={})=>{c("createOnboardingSession","channel",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},disconnectOnboarding:async(r,e,s={})=>{c("disconnectOnboarding","channel",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getMenuIntegrations:async(r,e={})=>{c("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={})=>{c("getOnboardingStatus","channel",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},listOnboardingStores:async(r,e,s={})=>{c("listOnboardingStores","channel",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},provisionOnboardingStore:async(r,e,s,t={})=>{c("provisionOnboardingStore","channel",r),c("provisionOnboardingStore","state",e),c("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={},d={};u["Content-Type"]="application/json",y(o,d);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={})=>{c("updateProviderSettings","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},updateVenueProviders:async(r,e,s={})=>{c("updateVenueProviders","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}}}},Q=function(a){let r=Bs(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)}}},ti=function(a,r,e){let s=Q(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))}}},At=class extends S{createOnboardingSession(r,e,s){return Q(this.configuration).createOnboardingSession(r,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(r,e,s){return Q(this.configuration).disconnectOnboarding(r,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(r,e){return Q(this.configuration).getMenuIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(r,e,s){return Q(this.configuration).getOnboardingStatus(r,e,s).then(t=>t(this.axios,this.basePath))}listOnboardingStores(r,e,s){return Q(this.configuration).listOnboardingStores(r,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(r,e,s,t){return Q(this.configuration).provisionOnboardingStore(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateProviderSettings(r,e,s){return Q(this.configuration).updateProviderSettings(r,e,s).then(t=>t(this.axios,this.basePath))}updateVenueProviders(r,e,s){return Q(this.configuration).updateVenueProviders(r,e,s).then(t=>t(this.axios,this.basePath))}},ws=function(a){return{receiptFooterGetConfig:async(r,e,s={})=>{c("receiptFooterGetConfig","businessId",r),c("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 R(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},receiptFooterUpsertConfig:async(r,e,s,t={})=>{c("receiptFooterUpsertConfig","businessId",r),c("receiptFooterUpsertConfig","xAppX",e),c("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={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);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}}}},Ie=function(a){let r=ws(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)}}},si=function(a,r,e){let s=Ie(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))}}},Rt=class extends S{receiptFooterGetConfig(r,e,s){return Ie(this.configuration).receiptFooterGetConfig(r,e,s).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(r,e,s,t){return Ie(this.configuration).receiptFooterUpsertConfig(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Fs=function(a){return{cancelPlanV2:async(r,e,s,t={})=>{c("cancelPlanV2","businessId",r),c("cancelPlanV2","orderId",e),c("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={})=>{c("createRefundPlanV2","businessId",r),c("createRefundPlanV2","orderId",e),c("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={},d={};u["Content-Type"]="application/json",y(o,d);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={})=>{c("getRefundPlanV2","businessId",r),c("getRefundPlanV2","orderId",e),c("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={},d={};s!==void 0&&(d.status=s),y(o,d);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={})=>{c("recordRefundPlanV2","businessId",r),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},refundOnlineOrder:async(r,e,s,t={})=>{c("refundOnlineOrder","businessId",r),c("refundOnlineOrder","orderId",e),c("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={},d={};s!==void 0&&(d.provider=s),y(o,d);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={})=>{c("resolveRefundChoiceV2","businessId",r),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",s),c("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},d={},b={};d["Content-Type"]="application/json",y(i,b);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...n.headers},u.data=A(t,u,a),{url:g(i),options:u}},startProcessPlanV2:async(r,e,s,t={})=>{c("startProcessPlanV2","businessId",r),c("startProcessPlanV2","orderId",e),c("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}}}},G=function(a){let r=Fs(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)}}},ri=function(a,r,e){let s=G(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))}}},ft=class extends S{cancelPlanV2(r,e,s,t){return G(this.configuration).cancelPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}createRefundPlanV2(r,e,s,t){return G(this.configuration).createRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getRefundPlanV2(r,e,s,t){return G(this.configuration).getRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}recordRefundPlanV2(r,e,s,t,n){return G(this.configuration).recordRefundPlanV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(r,e,s,t){return G(this.configuration).refundOnlineOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoiceV2(r,e,s,t,n){return G(this.configuration).resolveRefundChoiceV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlanV2(r,e,s,t){return G(this.configuration).startProcessPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Ls=function(a){return{getEndOfDayReportV5:async(r,e,s,t,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",r);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let b={method:"GET",...d,...i},f={},C={};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!==void 0&&(C.provider=o),y(u,C);let x=d&&d.headers?d.headers:{};return b.headers={...f,...x,...i.headers},{url:g(u),options:b}},getSalesReport:async(r,e,s,t,n,o,i,l,u,d,b,f,C={})=>{c("getSalesReport","businessIds",r);let x="/api/v6/report/sales",O=new URL(x,m),I;a&&(I=a.baseOptions);let v={method:"GET",...I,...C},V={},T={};await R(V,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),d!==void 0&&(T.compareStart=d),b!==void 0&&(T.compareEnd=b),f!==void 0&&(T.baseline=f),y(O,T);let M=I&&I.headers?I.headers:{};return v.headers={...V,...M,...C.headers},{url:g(O),options:v}},sendReportEmailV5:async(r,e,s,t,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",r),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,m),b;a&&(b=a.baseOptions);let f={method:"POST",...b,...l},C={},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),C["Content-Type"]="application/json",y(d,x);let O=b&&b.headers?b.headers:{};return f.headers={...C,...O,...l.headers},f.data=A(s,f,a),{url:g(d),options:f}}}},pe=function(a){let r=Ls(a);return{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,d,b,f,C,x){let O=await r.getSalesReport(e,s,t,n,o,i,l,u,d,b,f,C,x);return h(O,P,p,a)},async sendReportEmailV5(e,s,t,n,o,i,l,u){let d=await r.sendReportEmailV5(e,s,t,n,o,i,l,u);return h(d,P,p,a)}}},ni=function(a,r,e){let s=pe(a);return{getEndOfDayReportV5(t,n,o,i,l,u,d){return s.getEndOfDayReportV5(t,n,o,i,l,u,d).then(b=>b(e,r))},getSalesReport(t,n,o,i,l,u,d,b,f,C,x,O,I){return s.getSalesReport(t,n,o,i,l,u,d,b,f,C,x,O,I).then(v=>v(e,r))},sendReportEmailV5(t,n,o,i,l,u,d,b){return s.sendReportEmailV5(t,n,o,i,l,u,d,b).then(f=>f(e,r))}}},xt=class extends S{getEndOfDayReportV5(r,e,s,t,n,o,i){return pe(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,d,b,f,C){return pe(this.configuration).getSalesReport(r,e,s,t,n,o,i,l,u,d,b,f,C).then(x=>x(this.axios,this.basePath))}sendReportEmailV5(r,e,s,t,n,o,i,l){return pe(this.configuration).sendReportEmailV5(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},_s=function(a){return{getEndOfDayReportForTill:async(r,e,s,t,n,o,i={})=>{c("getEndOfDayReportForTill","businessIds",r);let l="/api/v6/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let b={method:"GET",...d,...i},f={},C={};await R(f,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!==void 0&&(C.provider=o),y(u,C);let x=d&&d.headers?d.headers:{};return b.headers={...f,...x,...i.headers},{url:g(u),options:b}},sendEndOfDayReportForTill:async(r,e,s,t,n,o,i,l={})=>{c("sendEndOfDayReportForTill","businessIds",r),c("sendEndOfDayReportForTill","sendReportEmailDto",e);let u="/api/v6/report/email",d=new URL(u,m),b;a&&(b=a.baseOptions);let f={method:"POST",...b,...l},C={},x={};await R(C,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),C["Content-Type"]="application/json",y(d,x);let O=b&&b.headers?b.headers:{};return f.headers={...C,...O,...l.headers},f.data=A(e,f,a),{url:g(d),options:f}}}},ve=function(a){let r=_s(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 d=await r.sendEndOfDayReportForTill(e,s,t,n,o,i,l,u);return h(d,P,p,a)}}},oi=function(a,r,e){let s=ve(a);return{getEndOfDayReportForTill(t,n,o,i,l,u,d){return s.getEndOfDayReportForTill(t,n,o,i,l,u,d).then(b=>b(e,r))},sendEndOfDayReportForTill(t,n,o,i,l,u,d,b){return s.sendEndOfDayReportForTill(t,n,o,i,l,u,d,b).then(f=>f(e,r))}}},Ct=class extends S{getEndOfDayReportForTill(r,e,s,t,n,o,i){return ve(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 ve(this.configuration).sendEndOfDayReportForTill(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},Ns=function(a){return{changeResQOffer:async(r,e,s,t={})=>{c("changeResQOffer","businessId",r),c("changeResQOffer","offerId",e),c("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={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);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={})=>{c("createResQOffer","businessId",r),c("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 R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},deactivateResQOffer:async(r,e,s={})=>{c("deactivateResQOffer","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getResQOrder:async(r,e,s={})=>{c("getResQOrder","businessId",r),c("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 R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},listResQOffers:async(r,e,s={})=>{c("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 R(l,a),e!==void 0&&(u.page=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},listResQOrders:async(r,e,s={})=>{c("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 R(l,a),e!==void 0&&(u.page=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},z=function(a){let r=Ns(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)}}},ai=function(a,r,e){let s=z(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))}}},Dt=class extends S{changeResQOffer(r,e,s,t){return z(this.configuration).changeResQOffer(r,e,s,t).then(n=>n(this.axios,this.basePath))}createResQOffer(r,e,s){return z(this.configuration).createResQOffer(r,e,s).then(t=>t(this.axios,this.basePath))}deactivateResQOffer(r,e,s){return z(this.configuration).deactivateResQOffer(r,e,s).then(t=>t(this.axios,this.basePath))}getResQOrder(r,e,s){return z(this.configuration).getResQOrder(r,e,s).then(t=>t(this.axios,this.basePath))}listResQOffers(r,e,s){return z(this.configuration).listResQOffers(r,e,s).then(t=>t(this.axios,this.basePath))}listResQOrders(r,e,s){return z(this.configuration).listResQOrders(r,e,s).then(t=>t(this.axios,this.basePath))}},js=function(a){return{createReservation:async(r,e={})=>{c("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 R(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={})=>{c("getReservationAvailability","businessId",r),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let i="/api/v1/reservations/availability",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},b={},f={};await R(b,a),r!==void 0&&(f.businessId=r),e!==void 0&&(f.date=e),s!==void 0&&(f.partySize=s),t!==void 0&&(f.sectionId=t),n!==void 0&&(f.excludeReservationId=n),y(l,f);let C=u&&u.headers?u.headers:{};return d.headers={...b,...C,...o.headers},{url:g(l),options:d}},getReservationPolicy:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("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={},d={};await R(u,a),r!==void 0&&(d.businessId=r),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),y(o,d);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...t.headers},{url:g(o),options:l}},reservationInboundWebhook:async(r,e={})=>{c("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 R(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={})=>{c("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 R(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={})=>{c("updateReservation","id",r),c("updateReservation","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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={})=>{c("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 R(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={})=>{c("updateReservationStatus","id",r),c("updateReservationStatus","businessId",e),c("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={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);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=js(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)}}},ii=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(d=>d(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))}}},Ot=class extends S{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))}},Ws=function(a){return{clockIn:async(r,e,s={})=>{c("clockIn","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},clockOut:async(r,e,s={})=>{c("clockOut","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getTodayShift:async(r,e,s={})=>{c("getTodayShift","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},lockTill:async(r,e={})=>{c("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 R(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={})=>{c("unlock","businessId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},unlockTillWithPin:async(r,e,s={})=>{c("unlockTillWithPin","businessId",r),c("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 R(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},X=function(a){let r=Ws(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)}}},li=function(a,r,e){let s=X(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))}}},St=class extends S{clockIn(r,e,s){return X(this.configuration).clockIn(r,e,s).then(t=>t(this.axios,this.basePath))}clockOut(r,e,s){return X(this.configuration).clockOut(r,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(r,e,s){return X(this.configuration).getTodayShift(r,e,s).then(t=>t(this.axios,this.basePath))}lockTill(r,e){return X(this.configuration).lockTill(r,e).then(s=>s(this.axios,this.basePath))}unlock(r,e,s){return X(this.configuration).unlock(r,e,s).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(r,e,s){return X(this.configuration).unlockTillWithPin(r,e,s).then(t=>t(this.axios,this.basePath))}},Ks=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={})=>{c("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}}}},me=function(a){let r=Ks(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)}}},ui=function(a,r,e){let s=me(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 S{deactivateStation(r){return me(this.configuration).deactivateStation(r).then(e=>e(this.axios,this.basePath))}getStation(r){return me(this.configuration).getStation(r).then(e=>e(this.axios,this.basePath))}syncStation(r,e){return me(this.configuration).syncStation(r,e).then(s=>s(this.axios,this.basePath))}},Qs=function(a){return{connectTerminal:async(r,e={})=>{c("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={})=>{c("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}}}},ye=function(a){let r=Qs(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)}}},ci=function(a,r,e){let s=ye(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))}}},It=class extends S{connectTerminal(r,e){return ye(this.configuration).connectTerminal(r,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(r){return ye(this.configuration).disconnectTerminal(r).then(e=>e(this.axios,this.basePath))}discoverTerminal(r,e){return ye(this.configuration).discoverTerminal(r,e).then(s=>s(this.axios,this.basePath))}},Gs=function(a){return{getMyVenue:async(r,e={})=>{c("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 R(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 R(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 R(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 R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},ae=function(a){let r=Gs(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)}}},di=function(a,r,e){let s=ae(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))}}},vt=class extends S{getMyVenue(r,e){return ae(this.configuration).getMyVenue(r,e).then(s=>s(this.axios,this.basePath))}getUserBusinessV1(r){return ae(this.configuration).getUserBusinessV1(r).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(r){return ae(this.configuration).getUserBusinessV2(r).then(e=>e(this.axios,this.basePath))}listMyVenues(r){return ae(this.configuration).listMyVenues(r).then(e=>e(this.axios,this.basePath))}},Hs=function(a){return{upsert:async(r,e={})=>{c("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}}}},Kt=function(a){let r=Hs(a);return{async upsert(e,s){let t=await r.upsert(e,s);return h(t,P,p,a)}}},pi=function(a,r,e){let s=Kt(a);return{upsert(t,n){return s.upsert(t,n).then(o=>o(e,r))}}},Tt=class extends S{upsert(r,e){return Kt(this.configuration).upsert(r,e).then(s=>s(this.axios,this.basePath))}},$s=function(a){return{createVivaAppToAppPayment:async(r,e={})=>{c("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={})=>{c("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={})=>{c("listVivaSessions","businessId",r);let u="/api/v1/viva/sessions",d=new URL(u,m),b;a&&(b=a.baseOptions);let f={method:"GET",...b,...l},C={},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(d,x);let O=b&&b.headers?b.headers:{};return f.headers={...C,...O,...l.headers},{url:g(d),options:f}},refundVivaPayment:async(r,e,s={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(r,i,a),{url:g(n),options:i}}}},ie=function(a){let r=$s(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 d=await r.listVivaSessions(e,s,t,n,o,i,l,u);return h(d,P,p,a)},async refundVivaPayment(e,s,t){let n=await r.refundVivaPayment(e,s,t);return h(n,P,p,a)}}},mi=function(a,r,e){let s=ie(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,d,b){return s.listVivaSessions(t,n,o,i,l,u,d,b).then(f=>f(e,r))},refundVivaPayment(t,n,o){return s.refundVivaPayment(t,n,o).then(i=>i(e,r))}}},qt=class extends S{createVivaAppToAppPayment(r,e){return ie(this.configuration).createVivaAppToAppPayment(r,e).then(s=>s(this.axios,this.basePath))}getVivaSession(r,e){return ie(this.configuration).getVivaSession(r,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(r,e,s,t,n,o,i,l){return ie(this.configuration).listVivaSessions(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(r,e,s){return ie(this.configuration).refundVivaPayment(r,e,s).then(t=>t(this.axios,this.basePath))}},Ys=function(a){return{handleAssignmentWebhook:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},handlePreorderReminder:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("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={})=>{c("handleWoltDriveEventByCountry","country",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...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={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},processPosOrderActionsQueue:async(r,e={})=>{c("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={})=>{c("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}}}},E=function(a){let r=Ys(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)}}},yi=function(a,r,e){let s=E(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))}}},Et=class extends S{handleAssignmentWebhook(r,e){return E(this.configuration).handleAssignmentWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleBusinessWebhook(r,e){return E(this.configuration).handleBusinessWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleFoodoraEvent(r,e){return E(this.configuration).handleFoodoraEvent(r,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(r,e){return E(this.configuration).handleLoadEmployee(r,e).then(s=>s(this.axios,this.basePath))}handleNetsEvents(r,e){return E(this.configuration).handleNetsEvents(r,e).then(s=>s(this.axios,this.basePath))}handleNetsEventsV2(r,e){return E(this.configuration).handleNetsEventsV2(r,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEvents(r,e){return E(this.configuration).handleNetsSessionEvents(r,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(r,e,s){return E(this.configuration).handleNetsSessionEventsForClientToken(r,e,s).then(t=>t(this.axios,this.basePath))}handlePreorderReminder(r,e){return E(this.configuration).handlePreorderReminder(r,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(r,e){return E(this.configuration).handleRoleWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleShiftWebhook(r,e){return E(this.configuration).handleShiftWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleVivaEvents(r,e){return E(this.configuration).handleVivaEvents(r,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(r,e){return E(this.configuration).handleVivaSessionEvents(r,e).then(s=>s(this.axios,this.basePath))}handleWebhook(r,e){return E(this.configuration).handleWebhook(r,e).then(s=>s(this.axios,this.basePath))}handleWoltDriveEventByCountry(r,e,s){return E(this.configuration).handleWoltDriveEventByCountry(r,e,s).then(t=>t(this.axios,this.basePath))}handleWorldlineEvents(r){return E(this.configuration).handleWorldlineEvents(r).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(r){return E(this.configuration).handleWorldlineSessionEvents(r).then(e=>e(this.axios,this.basePath))}processDispatchTask(r,e,s){return E(this.configuration).processDispatchTask(r,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(r,e){return E(this.configuration).processPosOrderActionsQueue(r,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(r,e){return E(this.configuration).updateWoltProduct(r,e).then(s=>s(this.axios,this.basePath))}verifyVivaSessionWebhook(r){return E(this.configuration).verifyVivaSessionWebhook(r).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(r){return E(this.configuration).verifyVivaWebhook(r).then(e=>e(this.axios,this.basePath))}},zs=function(a){return{cancelPayment:async(r,e={})=>{c("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={})=>{c("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={})=>{c("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}}}},ge=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)}}},gi=function(a,r,e){let s=ge(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))}}},Ut=class extends S{cancelPayment(r,e){return ge(this.configuration).cancelPayment(r,e).then(s=>s(this.axios,this.basePath))}createPayment(r,e){return ge(this.configuration).createPayment(r,e).then(s=>s(this.axios,this.basePath))}createRefund(r,e){return ge(this.configuration).createRefund(r,e).then(s=>s(this.axios,this.basePath))}},Xs=function(a){return{createPaymentRequest:async(r,e,s={})=>{c("createPaymentRequest","terminalId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},createRefundRequest:async(r,e,s={})=>{c("createRefundRequest","terminalId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=A(e,i,a),{url:g(n),options:i}},getPaymentResult:async(r,e={})=>{c("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={})=>{c("getTerminalAuthContext","terminalId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getTerminalContext:async(r,e,s={})=>{c("getTerminalContext","terminalId",r),c("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 d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getTerminalState:async(r,e={})=>{c("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}}}},H=function(a){let r=Xs(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)}}},hi=function(a,r,e){let s=H(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))}}},kt=class extends S{createPaymentRequest(r,e,s){return H(this.configuration).createPaymentRequest(r,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(r,e,s){return H(this.configuration).createRefundRequest(r,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(r,e){return H(this.configuration).getPaymentResult(r,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(r,e,s){return H(this.configuration).getTerminalAuthContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(r,e,s){return H(this.configuration).getTerminalContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(r,e){return H(this.configuration).getTerminalState(r,e).then(s=>s(this.axios,this.basePath))}handleCallback(r,e){return H(this.configuration).handleCallback(r,e).then(s=>s(this.axios,this.basePath))}};var Qt=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 Js={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 Te(a){return Js[a.toUpperCase()]??2}function he(a){return 10**Te(a)}function xi(a,r){if(!Number.isFinite(a))return Math.round(a*he(r));let[e,s="0"]=String(a).split("e");return Math.round(+`${e}e${Number(s)+Te(r)}`)}function Zs(a,r){return a/he(r)}function Ci(a,r,e={}){let s=Te(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(Zs(a.amount,a.currency))}function Di(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 Vi={getMultiplier(a){return he(a)}};var er={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 tr(a){if(typeof Intl.Locale=="function")try{return new Intl.Locale(`und-${a}`).maximize().language}catch{return}}function vi(a){if(!a)return{cashRounding:null,customerLanguages:["en"]};let r=a.toUpperCase(),e=er[r]??{},s=tr(r);return{cashRounding:e.cashRounding??null,customerLanguages:e.customerLanguages??(s&&s!=="und"?[...new Set([s,"en"])]:["en"])}}function Ti(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 Pe from"lodash";var qe=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),sr=a=>{let r=a.subcategories;return Array.isArray(r)?r:[]},rr=(a,r)=>({...a,colorCode:a.colorCode??r}),nr=(a,r)=>Pe.compact(a.map(e=>r.get(e))),Gt=(a,r)=>a.flatMap(e=>{let s=r[e];return s?[e,...Gt(s.childIds,r)]:[]}),Ht=(a,r)=>a.flatMap(e=>{let s=r[e];return s?.enabled?[e,...Ht(s.childIds,r)]:[]}),Ui=a=>{let r=new Map,e={},s={},t=qe(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return r.set(d,rr(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),b=(C,x)=>{let O=String(C.id),I=o(C.products,u),V=qe(sr(C)).map(T=>b(T,O));return s[O]={id:O,name:C.name,rank:C.rank??0,enabled:!!C.enabled,parentCategoryId:l,parentSubcategoryId:x,productIds:I,childIds:V},O},f=qe(i.subcategories??[]).map(C=>b(C,null));e[l]={...i,productIds:d,subcategoryIds:f}}),{sortedCategories:t,productMap:r,categoriesById:e,subcategoriesById:s,categoryIdsOrder:n}},ki=(a,r,e,s)=>{let t=r[a];if(!t)return[];let n=Ht(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return nr(o,s)},Mi=(a,r,e)=>{let s=r[a];if(!s)return[];let t=Gt(s.subcategoryIds,e);return Pe.compact(t.map(n=>e[n]))};var or="2.1.0";export{br as ABLYEVENT,Ee as ActionPasscodesApi,Yt as ActionPasscodesApiAxiosParamCreator,ya as ActionPasscodesApiFactory,Mt as ActionPasscodesApiFp,Ar as ActionsEnum,Ue as AuthApi,zt as AuthApiAxiosParamCreator,ga as AuthApiFactory,ee as AuthApiFp,fr as AutonomousVehicleType,xr as BasketNotPricedReason,ke as BusinessApi,Xt as BusinessApiAxiosParamCreator,ha as BusinessApiFactory,U as BusinessApiFp,Cr as BusinessBackgroundType,Dr as BusinessEventAction,Or as BusinessEventType,Sr as BusinessPaymentIntegrationType,Me as BusinessScheduleApi,Jt as BusinessScheduleApiAxiosParamCreator,Pa as BusinessScheduleApiFactory,Bt as BusinessScheduleApiFp,Vr as BusinessStatusEnum,Ir as CashLogReason,vr as CashLogType,Be as CashManagementApi,Zt as CashManagementApiAxiosParamCreator,ba as CashManagementApiFactory,$ as CashManagementApiFp,we as CashManagementV6Api,es as CashManagementV6ApiAxiosParamCreator,Aa as CashManagementV6ApiFactory,wt as CashManagementV6ApiFp,Tr as CashSessionStatus,Fe as CashSessionV2Api,ts as CashSessionV2ApiAxiosParamCreator,Ra as CashSessionV2ApiFactory,Ft as CashSessionV2ApiFp,qr as CashSignalType,Er as CdsSessionRole,Ur as ChannelEnum,Le as ChannelMenuApi,ss as ChannelMenuApiAxiosParamCreator,fa as ChannelMenuApiFactory,ue as ChannelMenuApiFp,kr as ChargeStatusEnum,Mr as CheckoutModelEnum,wr as ConditionType,_e as ConfigManagementApi,rs as ConfigManagementApiAxiosParamCreator,xa as ConfigManagementApiFactory,B as ConfigManagementApiFp,Qt as Configuration,Fr as ConsumptionType,Lr as CouponRefusal,Ne as CouponsApi,ns as CouponsApiAxiosParamCreator,Ca as CouponsApiFactory,Ae as CouponsApiFp,je as CoursesApi,os as CoursesApiAxiosParamCreator,Da as CoursesApiFactory,Re as CoursesApiFp,_r as CredentialType,Nr as CurrencyCode,Vi as CurrencyRegistry,jr as DatabaseEventType,Wr as DayOfWeek,Kr as DeliveryCourierProvider,Qr as DeliveryIntentAction,We as DeliveryIntentApi,as as DeliveryIntentApiAxiosParamCreator,Oa as DeliveryIntentApiFactory,fe as DeliveryIntentApiFp,Gr as DeliveryIntentStatus,Hr as DeliveryPlatformConnection,$r as DeliveryPlatformOpsConnect,Yr as DeliveryStatus,zr as DeliveryType,Xr as DeviceType,Jr as DiscountScope,Zr as DiscountScopeType,en as DiscountSourceType,tn as DiscountType,Ke as DisplayApi,is as DisplayApiAxiosParamCreator,Sa as DisplayApiFactory,te as DisplayApiFp,Qe as EmployeeRolesApi,ls as EmployeeRolesApiAxiosParamCreator,Va as EmployeeRolesApiFactory,J as EmployeeRolesApiFp,Ge as EmployeesApi,us as EmployeesApiAxiosParamCreator,Ia as EmployeesApiFactory,Z as EmployeesApiFp,sn as EntityType,_o as ErrorEnum,Rr as EventTypeEnum,rn as FeeType,He as FloorPlanApi,cs as FloorPlanApiAxiosParamCreator,va as FloorPlanApiFactory,w as FloorPlanApiFp,nn as GiftCardErrorCode,$e as GiftcardApi,ds as GiftcardApiAxiosParamCreator,Ta as GiftcardApiFactory,xe as GiftcardApiFp,Ye as HistoryApi,ps as HistoryApiAxiosParamCreator,qa as HistoryApiFactory,Ce as HistoryApiFp,ze as HistoryV6Api,ms as HistoryV6ApiAxiosParamCreator,Ea as HistoryV6ApiFactory,ce as HistoryV6ApiFp,on as IntegrationType,Xe as InvoiceCompaniesApi,ys as InvoiceCompaniesApiAxiosParamCreator,Ua as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,Je as KDSApi,gs as KDSApiAxiosParamCreator,ka as KDSApiFactory,N as KDSApiFp,an as KDSEVENTNAME,ln as KdsBulkReadySkipReason,un as KdsOrderType,cn as KioskEventType,dn as KioskLayout,Ze as KiosksApi,hs as KiosksApiAxiosParamCreator,Ma as KiosksApiFactory,De as KiosksApiFp,pn as KitchenItemStatus,mn as KitchenStatus,yn as LocatorType,gn as LoyaltyActionKey,hn as LoyaltyCatalogType,Pn as LoyaltyChannel,et as LoyaltyCommerceApi,Ps as LoyaltyCommerceApiAxiosParamCreator,Ba as LoyaltyCommerceApiFactory,Lt as LoyaltyCommerceApiFp,tt as LoyaltyIntegerationsApi,bs as LoyaltyIntegerationsApiAxiosParamCreator,wa as LoyaltyIntegerationsApiFactory,F as LoyaltyIntegerationsApiFp,bn as LoyaltyPerkStatus,An as LoyaltyRedemptionStatus,Rn as LoyaltyRestoreRequestStatus,fn as LoyaltyRewardType,xn as LoyaltyRuleActionType,Cn as LoyaltyRuleApplicationMode,Dn as LoyaltyRuleConditionType,On as LoyaltyRuleFulfillmentMode,Sn as LoyaltyRuleSelection,Vn as LoyaltyRuleStackingMode,In as LoyaltyRuleTargetType,st as MCPApi,As as MCPApiAxiosParamCreator,Fa as MCPApiFactory,de as MCPApiFp,or as MUNCHI_CORE_VERSION,rt as MenuApi,Rs as MenuApiAxiosParamCreator,La as MenuApiFactory,Oe as MenuApiFp,vn as MenuType,nt as MunchiGiftCardApi,fs as MunchiGiftCardApiAxiosParamCreator,_a as MunchiGiftCardApiFactory,se as MunchiGiftCardApiFp,Tn as NetsRevertMethod,ot as NotificationApi,xs as NotificationApiAxiosParamCreator,Na as NotificationApiFactory,Se as NotificationApiFp,qn as OperatingMode,at as OpsApi,Cs as OpsApiAxiosParamCreator,ja as OpsApiFactory,re as OpsApiFp,Br as OrderCollectionEnum,it as OrderCompletionApi,Ds as OrderCompletionApiAxiosParamCreator,Wa as OrderCompletionApiFactory,_t as OrderCompletionApiFp,En as OrderFormat,lt as OrderInternalApi,Os as OrderInternalApiAxiosParamCreator,Ka as OrderInternalApiFactory,Nt as OrderInternalApiFp,Un as OrderMode,kn as OrderRefundStatus,Mn as OrderSource,Bn as OrderStatus,wn as OrderStatusEnum,Fn as OrderType,Ln as OrderTypePOS,ut as OrdersApi,Ss as OrdersApiAxiosParamCreator,Qa as OrdersApiFactory,k as OrdersApiFp,ct as POSPermissionsApi,Vs as POSPermissionsApiAxiosParamCreator,Ga as POSPermissionsApiFactory,jt as POSPermissionsApiFp,dt as POSSessionApi,Is as POSSessionApiAxiosParamCreator,Ha as POSSessionApiFactory,Wt as POSSessionApiFp,pt as PayTerminalApi,vs as PayTerminalApiAxiosParamCreator,$a as PayTerminalApiFactory,W as PayTerminalApiFp,_n as PayTerminalSessionRole,mt as PaymentApi,Ts as PaymentApiAxiosParamCreator,Ya as PaymentApiFactory,K as PaymentApiFp,Nn as PaymentApp,jn as PaymentCheckoutFlow,Wn as PaymentEventType,Kn as PaymentFailureCode,Qn as PaymentMethod,yt as PaymentMethodsApi,qs as PaymentMethodsApiAxiosParamCreator,za as PaymentMethodsApiFactory,L as PaymentMethodsApiFp,Gn as PaymentOutcomeStatus,Hn as PaymentProvider,$n as PaymentProviderEnum,Yn as PaymentReportingBucket,gt as PaymentSessionApi,Es as PaymentSessionApiAxiosParamCreator,Xa as PaymentSessionApiFactory,q as PaymentSessionApiFp,zn as PaymentSessionPurpose,Xn as PaymentSessionStatus,Jn as PaymentStatus,Zn as PaymentSurchargePaidBy,eo as PaymentTypeEnum,to as PosBulkOrderStatus,so as PosBulkStatusSkipReason,ro as PosDiscountTargetType,no as PosDiscountType,oo as PosPaymentStatus,ao as PosPaymentType,io as PosPermission,lo as PosPermissionGroup,uo as PosPermissionKind,co as PreorderStatus,po as PriceType,mo as PrinterConnectionType,yo as PrinterModelType,go as PrinterTypeEnum,ht as PrintersApi,Us as PrintersApiAxiosParamCreator,Ja as PrintersApiFactory,Ve as PrintersApiFp,Pt as ProductApi,ks as ProductApiAxiosParamCreator,Za as ProductApiFactory,ne as ProductApiFp,ho as ProductAvailability,Po as ProductDetailLayout,bo as PromotionDiscountType,bt as PromotionsApi,Ms as PromotionsApiAxiosParamCreator,ei as PromotionsApiFactory,oe as PromotionsApiFp,At as ProviderApi,Bs as ProviderApiAxiosParamCreator,ti as ProviderApiFactory,Q as ProviderApiFp,Ao as ProviderEnum,Ro as PubSubAction,fo as PubSubTarget,Rt as ReceiptFooterApi,ws as ReceiptFooterApiAxiosParamCreator,si as ReceiptFooterApiFactory,Ie as ReceiptFooterApiFp,xo as ReceiptFooterDocumentType,Co as RecordManualStatus,Do as RefundFailureReasonKey,Oo as RefundMode,So as RefundOverallStatus,Vo as RefundStatusEnum,Io as RefundStepStatus,ft as RefundsApi,Fs as RefundsApiAxiosParamCreator,ri as RefundsApiFactory,G as RefundsApiFp,xt as ReportApi,Ls as ReportApiAxiosParamCreator,ni as ReportApiFactory,pe as ReportApiFp,vo as ReportApp,To as ReportBaselineLeftOut,qo as ReportBreakdown,Eo as ReportChangeField,Uo as ReportLanguage,ko as ReportPart,Ct as ReportV6Api,_s as ReportV6ApiAxiosParamCreator,oi as ReportV6ApiFactory,ve as ReportV6ApiFp,Dt as ResQApi,Ns as ResQApiAxiosParamCreator,ai as ResQApiFactory,z as ResQApiFp,Mo as ResQOfferTag,Bo as ReservationSource,wo as ReservationStatus,Ot as ReservationsApi,js as ReservationsApiAxiosParamCreator,ii as ReservationsApiFactory,_ as ReservationsApiFp,Fo as SYNCKEY,Lo as ScheduleType,St as ShiftTrackingApi,Ws as ShiftTrackingApiAxiosParamCreator,li as ShiftTrackingApiFactory,X as ShiftTrackingApiFp,No as ShipdayEventWebhook,jo as ShipdayOrderStatus,Wo as SimplePaymentStatus,Ko as SourceType,Qo as StaffActivityActionType,Go as StationType,Vt as StationsApi,Ks as StationsApiAxiosParamCreator,ui as StationsApiFactory,me as StationsApiFp,Ho as Status,$o as SystemProfileType,Yo as TableGroupType,zo as TableShape,Xo as TableStatus,It as TerminalApi,Qs as TerminalApiAxiosParamCreator,ci as TerminalApiFactory,ye as TerminalApiFp,Jo as TerminalConnectionType,Zo as TimeSpan,ea as TransactionEventType,ta as TransactionType,sa as Type,ra as UpsellMode,vt as UserApi,Gs as UserApiAxiosParamCreator,di as UserApiFactory,ae as UserApiFp,Tt as VendureSellerApi,Hs as VendureSellerApiAxiosParamCreator,pi as VendureSellerApiFactory,Kt as VendureSellerApiFp,na as VenueProviderOutcome,qt as VivaApi,$s as VivaApiAxiosParamCreator,mi as VivaApiFactory,ie as VivaApiFp,oa as VivaAppToAppPaymentMethod,aa as VivaCurrencyCode,ia as VivaErrorId,la as VivaEventId,ua as VivaWebhookEventType,Et as WebhookApi,Ys as WebhookApiAxiosParamCreator,yi as WebhookApiFactory,E as WebhookApiFp,Ut as WorldlineApi,zs as WorldlineApiAxiosParamCreator,gi as WorldlineApiFactory,ge as WorldlineApiFp,kt as WorldlineInternalApi,Xs as WorldlineInternalApiAxiosParamCreator,hi as WorldlineInternalApiFactory,H as WorldlineInternalApiFp,ca as WorldlineOperationStatus,da as WorldlinePaymentResultStatus,pa as WorldlineResponseStatus,ma as WorldlineRevertMethod,Ui as buildPosCategoryIndex,Di as cashRound,Ht as collectEnabledSubcategoryIdsDepthFirst,Gt as collectSubcategoryIdsDepthFirst,vi as countryQuirks,Ci as formatMoney,Zs as fromMinor,ki as getCategoryProductsIncludingSubcategories,Mi as getSubcategoriesForCategory,nr as mapProductIdsToProducts,Te as minorUnitDigits,he as minorUnitMultiplier,Ti as regionLocale,xi as toMinor};
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};