@munchi_oy/core 2.19.0 → 2.20.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/generated/api.d.ts +30 -0
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +34 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import R from"axios";import ls from"axios";var m="http://localhost".replace(/\/+$/,"");var I=class{constructor(n,e=m,s=ls){this.basePath=e;this.axios=s;n&&(this.configuration=n,this.basePath=n.basePath||this.basePath)}configuration},ye=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var g="https://example.com",c=function(a,n,e){if(e==null)throw new ye(n,`Required parameter ${n} was null or undefined when calling ${a}.`)};var A=async function(a,n){if(n&&n.accessToken){let e=typeof n.accessToken=="function"?await n.accessToken():await n.accessToken;a.Authorization="Bearer "+e}};function Se(a,n,e=""){n!=null&&(typeof n=="object"?Array.isArray(n)?n.forEach(s=>Se(a,s,e)):Object.keys(n).forEach(s=>Se(a,n[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,n):a.set(e,n))}var y=function(a,...n){let e=new URLSearchParams(a.search);Se(e,n),a.search=e.toString()},b=function(a,n,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},h=function(a){return a.pathname+a.search+a.hash},P=function(a,n,e,s){return(t=n,r=e)=>{let o={...a.options,url:(s?.basePath||r)+a.url};return t.request(o)}};var Lr={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed",CashManagement:"cash-management"},Gr={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Nr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},_r={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Kr={Unavailable:"UNAVAILABLE"},Wr={Image:"image",Video:"video",Animation:"animation"},jr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Hr={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Qr={GiftCard:"GiftCard",MunchiGiftCard:"MunchiGiftCard",Epassi:"Epassi"},$r={Online:"ONLINE",Offline:"OFFLINE"},zr={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"},Yr={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Xr={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Zr={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Jr={Pos:"pos",Display:"display"},en={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"},tn={Pending:"pending",Success:"success",Failure:"failure"},sn={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},rn={Kiosk:"kiosk"},nn={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},on={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},an={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"},ln={ApiKey:"api_key",BasicAuth:"basic_auth",Oauth2:"oauth_2"},un={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"},dn={Insert:"INSERT",Update:"UPDATE",Delete:"DELETE"},cn={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},pn={Shipday:"shipday",UberDirect:"uber_direct"},mn={Create:"CREATE",Update:"UPDATE",Cancel:"CANCEL"},gn={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},yn={Created:"created",Reactivated:"reactivated",AlreadyActive:"already_active"},hn={Foodora:"Foodora",Bolt:"Bolt"},Pn={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Rn={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},An={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},bn={Item:"ITEM",Cart:"CART"},fn={Business:"BUSINESS",Owner:"OWNER"},xn={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Cn={Percentage:"PERCENTAGE",Fixed:"FIXED"},Dn={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Sn={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},On={Pdf:"pdf",Xlsx:"xlsx"},Vn={Till:"TILL",OnlineStore:"ONLINE_STORE",Kiosk:"KIOSK",MobileApp:"MOBILE_APP"},In={Card:"CARD",CardAgain:"CARD_AGAIN",Expiry30:"EXPIRY_30",Expiry7:"EXPIRY_7",BuyerReceipt:"BUYER_RECEIPT"},vn={Pending:"PENDING",Sent:"SENT",Failed:"FAILED",Skipped:"SKIPPED"},Tn={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},qn={Sold:"SOLD",CreatedByHand:"CREATED_BY_HAND",Spent:"SPENT",GivenBack:"GIVEN_BACK",Corrected:"CORRECTED",Blocked:"BLOCKED",Unblocked:"UNBLOCKED",SwitchedOn:"SWITCHED_ON",Emailed:"EMAILED",EmailFailed:"EMAIL_FAILED",EmailChanged:"EMAIL_CHANGED",Refunded:"REFUNDED",Scheduled:"SCHEDULED"},Un={TillSale:"TILL_SALE",OnlineSale:"ONLINE_SALE",ByHand:"BY_HAND"},En={En:"en",Fi:"fi"},kn={Blocked:"BLOCKED",NotYetValid:"NOT_YET_VALID",Expired:"EXPIRED",UsedUp:"USED_UP",Active:"ACTIVE"},Mn={Pending:"PENDING",Active:"ACTIVE"},Bn={IngredientsDefaultHeading:"INGREDIENTS_DEFAULT_HEADING"},wn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Fn={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"},Gn={Standard:"STANDARD",Broadcast:"BROADCAST"},Nn={Tablet:"TABLET",KioskStand:"KIOSK_STAND"},_n={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Kn={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Wn={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},jn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Hn={Table:"table",Indicator:"indicator"},Qn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},$n={Product:"product",Coupon:"coupon"},zn={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},Yn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Xn={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},Zn={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},Jn={Product:"product",Coupon:"coupon"},eo={Percentage:"percentage",Fixed:"fixed"},to={Manual:"manual",Automatic:"automatic"},so={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"},ro={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},no={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},oo={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},ao={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},io={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},lo={Reversal:"REVERSAL",Refund:"REFUND"},uo={NexiUnheard:"nexi unheard",NexiPaused:"nexi paused",ConfirmNotTaken:"confirm not taken",OrderNotWritten:"order not written"},co={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},po={Open:"OPEN",Instant:"INSTANT"},mo={Instant:"INSTANT",PreOrder:"PRE_ORDER"},go={None:"NONE",Partial:"PARTIAL",Full:"FULL"},yo={Platform:"PLATFORM",Pos:"POS"},ho={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Po={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"},Ro={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ao={DineIn:"dine_in",PickUp:"pick_up"},bo={Pos:"pos",Terminal:"terminal"},fo={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},xo={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Co={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},Do={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"},So={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"},Oo={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},Vo={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi",Nexi:"nexi"},Io={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi",Nexi:"nexi"},vo={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},To={Sale:"SALE",Refund:"REFUND",Void:"VOID"},qo={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"},Uo={Paid:"paid",Pending:"pending"},Eo={Business:"BUSINESS",Customer:"CUSTOMER"},ko={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Mo={Today:"today",Yesterday:"yesterday",ThisWeek:"thisWeek",LastWeek:"lastWeek",ThisMonth:"thisMonth",LastMonth:"lastMonth",ThisYear:"thisYear",CustomDays:"custom",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR",Custom:"CUSTOM"},Bo={Ready:"ready",Delivered:"delivered"},wo={NotFound:"NOT_FOUND",NotInProgress:"NOT_IN_PROGRESS",KitchenControlled:"KITCHEN_CONTROLLED",NotReady:"NOT_READY"},Fo={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Lo={Percentage:"percentage",Fixed:"fixed"},Go={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},No={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},_o={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"},Ko={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"},Wo={Screen:"screen",Action:"action",Visibility:"visibility"},jo={Waiting:"waiting",Confirm:"confirm"},Ho={Preset:"PRESET",Open:"OPEN"},Qo={Bluetooth:"bluetooth",Network:"network"},$o={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},zo={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Yo={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Xo={Modal:"MODAL",Screen:"SCREEN"},Zo={Percentage:"PERCENTAGE",Fixed:"FIXED"},Jo={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"},ea={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},ta={Kds:"KDS"},sa={Sales:"sales",ZReport:"zReport",SalesVat:"salesVat",Payments:"payments",ProductSales:"productSales",CashSessions:"cashSessions",Staff:"staff",Hours:"hours"},ra={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},na={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},oa={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"},aa={Full:"FULL",Item:"ITEM"},ia={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},la={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},ua={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},da={Pos:"pos",Kiosk:"kiosk",Storefront:"storefront",Mobile:"mobile"},ca={IsTheBaseline:"is_the_baseline",OtherCurrency:"other_currency"},pa={None:"none",Venue:"venue",App:"app",VenueApp:"venue_app"},ma={Daily:"daily",Weekly:"weekly",Monthly:"monthly",Off:"off"},ga={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"},ya={Fi:"fi",En:"en"},ha={EatIn:"eat_in",Takeaway:"takeaway",Delivery:"delivery",Unknown:"unknown"},Pa={Summary:"summary",Items:"items",Vat:"vat",Payments:"payments",Discounts:"discounts"},Ra={Making:"making",Sent:"sent",Failed:"failed"},Aa={Meal:"meal",Snack:"snack",Ingredients:"ingredients",GroceryBag:"grocery-bag",Dessert:"dessert",Flowers:"flowers",Fee:"fee",Wholesale:"wholesale",HomeCosmetics:"home-cosmetics"},ba={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},fa={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},xa={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"},Ca={Report:"report",Comparison:"comparison"},Da={Private:"private",Organisation:"organisation",Public:"public"},Sa={Physical:"PHYSICAL"},Oa={NoAriAccess:"NO_ARI_ACCESS",NotStoreOwner:"NOT_STORE_OWNER",RightsUnavailable:"RIGHTS_UNAVAILABLE"},Va={Open:"open",Closed:"closed"},Ia={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"},va={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"},Ta={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},qa={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Ua={OrderCreated:"ORDER_CREATED",OrderUpdated:"ORDER_UPDATED",ItemAdded:"ITEM_ADDED",ItemRemoved:"ITEM_REMOVED",ItemUpdated:"ITEM_UPDATED",DiscountApplied:"DISCOUNT_APPLIED",DiscountRemoved:"DISCOUNT_REMOVED",RefundInitiated:"REFUND_INITIATED",RefundProcessed:"REFUND_PROCESSED",RefundCanceled:"REFUND_CANCELED",PaymentProcessed:"PAYMENT_PROCESSED",OrderStatusUpdated:"ORDER_STATUS_UPDATED",InventoryUpdated:"INVENTORY_UPDATED",CashSessionOpened:"CASH_SESSION_OPENED",CashSessionClosed:"CASH_SESSION_CLOSED",CashManualAdd:"CASH_MANUAL_ADD",CashManualRemove:"CASH_MANUAL_REMOVE"},Ea={Kiosk:"KIOSK",Pos:"POS"},ka={Active:"ACTIVE",Inactive:"INACTIVE"},Ma={OnlineStore:"online_store",Kiosk:"kiosk",Kitchen:"kitchen",Loyalty:"loyalty",OrderStatus:"order_status",Reservation:"reservation",GiftCard:"gift_card",AriCalls:"ari_calls",AriOrders:"ari_orders"},Ba={Active:"active",Pending:"pending",None:"none"},wa={NoStation:"NO_STATION"},Fa={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},La={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},Ga={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Na={Network:"NETWORK"},_a={Viva:"viva",Nets:"nets",Worldline:"worldline",Nexi:"nexi"},Ka={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Wa={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ja={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Ha={Instant:"instant",Preorder:"preorder"},Qa={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},$a={Created:"created",Updated:"updated",Unchanged:"unchanged"},za={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Ya={_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"},Xa={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},Za={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},Ja={Active:"active",None:"none"},ei={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},ti={Success:"WPI_RESULT_SUCCESS",Failure:"WPI_RESULT_FAILURE"},si={Queued:"QUEUED",InProgress:"IN_PROGRESS",Completed:"COMPLETED",Failed:"FAILED",Cancelled:"CANCELLED"},ri={Pending:"PENDING",Completed:"COMPLETED",Failed:"FAILED"},ni={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},oi={Reversal:"REVERSAL",Refund:"REFUND"},us=function(a){return{checkActionPasscode:async(n,e,s,t={})=>{c("checkActionPasscode","businessId",n),c("checkActionPasscode","xPosPin",e),c("checkActionPasscode","checkActionPasscodeDto",s);let r="/api/v2/businesses/{businessId}/action-passcodes/check".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},zt=function(a){let n=us(a);return{async checkActionPasscode(e,s,t,r){let o=await n.checkActionPasscode(e,s,t,r);return P(o,R,m,a)}}},ai=function(a,n,e){let s=zt(a);return{checkActionPasscode(t,r,o,i){return s.checkActionPasscode(t,r,o,i).then(l=>l(e,n))}}},Le=class extends I{checkActionPasscode(n,e,s,t){return zt(this.configuration).checkActionPasscode(n,e,s,t).then(r=>r(this.axios,this.basePath))}},ds=function(a){return{getOrganisationAnalyticsDashboard:async(n,e={})=>{c("getOrganisationAnalyticsDashboard","groupId",n);let s="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getStoreAnalyticsDashboard:async(n,e={})=>{c("getStoreAnalyticsDashboard","businessId",n);let s="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},saveOrganisationAnalyticsDashboard:async(n,e,s={})=>{c("saveOrganisationAnalyticsDashboard","groupId",n),c("saveOrganisationAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},saveStoreAnalyticsDashboard:async(n,e,s={})=>{c("saveStoreAnalyticsDashboard","businessId",n),c("saveStoreAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},ie=function(a){let n=ds(a);return{async getOrganisationAnalyticsDashboard(e,s){let t=await n.getOrganisationAnalyticsDashboard(e,s);return P(t,R,m,a)},async getStoreAnalyticsDashboard(e,s){let t=await n.getStoreAnalyticsDashboard(e,s);return P(t,R,m,a)},async saveOrganisationAnalyticsDashboard(e,s,t){let r=await n.saveOrganisationAnalyticsDashboard(e,s,t);return P(r,R,m,a)},async saveStoreAnalyticsDashboard(e,s,t){let r=await n.saveStoreAnalyticsDashboard(e,s,t);return P(r,R,m,a)}}},ii=function(a,n,e){let s=ie(a);return{getOrganisationAnalyticsDashboard(t,r){return s.getOrganisationAnalyticsDashboard(t,r).then(o=>o(e,n))},getStoreAnalyticsDashboard(t,r){return s.getStoreAnalyticsDashboard(t,r).then(o=>o(e,n))},saveOrganisationAnalyticsDashboard(t,r,o){return s.saveOrganisationAnalyticsDashboard(t,r,o).then(i=>i(e,n))},saveStoreAnalyticsDashboard(t,r,o){return s.saveStoreAnalyticsDashboard(t,r,o).then(i=>i(e,n))}}},Ge=class extends I{getOrganisationAnalyticsDashboard(n,e){return ie(this.configuration).getOrganisationAnalyticsDashboard(n,e).then(s=>s(this.axios,this.basePath))}getStoreAnalyticsDashboard(n,e){return ie(this.configuration).getStoreAnalyticsDashboard(n,e).then(s=>s(this.axios,this.basePath))}saveOrganisationAnalyticsDashboard(n,e,s){return ie(this.configuration).saveOrganisationAnalyticsDashboard(n,e,s).then(t=>t(this.axios,this.basePath))}saveStoreAnalyticsDashboard(n,e,s){return ie(this.configuration).saveStoreAnalyticsDashboard(n,e,s).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{firebaseAuth:async(n={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},login:async(n,e={})=>{c("login","credentialDto",n);let s="/api/v1/auth/login",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},logout:async(n={})=>{let e="/api/v1/auth/logout",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},refreshToken:async(n,e={})=>{c("refreshToken","refreshTokenDto",n);let s="/api/v1/auth/refresh",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},le=function(a){let n=cs(a);return{async firebaseAuth(e){let s=await n.firebaseAuth(e);return P(s,R,m,a)},async login(e,s){let t=await n.login(e,s);return P(t,R,m,a)},async logout(e){let s=await n.logout(e);return P(s,R,m,a)},async refreshToken(e,s){let t=await n.refreshToken(e,s);return P(t,R,m,a)}}},li=function(a,n,e){let s=le(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(r=>r(e,n))},login(t,r){return s.login(t,r).then(o=>o(e,n))},logout(t){return s.logout(t).then(r=>r(e,n))},refreshToken(t,r){return s.refreshToken(t,r).then(o=>o(e,n))}}},Ne=class extends I{firebaseAuth(n){return le(this.configuration).firebaseAuth(n).then(e=>e(this.axios,this.basePath))}login(n,e){return le(this.configuration).login(n,e).then(s=>s(this.axios,this.basePath))}logout(n){return le(this.configuration).logout(n).then(e=>e(this.axios,this.basePath))}refreshToken(n,e){return le(this.configuration).refreshToken(n,e).then(s=>s(this.axios,this.basePath))}},ps=function(a){return{getAdvancedDiscounts:async(n,e={})=>{c("getAdvancedDiscounts","businessId",n);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getBusinessCategoriesByMenuIdV2:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",n),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getBusinessCategoriesByMenuIdV3:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",n),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getBusinessChannelConfigV2:async(n,e,s={})=>{c("getBusinessChannelConfigV2","businessId",n);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfig:async(n,e,s={})=>{c("getBusinessConfig","businessId",n);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfigById:async(n,e,s={})=>{c("getBusinessConfigById","businessId",n);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfigByIdV2:async(n,e,s={})=>{c("getBusinessConfigByIdV2","businessId",n);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV2:async(n,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",n),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV3:async(n,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",n),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV4:async(n,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",n),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessProviderStatus:async(n,e={})=>{c("getBusinessProviderStatus","businessId",n);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getBusinessTax:async(n,e={})=>{let s="/api/v1/business/tax",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getProvidersSupportedIntegrations:async(n,e={})=>{c("getProvidersSupportedIntegrations","businessIds",n);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n&&(l.businessIds=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getSingleBusinessProviderStatus:async(n,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",n),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(n))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getVenueCurrency:async(n,e={})=>{c("getVenueCurrency","businessId",n);let s="/api/v1/business/{businessId}/currency".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},setBusinessStatus:async(n,e,s={})=>{c("setBusinessStatus","businessId",n),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},setBusinessStatusSchedule:async(n,e,s={})=>{c("setBusinessStatusSchedule","businessId",n),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},k=function(a){let n=ps(a);return{async getAdvancedDiscounts(e,s){let t=await n.getAdvancedDiscounts(e,s);return P(t,R,m,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV2(e,s,t);return P(r,R,m,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV3(e,s,t);return P(r,R,m,a)},async getBusinessChannelConfigV2(e,s,t){let r=await n.getBusinessChannelConfigV2(e,s,t);return P(r,R,m,a)},async getBusinessConfig(e,s,t){let r=await n.getBusinessConfig(e,s,t);return P(r,R,m,a)},async getBusinessConfigById(e,s,t){let r=await n.getBusinessConfigById(e,s,t);return P(r,R,m,a)},async getBusinessConfigByIdV2(e,s,t){let r=await n.getBusinessConfigByIdV2(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV2(e,s,t){let r=await n.getBusinessMenuByTypeV2(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV3(e,s,t){let r=await n.getBusinessMenuByTypeV3(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV4(e,s,t){let r=await n.getBusinessMenuByTypeV4(e,s,t);return P(r,R,m,a)},async getBusinessProviderStatus(e,s){let t=await n.getBusinessProviderStatus(e,s);return P(t,R,m,a)},async getBusinessTax(e,s){let t=await n.getBusinessTax(e,s);return P(t,R,m,a)},async getProvidersSupportedIntegrations(e,s){let t=await n.getProvidersSupportedIntegrations(e,s);return P(t,R,m,a)},async getSingleBusinessProviderStatus(e,s,t,r){let o=await n.getSingleBusinessProviderStatus(e,s,t,r);return P(o,R,m,a)},async getVenueCurrency(e,s){let t=await n.getVenueCurrency(e,s);return P(t,R,m,a)},async setBusinessStatus(e,s,t){let r=await n.setBusinessStatus(e,s,t);return P(r,R,m,a)},async setBusinessStatusSchedule(e,s,t){let r=await n.setBusinessStatusSchedule(e,s,t);return P(r,R,m,a)}}},ui=function(a,n,e){let s=k(a);return{getAdvancedDiscounts(t,r){return s.getAdvancedDiscounts(t,r).then(o=>o(e,n))},getBusinessCategoriesByMenuIdV2(t,r,o){return s.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,n))},getBusinessCategoriesByMenuIdV3(t,r,o){return s.getBusinessCategoriesByMenuIdV3(t,r,o).then(i=>i(e,n))},getBusinessChannelConfigV2(t,r,o){return s.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,n))},getBusinessConfig(t,r,o){return s.getBusinessConfig(t,r,o).then(i=>i(e,n))},getBusinessConfigById(t,r,o){return s.getBusinessConfigById(t,r,o).then(i=>i(e,n))},getBusinessConfigByIdV2(t,r,o){return s.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV2(t,r,o){return s.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV3(t,r,o){return s.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV4(t,r,o){return s.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,n))},getBusinessProviderStatus(t,r){return s.getBusinessProviderStatus(t,r).then(o=>o(e,n))},getBusinessTax(t,r){return s.getBusinessTax(t,r).then(o=>o(e,n))},getProvidersSupportedIntegrations(t,r){return s.getProvidersSupportedIntegrations(t,r).then(o=>o(e,n))},getSingleBusinessProviderStatus(t,r,o,i){return s.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,n))},getVenueCurrency(t,r){return s.getVenueCurrency(t,r).then(o=>o(e,n))},setBusinessStatus(t,r,o){return s.setBusinessStatus(t,r,o).then(i=>i(e,n))},setBusinessStatusSchedule(t,r,o){return s.setBusinessStatusSchedule(t,r,o).then(i=>i(e,n))}}},_e=class extends I{getAdvancedDiscounts(n,e){return k(this.configuration).getAdvancedDiscounts(n,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(n,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(n,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(n,e,s){return k(this.configuration).getBusinessChannelConfigV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(n,e,s){return k(this.configuration).getBusinessConfig(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(n,e,s){return k(this.configuration).getBusinessConfigById(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(n,e,s){return k(this.configuration).getBusinessConfigByIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(n,e,s){return k(this.configuration).getBusinessMenuByTypeV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(n,e,s){return k(this.configuration).getBusinessMenuByTypeV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(n,e,s){return k(this.configuration).getBusinessMenuByTypeV4(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(n,e){return k(this.configuration).getBusinessProviderStatus(n,e).then(s=>s(this.axios,this.basePath))}getBusinessTax(n,e){return k(this.configuration).getBusinessTax(n,e).then(s=>s(this.axios,this.basePath))}getProvidersSupportedIntegrations(n,e){return k(this.configuration).getProvidersSupportedIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(n,e,s,t){return k(this.configuration).getSingleBusinessProviderStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueCurrency(n,e){return k(this.configuration).getVenueCurrency(n,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(n,e,s){return k(this.configuration).setBusinessStatus(n,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(n,e,s){return k(this.configuration).setBusinessStatusSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},ms=function(a){return{upsertSchedule:async(n,e,s={})=>{c("upsertSchedule","businessId",n),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Yt=function(a){let n=ms(a);return{async upsertSchedule(e,s,t){let r=await n.upsertSchedule(e,s,t);return P(r,R,m,a)}}},di=function(a,n,e){let s=Yt(a);return{upsertSchedule(t,r,o){return s.upsertSchedule(t,r,o).then(i=>i(e,n))}}},Ke=class extends I{upsertSchedule(n,e,s){return Yt(this.configuration).upsertSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},gs=function(a){return{create:async(n,e,s={})=>{c("create","businessId",n),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getCashLogs:async(n,e,s,t,r,o,i,l={})=>{c("getCashLogs","businessId",n);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r!==void 0&&(x.page=r),o!==void 0&&(x.rowPerPage=o),i!==void 0&&(x.timezone=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getCashSession:async(n,e={})=>{c("getCashSession","businessId",n);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getSessionReport:async(n,e,s={})=>{c("getSessionReport","businessId",n),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},recordCashLog:async(n,e,s={})=>{c("recordCashLog","businessId",n),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},sendSessionReport:async(n,e,s,t,r={})=>{c("sendSessionReport","businessId",n),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let o="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};await A(d,a),t!=null&&(d["x-app-x"]=String(t)),d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(s,u,a),{url:h(i),options:u}}}},ee=function(a){let n=gs(a);return{async create(e,s,t){let r=await n.create(e,s,t);return P(r,R,m,a)},async getCashLogs(e,s,t,r,o,i,l,u){let d=await n.getCashLogs(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getCashSession(e,s){let t=await n.getCashSession(e,s);return P(t,R,m,a)},async getSessionReport(e,s,t){let r=await n.getSessionReport(e,s,t);return P(r,R,m,a)},async recordCashLog(e,s,t){let r=await n.recordCashLog(e,s,t);return P(r,R,m,a)},async sendSessionReport(e,s,t,r,o){let i=await n.sendSessionReport(e,s,t,r,o);return P(i,R,m,a)}}},ci=function(a,n,e){let s=ee(a);return{create(t,r,o){return s.create(t,r,o).then(i=>i(e,n))},getCashLogs(t,r,o,i,l,u,d,p){return s.getCashLogs(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getCashSession(t,r){return s.getCashSession(t,r).then(o=>o(e,n))},getSessionReport(t,r,o){return s.getSessionReport(t,r,o).then(i=>i(e,n))},recordCashLog(t,r,o){return s.recordCashLog(t,r,o).then(i=>i(e,n))},sendSessionReport(t,r,o,i,l){return s.sendSessionReport(t,r,o,i,l).then(u=>u(e,n))}}},We=class extends I{create(n,e,s){return ee(this.configuration).create(n,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(n,e,s,t,r,o,i,l){return ee(this.configuration).getCashLogs(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(n,e){return ee(this.configuration).getCashSession(n,e).then(s=>s(this.axios,this.basePath))}getSessionReport(n,e,s){return ee(this.configuration).getSessionReport(n,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(n,e,s){return ee(this.configuration).recordCashLog(n,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(n,e,s,t,r){return ee(this.configuration).sendSessionReport(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},ys=function(a){return{listCashLogsForTill:async(n,e,s,t,r,o,i,l={})=>{c("listCashLogsForTill","businessId",n);let u="/api/v6/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r!==void 0&&(x.page=r),o!==void 0&&(x.rowPerPage=o),i!==void 0&&(x.timezone=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}}}},Xt=function(a){let n=ys(a);return{async listCashLogsForTill(e,s,t,r,o,i,l,u){let d=await n.listCashLogsForTill(e,s,t,r,o,i,l,u);return P(d,R,m,a)}}},pi=function(a,n,e){let s=Xt(a);return{listCashLogsForTill(t,r,o,i,l,u,d,p){return s.listCashLogsForTill(t,r,o,i,l,u,d,p).then(f=>f(e,n))}}},je=class extends I{listCashLogsForTill(n,e,s,t,r,o,i,l){return Xt(this.configuration).listCashLogsForTill(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},hs=function(a){return{openCashSession:async(n,e,s={})=>{c("openCashSession","businessId",n),c("openCashSession","openCashSessionDto",e);let t="/api/v2/cash-management/{businessId}/sessions".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Zt=function(a){let n=hs(a);return{async openCashSession(e,s,t){let r=await n.openCashSession(e,s,t);return P(r,R,m,a)}}},mi=function(a,n,e){let s=Zt(a);return{openCashSession(t,r,o){return s.openCashSession(t,r,o).then(i=>i(e,n))}}},He=class extends I{openCashSession(n,e,s){return Zt(this.configuration).openCashSession(n,e,s).then(t=>t(this.axios,this.basePath))}},Ps=function(a){return{getChannelCatalog:async(n,e,s,t={})=>{c("getChannelCatalog","businessId",n),c("getChannelCatalog","channelType",e);let r="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),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 p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getChannelMenu:async(n,e,s,t={})=>{c("getChannelMenu","businessId",n),c("getChannelMenu","channelType",e);let r="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),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 p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getChannelMenuTimes:async(n,e,s={})=>{c("getChannelMenuTimes","businessId",n),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},he=function(a){let n=Ps(a);return{async getChannelCatalog(e,s,t,r){let o=await n.getChannelCatalog(e,s,t,r);return P(o,R,m,a)},async getChannelMenu(e,s,t,r){let o=await n.getChannelMenu(e,s,t,r);return P(o,R,m,a)},async getChannelMenuTimes(e,s,t){let r=await n.getChannelMenuTimes(e,s,t);return P(r,R,m,a)}}},gi=function(a,n,e){let s=he(a);return{getChannelCatalog(t,r,o,i){return s.getChannelCatalog(t,r,o,i).then(l=>l(e,n))},getChannelMenu(t,r,o,i){return s.getChannelMenu(t,r,o,i).then(l=>l(e,n))},getChannelMenuTimes(t,r,o){return s.getChannelMenuTimes(t,r,o).then(i=>i(e,n))}}},Qe=class extends I{getChannelCatalog(n,e,s,t){return he(this.configuration).getChannelCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(n,e,s,t){return he(this.configuration).getChannelMenu(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(n,e,s){return he(this.configuration).getChannelMenuTimes(n,e,s).then(t=>t(this.axios,this.basePath))}},Rs=function(a){return{configConfigureMunchiGiftCard:async(n,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",n),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configGetProviders:async(n,e,s={})=>{c("configGetProviders","businessId",n),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!=null&&(l["x-app-x"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},configManualSync:async(n,e,s={})=>{c("configManualSync","businessId",n),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configRemovePaymentOption:async(n,e,s,t={})=>{c("configRemovePaymentOption","businessId",n),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await A(u,a),s!=null&&(u["x-app-x"]=String(s)),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},configSaveEpassiCredentials:async(n,e,s,t,r={})=>{c("configSaveEpassiCredentials","businessId",n),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(n))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};await A(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,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},configUpsertBusiness:async(n,e,s={})=>{c("configUpsertBusiness","businessId",n),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configUpsertChannelConfig:async(n,e,s,t={})=>{c("configUpsertChannelConfig","businessId",n),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertGiftCard:async(n,e,s,t={})=>{c("configUpsertGiftCard","businessId",n),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertLoyalty:async(n,e,s={})=>{c("configUpsertLoyalty","businessId",n),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configUpsertNets:async(n,e,s,t={})=>{c("configUpsertNets","businessId",n),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertNexi:async(n,e,s,t={})=>{c("configUpsertNexi","businessId",n),c("configUpsertNexi","xAppX",e),c("configUpsertNexi","upsertNexiDto",s);let r="/api/v1/config-management/business/{businessId}/config/nexi".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertPaymentOptions:async(n,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",n),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertProviders:async(n,e,s,t={})=>{c("configUpsertProviders","businessId",n),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let r="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertStripe:async(n,e,s,t={})=>{c("configUpsertStripe","businessId",n),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertViva:async(n,e,s,t={})=>{c("configUpsertViva","businessId",n),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertWorldline:async(n,e,s,t={})=>{c("configUpsertWorldline","businessId",n),c("configUpsertWorldline","xAppX",e),c("configUpsertWorldline","upsertWorldlineDto",s);let r="/api/v1/config-management/business/{businessId}/config/worldline".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},M=function(a){let n=Rs(a);return{async configConfigureMunchiGiftCard(e,s,t,r){let o=await n.configConfigureMunchiGiftCard(e,s,t,r);return P(o,R,m,a)},async configGetProviders(e,s,t){let r=await n.configGetProviders(e,s,t);return P(r,R,m,a)},async configManualSync(e,s,t){let r=await n.configManualSync(e,s,t);return P(r,R,m,a)},async configRemovePaymentOption(e,s,t,r){let o=await n.configRemovePaymentOption(e,s,t,r);return P(o,R,m,a)},async configSaveEpassiCredentials(e,s,t,r,o){let i=await n.configSaveEpassiCredentials(e,s,t,r,o);return P(i,R,m,a)},async configUpsertBusiness(e,s,t){let r=await n.configUpsertBusiness(e,s,t);return P(r,R,m,a)},async configUpsertChannelConfig(e,s,t,r){let o=await n.configUpsertChannelConfig(e,s,t,r);return P(o,R,m,a)},async configUpsertGiftCard(e,s,t,r){let o=await n.configUpsertGiftCard(e,s,t,r);return P(o,R,m,a)},async configUpsertLoyalty(e,s,t){let r=await n.configUpsertLoyalty(e,s,t);return P(r,R,m,a)},async configUpsertNets(e,s,t,r){let o=await n.configUpsertNets(e,s,t,r);return P(o,R,m,a)},async configUpsertNexi(e,s,t,r){let o=await n.configUpsertNexi(e,s,t,r);return P(o,R,m,a)},async configUpsertPaymentOptions(e,s,t,r){let o=await n.configUpsertPaymentOptions(e,s,t,r);return P(o,R,m,a)},async configUpsertProviders(e,s,t,r){let o=await n.configUpsertProviders(e,s,t,r);return P(o,R,m,a)},async configUpsertStripe(e,s,t,r){let o=await n.configUpsertStripe(e,s,t,r);return P(o,R,m,a)},async configUpsertViva(e,s,t,r){let o=await n.configUpsertViva(e,s,t,r);return P(o,R,m,a)},async configUpsertWorldline(e,s,t,r){let o=await n.configUpsertWorldline(e,s,t,r);return P(o,R,m,a)}}},yi=function(a,n,e){let s=M(a);return{configConfigureMunchiGiftCard(t,r,o,i){return s.configConfigureMunchiGiftCard(t,r,o,i).then(l=>l(e,n))},configGetProviders(t,r,o){return s.configGetProviders(t,r,o).then(i=>i(e,n))},configManualSync(t,r,o){return s.configManualSync(t,r,o).then(i=>i(e,n))},configRemovePaymentOption(t,r,o,i){return s.configRemovePaymentOption(t,r,o,i).then(l=>l(e,n))},configSaveEpassiCredentials(t,r,o,i,l){return s.configSaveEpassiCredentials(t,r,o,i,l).then(u=>u(e,n))},configUpsertBusiness(t,r,o){return s.configUpsertBusiness(t,r,o).then(i=>i(e,n))},configUpsertChannelConfig(t,r,o,i){return s.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,n))},configUpsertGiftCard(t,r,o,i){return s.configUpsertGiftCard(t,r,o,i).then(l=>l(e,n))},configUpsertLoyalty(t,r,o){return s.configUpsertLoyalty(t,r,o).then(i=>i(e,n))},configUpsertNets(t,r,o,i){return s.configUpsertNets(t,r,o,i).then(l=>l(e,n))},configUpsertNexi(t,r,o,i){return s.configUpsertNexi(t,r,o,i).then(l=>l(e,n))},configUpsertPaymentOptions(t,r,o,i){return s.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,n))},configUpsertProviders(t,r,o,i){return s.configUpsertProviders(t,r,o,i).then(l=>l(e,n))},configUpsertStripe(t,r,o,i){return s.configUpsertStripe(t,r,o,i).then(l=>l(e,n))},configUpsertViva(t,r,o,i){return s.configUpsertViva(t,r,o,i).then(l=>l(e,n))},configUpsertWorldline(t,r,o,i){return s.configUpsertWorldline(t,r,o,i).then(l=>l(e,n))}}},$e=class extends I{configConfigureMunchiGiftCard(n,e,s,t){return M(this.configuration).configConfigureMunchiGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configGetProviders(n,e,s){return M(this.configuration).configGetProviders(n,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(n,e,s){return M(this.configuration).configManualSync(n,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(n,e,s,t){return M(this.configuration).configRemovePaymentOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}configSaveEpassiCredentials(n,e,s,t,r){return M(this.configuration).configSaveEpassiCredentials(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}configUpsertBusiness(n,e,s){return M(this.configuration).configUpsertBusiness(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(n,e,s,t){return M(this.configuration).configUpsertChannelConfig(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(n,e,s,t){return M(this.configuration).configUpsertGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(n,e,s){return M(this.configuration).configUpsertLoyalty(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(n,e,s,t){return M(this.configuration).configUpsertNets(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertNexi(n,e,s,t){return M(this.configuration).configUpsertNexi(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(n,e,s,t){return M(this.configuration).configUpsertPaymentOptions(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertProviders(n,e,s,t){return M(this.configuration).configUpsertProviders(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(n,e,s,t){return M(this.configuration).configUpsertStripe(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(n,e,s,t){return M(this.configuration).configUpsertViva(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertWorldline(n,e,s,t){return M(this.configuration).configUpsertWorldline(n,e,s,t).then(r=>r(this.axios,this.basePath))}},As=function(a){return{checkCoupon:async(n,e,s={})=>{c("checkCoupon","businessId",n),c("checkCoupon","checkCouponDto",e);let t="/api/v2/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},checkKioskCoupon:async(n,e,s={})=>{c("checkKioskCoupon","businessId",n),c("checkKioskCoupon","checkCouponDto",e);let t="/api/v2/kiosk/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Oe=function(a){let n=As(a);return{async checkCoupon(e,s,t){let r=await n.checkCoupon(e,s,t);return P(r,R,m,a)},async checkKioskCoupon(e,s,t){let r=await n.checkKioskCoupon(e,s,t);return P(r,R,m,a)}}},hi=function(a,n,e){let s=Oe(a);return{checkCoupon(t,r,o){return s.checkCoupon(t,r,o).then(i=>i(e,n))},checkKioskCoupon(t,r,o){return s.checkKioskCoupon(t,r,o).then(i=>i(e,n))}}},ze=class extends I{checkCoupon(n,e,s){return Oe(this.configuration).checkCoupon(n,e,s).then(t=>t(this.axios,this.basePath))}checkKioskCoupon(n,e,s){return Oe(this.configuration).checkKioskCoupon(n,e,s).then(t=>t(this.axios,this.basePath))}},bs=function(a){return{getCourseConfig:async(n,e={})=>{c("getCourseConfig","businessId",n);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getCourses:async(n,e={})=>{c("getCourses","businessId",n);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}}}},Ve=function(a){let n=bs(a);return{async getCourseConfig(e,s){let t=await n.getCourseConfig(e,s);return P(t,R,m,a)},async getCourses(e,s){let t=await n.getCourses(e,s);return P(t,R,m,a)}}},Pi=function(a,n,e){let s=Ve(a);return{getCourseConfig(t,r){return s.getCourseConfig(t,r).then(o=>o(e,n))},getCourses(t,r){return s.getCourses(t,r).then(o=>o(e,n))}}},Ye=class extends I{getCourseConfig(n,e){return Ve(this.configuration).getCourseConfig(n,e).then(s=>s(this.axios,this.basePath))}getCourses(n,e){return Ve(this.configuration).getCourses(n,e).then(s=>s(this.axios,this.basePath))}},fs=function(a){return{findIntent:async(n,e={})=>{c("findIntent","intentId",n);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},updateIntent:async(n,e,s={})=>{c("updateIntent","intentId",n),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Ie=function(a){let n=fs(a);return{async findIntent(e,s){let t=await n.findIntent(e,s);return P(t,R,m,a)},async updateIntent(e,s,t){let r=await n.updateIntent(e,s,t);return P(r,R,m,a)}}},Ri=function(a,n,e){let s=Ie(a);return{findIntent(t,r){return s.findIntent(t,r).then(o=>o(e,n))},updateIntent(t,r,o){return s.updateIntent(t,r,o).then(i=>i(e,n))}}},Xe=class extends I{findIntent(n,e){return Ie(this.configuration).findIntent(n,e).then(s=>s(this.axios,this.basePath))}updateIntent(n,e,s){return Ie(this.configuration).updateIntent(n,e,s).then(t=>t(this.axios,this.basePath))}},xs=function(a){return{init:async(n,e={})=>{let s="/api/v1/display/init",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pair:async(n,e={})=>{c("pair","pairDisplayBodyDto",n);let s="/api/v1/display/pair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},sessionToken:async(n,e={})=>{c("sessionToken","requestSessionTokenBodyDto",n);let s="/api/v1/display/session-token",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},unpair:async(n,e={})=>{c("unpair","unpairDisplayBodyDto",n);let s="/api/v1/display/unpair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ue=function(a){let n=xs(a);return{async init(e,s){let t=await n.init(e,s);return P(t,R,m,a)},async pair(e,s){let t=await n.pair(e,s);return P(t,R,m,a)},async sessionToken(e,s){let t=await n.sessionToken(e,s);return P(t,R,m,a)},async unpair(e,s){let t=await n.unpair(e,s);return P(t,R,m,a)}}},Ai=function(a,n,e){let s=ue(a);return{init(t,r){return s.init(t,r).then(o=>o(e,n))},pair(t,r){return s.pair(t,r).then(o=>o(e,n))},sessionToken(t,r){return s.sessionToken(t,r).then(o=>o(e,n))},unpair(t,r){return s.unpair(t,r).then(o=>o(e,n))}}},Ze=class extends I{init(n,e){return ue(this.configuration).init(n,e).then(s=>s(this.axios,this.basePath))}pair(n,e){return ue(this.configuration).pair(n,e).then(s=>s(this.axios,this.basePath))}sessionToken(n,e){return ue(this.configuration).sessionToken(n,e).then(s=>s(this.axios,this.basePath))}unpair(n,e){return ue(this.configuration).unpair(n,e).then(s=>s(this.axios,this.basePath))}},Cs=function(a){return{addEmployeeRole:async(n,e,s={})=>{c("addEmployeeRole","businessId",n),c("addEmployeeRole","addEmployeeRoleDto",e);let t="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},addStarterEmployeeRoles:async(n,e={})=>{c("addStarterEmployeeRoles","businessId",n);let s="/api/v2/businesses/{businessId}/employee-roles/starter".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},changeEmployeeRole:async(n,e,s,t={})=>{c("changeEmployeeRole","businessId",n),c("changeEmployeeRole","roleId",e),c("changeEmployeeRole","changeEmployeeRoleDto",s);let r="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{roleId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},listEmployeeRoles:async(n,e={})=>{c("listEmployeeRoles","businessId",n);let s="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},removeEmployeeRole:async(n,e,s={})=>{c("removeEmployeeRole","businessId",n),c("removeEmployeeRole","roleId",e);let t="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{roleId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},re=function(a){let n=Cs(a);return{async addEmployeeRole(e,s,t){let r=await n.addEmployeeRole(e,s,t);return P(r,R,m,a)},async addStarterEmployeeRoles(e,s){let t=await n.addStarterEmployeeRoles(e,s);return P(t,R,m,a)},async changeEmployeeRole(e,s,t,r){let o=await n.changeEmployeeRole(e,s,t,r);return P(o,R,m,a)},async listEmployeeRoles(e,s){let t=await n.listEmployeeRoles(e,s);return P(t,R,m,a)},async removeEmployeeRole(e,s,t){let r=await n.removeEmployeeRole(e,s,t);return P(r,R,m,a)}}},bi=function(a,n,e){let s=re(a);return{addEmployeeRole(t,r,o){return s.addEmployeeRole(t,r,o).then(i=>i(e,n))},addStarterEmployeeRoles(t,r){return s.addStarterEmployeeRoles(t,r).then(o=>o(e,n))},changeEmployeeRole(t,r,o,i){return s.changeEmployeeRole(t,r,o,i).then(l=>l(e,n))},listEmployeeRoles(t,r){return s.listEmployeeRoles(t,r).then(o=>o(e,n))},removeEmployeeRole(t,r,o){return s.removeEmployeeRole(t,r,o).then(i=>i(e,n))}}},Je=class extends I{addEmployeeRole(n,e,s){return re(this.configuration).addEmployeeRole(n,e,s).then(t=>t(this.axios,this.basePath))}addStarterEmployeeRoles(n,e){return re(this.configuration).addStarterEmployeeRoles(n,e).then(s=>s(this.axios,this.basePath))}changeEmployeeRole(n,e,s,t){return re(this.configuration).changeEmployeeRole(n,e,s,t).then(r=>r(this.axios,this.basePath))}listEmployeeRoles(n,e){return re(this.configuration).listEmployeeRoles(n,e).then(s=>s(this.axios,this.basePath))}removeEmployeeRole(n,e,s){return re(this.configuration).removeEmployeeRole(n,e,s).then(t=>t(this.axios,this.basePath))}},Ds=function(a){return{addEmployee:async(n,e,s={})=>{c("addEmployee","businessId",n),c("addEmployee","addEmployeeDto",e);let t="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},changeEmployee:async(n,e,s,t={})=>{c("changeEmployee","businessId",n),c("changeEmployee","employeeId",e),c("changeEmployee","changeEmployeeDto",s);let r="/api/v2/businesses/{businessId}/employees/{employeeId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{employeeId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},listEmployees:async(n,e,s,t={})=>{c("listEmployees","businessId",n);let r="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.cursor=e),s!==void 0&&(d.limit=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},removeEmployeeFromVenue:async(n,e,s={})=>{c("removeEmployeeFromVenue","businessId",n),c("removeEmployeeFromVenue","employeeId",e);let t="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(n))).replace("{employeeId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},setEmployeeRole:async(n,e,s,t={})=>{c("setEmployeeRole","businessId",n),c("setEmployeeRole","employeeId",e),c("setEmployeeRole","setEmployeeRoleDto",s);let r="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(n))).replace("{employeeId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},ne=function(a){let n=Ds(a);return{async addEmployee(e,s,t){let r=await n.addEmployee(e,s,t);return P(r,R,m,a)},async changeEmployee(e,s,t,r){let o=await n.changeEmployee(e,s,t,r);return P(o,R,m,a)},async listEmployees(e,s,t,r){let o=await n.listEmployees(e,s,t,r);return P(o,R,m,a)},async removeEmployeeFromVenue(e,s,t){let r=await n.removeEmployeeFromVenue(e,s,t);return P(r,R,m,a)},async setEmployeeRole(e,s,t,r){let o=await n.setEmployeeRole(e,s,t,r);return P(o,R,m,a)}}},fi=function(a,n,e){let s=ne(a);return{addEmployee(t,r,o){return s.addEmployee(t,r,o).then(i=>i(e,n))},changeEmployee(t,r,o,i){return s.changeEmployee(t,r,o,i).then(l=>l(e,n))},listEmployees(t,r,o,i){return s.listEmployees(t,r,o,i).then(l=>l(e,n))},removeEmployeeFromVenue(t,r,o){return s.removeEmployeeFromVenue(t,r,o).then(i=>i(e,n))},setEmployeeRole(t,r,o,i){return s.setEmployeeRole(t,r,o,i).then(l=>l(e,n))}}},et=class extends I{addEmployee(n,e,s){return ne(this.configuration).addEmployee(n,e,s).then(t=>t(this.axios,this.basePath))}changeEmployee(n,e,s,t){return ne(this.configuration).changeEmployee(n,e,s,t).then(r=>r(this.axios,this.basePath))}listEmployees(n,e,s,t){return ne(this.configuration).listEmployees(n,e,s,t).then(r=>r(this.axios,this.basePath))}removeEmployeeFromVenue(n,e,s){return ne(this.configuration).removeEmployeeFromVenue(n,e,s).then(t=>t(this.axios,this.basePath))}setEmployeeRole(n,e,s,t){return ne(this.configuration).setEmployeeRole(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Ss=function(a){return{createDiningTable:async(n,e={})=>{c("createDiningTable","createDiningTableDto",n);let s="/api/v1/floor-plan/tables",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createFloorSection:async(n,e={})=>{c("createFloorSection","createFloorSectionDto",n);let s="/api/v1/floor-plan/sections",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deleteDiningTable:async(n,e,s={})=>{c("deleteDiningTable","id",n),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},deleteFloorSection:async(n,e,s={})=>{c("deleteFloorSection","id",n),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},dissolveTableGroup:async(n,e,s={})=>{c("dissolveTableGroup","id",n),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getFloorPlan:async(n,e={})=>{c("getFloorPlan","businessId",n);let s="/api/v1/floor-plan",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},joinTables:async(n,e,s={})=>{c("joinTables","businessId",n),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},removeTableFromGroup:async(n,e,s={})=>{c("removeTableFromGroup","id",n),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},transferTable:async(n,e,s,t={})=>{c("transferTable","id",n),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let r="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateDiningTable:async(n,e,s,t={})=>{c("updateDiningTable","id",n),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let r="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateFloorSection:async(n,e,s,t={})=>{c("updateFloorSection","id",n),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let r="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateTablePosition:async(n,e,s,t={})=>{c("updateTablePosition","id",n),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let r="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateTableStatus:async(n,e,s,t={})=>{c("updateTableStatus","id",n),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let r="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},F=function(a){let n=Ss(a);return{async createDiningTable(e,s){let t=await n.createDiningTable(e,s);return P(t,R,m,a)},async createFloorSection(e,s){let t=await n.createFloorSection(e,s);return P(t,R,m,a)},async deleteDiningTable(e,s,t){let r=await n.deleteDiningTable(e,s,t);return P(r,R,m,a)},async deleteFloorSection(e,s,t){let r=await n.deleteFloorSection(e,s,t);return P(r,R,m,a)},async dissolveTableGroup(e,s,t){let r=await n.dissolveTableGroup(e,s,t);return P(r,R,m,a)},async getFloorPlan(e,s){let t=await n.getFloorPlan(e,s);return P(t,R,m,a)},async joinTables(e,s,t){let r=await n.joinTables(e,s,t);return P(r,R,m,a)},async removeTableFromGroup(e,s,t){let r=await n.removeTableFromGroup(e,s,t);return P(r,R,m,a)},async transferTable(e,s,t,r){let o=await n.transferTable(e,s,t,r);return P(o,R,m,a)},async updateDiningTable(e,s,t,r){let o=await n.updateDiningTable(e,s,t,r);return P(o,R,m,a)},async updateFloorSection(e,s,t,r){let o=await n.updateFloorSection(e,s,t,r);return P(o,R,m,a)},async updateTablePosition(e,s,t,r){let o=await n.updateTablePosition(e,s,t,r);return P(o,R,m,a)},async updateTableStatus(e,s,t,r){let o=await n.updateTableStatus(e,s,t,r);return P(o,R,m,a)}}},xi=function(a,n,e){let s=F(a);return{createDiningTable(t,r){return s.createDiningTable(t,r).then(o=>o(e,n))},createFloorSection(t,r){return s.createFloorSection(t,r).then(o=>o(e,n))},deleteDiningTable(t,r,o){return s.deleteDiningTable(t,r,o).then(i=>i(e,n))},deleteFloorSection(t,r,o){return s.deleteFloorSection(t,r,o).then(i=>i(e,n))},dissolveTableGroup(t,r,o){return s.dissolveTableGroup(t,r,o).then(i=>i(e,n))},getFloorPlan(t,r){return s.getFloorPlan(t,r).then(o=>o(e,n))},joinTables(t,r,o){return s.joinTables(t,r,o).then(i=>i(e,n))},removeTableFromGroup(t,r,o){return s.removeTableFromGroup(t,r,o).then(i=>i(e,n))},transferTable(t,r,o,i){return s.transferTable(t,r,o,i).then(l=>l(e,n))},updateDiningTable(t,r,o,i){return s.updateDiningTable(t,r,o,i).then(l=>l(e,n))},updateFloorSection(t,r,o,i){return s.updateFloorSection(t,r,o,i).then(l=>l(e,n))},updateTablePosition(t,r,o,i){return s.updateTablePosition(t,r,o,i).then(l=>l(e,n))},updateTableStatus(t,r,o,i){return s.updateTableStatus(t,r,o,i).then(l=>l(e,n))}}},tt=class extends I{createDiningTable(n,e){return F(this.configuration).createDiningTable(n,e).then(s=>s(this.axios,this.basePath))}createFloorSection(n,e){return F(this.configuration).createFloorSection(n,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(n,e,s){return F(this.configuration).deleteDiningTable(n,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(n,e,s){return F(this.configuration).deleteFloorSection(n,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(n,e,s){return F(this.configuration).dissolveTableGroup(n,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(n,e){return F(this.configuration).getFloorPlan(n,e).then(s=>s(this.axios,this.basePath))}joinTables(n,e,s){return F(this.configuration).joinTables(n,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(n,e,s){return F(this.configuration).removeTableFromGroup(n,e,s).then(t=>t(this.axios,this.basePath))}transferTable(n,e,s,t){return F(this.configuration).transferTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateDiningTable(n,e,s,t){return F(this.configuration).updateDiningTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateFloorSection(n,e,s,t){return F(this.configuration).updateFloorSection(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTablePosition(n,e,s,t){return F(this.configuration).updateTablePosition(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTableStatus(n,e,s,t){return F(this.configuration).updateTableStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Os=function(a){return{activateVenueGiftCard:async(n,e,s={})=>{c("activateVenueGiftCard","businessId",n),c("activateVenueGiftCard","cardId",e);let t="/api/v2/venues/{businessId}/gift-cards/{cardId}/activate".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},blockVenueGiftCard:async(n,e,s,t={})=>{c("blockVenueGiftCard","businessId",n),c("blockVenueGiftCard","cardId",e),c("blockVenueGiftCard","blockVenueGiftCardDto",s);let r="/api/v2/venues/{businessId}/gift-cards/{cardId}/block".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},createVenueGiftCard:async(n,e,s,t={})=>{c("createVenueGiftCard","businessId",n),c("createVenueGiftCard","createVenueGiftCardDto",e);let r="/api/v2/venues/{businessId}/gift-cards".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(e,l,a),{url:h(o),options:l}},emailVenueGiftCard:async(n,e,s,t={})=>{c("emailVenueGiftCard","businessId",n),c("emailVenueGiftCard","cardId",e);let r="/api/v2/venues/{businessId}/gift-cards/{cardId}/email".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),s!=null&&(u["X-Idempotency-Key"]=String(s)),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getVenueGiftCard:async(n,e,s={})=>{c("getVenueGiftCard","businessId",n),c("getVenueGiftCard","cardId",e);let t="/api/v2/venues/{businessId}/gift-cards/{cardId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getVenueGiftCardReport:async(n,e,s,t={})=>{c("getVenueGiftCardReport","businessId",n),c("getVenueGiftCardReport","from",e),c("getVenueGiftCardReport","to",s);let r="/api/v2/venues/{businessId}/gift-card-report".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.from=e),s!==void 0&&(d.to=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getVenueGiftCardSelling:async(n,e={})=>{c("getVenueGiftCardSelling","businessId",n);let s="/api/v2/venues/{businessId}/gift-card-selling".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getVenueGiftCardSettings:async(n,e={})=>{c("getVenueGiftCardSettings","businessId",n);let s="/api/v2/venues/{businessId}/gift-card-settings".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listVenueGiftCardMovements:async(n,e,s,t,r,o,i,l,u={})=>{c("listVenueGiftCardMovements","businessId",n),c("listVenueGiftCardMovements","from",e),c("listVenueGiftCardMovements","to",s);let d="/api/v2/venues/{businessId}/gift-card-movements".replace("{businessId}",encodeURIComponent(String(n))),p=new URL(d,g),f;a&&(f=a.baseOptions);let C={method:"GET",...f,...u},x={},D={};await A(x,a),e!==void 0&&(D.from=e),s!==void 0&&(D.to=s),t!==void 0&&(D.search=t),r&&(D.kinds=r),o&&(D.venueIds=o),i!==void 0&&(D.cursor=i),l!==void 0&&(D.limit=l),y(p,D);let O=f&&f.headers?f.headers:{};return C.headers={...x,...O,...u.headers},{url:h(p),options:C}},listVenueGiftCards:async(n,e,s,t,r,o,i={})=>{c("listVenueGiftCards","businessId",n);let l="/api/v2/venues/{businessId}/gift-cards".replace("{businessId}",encodeURIComponent(String(n))),u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};await A(f,a),e!==void 0&&(C.search=e),s!==void 0&&(C.state=s),t!==void 0&&(C.cursor=t),r!==void 0&&(C.limit=r),o!==void 0&&(C.expiresBefore=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},unblockVenueGiftCard:async(n,e,s={})=>{c("unblockVenueGiftCard","businessId",n),c("unblockVenueGiftCard","cardId",e);let t="/api/v2/venues/{businessId}/gift-cards/{cardId}/unblock".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},updateVenueGiftCard:async(n,e,s,t={})=>{c("updateVenueGiftCard","businessId",n),c("updateVenueGiftCard","cardId",e),c("updateVenueGiftCard","updateVenueGiftCardDto",s);let r="/api/v2/venues/{businessId}/gift-cards/{cardId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateVenueGiftCardSettings:async(n,e,s={})=>{c("updateVenueGiftCardSettings","businessId",n),c("updateVenueGiftCardSettings","updateGiftCardSettingsDto",e);let t="/api/v2/venues/{businessId}/gift-card-settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},L=function(a){let n=Os(a);return{async activateVenueGiftCard(e,s,t){let r=await n.activateVenueGiftCard(e,s,t);return P(r,R,m,a)},async blockVenueGiftCard(e,s,t,r){let o=await n.blockVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async createVenueGiftCard(e,s,t,r){let o=await n.createVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async emailVenueGiftCard(e,s,t,r){let o=await n.emailVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async getVenueGiftCard(e,s,t){let r=await n.getVenueGiftCard(e,s,t);return P(r,R,m,a)},async getVenueGiftCardReport(e,s,t,r){let o=await n.getVenueGiftCardReport(e,s,t,r);return P(o,R,m,a)},async getVenueGiftCardSelling(e,s){let t=await n.getVenueGiftCardSelling(e,s);return P(t,R,m,a)},async getVenueGiftCardSettings(e,s){let t=await n.getVenueGiftCardSettings(e,s);return P(t,R,m,a)},async listVenueGiftCardMovements(e,s,t,r,o,i,l,u,d){let p=await n.listVenueGiftCardMovements(e,s,t,r,o,i,l,u,d);return P(p,R,m,a)},async listVenueGiftCards(e,s,t,r,o,i,l){let u=await n.listVenueGiftCards(e,s,t,r,o,i,l);return P(u,R,m,a)},async unblockVenueGiftCard(e,s,t){let r=await n.unblockVenueGiftCard(e,s,t);return P(r,R,m,a)},async updateVenueGiftCard(e,s,t,r){let o=await n.updateVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async updateVenueGiftCardSettings(e,s,t){let r=await n.updateVenueGiftCardSettings(e,s,t);return P(r,R,m,a)}}},Ci=function(a,n,e){let s=L(a);return{activateVenueGiftCard(t,r,o){return s.activateVenueGiftCard(t,r,o).then(i=>i(e,n))},blockVenueGiftCard(t,r,o,i){return s.blockVenueGiftCard(t,r,o,i).then(l=>l(e,n))},createVenueGiftCard(t,r,o,i){return s.createVenueGiftCard(t,r,o,i).then(l=>l(e,n))},emailVenueGiftCard(t,r,o,i){return s.emailVenueGiftCard(t,r,o,i).then(l=>l(e,n))},getVenueGiftCard(t,r,o){return s.getVenueGiftCard(t,r,o).then(i=>i(e,n))},getVenueGiftCardReport(t,r,o,i){return s.getVenueGiftCardReport(t,r,o,i).then(l=>l(e,n))},getVenueGiftCardSelling(t,r){return s.getVenueGiftCardSelling(t,r).then(o=>o(e,n))},getVenueGiftCardSettings(t,r){return s.getVenueGiftCardSettings(t,r).then(o=>o(e,n))},listVenueGiftCardMovements(t,r,o,i,l,u,d,p,f){return s.listVenueGiftCardMovements(t,r,o,i,l,u,d,p,f).then(C=>C(e,n))},listVenueGiftCards(t,r,o,i,l,u,d){return s.listVenueGiftCards(t,r,o,i,l,u,d).then(p=>p(e,n))},unblockVenueGiftCard(t,r,o){return s.unblockVenueGiftCard(t,r,o).then(i=>i(e,n))},updateVenueGiftCard(t,r,o,i){return s.updateVenueGiftCard(t,r,o,i).then(l=>l(e,n))},updateVenueGiftCardSettings(t,r,o){return s.updateVenueGiftCardSettings(t,r,o).then(i=>i(e,n))}}},st=class extends I{activateVenueGiftCard(n,e,s){return L(this.configuration).activateVenueGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}blockVenueGiftCard(n,e,s,t){return L(this.configuration).blockVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}createVenueGiftCard(n,e,s,t){return L(this.configuration).createVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}emailVenueGiftCard(n,e,s,t){return L(this.configuration).emailVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueGiftCard(n,e,s){return L(this.configuration).getVenueGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}getVenueGiftCardReport(n,e,s,t){return L(this.configuration).getVenueGiftCardReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueGiftCardSelling(n,e){return L(this.configuration).getVenueGiftCardSelling(n,e).then(s=>s(this.axios,this.basePath))}getVenueGiftCardSettings(n,e){return L(this.configuration).getVenueGiftCardSettings(n,e).then(s=>s(this.axios,this.basePath))}listVenueGiftCardMovements(n,e,s,t,r,o,i,l,u){return L(this.configuration).listVenueGiftCardMovements(n,e,s,t,r,o,i,l,u).then(d=>d(this.axios,this.basePath))}listVenueGiftCards(n,e,s,t,r,o,i){return L(this.configuration).listVenueGiftCards(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}unblockVenueGiftCard(n,e,s){return L(this.configuration).unblockVenueGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}updateVenueGiftCard(n,e,s,t){return L(this.configuration).updateVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateVenueGiftCardSettings(n,e,s){return L(this.configuration).updateVenueGiftCardSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},Vs=function(a){return{redeemGiftCard:async(n,e={})=>{c("redeemGiftCard","redeemGiftCardDto",n);let s="/api/v1/giftcard/redeem",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},validateGiftCard:async(n,e={})=>{c("validateGiftCard","validateGiftCardDto",n);let s="/api/v1/giftcard/validate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ve=function(a){let n=Vs(a);return{async redeemGiftCard(e,s){let t=await n.redeemGiftCard(e,s);return P(t,R,m,a)},async validateGiftCard(e,s){let t=await n.validateGiftCard(e,s);return P(t,R,m,a)}}},Di=function(a,n,e){let s=ve(a);return{redeemGiftCard(t,r){return s.redeemGiftCard(t,r).then(o=>o(e,n))},validateGiftCard(t,r){return s.validateGiftCard(t,r).then(o=>o(e,n))}}},rt=class extends I{redeemGiftCard(n,e){return ve(this.configuration).redeemGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(n,e){return ve(this.configuration).validateGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Is=function(a){return{getOrderHistoryPOSV5:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("getOrderHistoryPOSV5","businessIds",n);let O="/api/v5/history/orders/pos",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}},getOrderHistoryPOSV5Internal:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("getOrderHistoryPOSV5Internal","businessIds",n);let O="/api/v5/history/internal/orders/pos",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}}}},Te=function(a){let n=Is(a);return{async getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)},async getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)}}},Si=function(a,n,e){let s=Te(a);return{getOrderHistoryPOSV5(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.getOrderHistoryPOSV5(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))}}},nt=class extends I{getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Te(this.configuration).getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Te(this.configuration).getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}},vs=function(a){return{listOnlineOrderHistoryForServices:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("listOnlineOrderHistoryForServices","businessIds",n);let O="/api/v6/history/internal/orders",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}},listOnlineOrderHistoryForTill:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("listOnlineOrderHistoryForTill","businessIds",n);let O="/api/v6/history/orders",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}},listOrderHistoryForTill:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("listOrderHistoryForTill","businessIds",n);let O="/api/v6/history/orders/pos",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}}}},Pe=function(a){let n=vs(a);return{async listOnlineOrderHistoryForServices(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.listOnlineOrderHistoryForServices(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)},async listOnlineOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.listOnlineOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)},async listOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.listOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)}}},Oi=function(a,n,e){let s=Pe(a);return{listOnlineOrderHistoryForServices(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.listOnlineOrderHistoryForServices(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))},listOnlineOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.listOnlineOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))},listOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.listOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))}}},ot=class extends I{listOnlineOrderHistoryForServices(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Pe(this.configuration).listOnlineOrderHistoryForServices(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}listOnlineOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Pe(this.configuration).listOnlineOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}listOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Pe(this.configuration).listOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}},Ts=function(a){return{getVenueGiftCardOffer:async(n,e={})=>{c("getVenueGiftCardOffer","businessId",n);let s="/api/v2/internal/gift-cards/offers/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getVenuePosVivaMerchant:async(n,e={})=>{c("getVenuePosVivaMerchant","businessId",n);let s="/api/v2/internal/gift-cards/pos-viva/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},refundOnlineGiftCardSale:async(n,e={})=>{c("refundOnlineGiftCardSale","refundOnlineGiftCardSaleDto",n);let s="/api/v2/internal/gift-cards/online-sale/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},sellGiftCardOnline:async(n,e={})=>{c("sellGiftCardOnline","sellGiftCardOnlineDto",n);let s="/api/v2/internal/gift-cards/online-sale",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},de=function(a){let n=Ts(a);return{async getVenueGiftCardOffer(e,s){let t=await n.getVenueGiftCardOffer(e,s);return P(t,R,m,a)},async getVenuePosVivaMerchant(e,s){let t=await n.getVenuePosVivaMerchant(e,s);return P(t,R,m,a)},async refundOnlineGiftCardSale(e,s){let t=await n.refundOnlineGiftCardSale(e,s);return P(t,R,m,a)},async sellGiftCardOnline(e,s){let t=await n.sellGiftCardOnline(e,s);return P(t,R,m,a)}}},Vi=function(a,n,e){let s=de(a);return{getVenueGiftCardOffer(t,r){return s.getVenueGiftCardOffer(t,r).then(o=>o(e,n))},getVenuePosVivaMerchant(t,r){return s.getVenuePosVivaMerchant(t,r).then(o=>o(e,n))},refundOnlineGiftCardSale(t,r){return s.refundOnlineGiftCardSale(t,r).then(o=>o(e,n))},sellGiftCardOnline(t,r){return s.sellGiftCardOnline(t,r).then(o=>o(e,n))}}},at=class extends I{getVenueGiftCardOffer(n,e){return de(this.configuration).getVenueGiftCardOffer(n,e).then(s=>s(this.axios,this.basePath))}getVenuePosVivaMerchant(n,e){return de(this.configuration).getVenuePosVivaMerchant(n,e).then(s=>s(this.axios,this.basePath))}refundOnlineGiftCardSale(n,e){return de(this.configuration).refundOnlineGiftCardSale(n,e).then(s=>s(this.axios,this.basePath))}sellGiftCardOnline(n,e){return de(this.configuration).sellGiftCardOnline(n,e).then(s=>s(this.axios,this.basePath))}},qs=function(a){return{createInvoiceCompany:async(n,e={})=>{c("createInvoiceCompany","createInvoiceCompanyDto",n);let s="/api/v1/invoice-companies",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deleteInvoiceCompany:async(n,e,s={})=>{c("deleteInvoiceCompany","id",n),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getInvoiceCompanies:async(n,e={})=>{c("getInvoiceCompanies","businessId",n);let s="/api/v1/invoice-companies",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getInvoiceCompanyById:async(n,e,s={})=>{c("getInvoiceCompanyById","id",n),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},searchInvoiceCompanies:async(n,e,s={})=>{c("searchInvoiceCompanies","businessId",n);let t="/api/v1/invoice-companies/search",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.search=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},updateInvoiceCompany:async(n,e,s,t={})=>{c("updateInvoiceCompany","id",n),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},te=function(a){let n=qs(a);return{async createInvoiceCompany(e,s){let t=await n.createInvoiceCompany(e,s);return P(t,R,m,a)},async deleteInvoiceCompany(e,s,t){let r=await n.deleteInvoiceCompany(e,s,t);return P(r,R,m,a)},async getInvoiceCompanies(e,s){let t=await n.getInvoiceCompanies(e,s);return P(t,R,m,a)},async getInvoiceCompanyById(e,s,t){let r=await n.getInvoiceCompanyById(e,s,t);return P(r,R,m,a)},async searchInvoiceCompanies(e,s,t){let r=await n.searchInvoiceCompanies(e,s,t);return P(r,R,m,a)},async updateInvoiceCompany(e,s,t,r){let o=await n.updateInvoiceCompany(e,s,t,r);return P(o,R,m,a)}}},Ii=function(a,n,e){let s=te(a);return{createInvoiceCompany(t,r){return s.createInvoiceCompany(t,r).then(o=>o(e,n))},deleteInvoiceCompany(t,r,o){return s.deleteInvoiceCompany(t,r,o).then(i=>i(e,n))},getInvoiceCompanies(t,r){return s.getInvoiceCompanies(t,r).then(o=>o(e,n))},getInvoiceCompanyById(t,r,o){return s.getInvoiceCompanyById(t,r,o).then(i=>i(e,n))},searchInvoiceCompanies(t,r,o){return s.searchInvoiceCompanies(t,r,o).then(i=>i(e,n))},updateInvoiceCompany(t,r,o,i){return s.updateInvoiceCompany(t,r,o,i).then(l=>l(e,n))}}},it=class extends I{createInvoiceCompany(n,e){return te(this.configuration).createInvoiceCompany(n,e).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(n,e,s){return te(this.configuration).deleteInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(n,e){return te(this.configuration).getInvoiceCompanies(n,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(n,e,s){return te(this.configuration).getInvoiceCompanyById(n,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(n,e,s){return te(this.configuration).searchInvoiceCompanies(n,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(n,e,s,t){return te(this.configuration).updateInvoiceCompany(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Us=function(a){return{createKdsStations:async(n,e={})=>{c("createKdsStations","createKdsStationsDto",n);let s="/api/v2/kds/stations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deleteKdsStation:async(n,e,s={})=>{c("deleteKdsStation","stationId",n),c("deleteKdsStation","businessId",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},kdsGetOrders:async(n,e,s,t,r,o,i,l,u,d,p,f={})=>{c("kdsGetOrders","status",n),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let C="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(n))),x=new URL(C,g),D;a&&(D=a.baseOptions);let O={method:"GET",...D,...f},V={},v={};await A(V,a),e!==void 0&&(v.businessIds=e),s!==void 0&&(v.profileId=s),t!==void 0&&(v.page=t),r!==void 0&&(v.rowPerPage=r),o!==void 0&&(v.timeSpan=o),i!==void 0&&(v.start=i),l!==void 0&&(v.end=l),u!==void 0&&(v.timezone=u),d&&(v.provider=d),p&&(v.consumptionType=p),y(x,v);let q=D&&D.headers?D.headers:{};return O.headers={...V,...q,...f.headers},{url:h(x),options:O}},kdsGetProfiles:async(n,e={})=>{c("kdsGetProfiles","businessId",n);let s="/api/v1/kds/profiles",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},kdsMarkOrderReady:async(n,e={})=>{c("kdsMarkOrderReady","id",n);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},kdsMarkOrdersReady:async(n,e={})=>{c("kdsMarkOrdersReady","kdsMarkOrdersReadyDto",n);let s="/api/v1/kds/orders/ready",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},kdsRevertOrder:async(n,e={})=>{c("kdsRevertOrder","id",n);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listKdsStations:async(n,e={})=>{c("listKdsStations","businessId",n);let s="/api/v2/kds/stations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},setKdsChannelStations:async(n,e,s={})=>{c("setKdsChannelStations","channel",n),c("setKdsChannelStations","setKdsChannelStationsDto",e);let t="/api/v2/kds/stations/channels/{channel}".replace("{channel}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},updateKdsStation:async(n,e,s={})=>{c("updateKdsStation","stationId",n),c("updateKdsStation","updateKdsStationDto",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},K=function(a){let n=Us(a);return{async createKdsStations(e,s){let t=await n.createKdsStations(e,s);return P(t,R,m,a)},async deleteKdsStation(e,s,t){let r=await n.deleteKdsStation(e,s,t);return P(r,R,m,a)},async kdsGetOrders(e,s,t,r,o,i,l,u,d,p,f,C){let x=await n.kdsGetOrders(e,s,t,r,o,i,l,u,d,p,f,C);return P(x,R,m,a)},async kdsGetProfiles(e,s){let t=await n.kdsGetProfiles(e,s);return P(t,R,m,a)},async kdsMarkOrderReady(e,s){let t=await n.kdsMarkOrderReady(e,s);return P(t,R,m,a)},async kdsMarkOrdersReady(e,s){let t=await n.kdsMarkOrdersReady(e,s);return P(t,R,m,a)},async kdsRevertOrder(e,s){let t=await n.kdsRevertOrder(e,s);return P(t,R,m,a)},async listKdsStations(e,s){let t=await n.listKdsStations(e,s);return P(t,R,m,a)},async setKdsChannelStations(e,s,t){let r=await n.setKdsChannelStations(e,s,t);return P(r,R,m,a)},async updateKdsStation(e,s,t){let r=await n.updateKdsStation(e,s,t);return P(r,R,m,a)}}},vi=function(a,n,e){let s=K(a);return{createKdsStations(t,r){return s.createKdsStations(t,r).then(o=>o(e,n))},deleteKdsStation(t,r,o){return s.deleteKdsStation(t,r,o).then(i=>i(e,n))},kdsGetOrders(t,r,o,i,l,u,d,p,f,C,x,D){return s.kdsGetOrders(t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(e,n))},kdsGetProfiles(t,r){return s.kdsGetProfiles(t,r).then(o=>o(e,n))},kdsMarkOrderReady(t,r){return s.kdsMarkOrderReady(t,r).then(o=>o(e,n))},kdsMarkOrdersReady(t,r){return s.kdsMarkOrdersReady(t,r).then(o=>o(e,n))},kdsRevertOrder(t,r){return s.kdsRevertOrder(t,r).then(o=>o(e,n))},listKdsStations(t,r){return s.listKdsStations(t,r).then(o=>o(e,n))},setKdsChannelStations(t,r,o){return s.setKdsChannelStations(t,r,o).then(i=>i(e,n))},updateKdsStation(t,r,o){return s.updateKdsStation(t,r,o).then(i=>i(e,n))}}},lt=class extends I{createKdsStations(n,e){return K(this.configuration).createKdsStations(n,e).then(s=>s(this.axios,this.basePath))}deleteKdsStation(n,e,s){return K(this.configuration).deleteKdsStation(n,e,s).then(t=>t(this.axios,this.basePath))}kdsGetOrders(n,e,s,t,r,o,i,l,u,d,p,f){return K(this.configuration).kdsGetOrders(n,e,s,t,r,o,i,l,u,d,p,f).then(C=>C(this.axios,this.basePath))}kdsGetProfiles(n,e){return K(this.configuration).kdsGetProfiles(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(n,e){return K(this.configuration).kdsMarkOrderReady(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrdersReady(n,e){return K(this.configuration).kdsMarkOrdersReady(n,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(n,e){return K(this.configuration).kdsRevertOrder(n,e).then(s=>s(this.axios,this.basePath))}listKdsStations(n,e){return K(this.configuration).listKdsStations(n,e).then(s=>s(this.axios,this.basePath))}setKdsChannelStations(n,e,s){return K(this.configuration).setKdsChannelStations(n,e,s).then(t=>t(this.axios,this.basePath))}updateKdsStation(n,e,s){return K(this.configuration).updateKdsStation(n,e,s).then(t=>t(this.axios,this.basePath))}},Es=function(a){return{getKioskOrder:async(n,e,s={})=>{c("getKioskOrder","orderId",n),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},syncKioskOrder:async(n,e={})=>{c("syncKioskOrder","syncKioskOrderDto",n);let s="/api/v1/kiosk/orders/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},qe=function(a){let n=Es(a);return{async getKioskOrder(e,s,t){let r=await n.getKioskOrder(e,s,t);return P(r,R,m,a)},async syncKioskOrder(e,s){let t=await n.syncKioskOrder(e,s);return P(t,R,m,a)}}},Ti=function(a,n,e){let s=qe(a);return{getKioskOrder(t,r,o){return s.getKioskOrder(t,r,o).then(i=>i(e,n))},syncKioskOrder(t,r){return s.syncKioskOrder(t,r).then(o=>o(e,n))}}},ut=class extends I{getKioskOrder(n,e,s){return qe(this.configuration).getKioskOrder(n,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(n,e){return qe(this.configuration).syncKioskOrder(n,e).then(s=>s(this.axios,this.basePath))}},ks=function(a){return{restoreRedemption:async(n,e={})=>{c("restoreRedemption","restoreLoyaltyRedemptionDto",n);let s="/api/v1/loyalty-commerce/redemptions/restore",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Jt=function(a){let n=ks(a);return{async restoreRedemption(e,s){let t=await n.restoreRedemption(e,s);return P(t,R,m,a)}}},qi=function(a,n,e){let s=Jt(a);return{restoreRedemption(t,r){return s.restoreRedemption(t,r).then(o=>o(e,n))}}},dt=class extends I{restoreRedemption(n,e){return Jt(this.configuration).restoreRedemption(n,e).then(s=>s(this.axios,this.basePath))}},Ms=function(a){return{claimKioskOffer:async(n,e={})=>{c("claimKioskOffer","claimKioskOfferDto",n);let s="/api/v1/loyalty/users/claim",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createLoyaltyUser:async(n,e,s={})=>{c("createLoyaltyUser","businessId",n),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getAdminTransactions:async(n,e,s,t={})=>{c("getAdminTransactions","businessId",n);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getLoyaltyInfo:async(n,e={})=>{c("getLoyaltyInfo","businessId",n);let s="/api/v1/loyalty/info",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getUserById:async(n,e,s={})=>{c("getUserById","businessId",n),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getWalletRewards:async(n,e,s={})=>{c("getWalletRewards","businessId",n),c("getWalletRewards","userId",e);let t="/api/v1/loyalty/users/wallet-rewards",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},memberContext:async(n,e={})=>{c("memberContext","loyaltyMemberContextRequestDto",n);let s="/api/v1/loyalty/member-context",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},resolvePerks:async(n,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",n);let s="/api/v1/loyalty/resolve",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},searchUser:async(n,e,s,t,r={})=>{c("searchUser","businessId",n);let o="/api/v1/loyalty/users/search",i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),e!==void 0&&(p.phone=e),s!==void 0&&(p.country_code=s),t!==void 0&&(p.email=t),n!==void 0&&(p.businessId=n),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},updatePoints:async(n,e,s={})=>{c("updatePoints","businessId",n),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},validateWallet:async(n,e,s,t={})=>{c("validateWallet","businessId",n),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let r="/api/v1/loyalty/wallets/validate",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}}}},N=function(a){let n=Ms(a);return{async claimKioskOffer(e,s){let t=await n.claimKioskOffer(e,s);return P(t,R,m,a)},async createLoyaltyUser(e,s,t){let r=await n.createLoyaltyUser(e,s,t);return P(r,R,m,a)},async getAdminTransactions(e,s,t,r){let o=await n.getAdminTransactions(e,s,t,r);return P(o,R,m,a)},async getLoyaltyInfo(e,s){let t=await n.getLoyaltyInfo(e,s);return P(t,R,m,a)},async getUserById(e,s,t){let r=await n.getUserById(e,s,t);return P(r,R,m,a)},async getWalletRewards(e,s,t){let r=await n.getWalletRewards(e,s,t);return P(r,R,m,a)},async memberContext(e,s){let t=await n.memberContext(e,s);return P(t,R,m,a)},async resolvePerks(e,s){let t=await n.resolvePerks(e,s);return P(t,R,m,a)},async searchUser(e,s,t,r,o){let i=await n.searchUser(e,s,t,r,o);return P(i,R,m,a)},async updatePoints(e,s,t){let r=await n.updatePoints(e,s,t);return P(r,R,m,a)},async validateWallet(e,s,t,r){let o=await n.validateWallet(e,s,t,r);return P(o,R,m,a)}}},Ui=function(a,n,e){let s=N(a);return{claimKioskOffer(t,r){return s.claimKioskOffer(t,r).then(o=>o(e,n))},createLoyaltyUser(t,r,o){return s.createLoyaltyUser(t,r,o).then(i=>i(e,n))},getAdminTransactions(t,r,o,i){return s.getAdminTransactions(t,r,o,i).then(l=>l(e,n))},getLoyaltyInfo(t,r){return s.getLoyaltyInfo(t,r).then(o=>o(e,n))},getUserById(t,r,o){return s.getUserById(t,r,o).then(i=>i(e,n))},getWalletRewards(t,r,o){return s.getWalletRewards(t,r,o).then(i=>i(e,n))},memberContext(t,r){return s.memberContext(t,r).then(o=>o(e,n))},resolvePerks(t,r){return s.resolvePerks(t,r).then(o=>o(e,n))},searchUser(t,r,o,i,l){return s.searchUser(t,r,o,i,l).then(u=>u(e,n))},updatePoints(t,r,o){return s.updatePoints(t,r,o).then(i=>i(e,n))},validateWallet(t,r,o,i){return s.validateWallet(t,r,o,i).then(l=>l(e,n))}}},ct=class extends I{claimKioskOffer(n,e){return N(this.configuration).claimKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(n,e,s){return N(this.configuration).createLoyaltyUser(n,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(n,e,s,t){return N(this.configuration).getAdminTransactions(n,e,s,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(n,e){return N(this.configuration).getLoyaltyInfo(n,e).then(s=>s(this.axios,this.basePath))}getUserById(n,e,s){return N(this.configuration).getUserById(n,e,s).then(t=>t(this.axios,this.basePath))}getWalletRewards(n,e,s){return N(this.configuration).getWalletRewards(n,e,s).then(t=>t(this.axios,this.basePath))}memberContext(n,e){return N(this.configuration).memberContext(n,e).then(s=>s(this.axios,this.basePath))}resolvePerks(n,e){return N(this.configuration).resolvePerks(n,e).then(s=>s(this.axios,this.basePath))}searchUser(n,e,s,t,r){return N(this.configuration).searchUser(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(n,e,s){return N(this.configuration).updatePoints(n,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(n,e,s,t){return N(this.configuration).validateWallet(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Bs=function(a){return{refuseSessionEnd:async(n={})=>{let e="/api/v1/mcp",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"DELETE",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},refuseStream:async(n={})=>{let e="/api/v1/mcp",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},serveMcpRequest:async(n,e={})=>{c("serveMcpRequest","body",n);let s="/api/v1/mcp",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Re=function(a){let n=Bs(a);return{async refuseSessionEnd(e){let s=await n.refuseSessionEnd(e);return P(s,R,m,a)},async refuseStream(e){let s=await n.refuseStream(e);return P(s,R,m,a)},async serveMcpRequest(e,s){let t=await n.serveMcpRequest(e,s);return P(t,R,m,a)}}},Ei=function(a,n,e){let s=Re(a);return{refuseSessionEnd(t){return s.refuseSessionEnd(t).then(r=>r(e,n))},refuseStream(t){return s.refuseStream(t).then(r=>r(e,n))},serveMcpRequest(t,r){return s.serveMcpRequest(t,r).then(o=>o(e,n))}}},pt=class extends I{refuseSessionEnd(n){return Re(this.configuration).refuseSessionEnd(n).then(e=>e(this.axios,this.basePath))}refuseStream(n){return Re(this.configuration).refuseStream(n).then(e=>e(this.axios,this.basePath))}serveMcpRequest(n,e){return Re(this.configuration).serveMcpRequest(n,e).then(s=>s(this.axios,this.basePath))}},ws=function(a){return{editBusinessProductV2:async(n,e,s={})=>{c("editBusinessProductV2","businessId",n),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},resetProductEod:async(n,e={})=>{c("resetProductEod","resetEodDto",n);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Ue=function(a){let n=ws(a);return{async editBusinessProductV2(e,s,t){let r=await n.editBusinessProductV2(e,s,t);return P(r,R,m,a)},async resetProductEod(e,s){let t=await n.resetProductEod(e,s);return P(t,R,m,a)}}},ki=function(a,n,e){let s=Ue(a);return{editBusinessProductV2(t,r,o){return s.editBusinessProductV2(t,r,o).then(i=>i(e,n))},resetProductEod(t,r){return s.resetProductEod(t,r).then(o=>o(e,n))}}},mt=class extends I{editBusinessProductV2(n,e,s){return Ue(this.configuration).editBusinessProductV2(n,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(n,e){return Ue(this.configuration).resetProductEod(n,e).then(s=>s(this.axios,this.basePath))}},Fs=function(a){return{createMunchiGiftCard:async(n,e,s={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",n);let t="/api/v1/munchi-giftcard/create",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},getMunchiGiftCardData:async(n,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",n);let s="/api/v1/munchi-giftcard/data",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},giveBackMunchiGiftCardRedemption:async(n,e={})=>{c("giveBackMunchiGiftCardRedemption","giveBackMunchiGiftCardDto",n);let s="/api/v1/munchi-giftcard/give-back",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},redeemMunchiGiftCard:async(n,e,s={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",n);let t="/api/v1/munchi-giftcard/redeem",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},validateMunchiGiftCard:async(n,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",n);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},oe=function(a){let n=Fs(a);return{async createMunchiGiftCard(e,s,t){let r=await n.createMunchiGiftCard(e,s,t);return P(r,R,m,a)},async getMunchiGiftCardData(e,s){let t=await n.getMunchiGiftCardData(e,s);return P(t,R,m,a)},async giveBackMunchiGiftCardRedemption(e,s){let t=await n.giveBackMunchiGiftCardRedemption(e,s);return P(t,R,m,a)},async redeemMunchiGiftCard(e,s,t){let r=await n.redeemMunchiGiftCard(e,s,t);return P(r,R,m,a)},async validateMunchiGiftCard(e,s){let t=await n.validateMunchiGiftCard(e,s);return P(t,R,m,a)}}},Mi=function(a,n,e){let s=oe(a);return{createMunchiGiftCard(t,r,o){return s.createMunchiGiftCard(t,r,o).then(i=>i(e,n))},getMunchiGiftCardData(t,r){return s.getMunchiGiftCardData(t,r).then(o=>o(e,n))},giveBackMunchiGiftCardRedemption(t,r){return s.giveBackMunchiGiftCardRedemption(t,r).then(o=>o(e,n))},redeemMunchiGiftCard(t,r,o){return s.redeemMunchiGiftCard(t,r,o).then(i=>i(e,n))},validateMunchiGiftCard(t,r){return s.validateMunchiGiftCard(t,r).then(o=>o(e,n))}}},gt=class extends I{createMunchiGiftCard(n,e,s){return oe(this.configuration).createMunchiGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}getMunchiGiftCardData(n,e){return oe(this.configuration).getMunchiGiftCardData(n,e).then(s=>s(this.axios,this.basePath))}giveBackMunchiGiftCardRedemption(n,e){return oe(this.configuration).giveBackMunchiGiftCardRedemption(n,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(n,e,s){return oe(this.configuration).redeemMunchiGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}validateMunchiGiftCard(n,e){return oe(this.configuration).validateMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Ls=function(a){return{addVenueSubscriptionsV2:async(n,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},removeVenueSubscriptionsV2:async(n,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Ee=function(a){let n=Ls(a);return{async addVenueSubscriptionsV2(e,s){let t=await n.addVenueSubscriptionsV2(e,s);return P(t,R,m,a)},async removeVenueSubscriptionsV2(e,s){let t=await n.removeVenueSubscriptionsV2(e,s);return P(t,R,m,a)}}},Bi=function(a,n,e){let s=Ee(a);return{addVenueSubscriptionsV2(t,r){return s.addVenueSubscriptionsV2(t,r).then(o=>o(e,n))},removeVenueSubscriptionsV2(t,r){return s.removeVenueSubscriptionsV2(t,r).then(o=>o(e,n))}}},yt=class extends I{addVenueSubscriptionsV2(n,e){return Ee(this.configuration).addVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(n,e){return Ee(this.configuration).removeVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}},Gs=function(a){return{connectDeliveryPlatform:async(n,e,s={})=>{c("connectDeliveryPlatform","venueId",n),c("connectDeliveryPlatform","connectDeliveryPlatformDto",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms".replace("{venueId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},devicesOfVenue:async(n,e={})=>{c("devicesOfVenue","venueId",n);let s="/api/v1/ops/venues/{venueId}/devices".replace("{venueId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},disconnectDeliveryPlatform:async(n,e,s={})=>{c("disconnectDeliveryPlatform","venueId",n),c("disconnectDeliveryPlatform","channel",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms/{channel}".replace("{venueId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},releaseLicenceHolds:async(n,e={})=>{c("releaseLicenceHolds","releaseLicenceHoldsDto",n);let s="/api/v1/ops/licence-access/holds/release",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},searchVenues:async(n,e,s={})=>{c("searchVenues","search",n);let t="/api/v1/ops/venues",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.search=n),e!==void 0&&(u.limit=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},ae=function(a){let n=Gs(a);return{async connectDeliveryPlatform(e,s,t){let r=await n.connectDeliveryPlatform(e,s,t);return P(r,R,m,a)},async devicesOfVenue(e,s){let t=await n.devicesOfVenue(e,s);return P(t,R,m,a)},async disconnectDeliveryPlatform(e,s,t){let r=await n.disconnectDeliveryPlatform(e,s,t);return P(r,R,m,a)},async releaseLicenceHolds(e,s){let t=await n.releaseLicenceHolds(e,s);return P(t,R,m,a)},async searchVenues(e,s,t){let r=await n.searchVenues(e,s,t);return P(r,R,m,a)}}},wi=function(a,n,e){let s=ae(a);return{connectDeliveryPlatform(t,r,o){return s.connectDeliveryPlatform(t,r,o).then(i=>i(e,n))},devicesOfVenue(t,r){return s.devicesOfVenue(t,r).then(o=>o(e,n))},disconnectDeliveryPlatform(t,r,o){return s.disconnectDeliveryPlatform(t,r,o).then(i=>i(e,n))},releaseLicenceHolds(t,r){return s.releaseLicenceHolds(t,r).then(o=>o(e,n))},searchVenues(t,r,o){return s.searchVenues(t,r,o).then(i=>i(e,n))}}},ht=class extends I{connectDeliveryPlatform(n,e,s){return ae(this.configuration).connectDeliveryPlatform(n,e,s).then(t=>t(this.axios,this.basePath))}devicesOfVenue(n,e){return ae(this.configuration).devicesOfVenue(n,e).then(s=>s(this.axios,this.basePath))}disconnectDeliveryPlatform(n,e,s){return ae(this.configuration).disconnectDeliveryPlatform(n,e,s).then(t=>t(this.axios,this.basePath))}releaseLicenceHolds(n,e){return ae(this.configuration).releaseLicenceHolds(n,e).then(s=>s(this.axios,this.basePath))}searchVenues(n,e,s){return ae(this.configuration).searchVenues(n,e,s).then(t=>t(this.axios,this.basePath))}},Ns=function(a){return{completeOrder:async(n,e,s,t={})=>{c("completeOrder","businessId",n),c("completeOrder","orderId",e),c("completeOrder","completeOrderDto",s);let r="/api/v1/businesses/{businessId}/orders/{orderId}/complete".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},es=function(a){let n=Ns(a);return{async completeOrder(e,s,t,r){let o=await n.completeOrder(e,s,t,r);return P(o,R,m,a)}}},Fi=function(a,n,e){let s=es(a);return{completeOrder(t,r,o,i){return s.completeOrder(t,r,o,i).then(l=>l(e,n))}}},Pt=class extends I{completeOrder(n,e,s,t){return es(this.configuration).completeOrder(n,e,s,t).then(r=>r(this.axios,this.basePath))}},_s=function(a){return{findOneByExternalId:async(n,e={})=>{c("findOneByExternalId","externalId",n);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}}}},ts=function(a){let n=_s(a);return{async findOneByExternalId(e,s){let t=await n.findOneByExternalId(e,s);return P(t,R,m,a)}}},Li=function(a,n,e){let s=ts(a);return{findOneByExternalId(t,r){return s.findOneByExternalId(t,r).then(o=>o(e,n))}}},Rt=class extends I{findOneByExternalId(n,e){return ts(this.configuration).findOneByExternalId(n,e).then(s=>s(this.axios,this.basePath))}},Ks=function(a){return{acceptOrder:async(n,e={})=>{c("acceptOrder","acceptOrderDto",n);let s="/api/v1/orders/accept",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},changePosOrdersStatusInBulk:async(n,e={})=>{c("changePosOrdersStatusInBulk","changePosOrdersStatusInBulkDto",n);let s="/api/v2/orders/pos/bulk-status",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},confirmPreOrder:async(n,e={})=>{c("confirmPreOrder","confirmPreorderDto",n);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deletePosParkedOrderV2:async(n,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",n);let s="/api/v2/orders/pos/park",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deliverOrder:async(n,e={})=>{c("deliverOrder","deliveredOrderDto",n);let s="/api/v1/orders/delivered",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},dispatchPosOrderV5:async(n,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",n);let s="/api/v5/orders/pos/dispatch",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getOrdersV2:async(n,e,s,t,r={})=>{c("getOrdersV2","status",n),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};e!==void 0&&(p.businessIds=e),s!==void 0&&(p.posBusinessId=s),t!==void 0&&(p.extraProvider=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},getOrdersV3:async(n,e,s,t,r={})=>{c("getOrdersV3","status",n),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};e!==void 0&&(p.businessIds=e),s!==void 0&&(p.posBusinessId=s),t!==void 0&&(p.extraProvider=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},getParkedPosOrderV2:async(n,e={})=>{c("getParkedPosOrderV2","businessId",n);let s="/api/v2/orders/pos/park",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getPosOrderById:async(n,e={})=>{c("getPosOrderById","getPosOrderDto",n);let s="/api/v1/orders/pos",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},markOrderAsReady:async(n,e={})=>{c("markOrderAsReady","readyOrderDto",n);let s="/api/v1/orders/ready",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},parkPosOrderV5:async(n,e={})=>{c("parkPosOrderV5","parkPosOrderDto",n);let s="/api/v5/orders/pos/park",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},processPosOrderActions:async(n,e={})=>{c("processPosOrderActions","processOrderActionsDto",n);let s="/api/v4/orders/pos/actions",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},rejectOrder:async(n,e={})=>{c("rejectOrder","rejectOrderDto",n);let s="/api/v1/orders/reject",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},syncPosOrder:async(n,e={})=>{c("syncPosOrder","syncPosOrderDto",n);let s="/api/v1/orders/pos/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},updatePosOrderV2:async(n,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",n);let s="/api/v2/orders/pos/update",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},B=function(a){let n=Ks(a);return{async acceptOrder(e,s){let t=await n.acceptOrder(e,s);return P(t,R,m,a)},async changePosOrdersStatusInBulk(e,s){let t=await n.changePosOrdersStatusInBulk(e,s);return P(t,R,m,a)},async confirmPreOrder(e,s){let t=await n.confirmPreOrder(e,s);return P(t,R,m,a)},async deletePosParkedOrderV2(e,s){let t=await n.deletePosParkedOrderV2(e,s);return P(t,R,m,a)},async deliverOrder(e,s){let t=await n.deliverOrder(e,s);return P(t,R,m,a)},async dispatchPosOrderV5(e,s){let t=await n.dispatchPosOrderV5(e,s);return P(t,R,m,a)},async getOrdersV2(e,s,t,r,o){let i=await n.getOrdersV2(e,s,t,r,o);return P(i,R,m,a)},async getOrdersV3(e,s,t,r,o){let i=await n.getOrdersV3(e,s,t,r,o);return P(i,R,m,a)},async getParkedPosOrderV2(e,s){let t=await n.getParkedPosOrderV2(e,s);return P(t,R,m,a)},async getPosOrderById(e,s){let t=await n.getPosOrderById(e,s);return P(t,R,m,a)},async markOrderAsReady(e,s){let t=await n.markOrderAsReady(e,s);return P(t,R,m,a)},async parkPosOrderV5(e,s){let t=await n.parkPosOrderV5(e,s);return P(t,R,m,a)},async processPosOrderActions(e,s){let t=await n.processPosOrderActions(e,s);return P(t,R,m,a)},async rejectOrder(e,s){let t=await n.rejectOrder(e,s);return P(t,R,m,a)},async syncPosOrder(e,s){let t=await n.syncPosOrder(e,s);return P(t,R,m,a)},async updatePosOrderV2(e,s){let t=await n.updatePosOrderV2(e,s);return P(t,R,m,a)}}},Gi=function(a,n,e){let s=B(a);return{acceptOrder(t,r){return s.acceptOrder(t,r).then(o=>o(e,n))},changePosOrdersStatusInBulk(t,r){return s.changePosOrdersStatusInBulk(t,r).then(o=>o(e,n))},confirmPreOrder(t,r){return s.confirmPreOrder(t,r).then(o=>o(e,n))},deletePosParkedOrderV2(t,r){return s.deletePosParkedOrderV2(t,r).then(o=>o(e,n))},deliverOrder(t,r){return s.deliverOrder(t,r).then(o=>o(e,n))},dispatchPosOrderV5(t,r){return s.dispatchPosOrderV5(t,r).then(o=>o(e,n))},getOrdersV2(t,r,o,i,l){return s.getOrdersV2(t,r,o,i,l).then(u=>u(e,n))},getOrdersV3(t,r,o,i,l){return s.getOrdersV3(t,r,o,i,l).then(u=>u(e,n))},getParkedPosOrderV2(t,r){return s.getParkedPosOrderV2(t,r).then(o=>o(e,n))},getPosOrderById(t,r){return s.getPosOrderById(t,r).then(o=>o(e,n))},markOrderAsReady(t,r){return s.markOrderAsReady(t,r).then(o=>o(e,n))},parkPosOrderV5(t,r){return s.parkPosOrderV5(t,r).then(o=>o(e,n))},processPosOrderActions(t,r){return s.processPosOrderActions(t,r).then(o=>o(e,n))},rejectOrder(t,r){return s.rejectOrder(t,r).then(o=>o(e,n))},syncPosOrder(t,r){return s.syncPosOrder(t,r).then(o=>o(e,n))},updatePosOrderV2(t,r){return s.updatePosOrderV2(t,r).then(o=>o(e,n))}}},At=class extends I{acceptOrder(n,e){return B(this.configuration).acceptOrder(n,e).then(s=>s(this.axios,this.basePath))}changePosOrdersStatusInBulk(n,e){return B(this.configuration).changePosOrdersStatusInBulk(n,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(n,e){return B(this.configuration).confirmPreOrder(n,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(n,e){return B(this.configuration).deletePosParkedOrderV2(n,e).then(s=>s(this.axios,this.basePath))}deliverOrder(n,e){return B(this.configuration).deliverOrder(n,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(n,e){return B(this.configuration).dispatchPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(n,e,s,t,r){return B(this.configuration).getOrdersV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getOrdersV3(n,e,s,t,r){return B(this.configuration).getOrdersV3(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(n,e){return B(this.configuration).getParkedPosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(n,e){return B(this.configuration).getPosOrderById(n,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(n,e){return B(this.configuration).markOrderAsReady(n,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(n,e){return B(this.configuration).parkPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(n,e){return B(this.configuration).processPosOrderActions(n,e).then(s=>s(this.axios,this.basePath))}rejectOrder(n,e){return B(this.configuration).rejectOrder(n,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(n,e){return B(this.configuration).syncPosOrder(n,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(n,e){return B(this.configuration).updatePosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}},Ws=function(a){return{listPosPermissions:async(n={})=>{let e="/api/v1/pos-permissions",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}}}},ss=function(a){let n=Ws(a);return{async listPosPermissions(e){let s=await n.listPosPermissions(e);return P(s,R,m,a)}}},Ni=function(a,n,e){let s=ss(a);return{listPosPermissions(t){return s.listPosPermissions(t).then(r=>r(e,n))}}},bt=class extends I{listPosPermissions(n){return ss(this.configuration).listPosPermissions(n).then(e=>e(this.axios,this.basePath))}},js=function(a){return{getPosSessionV2:async(n,e={})=>{c("getPosSessionV2","businessId",n);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}}}},rs=function(a){let n=js(a);return{async getPosSessionV2(e,s){let t=await n.getPosSessionV2(e,s);return P(t,R,m,a)}}},_i=function(a,n,e){let s=rs(a);return{getPosSessionV2(t,r){return s.getPosSessionV2(t,r).then(o=>o(e,n))}}},ft=class extends I{getPosSessionV2(n,e){return rs(this.configuration).getPosSessionV2(n,e).then(s=>s(this.axios,this.basePath))}},Hs=function(a){return{payTerminalInit:async(n,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",n);let s="/api/v1/pay-terminal/init",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalLockStatus:async(n,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",n);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalLockSync:async(n,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalLockVerify:async(n,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalPair:async(n,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/pair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalPresence:async(n,e={})=>{c("payTerminalPresence","payTerminalSessionTokenBodyDto",n);let s="/api/v1/pay-terminal/presence",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalSessionToken:async(n,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",n);let s="/api/v1/pay-terminal/session-token",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalUnpair:async(n,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/unpair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Y=function(a){let n=Hs(a);return{async payTerminalInit(e,s){let t=await n.payTerminalInit(e,s);return P(t,R,m,a)},async payTerminalLockStatus(e,s){let t=await n.payTerminalLockStatus(e,s);return P(t,R,m,a)},async payTerminalLockSync(e,s){let t=await n.payTerminalLockSync(e,s);return P(t,R,m,a)},async payTerminalLockVerify(e,s){let t=await n.payTerminalLockVerify(e,s);return P(t,R,m,a)},async payTerminalPair(e,s){let t=await n.payTerminalPair(e,s);return P(t,R,m,a)},async payTerminalPresence(e,s){let t=await n.payTerminalPresence(e,s);return P(t,R,m,a)},async payTerminalSessionToken(e,s){let t=await n.payTerminalSessionToken(e,s);return P(t,R,m,a)},async payTerminalUnpair(e,s){let t=await n.payTerminalUnpair(e,s);return P(t,R,m,a)}}},Ki=function(a,n,e){let s=Y(a);return{payTerminalInit(t,r){return s.payTerminalInit(t,r).then(o=>o(e,n))},payTerminalLockStatus(t,r){return s.payTerminalLockStatus(t,r).then(o=>o(e,n))},payTerminalLockSync(t,r){return s.payTerminalLockSync(t,r).then(o=>o(e,n))},payTerminalLockVerify(t,r){return s.payTerminalLockVerify(t,r).then(o=>o(e,n))},payTerminalPair(t,r){return s.payTerminalPair(t,r).then(o=>o(e,n))},payTerminalPresence(t,r){return s.payTerminalPresence(t,r).then(o=>o(e,n))},payTerminalSessionToken(t,r){return s.payTerminalSessionToken(t,r).then(o=>o(e,n))},payTerminalUnpair(t,r){return s.payTerminalUnpair(t,r).then(o=>o(e,n))}}},xt=class extends I{payTerminalInit(n,e){return Y(this.configuration).payTerminalInit(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(n,e){return Y(this.configuration).payTerminalLockStatus(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(n,e){return Y(this.configuration).payTerminalLockSync(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(n,e){return Y(this.configuration).payTerminalLockVerify(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(n,e){return Y(this.configuration).payTerminalPair(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPresence(n,e){return Y(this.configuration).payTerminalPresence(n,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(n,e){return Y(this.configuration).payTerminalSessionToken(n,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(n,e){return Y(this.configuration).payTerminalUnpair(n,e).then(s=>s(this.axios,this.basePath))}},Qs=function(a){return{cancelNetsTerminalTransaction:async(n,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",n);let s="/api/v3/payment/nets/cancel",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},cancelVivaTransactionV2:async(n,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",n);let s="/api/v2/payment/viva/cancel",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getPaymentReference:async(n,e={})=>{c("getPaymentReference","getPaymentReferenceDto",n);let s="/api/v1/payment/reference",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getPaymentStatus:async(n,e={})=>{c("getPaymentStatus","getPaymentStatusDto",n);let s="/api/v1/payment/status",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},initiateNetsTerminalTransaction:async(n,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",n);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},initiateTerminalTransaction:async(n,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",n);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},processOnlineOrderRefund:async(n,e={})=>{c("processOnlineOrderRefund","orderResponseDto",n);let s="/api/v1/payment/online-orders/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundSingleVivaTransaction:async(n,e={})=>{c("refundSingleVivaTransaction","createRefundDto",n);let s="/api/v4/payment/viva/refund/single",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},X=function(a){let n=Qs(a);return{async cancelNetsTerminalTransaction(e,s){let t=await n.cancelNetsTerminalTransaction(e,s);return P(t,R,m,a)},async cancelVivaTransactionV2(e,s){let t=await n.cancelVivaTransactionV2(e,s);return P(t,R,m,a)},async getPaymentReference(e,s){let t=await n.getPaymentReference(e,s);return P(t,R,m,a)},async getPaymentStatus(e,s){let t=await n.getPaymentStatus(e,s);return P(t,R,m,a)},async initiateNetsTerminalTransaction(e,s){let t=await n.initiateNetsTerminalTransaction(e,s);return P(t,R,m,a)},async initiateTerminalTransaction(e,s){let t=await n.initiateTerminalTransaction(e,s);return P(t,R,m,a)},async processOnlineOrderRefund(e,s){let t=await n.processOnlineOrderRefund(e,s);return P(t,R,m,a)},async refundSingleVivaTransaction(e,s){let t=await n.refundSingleVivaTransaction(e,s);return P(t,R,m,a)}}},Wi=function(a,n,e){let s=X(a);return{cancelNetsTerminalTransaction(t,r){return s.cancelNetsTerminalTransaction(t,r).then(o=>o(e,n))},cancelVivaTransactionV2(t,r){return s.cancelVivaTransactionV2(t,r).then(o=>o(e,n))},getPaymentReference(t,r){return s.getPaymentReference(t,r).then(o=>o(e,n))},getPaymentStatus(t,r){return s.getPaymentStatus(t,r).then(o=>o(e,n))},initiateNetsTerminalTransaction(t,r){return s.initiateNetsTerminalTransaction(t,r).then(o=>o(e,n))},initiateTerminalTransaction(t,r){return s.initiateTerminalTransaction(t,r).then(o=>o(e,n))},processOnlineOrderRefund(t,r){return s.processOnlineOrderRefund(t,r).then(o=>o(e,n))},refundSingleVivaTransaction(t,r){return s.refundSingleVivaTransaction(t,r).then(o=>o(e,n))}}},Ct=class extends I{cancelNetsTerminalTransaction(n,e){return X(this.configuration).cancelNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(n,e){return X(this.configuration).cancelVivaTransactionV2(n,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(n,e){return X(this.configuration).getPaymentReference(n,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(n,e){return X(this.configuration).getPaymentStatus(n,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(n,e){return X(this.configuration).initiateNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(n,e){return X(this.configuration).initiateTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(n,e){return X(this.configuration).processOnlineOrderRefund(n,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(n,e){return X(this.configuration).refundSingleVivaTransaction(n,e).then(s=>s(this.axios,this.basePath))}},$s=function(a){return{changePaymentMethodGiftCardLogin:async(n,e,s,t,r={})=>{c("changePaymentMethodGiftCardLogin","businessId",n),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(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},changePaymentMethodOption:async(n,e,s,t,r={})=>{c("changePaymentMethodOption","businessId",n),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(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},createPaymentMethod:async(n,e,s,t={})=>{c("createPaymentMethod","businessId",n),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},deletePaymentMethodOption:async(n,e,s,t={})=>{c("deletePaymentMethodOption","businessId",n),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getCatalog:async(n,e,s,t={})=>{c("getCatalog","businessId",n),c("getCatalog","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getPaymentMethods:async(n,e,s,t={})=>{c("getPaymentMethods","businessId",n),c("getPaymentMethods","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getTypes:async(n={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},reorder:async(n,e,s,t={})=>{c("reorder","businessId",n),c("reorder","channel",e),c("reorder","bulkRankDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setPaymentMethodPositions:async(n,e,s,t={})=>{c("setPaymentMethodPositions","businessId",n),c("setPaymentMethodPositions","channel",e),c("setPaymentMethodPositions","paymentMethodPositionsDto",s);let r="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/positions".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updatePaymentMethodOption:async(n,e,s,t,r={})=>{c("updatePaymentMethodOption","businessId",n),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(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}}}},W=function(a){let n=$s(a);return{async changePaymentMethodGiftCardLogin(e,s,t,r,o){let i=await n.changePaymentMethodGiftCardLogin(e,s,t,r,o);return P(i,R,m,a)},async changePaymentMethodOption(e,s,t,r,o){let i=await n.changePaymentMethodOption(e,s,t,r,o);return P(i,R,m,a)},async createPaymentMethod(e,s,t,r){let o=await n.createPaymentMethod(e,s,t,r);return P(o,R,m,a)},async deletePaymentMethodOption(e,s,t,r){let o=await n.deletePaymentMethodOption(e,s,t,r);return P(o,R,m,a)},async getCatalog(e,s,t,r){let o=await n.getCatalog(e,s,t,r);return P(o,R,m,a)},async getPaymentMethods(e,s,t,r){let o=await n.getPaymentMethods(e,s,t,r);return P(o,R,m,a)},async getTypes(e){let s=await n.getTypes(e);return P(s,R,m,a)},async reorder(e,s,t,r){let o=await n.reorder(e,s,t,r);return P(o,R,m,a)},async setPaymentMethodPositions(e,s,t,r){let o=await n.setPaymentMethodPositions(e,s,t,r);return P(o,R,m,a)},async updatePaymentMethodOption(e,s,t,r,o){let i=await n.updatePaymentMethodOption(e,s,t,r,o);return P(i,R,m,a)}}},ji=function(a,n,e){let s=W(a);return{changePaymentMethodGiftCardLogin(t,r,o,i,l){return s.changePaymentMethodGiftCardLogin(t,r,o,i,l).then(u=>u(e,n))},changePaymentMethodOption(t,r,o,i,l){return s.changePaymentMethodOption(t,r,o,i,l).then(u=>u(e,n))},createPaymentMethod(t,r,o,i){return s.createPaymentMethod(t,r,o,i).then(l=>l(e,n))},deletePaymentMethodOption(t,r,o,i){return s.deletePaymentMethodOption(t,r,o,i).then(l=>l(e,n))},getCatalog(t,r,o,i){return s.getCatalog(t,r,o,i).then(l=>l(e,n))},getPaymentMethods(t,r,o,i){return s.getPaymentMethods(t,r,o,i).then(l=>l(e,n))},getTypes(t){return s.getTypes(t).then(r=>r(e,n))},reorder(t,r,o,i){return s.reorder(t,r,o,i).then(l=>l(e,n))},setPaymentMethodPositions(t,r,o,i){return s.setPaymentMethodPositions(t,r,o,i).then(l=>l(e,n))},updatePaymentMethodOption(t,r,o,i,l){return s.updatePaymentMethodOption(t,r,o,i,l).then(u=>u(e,n))}}},Dt=class extends I{changePaymentMethodGiftCardLogin(n,e,s,t,r){return W(this.configuration).changePaymentMethodGiftCardLogin(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}changePaymentMethodOption(n,e,s,t,r){return W(this.configuration).changePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}createPaymentMethod(n,e,s,t){return W(this.configuration).createPaymentMethod(n,e,s,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(n,e,s,t){return W(this.configuration).deletePaymentMethodOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}getCatalog(n,e,s,t){return W(this.configuration).getCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentMethods(n,e,s,t){return W(this.configuration).getPaymentMethods(n,e,s,t).then(r=>r(this.axios,this.basePath))}getTypes(n){return W(this.configuration).getTypes(n).then(e=>e(this.axios,this.basePath))}reorder(n,e,s,t){return W(this.configuration).reorder(n,e,s,t).then(r=>r(this.axios,this.basePath))}setPaymentMethodPositions(n,e,s,t){return W(this.configuration).setPaymentMethodPositions(n,e,s,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(n,e,s,t,r){return W(this.configuration).updatePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},zs=function(a){return{cancelSession:async(n,e={})=>{c("cancelSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getOrderSettlementStatus:async(n,e,s,t={})=>{c("getOrderSettlementStatus","businessId",n),c("getOrderSettlementStatus","orderId",e);let r="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getPaymentSession:async(n,e={})=>{c("getPaymentSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getPaymentSessionAnalytics:async(n,e,s,t,r={})=>{c("getPaymentSessionAnalytics","businessId",n),c("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};n!==void 0&&(p.businessId=n),e!==void 0&&(p.timeSpan=e),s!==void 0&&(p.start=s),t!==void 0&&(p.end=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},getPaymentSessionCurrency:async(n,e={})=>{c("getPaymentSessionCurrency","sessionId",n);let s="/api/v1/payment-session/currency/{sessionId}".replace("{sessionId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},initiateEpassiSession:async(n,e,s,t={})=>{c("initiateEpassiSession","xEpassiQrCode",n),c("initiateEpassiSession","initiateEpassiSessionDto",e);let r="/api/v1/payment-session/epassi/initiate",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};n!=null&&(u["X-Epassi-Qr-Code"]=String(n)),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(e,l,a),{url:h(o),options:l}},initiateNetsSession:async(n,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",n);let t="/api/v1/payment-session/nets/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateNexiSession:async(n,e,s={})=>{c("initiateNexiSession","initiateNexiSessionDto",n);let t="/api/v1/payment-session/nexi/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateVivaA2aSession:async(n,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",n);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},initiateVivaSession:async(n,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",n);let t="/api/v1/payment-session/viva/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateWorldlineA2aSession:async(n,e,s={})=>{c("initiateWorldlineA2aSession","initiateWorldlineA2aSessionDto",n);let t="/api/v1/payment-session/worldline/a2a",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateWorldlineSession:async(n,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",n);let t="/api/v1/payment-session/worldline/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},paymentSessionGetChargeStatus:async(n,e={})=>{c("paymentSessionGetChargeStatus","chargeId",n);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},paymentSessionRegisterChargeMapping:async(n,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",n);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pollEpassiSession:async(n,e={})=>{c("pollEpassiSession","epassiSessionReferenceDto",n);let s="/api/v1/payment-session/epassi/poll",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pollVivaSession:async(n,e={})=>{c("pollVivaSession","pollVivaSessionDto",n);let s="/api/v1/payment-session/poll",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pollWorldlineSession:async(n,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",n);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},recordManualPayment:async(n,e,s={})=>{c("recordManualPayment","createManualSessionDto",n);let t="/api/v1/payment-session/manual",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},recordWorldlineA2aResult:async(n,e={})=>{c("recordWorldlineA2aResult","recordWorldlineA2aResultDto",n);let s="/api/v1/payment-session/worldline/a2a/result",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundEpassiSession:async(n,e={})=>{c("refundEpassiSession","epassiSessionReferenceDto",n);let s="/api/v1/payment-session/epassi/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundNetsSession:async(n,e={})=>{c("refundNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundVivaSession:async(n,e={})=>{c("refundVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundWorldlineA2aSession:async(n,e={})=>{c("refundWorldlineA2aSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/a2a/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundWorldlineSession:async(n,e={})=>{c("refundWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},retryWorldlineReversal:async(n,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",n);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertNetsSession:async(n,e={})=>{c("revertNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertVivaSession:async(n,e={})=>{c("revertVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertWorldlineA2aSession:async(n,e={})=>{c("revertWorldlineA2aSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/a2a/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertWorldlineSession:async(n,e={})=>{c("revertWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},voidManualPayment:async(n,e={})=>{c("voidManualPayment","voidManualSessionDto",n);let s="/api/v1/payment-session/void",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},waitForNexiSession:async(n,e={})=>{c("waitForNexiSession","nexiWaitRoundDto",n);let s="/api/v1/payment-session/nexi/wait",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},U=function(a){let n=zs(a);return{async cancelSession(e,s){let t=await n.cancelSession(e,s);return P(t,R,m,a)},async getOrderSettlementStatus(e,s,t,r){let o=await n.getOrderSettlementStatus(e,s,t,r);return P(o,R,m,a)},async getPaymentSession(e,s){let t=await n.getPaymentSession(e,s);return P(t,R,m,a)},async getPaymentSessionAnalytics(e,s,t,r,o){let i=await n.getPaymentSessionAnalytics(e,s,t,r,o);return P(i,R,m,a)},async getPaymentSessionCurrency(e,s){let t=await n.getPaymentSessionCurrency(e,s);return P(t,R,m,a)},async initiateEpassiSession(e,s,t,r){let o=await n.initiateEpassiSession(e,s,t,r);return P(o,R,m,a)},async initiateNetsSession(e,s,t){let r=await n.initiateNetsSession(e,s,t);return P(r,R,m,a)},async initiateNexiSession(e,s,t){let r=await n.initiateNexiSession(e,s,t);return P(r,R,m,a)},async initiateVivaA2aSession(e,s){let t=await n.initiateVivaA2aSession(e,s);return P(t,R,m,a)},async initiateVivaSession(e,s,t){let r=await n.initiateVivaSession(e,s,t);return P(r,R,m,a)},async initiateWorldlineA2aSession(e,s,t){let r=await n.initiateWorldlineA2aSession(e,s,t);return P(r,R,m,a)},async initiateWorldlineSession(e,s,t){let r=await n.initiateWorldlineSession(e,s,t);return P(r,R,m,a)},async paymentSessionGetChargeStatus(e,s){let t=await n.paymentSessionGetChargeStatus(e,s);return P(t,R,m,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await n.paymentSessionRegisterChargeMapping(e,s);return P(t,R,m,a)},async pollEpassiSession(e,s){let t=await n.pollEpassiSession(e,s);return P(t,R,m,a)},async pollVivaSession(e,s){let t=await n.pollVivaSession(e,s);return P(t,R,m,a)},async pollWorldlineSession(e,s){let t=await n.pollWorldlineSession(e,s);return P(t,R,m,a)},async recordManualPayment(e,s,t){let r=await n.recordManualPayment(e,s,t);return P(r,R,m,a)},async recordWorldlineA2aResult(e,s){let t=await n.recordWorldlineA2aResult(e,s);return P(t,R,m,a)},async refundEpassiSession(e,s){let t=await n.refundEpassiSession(e,s);return P(t,R,m,a)},async refundNetsSession(e,s){let t=await n.refundNetsSession(e,s);return P(t,R,m,a)},async refundVivaSession(e,s){let t=await n.refundVivaSession(e,s);return P(t,R,m,a)},async refundWorldlineA2aSession(e,s){let t=await n.refundWorldlineA2aSession(e,s);return P(t,R,m,a)},async refundWorldlineSession(e,s){let t=await n.refundWorldlineSession(e,s);return P(t,R,m,a)},async retryWorldlineReversal(e,s){let t=await n.retryWorldlineReversal(e,s);return P(t,R,m,a)},async revertNetsSession(e,s){let t=await n.revertNetsSession(e,s);return P(t,R,m,a)},async revertVivaSession(e,s){let t=await n.revertVivaSession(e,s);return P(t,R,m,a)},async revertWorldlineA2aSession(e,s){let t=await n.revertWorldlineA2aSession(e,s);return P(t,R,m,a)},async revertWorldlineSession(e,s){let t=await n.revertWorldlineSession(e,s);return P(t,R,m,a)},async voidManualPayment(e,s){let t=await n.voidManualPayment(e,s);return P(t,R,m,a)},async waitForNexiSession(e,s){let t=await n.waitForNexiSession(e,s);return P(t,R,m,a)}}},Hi=function(a,n,e){let s=U(a);return{cancelSession(t,r){return s.cancelSession(t,r).then(o=>o(e,n))},getOrderSettlementStatus(t,r,o,i){return s.getOrderSettlementStatus(t,r,o,i).then(l=>l(e,n))},getPaymentSession(t,r){return s.getPaymentSession(t,r).then(o=>o(e,n))},getPaymentSessionAnalytics(t,r,o,i,l){return s.getPaymentSessionAnalytics(t,r,o,i,l).then(u=>u(e,n))},getPaymentSessionCurrency(t,r){return s.getPaymentSessionCurrency(t,r).then(o=>o(e,n))},initiateEpassiSession(t,r,o,i){return s.initiateEpassiSession(t,r,o,i).then(l=>l(e,n))},initiateNetsSession(t,r,o){return s.initiateNetsSession(t,r,o).then(i=>i(e,n))},initiateNexiSession(t,r,o){return s.initiateNexiSession(t,r,o).then(i=>i(e,n))},initiateVivaA2aSession(t,r){return s.initiateVivaA2aSession(t,r).then(o=>o(e,n))},initiateVivaSession(t,r,o){return s.initiateVivaSession(t,r,o).then(i=>i(e,n))},initiateWorldlineA2aSession(t,r,o){return s.initiateWorldlineA2aSession(t,r,o).then(i=>i(e,n))},initiateWorldlineSession(t,r,o){return s.initiateWorldlineSession(t,r,o).then(i=>i(e,n))},paymentSessionGetChargeStatus(t,r){return s.paymentSessionGetChargeStatus(t,r).then(o=>o(e,n))},paymentSessionRegisterChargeMapping(t,r){return s.paymentSessionRegisterChargeMapping(t,r).then(o=>o(e,n))},pollEpassiSession(t,r){return s.pollEpassiSession(t,r).then(o=>o(e,n))},pollVivaSession(t,r){return s.pollVivaSession(t,r).then(o=>o(e,n))},pollWorldlineSession(t,r){return s.pollWorldlineSession(t,r).then(o=>o(e,n))},recordManualPayment(t,r,o){return s.recordManualPayment(t,r,o).then(i=>i(e,n))},recordWorldlineA2aResult(t,r){return s.recordWorldlineA2aResult(t,r).then(o=>o(e,n))},refundEpassiSession(t,r){return s.refundEpassiSession(t,r).then(o=>o(e,n))},refundNetsSession(t,r){return s.refundNetsSession(t,r).then(o=>o(e,n))},refundVivaSession(t,r){return s.refundVivaSession(t,r).then(o=>o(e,n))},refundWorldlineA2aSession(t,r){return s.refundWorldlineA2aSession(t,r).then(o=>o(e,n))},refundWorldlineSession(t,r){return s.refundWorldlineSession(t,r).then(o=>o(e,n))},retryWorldlineReversal(t,r){return s.retryWorldlineReversal(t,r).then(o=>o(e,n))},revertNetsSession(t,r){return s.revertNetsSession(t,r).then(o=>o(e,n))},revertVivaSession(t,r){return s.revertVivaSession(t,r).then(o=>o(e,n))},revertWorldlineA2aSession(t,r){return s.revertWorldlineA2aSession(t,r).then(o=>o(e,n))},revertWorldlineSession(t,r){return s.revertWorldlineSession(t,r).then(o=>o(e,n))},voidManualPayment(t,r){return s.voidManualPayment(t,r).then(o=>o(e,n))},waitForNexiSession(t,r){return s.waitForNexiSession(t,r).then(o=>o(e,n))}}},St=class extends I{cancelSession(n,e){return U(this.configuration).cancelSession(n,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(n,e,s,t){return U(this.configuration).getOrderSettlementStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentSession(n,e){return U(this.configuration).getPaymentSession(n,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(n,e,s,t,r){return U(this.configuration).getPaymentSessionAnalytics(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getPaymentSessionCurrency(n,e){return U(this.configuration).getPaymentSessionCurrency(n,e).then(s=>s(this.axios,this.basePath))}initiateEpassiSession(n,e,s,t){return U(this.configuration).initiateEpassiSession(n,e,s,t).then(r=>r(this.axios,this.basePath))}initiateNetsSession(n,e,s){return U(this.configuration).initiateNetsSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateNexiSession(n,e,s){return U(this.configuration).initiateNexiSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(n,e){return U(this.configuration).initiateVivaA2aSession(n,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(n,e,s){return U(this.configuration).initiateVivaSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineA2aSession(n,e,s){return U(this.configuration).initiateWorldlineA2aSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(n,e,s){return U(this.configuration).initiateWorldlineSession(n,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(n,e){return U(this.configuration).paymentSessionGetChargeStatus(n,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(n,e){return U(this.configuration).paymentSessionRegisterChargeMapping(n,e).then(s=>s(this.axios,this.basePath))}pollEpassiSession(n,e){return U(this.configuration).pollEpassiSession(n,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(n,e){return U(this.configuration).pollVivaSession(n,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(n,e){return U(this.configuration).pollWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(n,e,s){return U(this.configuration).recordManualPayment(n,e,s).then(t=>t(this.axios,this.basePath))}recordWorldlineA2aResult(n,e){return U(this.configuration).recordWorldlineA2aResult(n,e).then(s=>s(this.axios,this.basePath))}refundEpassiSession(n,e){return U(this.configuration).refundEpassiSession(n,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(n,e){return U(this.configuration).refundNetsSession(n,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(n,e){return U(this.configuration).refundVivaSession(n,e).then(s=>s(this.axios,this.basePath))}refundWorldlineA2aSession(n,e){return U(this.configuration).refundWorldlineA2aSession(n,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(n,e){return U(this.configuration).refundWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(n,e){return U(this.configuration).retryWorldlineReversal(n,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(n,e){return U(this.configuration).revertNetsSession(n,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(n,e){return U(this.configuration).revertVivaSession(n,e).then(s=>s(this.axios,this.basePath))}revertWorldlineA2aSession(n,e){return U(this.configuration).revertWorldlineA2aSession(n,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(n,e){return U(this.configuration).revertWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(n,e){return U(this.configuration).voidManualPayment(n,e).then(s=>s(this.axios,this.basePath))}waitForNexiSession(n,e){return U(this.configuration).waitForNexiSession(n,e).then(s=>s(this.axios,this.basePath))}},Ys=function(a){return{deletePrinterByAddress:async(n,e,s={})=>{c("deletePrinterByAddress","businessId",n),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.address=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},upsertPrinter:async(n,e={})=>{c("upsertPrinter","upsertPrinterDto",n);let s="/api/v1/printer",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ke=function(a){let n=Ys(a);return{async deletePrinterByAddress(e,s,t){let r=await n.deletePrinterByAddress(e,s,t);return P(r,R,m,a)},async upsertPrinter(e,s){let t=await n.upsertPrinter(e,s);return P(t,R,m,a)}}},Qi=function(a,n,e){let s=ke(a);return{deletePrinterByAddress(t,r,o){return s.deletePrinterByAddress(t,r,o).then(i=>i(e,n))},upsertPrinter(t,r){return s.upsertPrinter(t,r).then(o=>o(e,n))}}},Ot=class extends I{deletePrinterByAddress(n,e,s){return ke(this.configuration).deletePrinterByAddress(n,e,s).then(t=>t(this.axios,this.basePath))}upsertPrinter(n,e){return ke(this.configuration).upsertPrinter(n,e).then(s=>s(this.axios,this.basePath))}},Xs=function(a){return{getChannelInventoryV2:async(n,e,s,t={})=>{c("getChannelInventoryV2","businessId",n),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},updateChannelInventoryV2:async(n,e,s,t,r={})=>{c("updateChannelInventoryV2","businessId",n),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(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},updateProductSkuV2:async(n,e,s,t,r={})=>{c("updateProductSkuV2","businessId",n),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(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},updateProductSkusV2:async(n,e,s,t,r={})=>{c("updateProductSkusV2","businessId",n),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(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}}}},ce=function(a){let n=Xs(a);return{async getChannelInventoryV2(e,s,t,r){let o=await n.getChannelInventoryV2(e,s,t,r);return P(o,R,m,a)},async updateChannelInventoryV2(e,s,t,r,o){let i=await n.updateChannelInventoryV2(e,s,t,r,o);return P(i,R,m,a)},async updateProductSkuV2(e,s,t,r,o){let i=await n.updateProductSkuV2(e,s,t,r,o);return P(i,R,m,a)},async updateProductSkusV2(e,s,t,r,o){let i=await n.updateProductSkusV2(e,s,t,r,o);return P(i,R,m,a)}}},$i=function(a,n,e){let s=ce(a);return{getChannelInventoryV2(t,r,o,i){return s.getChannelInventoryV2(t,r,o,i).then(l=>l(e,n))},updateChannelInventoryV2(t,r,o,i,l){return s.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,n))},updateProductSkuV2(t,r,o,i,l){return s.updateProductSkuV2(t,r,o,i,l).then(u=>u(e,n))},updateProductSkusV2(t,r,o,i,l){return s.updateProductSkusV2(t,r,o,i,l).then(u=>u(e,n))}}},Vt=class extends I{getChannelInventoryV2(n,e,s,t){return ce(this.configuration).getChannelInventoryV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(n,e,s,t,r){return ce(this.configuration).updateChannelInventoryV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(n,e,s,t,r){return ce(this.configuration).updateProductSkuV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkusV2(n,e,s,t,r){return ce(this.configuration).updateProductSkusV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},Zs=function(a){return{listAutomaticPromotions:async(n,e={})=>{c("listAutomaticPromotions","businessId",n);let s="/api/v2/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listKioskAutomaticPromotions:async(n,e={})=>{c("listKioskAutomaticPromotions","businessId",n);let s="/api/v2/kiosk/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},priceBasketWithPromotions:async(n,e,s={})=>{c("priceBasketWithPromotions","businessId",n),c("priceBasketWithPromotions","priceBasketDto",e);let t="/api/v2/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},priceKioskBasketWithPromotions:async(n,e,s={})=>{c("priceKioskBasketWithPromotions","businessId",n),c("priceKioskBasketWithPromotions","priceBasketDto",e);let t="/api/v2/kiosk/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},pe=function(a){let n=Zs(a);return{async listAutomaticPromotions(e,s){let t=await n.listAutomaticPromotions(e,s);return P(t,R,m,a)},async listKioskAutomaticPromotions(e,s){let t=await n.listKioskAutomaticPromotions(e,s);return P(t,R,m,a)},async priceBasketWithPromotions(e,s,t){let r=await n.priceBasketWithPromotions(e,s,t);return P(r,R,m,a)},async priceKioskBasketWithPromotions(e,s,t){let r=await n.priceKioskBasketWithPromotions(e,s,t);return P(r,R,m,a)}}},zi=function(a,n,e){let s=pe(a);return{listAutomaticPromotions(t,r){return s.listAutomaticPromotions(t,r).then(o=>o(e,n))},listKioskAutomaticPromotions(t,r){return s.listKioskAutomaticPromotions(t,r).then(o=>o(e,n))},priceBasketWithPromotions(t,r,o){return s.priceBasketWithPromotions(t,r,o).then(i=>i(e,n))},priceKioskBasketWithPromotions(t,r,o){return s.priceKioskBasketWithPromotions(t,r,o).then(i=>i(e,n))}}},It=class extends I{listAutomaticPromotions(n,e){return pe(this.configuration).listAutomaticPromotions(n,e).then(s=>s(this.axios,this.basePath))}listKioskAutomaticPromotions(n,e){return pe(this.configuration).listKioskAutomaticPromotions(n,e).then(s=>s(this.axios,this.basePath))}priceBasketWithPromotions(n,e,s){return pe(this.configuration).priceBasketWithPromotions(n,e,s).then(t=>t(this.axios,this.basePath))}priceKioskBasketWithPromotions(n,e,s){return pe(this.configuration).priceKioskBasketWithPromotions(n,e,s).then(t=>t(this.axios,this.basePath))}},Js=function(a){return{createOnboardingSession:async(n,e,s={})=>{c("createOnboardingSession","channel",n),c("createOnboardingSession","createOnboardingSessionDto",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},disconnectOnboarding:async(n,e,s={})=>{c("disconnectOnboarding","channel",n),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getMenuIntegrations:async(n,e={})=>{c("getMenuIntegrations","businessId",n);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getOnboardingStatus:async(n,e,s={})=>{c("getOnboardingStatus","channel",n),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getVenueProviders:async(n,e={})=>{c("getVenueProviders","businessId",n);let s="/api/v2/venues/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listOnboardingStores:async(n,e,s={})=>{c("listOnboardingStores","channel",n),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},provisionOnboardingStore:async(n,e,s,t={})=>{c("provisionOnboardingStore","channel",n),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","provisionOnboardingStoreDto",s);let r="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateProviderSettings:async(n,e,s={})=>{c("updateProviderSettings","businessId",n),c("updateProviderSettings","updateProviderSettingsDto",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},updateVenueProviders:async(n,e,s={})=>{c("updateVenueProviders","businessId",n),c("updateVenueProviders","updateVenueProvidersDto",e);let t="/api/v2/venues/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Q=function(a){let n=Js(a);return{async createOnboardingSession(e,s,t){let r=await n.createOnboardingSession(e,s,t);return P(r,R,m,a)},async disconnectOnboarding(e,s,t){let r=await n.disconnectOnboarding(e,s,t);return P(r,R,m,a)},async getMenuIntegrations(e,s){let t=await n.getMenuIntegrations(e,s);return P(t,R,m,a)},async getOnboardingStatus(e,s,t){let r=await n.getOnboardingStatus(e,s,t);return P(r,R,m,a)},async getVenueProviders(e,s){let t=await n.getVenueProviders(e,s);return P(t,R,m,a)},async listOnboardingStores(e,s,t){let r=await n.listOnboardingStores(e,s,t);return P(r,R,m,a)},async provisionOnboardingStore(e,s,t,r){let o=await n.provisionOnboardingStore(e,s,t,r);return P(o,R,m,a)},async updateProviderSettings(e,s,t){let r=await n.updateProviderSettings(e,s,t);return P(r,R,m,a)},async updateVenueProviders(e,s,t){let r=await n.updateVenueProviders(e,s,t);return P(r,R,m,a)}}},Yi=function(a,n,e){let s=Q(a);return{createOnboardingSession(t,r,o){return s.createOnboardingSession(t,r,o).then(i=>i(e,n))},disconnectOnboarding(t,r,o){return s.disconnectOnboarding(t,r,o).then(i=>i(e,n))},getMenuIntegrations(t,r){return s.getMenuIntegrations(t,r).then(o=>o(e,n))},getOnboardingStatus(t,r,o){return s.getOnboardingStatus(t,r,o).then(i=>i(e,n))},getVenueProviders(t,r){return s.getVenueProviders(t,r).then(o=>o(e,n))},listOnboardingStores(t,r,o){return s.listOnboardingStores(t,r,o).then(i=>i(e,n))},provisionOnboardingStore(t,r,o,i){return s.provisionOnboardingStore(t,r,o,i).then(l=>l(e,n))},updateProviderSettings(t,r,o){return s.updateProviderSettings(t,r,o).then(i=>i(e,n))},updateVenueProviders(t,r,o){return s.updateVenueProviders(t,r,o).then(i=>i(e,n))}}},vt=class extends I{createOnboardingSession(n,e,s){return Q(this.configuration).createOnboardingSession(n,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(n,e,s){return Q(this.configuration).disconnectOnboarding(n,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(n,e){return Q(this.configuration).getMenuIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(n,e,s){return Q(this.configuration).getOnboardingStatus(n,e,s).then(t=>t(this.axios,this.basePath))}getVenueProviders(n,e){return Q(this.configuration).getVenueProviders(n,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(n,e,s){return Q(this.configuration).listOnboardingStores(n,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(n,e,s,t){return Q(this.configuration).provisionOnboardingStore(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateProviderSettings(n,e,s){return Q(this.configuration).updateProviderSettings(n,e,s).then(t=>t(this.axios,this.basePath))}updateVenueProviders(n,e,s){return Q(this.configuration).updateVenueProviders(n,e,s).then(t=>t(this.axios,this.basePath))}},er=function(a){return{receiptFooterGetConfig:async(n,e,s={})=>{c("receiptFooterGetConfig","businessId",n),c("receiptFooterGetConfig","xAppX",e);let t="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!=null&&(l["x-app-x"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},receiptFooterUpsertConfig:async(n,e,s,t={})=>{c("receiptFooterUpsertConfig","businessId",n),c("receiptFooterUpsertConfig","xAppX",e),c("receiptFooterUpsertConfig","upsertReceiptFooterDto",s);let r="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},Me=function(a){let n=er(a);return{async receiptFooterGetConfig(e,s,t){let r=await n.receiptFooterGetConfig(e,s,t);return P(r,R,m,a)},async receiptFooterUpsertConfig(e,s,t,r){let o=await n.receiptFooterUpsertConfig(e,s,t,r);return P(o,R,m,a)}}},Xi=function(a,n,e){let s=Me(a);return{receiptFooterGetConfig(t,r,o){return s.receiptFooterGetConfig(t,r,o).then(i=>i(e,n))},receiptFooterUpsertConfig(t,r,o,i){return s.receiptFooterUpsertConfig(t,r,o,i).then(l=>l(e,n))}}},Tt=class extends I{receiptFooterGetConfig(n,e,s){return Me(this.configuration).receiptFooterGetConfig(n,e,s).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(n,e,s,t){return Me(this.configuration).receiptFooterUpsertConfig(n,e,s,t).then(r=>r(this.axios,this.basePath))}},tr=function(a){return{cancelPlanV2:async(n,e,s,t={})=>{c("cancelPlanV2","businessId",n),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},createRefundPlanV2:async(n,e,s,t={})=>{c("createRefundPlanV2","businessId",n),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getRefundPlanV2:async(n,e,s,t={})=>{c("getRefundPlanV2","businessId",n),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},recordRefundPlanV2:async(n,e,s,t,r={})=>{c("recordRefundPlanV2","businessId",n),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(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},refundOnlineOrder:async(n,e,s,t={})=>{c("refundOnlineOrder","businessId",n),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},resolveRefundChoiceV2:async(n,e,s,t,r={})=>{c("resolveRefundChoiceV2","businessId",n),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(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},startProcessPlanV2:async(n,e,s,t={})=>{c("startProcessPlanV2","businessId",n),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}}}},Z=function(a){let n=tr(a);return{async cancelPlanV2(e,s,t,r){let o=await n.cancelPlanV2(e,s,t,r);return P(o,R,m,a)},async createRefundPlanV2(e,s,t,r){let o=await n.createRefundPlanV2(e,s,t,r);return P(o,R,m,a)},async getRefundPlanV2(e,s,t,r){let o=await n.getRefundPlanV2(e,s,t,r);return P(o,R,m,a)},async recordRefundPlanV2(e,s,t,r,o){let i=await n.recordRefundPlanV2(e,s,t,r,o);return P(i,R,m,a)},async refundOnlineOrder(e,s,t,r){let o=await n.refundOnlineOrder(e,s,t,r);return P(o,R,m,a)},async resolveRefundChoiceV2(e,s,t,r,o){let i=await n.resolveRefundChoiceV2(e,s,t,r,o);return P(i,R,m,a)},async startProcessPlanV2(e,s,t,r){let o=await n.startProcessPlanV2(e,s,t,r);return P(o,R,m,a)}}},Zi=function(a,n,e){let s=Z(a);return{cancelPlanV2(t,r,o,i){return s.cancelPlanV2(t,r,o,i).then(l=>l(e,n))},createRefundPlanV2(t,r,o,i){return s.createRefundPlanV2(t,r,o,i).then(l=>l(e,n))},getRefundPlanV2(t,r,o,i){return s.getRefundPlanV2(t,r,o,i).then(l=>l(e,n))},recordRefundPlanV2(t,r,o,i,l){return s.recordRefundPlanV2(t,r,o,i,l).then(u=>u(e,n))},refundOnlineOrder(t,r,o,i){return s.refundOnlineOrder(t,r,o,i).then(l=>l(e,n))},resolveRefundChoiceV2(t,r,o,i,l){return s.resolveRefundChoiceV2(t,r,o,i,l).then(u=>u(e,n))},startProcessPlanV2(t,r,o,i){return s.startProcessPlanV2(t,r,o,i).then(l=>l(e,n))}}},qt=class extends I{cancelPlanV2(n,e,s,t){return Z(this.configuration).cancelPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlanV2(n,e,s,t){return Z(this.configuration).createRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlanV2(n,e,s,t){return Z(this.configuration).getRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}recordRefundPlanV2(n,e,s,t,r){return Z(this.configuration).recordRefundPlanV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(n,e,s,t){return Z(this.configuration).refundOnlineOrder(n,e,s,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoiceV2(n,e,s,t,r){return Z(this.configuration).resolveRefundChoiceV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlanV2(n,e,s,t){return Z(this.configuration).startProcessPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}},sr=function(a){return{getBoughtTogether:async(n,e,s,t,r,o,i,l,u,d,p={})=>{c("getBoughtTogether","businessIds",n);let f="/api/v6/report/sales/bought-together",C=new URL(f,g),x;a&&(x=a.baseOptions);let D={method:"GET",...x,...p},O={},V={};await A(O,a),e!==void 0&&(V.timeSpan=e),s!==void 0&&(V.start=s),t!==void 0&&(V.end=t),n&&(V.businessIds=n),r!==void 0&&(V.timezone=r),o&&(V.apps=o),i!==void 0&&(V.breakdown=i),l!==void 0&&(V.language=l),u!==void 0&&(V.itemKey=u),d!==void 0&&(V.limit=d),y(C,V);let v=x&&x.headers?x.headers:{};return D.headers={...O,...v,...p.headers},{url:h(C),options:D}},getEndOfDayReportFile:async(n,e,s,t,r,o,i,l={})=>{c("getEndOfDayReportFile","businessId",n);let u="/api/v6/report/end-of-day/file",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n!==void 0&&(x.businessId=n),r!==void 0&&(x.timezone=r),o!==void 0&&(x.provider=o),i!==void 0&&(x.language=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getEndOfDayReportV5:async(n,e,s,t,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",n);let l="/api/v5/report/end-of-day",u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),n&&(C.businessIds=n),r!==void 0&&(C.timezone=r),o!==void 0&&(C.provider=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},getSalesReport:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x={})=>{c("getSalesReport","businessIds",n);let D="/api/v6/report/sales",O=new URL(D,g),V;a&&(V=a.baseOptions);let v={method:"GET",...V,...x},q={},T={};await A(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),n&&(T.businessIds=n),r!==void 0&&(T.timezone=r),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),p!==void 0&&(T.compareEnd=p),f!==void 0&&(T.compareSameTime=f),C!==void 0&&(T.baseline=C),y(O,T);let S=V&&V.headers?V.headers:{};return v.headers={...q,...S,...x.headers},{url:h(O),options:v}},getSalesReportFile:async(n,e,s,t,r,o,i,l={})=>{c("getSalesReportFile","businessId",n);let u="/api/v6/report/sales/file",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n!==void 0&&(x.businessId=n),r!==void 0&&(x.timezone=r),o!==void 0&&(x.language=o),i!==void 0&&(x.format=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getSalesReportHours:async(n,e,s,t,r,o,i,l,u,d={})=>{c("getSalesReportHours","businessIds",n);let p="/api/v6/report/sales/hours",f=new URL(p,g),C;a&&(C=a.baseOptions);let x={method:"GET",...C,...d},D={},O={};await A(D,a),e!==void 0&&(O.timeSpan=e),s!==void 0&&(O.start=s),t!==void 0&&(O.end=t),n&&(O.businessIds=n),r!==void 0&&(O.timezone=r),o&&(O.apps=o),i!==void 0&&(O.breakdown=i),l!==void 0&&(O.language=l),u!==void 0&&(O.isoWeekday=u),y(f,O);let V=C&&C.headers?C.headers:{};return x.headers={...D,...V,...d.headers},{url:h(f),options:x}},getSalesReportOrderTypes:async(n,e,s,t,r,o,i,l,u={})=>{c("getSalesReportOrderTypes","businessIds",n);let d="/api/v6/report/sales/order-types",p=new URL(d,g),f;a&&(f=a.baseOptions);let C={method:"GET",...f,...u},x={},D={};await A(x,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.timezone=r),o&&(D.apps=o),i!==void 0&&(D.breakdown=i),l!==void 0&&(D.language=l),y(p,D);let O=f&&f.headers?f.headers:{};return C.headers={...x,...O,...u.headers},{url:h(p),options:C}},getSalesReportStaff:async(n,e,s,t,r,o,i,l={})=>{c("getSalesReportStaff","businessIds",n);let u="/api/v6/report/sales/staff",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n&&(x.businessIds=n),r!==void 0&&(x.timezone=r),o&&(x.apps=o),i!==void 0&&(x.language=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getShortSalesReport:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x={})=>{c("getShortSalesReport","businessIds",n);let D="/api/v6/report/sales/short",O=new URL(D,g),V;a&&(V=a.baseOptions);let v={method:"GET",...V,...x},q={},T={};await A(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),n&&(T.businessIds=n),r!==void 0&&(T.timezone=r),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),p!==void 0&&(T.compareEnd=p),f!==void 0&&(T.compareSameTime=f),C!==void 0&&(T.baseline=C),y(O,T);let S=V&&V.headers?V.headers:{};return v.headers={...q,...S,...x.headers},{url:h(O),options:v}},sendReportEmailV5:async(n,e,s,t,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",n),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"POST",...p,...l},C={},x={};t!==void 0&&(x.timeSpan=t),r!==void 0&&(x.start=r),o!==void 0&&(x.end=o),n&&(x.businessIds=n),e!==void 0&&(x.timezone=e),i!==void 0&&(x.provider=i),C["Content-Type"]="application/json",y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},f.data=b(s,f,a),{url:h(d),options:f}}}},j=function(a){let n=sr(a);return{async getBoughtTogether(e,s,t,r,o,i,l,u,d,p,f){let C=await n.getBoughtTogether(e,s,t,r,o,i,l,u,d,p,f);return P(C,R,m,a)},async getEndOfDayReportFile(e,s,t,r,o,i,l,u){let d=await n.getEndOfDayReportFile(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getEndOfDayReportV5(e,s,t,r,o,i,l){let u=await n.getEndOfDayReportV5(e,s,t,r,o,i,l);return P(u,R,m,a)},async getSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D){let O=await n.getSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D);return P(O,R,m,a)},async getSalesReportFile(e,s,t,r,o,i,l,u){let d=await n.getSalesReportFile(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getSalesReportHours(e,s,t,r,o,i,l,u,d,p){let f=await n.getSalesReportHours(e,s,t,r,o,i,l,u,d,p);return P(f,R,m,a)},async getSalesReportOrderTypes(e,s,t,r,o,i,l,u,d){let p=await n.getSalesReportOrderTypes(e,s,t,r,o,i,l,u,d);return P(p,R,m,a)},async getSalesReportStaff(e,s,t,r,o,i,l,u){let d=await n.getSalesReportStaff(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getShortSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D){let O=await n.getShortSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D);return P(O,R,m,a)},async sendReportEmailV5(e,s,t,r,o,i,l,u){let d=await n.sendReportEmailV5(e,s,t,r,o,i,l,u);return P(d,R,m,a)}}},Ji=function(a,n,e){let s=j(a);return{getBoughtTogether(t,r,o,i,l,u,d,p,f,C,x){return s.getBoughtTogether(t,r,o,i,l,u,d,p,f,C,x).then(D=>D(e,n))},getEndOfDayReportFile(t,r,o,i,l,u,d,p){return s.getEndOfDayReportFile(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getEndOfDayReportV5(t,r,o,i,l,u,d){return s.getEndOfDayReportV5(t,r,o,i,l,u,d).then(p=>p(e,n))},getSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V){return s.getSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V).then(v=>v(e,n))},getSalesReportFile(t,r,o,i,l,u,d,p){return s.getSalesReportFile(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getSalesReportHours(t,r,o,i,l,u,d,p,f,C){return s.getSalesReportHours(t,r,o,i,l,u,d,p,f,C).then(x=>x(e,n))},getSalesReportOrderTypes(t,r,o,i,l,u,d,p,f){return s.getSalesReportOrderTypes(t,r,o,i,l,u,d,p,f).then(C=>C(e,n))},getSalesReportStaff(t,r,o,i,l,u,d,p){return s.getSalesReportStaff(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getShortSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V){return s.getShortSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V).then(v=>v(e,n))},sendReportEmailV5(t,r,o,i,l,u,d,p){return s.sendReportEmailV5(t,r,o,i,l,u,d,p).then(f=>f(e,n))}}},Ut=class extends I{getBoughtTogether(n,e,s,t,r,o,i,l,u,d,p){return j(this.configuration).getBoughtTogether(n,e,s,t,r,o,i,l,u,d,p).then(f=>f(this.axios,this.basePath))}getEndOfDayReportFile(n,e,s,t,r,o,i,l){return j(this.configuration).getEndOfDayReportFile(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getEndOfDayReportV5(n,e,s,t,r,o,i){return j(this.configuration).getEndOfDayReportV5(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}getSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x){return j(this.configuration).getSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x).then(D=>D(this.axios,this.basePath))}getSalesReportFile(n,e,s,t,r,o,i,l){return j(this.configuration).getSalesReportFile(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getSalesReportHours(n,e,s,t,r,o,i,l,u,d){return j(this.configuration).getSalesReportHours(n,e,s,t,r,o,i,l,u,d).then(p=>p(this.axios,this.basePath))}getSalesReportOrderTypes(n,e,s,t,r,o,i,l,u){return j(this.configuration).getSalesReportOrderTypes(n,e,s,t,r,o,i,l,u).then(d=>d(this.axios,this.basePath))}getSalesReportStaff(n,e,s,t,r,o,i,l){return j(this.configuration).getSalesReportStaff(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getShortSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x){return j(this.configuration).getShortSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x).then(D=>D(this.axios,this.basePath))}sendReportEmailV5(n,e,s,t,r,o,i,l){return j(this.configuration).sendReportEmailV5(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},rr=function(a){return{getOrganisationReportRunFile:async(n,e,s,t={})=>{c("getOrganisationReportRunFile","groupId",n),c("getOrganisationReportRunFile","runId",e),c("getOrganisationReportRunFile","format",s);let r="/api/v6/groups/{groupId}/report-runs/{runId}/file".replace("{groupId}",encodeURIComponent(String(n))).replace("{runId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),s!==void 0&&(d.format=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getOrganisationSavedReportSchedule:async(n,e,s={})=>{c("getOrganisationSavedReportSchedule","groupId",n),c("getOrganisationSavedReportSchedule","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}/schedule".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getReportRun:async(n,e={})=>{c("getReportRun","runId",n);let s="/api/v6/report-runs/{runId}".replace("{runId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getStoreReadyMadeReportSchedule:async(n,e,s={})=>{c("getStoreReadyMadeReportSchedule","businessId",n),c("getStoreReadyMadeReportSchedule","readyMadeReport",e);let t="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{readyMadeReport}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getStoreReportRunFile:async(n,e,s,t={})=>{c("getStoreReportRunFile","businessId",n),c("getStoreReportRunFile","runId",e),c("getStoreReportRunFile","format",s);let r="/api/v6/businesses/{businessId}/report-runs/{runId}/file".replace("{businessId}",encodeURIComponent(String(n))).replace("{runId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),s!==void 0&&(d.format=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getStoreSavedReportSchedule:async(n,e,s={})=>{c("getStoreSavedReportSchedule","businessId",n),c("getStoreSavedReportSchedule","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOrganisationSavedReportRuns:async(n,e,s,t,r={})=>{c("listOrganisationSavedReportRuns","groupId",n),c("listOrganisationSavedReportRuns","reportId",e);let o="/api/v6/groups/{groupId}/reports/{reportId}/runs".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},listStoreReadyMadeReportRuns:async(n,e,s,t,r={})=>{c("listStoreReadyMadeReportRuns","businessId",n),c("listStoreReadyMadeReportRuns","readyMadeReport",e);let o="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/runs".replace("{businessId}",encodeURIComponent(String(n))).replace("{readyMadeReport}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},listStoreSavedReportRuns:async(n,e,s,t,r={})=>{c("listStoreSavedReportRuns","businessId",n),c("listStoreSavedReportRuns","reportId",e);let o="/api/v6/businesses/{businessId}/reports/{reportId}/runs".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},setOrganisationSavedReportSchedule:async(n,e,s,t={})=>{c("setOrganisationSavedReportSchedule","groupId",n),c("setOrganisationSavedReportSchedule","reportId",e),c("setOrganisationSavedReportSchedule","setReportScheduleDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/schedule".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setStoreReadyMadeReportSchedule:async(n,e,s,t={})=>{c("setStoreReadyMadeReportSchedule","businessId",n),c("setStoreReadyMadeReportSchedule","readyMadeReport",e),c("setStoreReadyMadeReportSchedule","setReportScheduleDto",s);let r="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{readyMadeReport}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setStoreSavedReportSchedule:async(n,e,s,t={})=>{c("setStoreSavedReportSchedule","businessId",n),c("setStoreSavedReportSchedule","reportId",e),c("setStoreSavedReportSchedule","setReportScheduleDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},G=function(a){let n=rr(a);return{async getOrganisationReportRunFile(e,s,t,r){let o=await n.getOrganisationReportRunFile(e,s,t,r);return P(o,R,m,a)},async getOrganisationSavedReportSchedule(e,s,t){let r=await n.getOrganisationSavedReportSchedule(e,s,t);return P(r,R,m,a)},async getReportRun(e,s){let t=await n.getReportRun(e,s);return P(t,R,m,a)},async getStoreReadyMadeReportSchedule(e,s,t){let r=await n.getStoreReadyMadeReportSchedule(e,s,t);return P(r,R,m,a)},async getStoreReportRunFile(e,s,t,r){let o=await n.getStoreReportRunFile(e,s,t,r);return P(o,R,m,a)},async getStoreSavedReportSchedule(e,s,t){let r=await n.getStoreSavedReportSchedule(e,s,t);return P(r,R,m,a)},async listOrganisationSavedReportRuns(e,s,t,r,o){let i=await n.listOrganisationSavedReportRuns(e,s,t,r,o);return P(i,R,m,a)},async listStoreReadyMadeReportRuns(e,s,t,r,o){let i=await n.listStoreReadyMadeReportRuns(e,s,t,r,o);return P(i,R,m,a)},async listStoreSavedReportRuns(e,s,t,r,o){let i=await n.listStoreSavedReportRuns(e,s,t,r,o);return P(i,R,m,a)},async setOrganisationSavedReportSchedule(e,s,t,r){let o=await n.setOrganisationSavedReportSchedule(e,s,t,r);return P(o,R,m,a)},async setStoreReadyMadeReportSchedule(e,s,t,r){let o=await n.setStoreReadyMadeReportSchedule(e,s,t,r);return P(o,R,m,a)},async setStoreSavedReportSchedule(e,s,t,r){let o=await n.setStoreSavedReportSchedule(e,s,t,r);return P(o,R,m,a)}}},el=function(a,n,e){let s=G(a);return{getOrganisationReportRunFile(t,r,o,i){return s.getOrganisationReportRunFile(t,r,o,i).then(l=>l(e,n))},getOrganisationSavedReportSchedule(t,r,o){return s.getOrganisationSavedReportSchedule(t,r,o).then(i=>i(e,n))},getReportRun(t,r){return s.getReportRun(t,r).then(o=>o(e,n))},getStoreReadyMadeReportSchedule(t,r,o){return s.getStoreReadyMadeReportSchedule(t,r,o).then(i=>i(e,n))},getStoreReportRunFile(t,r,o,i){return s.getStoreReportRunFile(t,r,o,i).then(l=>l(e,n))},getStoreSavedReportSchedule(t,r,o){return s.getStoreSavedReportSchedule(t,r,o).then(i=>i(e,n))},listOrganisationSavedReportRuns(t,r,o,i,l){return s.listOrganisationSavedReportRuns(t,r,o,i,l).then(u=>u(e,n))},listStoreReadyMadeReportRuns(t,r,o,i,l){return s.listStoreReadyMadeReportRuns(t,r,o,i,l).then(u=>u(e,n))},listStoreSavedReportRuns(t,r,o,i,l){return s.listStoreSavedReportRuns(t,r,o,i,l).then(u=>u(e,n))},setOrganisationSavedReportSchedule(t,r,o,i){return s.setOrganisationSavedReportSchedule(t,r,o,i).then(l=>l(e,n))},setStoreReadyMadeReportSchedule(t,r,o,i){return s.setStoreReadyMadeReportSchedule(t,r,o,i).then(l=>l(e,n))},setStoreSavedReportSchedule(t,r,o,i){return s.setStoreSavedReportSchedule(t,r,o,i).then(l=>l(e,n))}}},Et=class extends I{getOrganisationReportRunFile(n,e,s,t){return G(this.configuration).getOrganisationReportRunFile(n,e,s,t).then(r=>r(this.axios,this.basePath))}getOrganisationSavedReportSchedule(n,e,s){return G(this.configuration).getOrganisationSavedReportSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}getReportRun(n,e){return G(this.configuration).getReportRun(n,e).then(s=>s(this.axios,this.basePath))}getStoreReadyMadeReportSchedule(n,e,s){return G(this.configuration).getStoreReadyMadeReportSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}getStoreReportRunFile(n,e,s,t){return G(this.configuration).getStoreReportRunFile(n,e,s,t).then(r=>r(this.axios,this.basePath))}getStoreSavedReportSchedule(n,e,s){return G(this.configuration).getStoreSavedReportSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}listOrganisationSavedReportRuns(n,e,s,t,r){return G(this.configuration).listOrganisationSavedReportRuns(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}listStoreReadyMadeReportRuns(n,e,s,t,r){return G(this.configuration).listStoreReadyMadeReportRuns(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}listStoreSavedReportRuns(n,e,s,t,r){return G(this.configuration).listStoreSavedReportRuns(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}setOrganisationSavedReportSchedule(n,e,s,t){return G(this.configuration).setOrganisationSavedReportSchedule(n,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreReadyMadeReportSchedule(n,e,s,t){return G(this.configuration).setStoreReadyMadeReportSchedule(n,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreSavedReportSchedule(n,e,s,t){return G(this.configuration).setStoreSavedReportSchedule(n,e,s,t).then(r=>r(this.axios,this.basePath))}},nr=function(a){return{getEndOfDayReportForTill:async(n,e,s,t,r,o,i={})=>{c("getEndOfDayReportForTill","businessIds",n);let l="/api/v6/report/end-of-day",u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};await A(f,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),n&&(C.businessIds=n),r!==void 0&&(C.timezone=r),o!==void 0&&(C.provider=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},sendEndOfDayReportForTill:async(n,e,s,t,r,o,i,l={})=>{c("sendEndOfDayReportForTill","businessIds",n),c("sendEndOfDayReportForTill","sendReportEmailDto",e);let u="/api/v6/report/email",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"POST",...p,...l},C={},x={};await A(C,a),s!==void 0&&(x.timeSpan=s),t!==void 0&&(x.start=t),r!==void 0&&(x.end=r),n&&(x.businessIds=n),o!==void 0&&(x.timezone=o),i!==void 0&&(x.provider=i),C["Content-Type"]="application/json",y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},f.data=b(e,f,a),{url:h(d),options:f}}}},Be=function(a){let n=nr(a);return{async getEndOfDayReportForTill(e,s,t,r,o,i,l){let u=await n.getEndOfDayReportForTill(e,s,t,r,o,i,l);return P(u,R,m,a)},async sendEndOfDayReportForTill(e,s,t,r,o,i,l,u){let d=await n.sendEndOfDayReportForTill(e,s,t,r,o,i,l,u);return P(d,R,m,a)}}},tl=function(a,n,e){let s=Be(a);return{getEndOfDayReportForTill(t,r,o,i,l,u,d){return s.getEndOfDayReportForTill(t,r,o,i,l,u,d).then(p=>p(e,n))},sendEndOfDayReportForTill(t,r,o,i,l,u,d,p){return s.sendEndOfDayReportForTill(t,r,o,i,l,u,d,p).then(f=>f(e,n))}}},kt=class extends I{getEndOfDayReportForTill(n,e,s,t,r,o,i){return Be(this.configuration).getEndOfDayReportForTill(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendEndOfDayReportForTill(n,e,s,t,r,o,i,l){return Be(this.configuration).sendEndOfDayReportForTill(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},or=function(a){return{changeResQOffer:async(n,e,s,t={})=>{c("changeResQOffer","businessId",n),c("changeResQOffer","offerId",e),c("changeResQOffer","changeResQOfferDto",s);let r="/api/v2/venues/{businessId}/resq/offers/{offerId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{offerId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},createResQOffer:async(n,e,s={})=>{c("createResQOffer","businessId",n),c("createResQOffer","createResQOfferDto",e);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},deactivateResQOffer:async(n,e,s={})=>{c("deactivateResQOffer","businessId",n),c("deactivateResQOffer","offerId",e);let t="/api/v2/venues/{businessId}/resq/offers/{offerId}/deactivate".replace("{businessId}",encodeURIComponent(String(n))).replace("{offerId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getResQOrder:async(n,e,s={})=>{c("getResQOrder","businessId",n),c("getResQOrder","orderId",e);let t="/api/v2/venues/{businessId}/resq/orders/{orderId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listResQOffers:async(n,e,s={})=>{c("listResQOffers","businessId",n);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.page=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listResQOrders:async(n,e,s={})=>{c("listResQOrders","businessId",n);let t="/api/v2/venues/{businessId}/resq/orders".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.page=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},se=function(a){let n=or(a);return{async changeResQOffer(e,s,t,r){let o=await n.changeResQOffer(e,s,t,r);return P(o,R,m,a)},async createResQOffer(e,s,t){let r=await n.createResQOffer(e,s,t);return P(r,R,m,a)},async deactivateResQOffer(e,s,t){let r=await n.deactivateResQOffer(e,s,t);return P(r,R,m,a)},async getResQOrder(e,s,t){let r=await n.getResQOrder(e,s,t);return P(r,R,m,a)},async listResQOffers(e,s,t){let r=await n.listResQOffers(e,s,t);return P(r,R,m,a)},async listResQOrders(e,s,t){let r=await n.listResQOrders(e,s,t);return P(r,R,m,a)}}},sl=function(a,n,e){let s=se(a);return{changeResQOffer(t,r,o,i){return s.changeResQOffer(t,r,o,i).then(l=>l(e,n))},createResQOffer(t,r,o){return s.createResQOffer(t,r,o).then(i=>i(e,n))},deactivateResQOffer(t,r,o){return s.deactivateResQOffer(t,r,o).then(i=>i(e,n))},getResQOrder(t,r,o){return s.getResQOrder(t,r,o).then(i=>i(e,n))},listResQOffers(t,r,o){return s.listResQOffers(t,r,o).then(i=>i(e,n))},listResQOrders(t,r,o){return s.listResQOrders(t,r,o).then(i=>i(e,n))}}},Mt=class extends I{changeResQOffer(n,e,s,t){return se(this.configuration).changeResQOffer(n,e,s,t).then(r=>r(this.axios,this.basePath))}createResQOffer(n,e,s){return se(this.configuration).createResQOffer(n,e,s).then(t=>t(this.axios,this.basePath))}deactivateResQOffer(n,e,s){return se(this.configuration).deactivateResQOffer(n,e,s).then(t=>t(this.axios,this.basePath))}getResQOrder(n,e,s){return se(this.configuration).getResQOrder(n,e,s).then(t=>t(this.axios,this.basePath))}listResQOffers(n,e,s){return se(this.configuration).listResQOffers(n,e,s).then(t=>t(this.axios,this.basePath))}listResQOrders(n,e,s){return se(this.configuration).listResQOrders(n,e,s).then(t=>t(this.axios,this.basePath))}},ar=function(a){return{createReservation:async(n,e={})=>{c("createReservation","createReservationDto",n);let s="/api/v1/reservations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getReservationAvailability:async(n,e,s,t,r,o,i={})=>{c("getReservationAvailability","businessId",n),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let l="/api/v1/reservations/availability",u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};await A(f,a),n!==void 0&&(C.businessId=n),e!==void 0&&(C.date=e),s!==void 0&&(C.partySize=s),t!==void 0&&(C.source=t),r!==void 0&&(C.sectionId=r),o!==void 0&&(C.excludeReservationId=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},getReservationPolicy:async(n,e={})=>{c("getReservationPolicy","businessId",n);let s="/api/v1/reservations/policy",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},linkReservationIntegration:async(n,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",n);let s="/api/v1/reservations/link",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},listReservations:async(n,e,s,t={})=>{c("listReservations","businessId",n);let r="/api/v1/reservations",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},reservationInboundWebhook:async(n,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",n);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},unlinkReservationIntegration:async(n,e={})=>{c("unlinkReservationIntegration","businessId",n);let s="/api/v1/reservations/link",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},updateReservation:async(n,e,s,t={})=>{c("updateReservation","id",n),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let r="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateReservationPolicy:async(n,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",n);let s="/api/v1/reservations/policy",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},updateReservationStatus:async(n,e,s,t={})=>{c("updateReservationStatus","id",n),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let r="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},H=function(a){let n=ar(a);return{async createReservation(e,s){let t=await n.createReservation(e,s);return P(t,R,m,a)},async getReservationAvailability(e,s,t,r,o,i,l){let u=await n.getReservationAvailability(e,s,t,r,o,i,l);return P(u,R,m,a)},async getReservationPolicy(e,s){let t=await n.getReservationPolicy(e,s);return P(t,R,m,a)},async linkReservationIntegration(e,s){let t=await n.linkReservationIntegration(e,s);return P(t,R,m,a)},async listReservations(e,s,t,r){let o=await n.listReservations(e,s,t,r);return P(o,R,m,a)},async reservationInboundWebhook(e,s){let t=await n.reservationInboundWebhook(e,s);return P(t,R,m,a)},async unlinkReservationIntegration(e,s){let t=await n.unlinkReservationIntegration(e,s);return P(t,R,m,a)},async updateReservation(e,s,t,r){let o=await n.updateReservation(e,s,t,r);return P(o,R,m,a)},async updateReservationPolicy(e,s){let t=await n.updateReservationPolicy(e,s);return P(t,R,m,a)},async updateReservationStatus(e,s,t,r){let o=await n.updateReservationStatus(e,s,t,r);return P(o,R,m,a)}}},rl=function(a,n,e){let s=H(a);return{createReservation(t,r){return s.createReservation(t,r).then(o=>o(e,n))},getReservationAvailability(t,r,o,i,l,u,d){return s.getReservationAvailability(t,r,o,i,l,u,d).then(p=>p(e,n))},getReservationPolicy(t,r){return s.getReservationPolicy(t,r).then(o=>o(e,n))},linkReservationIntegration(t,r){return s.linkReservationIntegration(t,r).then(o=>o(e,n))},listReservations(t,r,o,i){return s.listReservations(t,r,o,i).then(l=>l(e,n))},reservationInboundWebhook(t,r){return s.reservationInboundWebhook(t,r).then(o=>o(e,n))},unlinkReservationIntegration(t,r){return s.unlinkReservationIntegration(t,r).then(o=>o(e,n))},updateReservation(t,r,o,i){return s.updateReservation(t,r,o,i).then(l=>l(e,n))},updateReservationPolicy(t,r){return s.updateReservationPolicy(t,r).then(o=>o(e,n))},updateReservationStatus(t,r,o,i){return s.updateReservationStatus(t,r,o,i).then(l=>l(e,n))}}},Bt=class extends I{createReservation(n,e){return H(this.configuration).createReservation(n,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(n,e,s,t,r,o,i){return H(this.configuration).getReservationAvailability(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}getReservationPolicy(n,e){return H(this.configuration).getReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(n,e){return H(this.configuration).linkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}listReservations(n,e,s,t){return H(this.configuration).listReservations(n,e,s,t).then(r=>r(this.axios,this.basePath))}reservationInboundWebhook(n,e){return H(this.configuration).reservationInboundWebhook(n,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(n,e){return H(this.configuration).unlinkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}updateReservation(n,e,s,t){return H(this.configuration).updateReservation(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateReservationPolicy(n,e){return H(this.configuration).updateReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(n,e,s,t){return H(this.configuration).updateReservationStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},ir=function(a){return{createOrganisationSavedReport:async(n,e,s={})=>{c("createOrganisationSavedReport","groupId",n),c("createOrganisationSavedReport","createSavedReportDto",e);let t="/api/v6/groups/{groupId}/reports".replace("{groupId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createStoreSavedReport:async(n,e,s={})=>{c("createStoreSavedReport","businessId",n),c("createStoreSavedReport","createSavedReportDto",e);let t="/api/v6/businesses/{businessId}/reports".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},deleteOrganisationSavedReport:async(n,e,s={})=>{c("deleteOrganisationSavedReport","groupId",n),c("deleteOrganisationSavedReport","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},deleteStoreSavedReport:async(n,e,s={})=>{c("deleteStoreSavedReport","businessId",n),c("deleteStoreSavedReport","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},duplicateOrganisationSavedReport:async(n,e,s,t={})=>{c("duplicateOrganisationSavedReport","groupId",n),c("duplicateOrganisationSavedReport","reportId",e),c("duplicateOrganisationSavedReport","duplicateSavedReportDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/duplicate".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},duplicateStoreSavedReport:async(n,e,s,t={})=>{c("duplicateStoreSavedReport","businessId",n),c("duplicateStoreSavedReport","reportId",e),c("duplicateStoreSavedReport","duplicateSavedReportDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/duplicate".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getOrganisationSavedReport:async(n,e,s={})=>{c("getOrganisationSavedReport","groupId",n),c("getOrganisationSavedReport","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getPublicSavedReport:async(n,e={})=>{c("getPublicSavedReport","token",n);let s="/api/v6/public-reports/{token}".replace("{token}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getStoreSavedReport:async(n,e,s={})=>{c("getStoreSavedReport","businessId",n),c("getStoreSavedReport","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOrganisationSavedReports:async(n,e,s,t={})=>{c("listOrganisationSavedReports","groupId",n);let r="/api/v6/groups/{groupId}/reports".replace("{groupId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.limit=e),s!==void 0&&(d.after=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},listStoreSavedReports:async(n,e,s,t={})=>{c("listStoreSavedReports","businessId",n);let r="/api/v6/businesses/{businessId}/reports".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.limit=e),s!==void 0&&(d.after=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},setOrganisationSavedReportVisibility:async(n,e,s,t={})=>{c("setOrganisationSavedReportVisibility","groupId",n),c("setOrganisationSavedReportVisibility","reportId",e),c("setOrganisationSavedReportVisibility","setSavedReportVisibilityDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/visibility".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setStoreSavedReportVisibility:async(n,e,s,t={})=>{c("setStoreSavedReportVisibility","businessId",n),c("setStoreSavedReportVisibility","reportId",e),c("setStoreSavedReportVisibility","setSavedReportVisibilityDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/visibility".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateOrganisationSavedReport:async(n,e,s,t={})=>{c("updateOrganisationSavedReport","groupId",n),c("updateOrganisationSavedReport","reportId",e),c("updateOrganisationSavedReport","updateSavedReportDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateStoreSavedReport:async(n,e,s,t={})=>{c("updateStoreSavedReport","businessId",n),c("updateStoreSavedReport","reportId",e),c("updateStoreSavedReport","updateSavedReportDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},w=function(a){let n=ir(a);return{async createOrganisationSavedReport(e,s,t){let r=await n.createOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async createStoreSavedReport(e,s,t){let r=await n.createStoreSavedReport(e,s,t);return P(r,R,m,a)},async deleteOrganisationSavedReport(e,s,t){let r=await n.deleteOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async deleteStoreSavedReport(e,s,t){let r=await n.deleteStoreSavedReport(e,s,t);return P(r,R,m,a)},async duplicateOrganisationSavedReport(e,s,t,r){let o=await n.duplicateOrganisationSavedReport(e,s,t,r);return P(o,R,m,a)},async duplicateStoreSavedReport(e,s,t,r){let o=await n.duplicateStoreSavedReport(e,s,t,r);return P(o,R,m,a)},async getOrganisationSavedReport(e,s,t){let r=await n.getOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async getPublicSavedReport(e,s){let t=await n.getPublicSavedReport(e,s);return P(t,R,m,a)},async getStoreSavedReport(e,s,t){let r=await n.getStoreSavedReport(e,s,t);return P(r,R,m,a)},async listOrganisationSavedReports(e,s,t,r){let o=await n.listOrganisationSavedReports(e,s,t,r);return P(o,R,m,a)},async listStoreSavedReports(e,s,t,r){let o=await n.listStoreSavedReports(e,s,t,r);return P(o,R,m,a)},async setOrganisationSavedReportVisibility(e,s,t,r){let o=await n.setOrganisationSavedReportVisibility(e,s,t,r);return P(o,R,m,a)},async setStoreSavedReportVisibility(e,s,t,r){let o=await n.setStoreSavedReportVisibility(e,s,t,r);return P(o,R,m,a)},async updateOrganisationSavedReport(e,s,t,r){let o=await n.updateOrganisationSavedReport(e,s,t,r);return P(o,R,m,a)},async updateStoreSavedReport(e,s,t,r){let o=await n.updateStoreSavedReport(e,s,t,r);return P(o,R,m,a)}}},nl=function(a,n,e){let s=w(a);return{createOrganisationSavedReport(t,r,o){return s.createOrganisationSavedReport(t,r,o).then(i=>i(e,n))},createStoreSavedReport(t,r,o){return s.createStoreSavedReport(t,r,o).then(i=>i(e,n))},deleteOrganisationSavedReport(t,r,o){return s.deleteOrganisationSavedReport(t,r,o).then(i=>i(e,n))},deleteStoreSavedReport(t,r,o){return s.deleteStoreSavedReport(t,r,o).then(i=>i(e,n))},duplicateOrganisationSavedReport(t,r,o,i){return s.duplicateOrganisationSavedReport(t,r,o,i).then(l=>l(e,n))},duplicateStoreSavedReport(t,r,o,i){return s.duplicateStoreSavedReport(t,r,o,i).then(l=>l(e,n))},getOrganisationSavedReport(t,r,o){return s.getOrganisationSavedReport(t,r,o).then(i=>i(e,n))},getPublicSavedReport(t,r){return s.getPublicSavedReport(t,r).then(o=>o(e,n))},getStoreSavedReport(t,r,o){return s.getStoreSavedReport(t,r,o).then(i=>i(e,n))},listOrganisationSavedReports(t,r,o,i){return s.listOrganisationSavedReports(t,r,o,i).then(l=>l(e,n))},listStoreSavedReports(t,r,o,i){return s.listStoreSavedReports(t,r,o,i).then(l=>l(e,n))},setOrganisationSavedReportVisibility(t,r,o,i){return s.setOrganisationSavedReportVisibility(t,r,o,i).then(l=>l(e,n))},setStoreSavedReportVisibility(t,r,o,i){return s.setStoreSavedReportVisibility(t,r,o,i).then(l=>l(e,n))},updateOrganisationSavedReport(t,r,o,i){return s.updateOrganisationSavedReport(t,r,o,i).then(l=>l(e,n))},updateStoreSavedReport(t,r,o,i){return s.updateStoreSavedReport(t,r,o,i).then(l=>l(e,n))}}},wt=class extends I{createOrganisationSavedReport(n,e,s){return w(this.configuration).createOrganisationSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}createStoreSavedReport(n,e,s){return w(this.configuration).createStoreSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}deleteOrganisationSavedReport(n,e,s){return w(this.configuration).deleteOrganisationSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}deleteStoreSavedReport(n,e,s){return w(this.configuration).deleteStoreSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}duplicateOrganisationSavedReport(n,e,s,t){return w(this.configuration).duplicateOrganisationSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}duplicateStoreSavedReport(n,e,s,t){return w(this.configuration).duplicateStoreSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}getOrganisationSavedReport(n,e,s){return w(this.configuration).getOrganisationSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}getPublicSavedReport(n,e){return w(this.configuration).getPublicSavedReport(n,e).then(s=>s(this.axios,this.basePath))}getStoreSavedReport(n,e,s){return w(this.configuration).getStoreSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}listOrganisationSavedReports(n,e,s,t){return w(this.configuration).listOrganisationSavedReports(n,e,s,t).then(r=>r(this.axios,this.basePath))}listStoreSavedReports(n,e,s,t){return w(this.configuration).listStoreSavedReports(n,e,s,t).then(r=>r(this.axios,this.basePath))}setOrganisationSavedReportVisibility(n,e,s,t){return w(this.configuration).setOrganisationSavedReportVisibility(n,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreSavedReportVisibility(n,e,s,t){return w(this.configuration).setStoreSavedReportVisibility(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateOrganisationSavedReport(n,e,s,t){return w(this.configuration).updateOrganisationSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateStoreSavedReport(n,e,s,t){return w(this.configuration).updateStoreSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}},lr=function(a){return{addShiftAtVenue:async(n,e,s={})=>{c("addShiftAtVenue","businessId",n),c("addShiftAtVenue","addShiftDto",e);let t="/api/v2/businesses/{businessId}/shifts".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},changeShiftAtVenue:async(n,e,s,t={})=>{c("changeShiftAtVenue","businessId",n),c("changeShiftAtVenue","shiftId",e),c("changeShiftAtVenue","changeShiftDto",s);let r="/api/v2/businesses/{businessId}/shifts/{shiftId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{shiftId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},clockIn:async(n,e,s={})=>{c("clockIn","businessId",n),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},clockOut:async(n,e,s={})=>{c("clockOut","businessId",n),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getTodayShift:async(n,e,s={})=>{c("getTodayShift","businessId",n),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},lockTill:async(n,e={})=>{c("lockTill","businessId",n);let s="/api/v2/businesses/{businessId}/shifts/lock".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},removeShiftAtVenue:async(n,e,s={})=>{c("removeShiftAtVenue","businessId",n),c("removeShiftAtVenue","shiftId",e);let t="/api/v2/businesses/{businessId}/shifts/{shiftId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{shiftId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},staffHoursAtVenue:async(n,e,s,t,r,o={})=>{c("staffHoursAtVenue","businessId",n),c("staffHoursAtVenue","from",e),c("staffHoursAtVenue","to",s);let i="/api/v2/businesses/{businessId}/shifts/hours".replace("{businessId}",encodeURIComponent(String(n))),l=new URL(i,g),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},p={},f={};await A(p,a),e!==void 0&&(f.from=e),s!==void 0&&(f.to=s),t&&(f.employeeIds=t),r!==void 0&&(f.status=r),y(l,f);let C=u&&u.headers?u.headers:{};return d.headers={...p,...C,...o.headers},{url:h(l),options:d}},staffHoursFileAtVenue:async(n,e,s,t,r,o,i,l={})=>{c("staffHoursFileAtVenue","businessId",n),c("staffHoursFileAtVenue","from",e),c("staffHoursFileAtVenue","to",s);let u="/api/v2/businesses/{businessId}/shifts/hours/file".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.from=e),s!==void 0&&(x.to=s),t&&(x.employeeIds=t),r!==void 0&&(x.status=r),o!==void 0&&(x.language=o),i!==void 0&&(x.format=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},unlock:async(n,e,s={})=>{c("unlock","businessId",n),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},unlockTillWithPin:async(n,e,s={})=>{c("unlockTillWithPin","businessId",n),c("unlockTillWithPin","xPosPin",e);let t="/api/v2/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},_=function(a){let n=lr(a);return{async addShiftAtVenue(e,s,t){let r=await n.addShiftAtVenue(e,s,t);return P(r,R,m,a)},async changeShiftAtVenue(e,s,t,r){let o=await n.changeShiftAtVenue(e,s,t,r);return P(o,R,m,a)},async clockIn(e,s,t){let r=await n.clockIn(e,s,t);return P(r,R,m,a)},async clockOut(e,s,t){let r=await n.clockOut(e,s,t);return P(r,R,m,a)},async getTodayShift(e,s,t){let r=await n.getTodayShift(e,s,t);return P(r,R,m,a)},async lockTill(e,s){let t=await n.lockTill(e,s);return P(t,R,m,a)},async removeShiftAtVenue(e,s,t){let r=await n.removeShiftAtVenue(e,s,t);return P(r,R,m,a)},async staffHoursAtVenue(e,s,t,r,o,i){let l=await n.staffHoursAtVenue(e,s,t,r,o,i);return P(l,R,m,a)},async staffHoursFileAtVenue(e,s,t,r,o,i,l,u){let d=await n.staffHoursFileAtVenue(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async unlock(e,s,t){let r=await n.unlock(e,s,t);return P(r,R,m,a)},async unlockTillWithPin(e,s,t){let r=await n.unlockTillWithPin(e,s,t);return P(r,R,m,a)}}},ol=function(a,n,e){let s=_(a);return{addShiftAtVenue(t,r,o){return s.addShiftAtVenue(t,r,o).then(i=>i(e,n))},changeShiftAtVenue(t,r,o,i){return s.changeShiftAtVenue(t,r,o,i).then(l=>l(e,n))},clockIn(t,r,o){return s.clockIn(t,r,o).then(i=>i(e,n))},clockOut(t,r,o){return s.clockOut(t,r,o).then(i=>i(e,n))},getTodayShift(t,r,o){return s.getTodayShift(t,r,o).then(i=>i(e,n))},lockTill(t,r){return s.lockTill(t,r).then(o=>o(e,n))},removeShiftAtVenue(t,r,o){return s.removeShiftAtVenue(t,r,o).then(i=>i(e,n))},staffHoursAtVenue(t,r,o,i,l,u){return s.staffHoursAtVenue(t,r,o,i,l,u).then(d=>d(e,n))},staffHoursFileAtVenue(t,r,o,i,l,u,d,p){return s.staffHoursFileAtVenue(t,r,o,i,l,u,d,p).then(f=>f(e,n))},unlock(t,r,o){return s.unlock(t,r,o).then(i=>i(e,n))},unlockTillWithPin(t,r,o){return s.unlockTillWithPin(t,r,o).then(i=>i(e,n))}}},Ft=class extends I{addShiftAtVenue(n,e,s){return _(this.configuration).addShiftAtVenue(n,e,s).then(t=>t(this.axios,this.basePath))}changeShiftAtVenue(n,e,s,t){return _(this.configuration).changeShiftAtVenue(n,e,s,t).then(r=>r(this.axios,this.basePath))}clockIn(n,e,s){return _(this.configuration).clockIn(n,e,s).then(t=>t(this.axios,this.basePath))}clockOut(n,e,s){return _(this.configuration).clockOut(n,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(n,e,s){return _(this.configuration).getTodayShift(n,e,s).then(t=>t(this.axios,this.basePath))}lockTill(n,e){return _(this.configuration).lockTill(n,e).then(s=>s(this.axios,this.basePath))}removeShiftAtVenue(n,e,s){return _(this.configuration).removeShiftAtVenue(n,e,s).then(t=>t(this.axios,this.basePath))}staffHoursAtVenue(n,e,s,t,r,o){return _(this.configuration).staffHoursAtVenue(n,e,s,t,r,o).then(i=>i(this.axios,this.basePath))}staffHoursFileAtVenue(n,e,s,t,r,o,i,l){return _(this.configuration).staffHoursFileAtVenue(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}unlock(n,e,s){return _(this.configuration).unlock(n,e,s).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(n,e,s){return _(this.configuration).unlockTillWithPin(n,e,s).then(t=>t(this.axios,this.basePath))}},ur=function(a){return{deactivateStation:async(n={})=>{let e="/api/v1/station/deactivate",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},getStation:async(n={})=>{let e="/api/v1/station",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},syncStation:async(n,e={})=>{c("syncStation","syncStationDto",n);let s="/api/v1/station/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Ae=function(a){let n=ur(a);return{async deactivateStation(e){let s=await n.deactivateStation(e);return P(s,R,m,a)},async getStation(e){let s=await n.getStation(e);return P(s,R,m,a)},async syncStation(e,s){let t=await n.syncStation(e,s);return P(t,R,m,a)}}},al=function(a,n,e){let s=Ae(a);return{deactivateStation(t){return s.deactivateStation(t).then(r=>r(e,n))},getStation(t){return s.getStation(t).then(r=>r(e,n))},syncStation(t,r){return s.syncStation(t,r).then(o=>o(e,n))}}},Lt=class extends I{deactivateStation(n){return Ae(this.configuration).deactivateStation(n).then(e=>e(this.axios,this.basePath))}getStation(n){return Ae(this.configuration).getStation(n).then(e=>e(this.axios,this.basePath))}syncStation(n,e){return Ae(this.configuration).syncStation(n,e).then(s=>s(this.axios,this.basePath))}},dr=function(a){return{changeStoreApp:async(n,e,s,t={})=>{c("changeStoreApp","businessId",n),c("changeStoreApp","app",e),c("changeStoreApp","changeStoreAppDto",s);let r="/api/v6/businesses/{businessId}/apps/{app}".replace("{businessId}",encodeURIComponent(String(n))).replace("{app}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getStoreApps:async(n,e={})=>{c("getStoreApps","businessId",n);let s="/api/v6/businesses/{businessId}/apps".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},startStoreApps:async(n,e,s={})=>{c("startStoreApps","businessId",n),c("startStoreApps","startStoreAppsDto",e);let t="/api/v6/businesses/{businessId}/apps".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},be=function(a){let n=dr(a);return{async changeStoreApp(e,s,t,r){let o=await n.changeStoreApp(e,s,t,r);return P(o,R,m,a)},async getStoreApps(e,s){let t=await n.getStoreApps(e,s);return P(t,R,m,a)},async startStoreApps(e,s,t){let r=await n.startStoreApps(e,s,t);return P(r,R,m,a)}}},il=function(a,n,e){let s=be(a);return{changeStoreApp(t,r,o,i){return s.changeStoreApp(t,r,o,i).then(l=>l(e,n))},getStoreApps(t,r){return s.getStoreApps(t,r).then(o=>o(e,n))},startStoreApps(t,r,o){return s.startStoreApps(t,r,o).then(i=>i(e,n))}}},Gt=class extends I{changeStoreApp(n,e,s,t){return be(this.configuration).changeStoreApp(n,e,s,t).then(r=>r(this.axios,this.basePath))}getStoreApps(n,e){return be(this.configuration).getStoreApps(n,e).then(s=>s(this.axios,this.basePath))}startStoreApps(n,e,s){return be(this.configuration).startStoreApps(n,e,s).then(t=>t(this.axios,this.basePath))}},cr=function(a){return{connectTerminal:async(n,e={})=>{c("connectTerminal","connectTerminalDto",n);let s="/api/v1/terminal/connect",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},disconnectTerminal:async(n={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},discoverTerminal:async(n,e={})=>{c("discoverTerminal","discoverTerminalDto",n);let s="/api/v1/terminal/discover",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},fe=function(a){let n=cr(a);return{async connectTerminal(e,s){let t=await n.connectTerminal(e,s);return P(t,R,m,a)},async disconnectTerminal(e){let s=await n.disconnectTerminal(e);return P(s,R,m,a)},async discoverTerminal(e,s){let t=await n.discoverTerminal(e,s);return P(t,R,m,a)}}},ll=function(a,n,e){let s=fe(a);return{connectTerminal(t,r){return s.connectTerminal(t,r).then(o=>o(e,n))},disconnectTerminal(t){return s.disconnectTerminal(t).then(r=>r(e,n))},discoverTerminal(t,r){return s.discoverTerminal(t,r).then(o=>o(e,n))}}},Nt=class extends I{connectTerminal(n,e){return fe(this.configuration).connectTerminal(n,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(n){return fe(this.configuration).disconnectTerminal(n).then(e=>e(this.axios,this.basePath))}discoverTerminal(n,e){return fe(this.configuration).discoverTerminal(n,e).then(s=>s(this.axios,this.basePath))}},pr=function(a){return{getMyVenue:async(n,e={})=>{c("getMyVenue","businessId",n);let s="/api/v3/user/venues/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getUserBusinessV1:async(n={})=>{let e="/api/v1/user/business",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},getUserBusinessV2:async(n={})=>{let e="/api/v2/user/business",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},listMyVenues:async(n={})=>{let e="/api/v3/user/venues",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}}}},me=function(a){let n=pr(a);return{async getMyVenue(e,s){let t=await n.getMyVenue(e,s);return P(t,R,m,a)},async getUserBusinessV1(e){let s=await n.getUserBusinessV1(e);return P(s,R,m,a)},async getUserBusinessV2(e){let s=await n.getUserBusinessV2(e);return P(s,R,m,a)},async listMyVenues(e){let s=await n.listMyVenues(e);return P(s,R,m,a)}}},ul=function(a,n,e){let s=me(a);return{getMyVenue(t,r){return s.getMyVenue(t,r).then(o=>o(e,n))},getUserBusinessV1(t){return s.getUserBusinessV1(t).then(r=>r(e,n))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(r=>r(e,n))},listMyVenues(t){return s.listMyVenues(t).then(r=>r(e,n))}}},_t=class extends I{getMyVenue(n,e){return me(this.configuration).getMyVenue(n,e).then(s=>s(this.axios,this.basePath))}getUserBusinessV1(n){return me(this.configuration).getUserBusinessV1(n).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(n){return me(this.configuration).getUserBusinessV2(n).then(e=>e(this.axios,this.basePath))}listMyVenues(n){return me(this.configuration).listMyVenues(n).then(e=>e(this.axios,this.basePath))}},mr=function(a){return{upsert:async(n,e={})=>{c("upsert","vendureSellerUpsertDto",n);let s="/api/v1/vendure/seller/upsert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ns=function(a){let n=mr(a);return{async upsert(e,s){let t=await n.upsert(e,s);return P(t,R,m,a)}}},dl=function(a,n,e){let s=ns(a);return{upsert(t,r){return s.upsert(t,r).then(o=>o(e,n))}}},Kt=class extends I{upsert(n,e){return ns(this.configuration).upsert(n,e).then(s=>s(this.axios,this.basePath))}},gr=function(a){return{changeVenueKiosk:async(n,e,s,t={})=>{c("changeVenueKiosk","businessId",n),c("changeVenueKiosk","stationId",e),c("changeVenueKiosk","changeKioskDto",s);let r="/api/v2/venues/{businessId}/kiosks/{stationId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{stationId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},claimVenueKiosk:async(n,e,s={})=>{c("claimVenueKiosk","businessId",n),c("claimVenueKiosk","claimKioskDto",e);let t="/api/v2/venues/{businessId}/kiosks".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createVenuePaymentTerminal:async(n,e,s={})=>{c("createVenuePaymentTerminal","businessId",n),c("createVenuePaymentTerminal","createPaymentTerminalDto",e);let t="/api/v2/venues/{businessId}/payment-terminals".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},linkVenueKioskTerminal:async(n,e,s,t={})=>{c("linkVenueKioskTerminal","businessId",n),c("linkVenueKioskTerminal","stationId",e),c("linkVenueKioskTerminal","linkKioskTerminalDto",s);let r="/api/v2/venues/{businessId}/kiosks/{stationId}/terminal".replace("{businessId}",encodeURIComponent(String(n))).replace("{stationId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},listVenueKiosks:async(n,e={})=>{c("listVenueKiosks","businessId",n);let s="/api/v2/venues/{businessId}/kiosks".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listVenuePaymentTerminals:async(n,e={})=>{c("listVenuePaymentTerminals","businessId",n);let s="/api/v2/venues/{businessId}/payment-terminals".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},removeVenueKiosk:async(n,e,s={})=>{c("removeVenueKiosk","businessId",n),c("removeVenueKiosk","stationId",e);let t="/api/v2/venues/{businessId}/kiosks/{stationId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{stationId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},removeVenuePaymentTerminal:async(n,e,s={})=>{c("removeVenuePaymentTerminal","businessId",n),c("removeVenuePaymentTerminal","paymentTerminalId",e);let t="/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{paymentTerminalId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},renameVenuePaymentTerminal:async(n,e,s,t={})=>{c("renameVenuePaymentTerminal","businessId",n),c("renameVenuePaymentTerminal","paymentTerminalId",e),c("renameVenuePaymentTerminal","renamePaymentTerminalDto",s);let r="/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{paymentTerminalId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},$=function(a){let n=gr(a);return{async changeVenueKiosk(e,s,t,r){let o=await n.changeVenueKiosk(e,s,t,r);return P(o,R,m,a)},async claimVenueKiosk(e,s,t){let r=await n.claimVenueKiosk(e,s,t);return P(r,R,m,a)},async createVenuePaymentTerminal(e,s,t){let r=await n.createVenuePaymentTerminal(e,s,t);return P(r,R,m,a)},async linkVenueKioskTerminal(e,s,t,r){let o=await n.linkVenueKioskTerminal(e,s,t,r);return P(o,R,m,a)},async listVenueKiosks(e,s){let t=await n.listVenueKiosks(e,s);return P(t,R,m,a)},async listVenuePaymentTerminals(e,s){let t=await n.listVenuePaymentTerminals(e,s);return P(t,R,m,a)},async removeVenueKiosk(e,s,t){let r=await n.removeVenueKiosk(e,s,t);return P(r,R,m,a)},async removeVenuePaymentTerminal(e,s,t){let r=await n.removeVenuePaymentTerminal(e,s,t);return P(r,R,m,a)},async renameVenuePaymentTerminal(e,s,t,r){let o=await n.renameVenuePaymentTerminal(e,s,t,r);return P(o,R,m,a)}}},cl=function(a,n,e){let s=$(a);return{changeVenueKiosk(t,r,o,i){return s.changeVenueKiosk(t,r,o,i).then(l=>l(e,n))},claimVenueKiosk(t,r,o){return s.claimVenueKiosk(t,r,o).then(i=>i(e,n))},createVenuePaymentTerminal(t,r,o){return s.createVenuePaymentTerminal(t,r,o).then(i=>i(e,n))},linkVenueKioskTerminal(t,r,o,i){return s.linkVenueKioskTerminal(t,r,o,i).then(l=>l(e,n))},listVenueKiosks(t,r){return s.listVenueKiosks(t,r).then(o=>o(e,n))},listVenuePaymentTerminals(t,r){return s.listVenuePaymentTerminals(t,r).then(o=>o(e,n))},removeVenueKiosk(t,r,o){return s.removeVenueKiosk(t,r,o).then(i=>i(e,n))},removeVenuePaymentTerminal(t,r,o){return s.removeVenuePaymentTerminal(t,r,o).then(i=>i(e,n))},renameVenuePaymentTerminal(t,r,o,i){return s.renameVenuePaymentTerminal(t,r,o,i).then(l=>l(e,n))}}},Wt=class extends I{changeVenueKiosk(n,e,s,t){return $(this.configuration).changeVenueKiosk(n,e,s,t).then(r=>r(this.axios,this.basePath))}claimVenueKiosk(n,e,s){return $(this.configuration).claimVenueKiosk(n,e,s).then(t=>t(this.axios,this.basePath))}createVenuePaymentTerminal(n,e,s){return $(this.configuration).createVenuePaymentTerminal(n,e,s).then(t=>t(this.axios,this.basePath))}linkVenueKioskTerminal(n,e,s,t){return $(this.configuration).linkVenueKioskTerminal(n,e,s,t).then(r=>r(this.axios,this.basePath))}listVenueKiosks(n,e){return $(this.configuration).listVenueKiosks(n,e).then(s=>s(this.axios,this.basePath))}listVenuePaymentTerminals(n,e){return $(this.configuration).listVenuePaymentTerminals(n,e).then(s=>s(this.axios,this.basePath))}removeVenueKiosk(n,e,s){return $(this.configuration).removeVenueKiosk(n,e,s).then(t=>t(this.axios,this.basePath))}removeVenuePaymentTerminal(n,e,s){return $(this.configuration).removeVenuePaymentTerminal(n,e,s).then(t=>t(this.axios,this.basePath))}renameVenuePaymentTerminal(n,e,s,t){return $(this.configuration).renameVenuePaymentTerminal(n,e,s,t).then(r=>r(this.axios,this.basePath))}},yr=function(a){return{createVivaAppToAppPayment:async(n,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",n);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getVivaSession:async(n,e={})=>{c("getVivaSession","id",n);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listVivaSessions:async(n,e,s,t,r,o,i,l={})=>{c("listVivaSessions","businessId",n);let u="/api/v1/viva/sessions",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};n!==void 0&&(x.businessId=n),e!==void 0&&(x.page=e),s!==void 0&&(x.rowPerPage=s),t!==void 0&&(x.terminalId=t),r!==void 0&&(x.timeSpan=r),o!==void 0&&(x.start=o),i!==void 0&&(x.end=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},refundVivaPayment:async(n,e,s={})=>{c("refundVivaPayment","vivaA2aRefundDto",n);let t="/api/v1/viva/refund",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}}}},ge=function(a){let n=yr(a);return{async createVivaAppToAppPayment(e,s){let t=await n.createVivaAppToAppPayment(e,s);return P(t,R,m,a)},async getVivaSession(e,s){let t=await n.getVivaSession(e,s);return P(t,R,m,a)},async listVivaSessions(e,s,t,r,o,i,l,u){let d=await n.listVivaSessions(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async refundVivaPayment(e,s,t){let r=await n.refundVivaPayment(e,s,t);return P(r,R,m,a)}}},pl=function(a,n,e){let s=ge(a);return{createVivaAppToAppPayment(t,r){return s.createVivaAppToAppPayment(t,r).then(o=>o(e,n))},getVivaSession(t,r){return s.getVivaSession(t,r).then(o=>o(e,n))},listVivaSessions(t,r,o,i,l,u,d,p){return s.listVivaSessions(t,r,o,i,l,u,d,p).then(f=>f(e,n))},refundVivaPayment(t,r,o){return s.refundVivaPayment(t,r,o).then(i=>i(e,n))}}},jt=class extends I{createVivaAppToAppPayment(n,e){return ge(this.configuration).createVivaAppToAppPayment(n,e).then(s=>s(this.axios,this.basePath))}getVivaSession(n,e){return ge(this.configuration).getVivaSession(n,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(n,e,s,t,r,o,i,l){return ge(this.configuration).listVivaSessions(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(n,e,s){return ge(this.configuration).refundVivaPayment(n,e,s).then(t=>t(this.axios,this.basePath))}},hr=function(a){return{handleAssignmentWebhook:async(n,e={})=>{c("handleAssignmentWebhook","supabaseAssignmentHookDto",n);let s="/api/webhook/add-employee-assignments",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleBusinessWebhook:async(n,e={})=>{c("handleBusinessWebhook","supabaseBusinessHookDto",n);let s="/api/webhook/add-business",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleFoodoraEvent:async(n,e={})=>{c("handleFoodoraEvent","orderUpdateDto",n);let s="/api/webhook/order/event",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleKioskAutoReject:async(n,e={})=>{c("handleKioskAutoReject","kioskAutoRejectDto",n);let s="/api/webhook/kiosk-auto-reject",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleLoadEmployee:async(n,e={})=>{c("handleLoadEmployee","supabaseEmployeeHookDto",n);let s="/api/webhook/load-employee",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleNetsEvents:async(n,e={})=>{let s="/api/webhook/nets",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};n!=null&&(i["connectcloud-request-id"]=String(n)),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleNetsEventsV2:async(n,e={})=>{let s="/api/webhook/v2/nets",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};n!=null&&(i["connectcloud-request-id"]=String(n)),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleNetsSessionEvents:async(n,e={})=>{let s="/api/webhook/nets/payments",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};n!=null&&(i["connectcloud-request-id"]=String(n)),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleNetsSessionEventsForClientToken:async(n,e,s={})=>{c("handleNetsSessionEventsForClientToken","clientToken",n);let t="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["connectcloud-request-id"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},handlePreorderReminder:async(n,e={})=>{c("handlePreorderReminder","preOrderReminderDto",n);let s="/api/webhook/preorder-reminder",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleRoleWebhook:async(n,e={})=>{c("handleRoleWebhook","supabaseRoleHookDto",n);let s="/api/webhook/add-roles",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleShiftWebhook:async(n,e={})=>{c("handleShiftWebhook","supabaseShiftHookDto",n);let s="/api/webhook/add-employee-shifts",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleVivaEvents:async(n,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/verification",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleVivaSessionEvents:async(n,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/payments",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleWebhook:async(n,e={})=>{let s="/api/webhook/ship-day",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleWoltDriveEventByCountry:async(n,e,s={})=>{c("handleWoltDriveEventByCountry","country",n),c("handleWoltDriveEventByCountry","woltDriveWebhookDto",e);let t="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},handleWorldlineEvents:async(n={})=>{let e="/api/webhook/worldline/events",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},handleWorldlineSessionEvents:async(n={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},processDispatchTask:async(n,e,s={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",n),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};n!=null&&(l["x-cloudtasks-taskretrycount"]=String(n)),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},processPosOrderActionsQueue:async(n,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",n);let s="/api/webhook/pos/order-actions/process",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},updateWoltProduct:async(n,e={})=>{c("updateWoltProduct","woltSwitchesTaskDto",n);let s="/api/webhook/wolt/product/edit",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},verifyVivaSessionWebhook:async(n={})=>{let e="/api/webhook/viva/payments",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},verifyVivaWebhook:async(n={})=>{let e="/api/webhook/viva/verification",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}}}},E=function(a){let n=hr(a);return{async handleAssignmentWebhook(e,s){let t=await n.handleAssignmentWebhook(e,s);return P(t,R,m,a)},async handleBusinessWebhook(e,s){let t=await n.handleBusinessWebhook(e,s);return P(t,R,m,a)},async handleFoodoraEvent(e,s){let t=await n.handleFoodoraEvent(e,s);return P(t,R,m,a)},async handleKioskAutoReject(e,s){let t=await n.handleKioskAutoReject(e,s);return P(t,R,m,a)},async handleLoadEmployee(e,s){let t=await n.handleLoadEmployee(e,s);return P(t,R,m,a)},async handleNetsEvents(e,s){let t=await n.handleNetsEvents(e,s);return P(t,R,m,a)},async handleNetsEventsV2(e,s){let t=await n.handleNetsEventsV2(e,s);return P(t,R,m,a)},async handleNetsSessionEvents(e,s){let t=await n.handleNetsSessionEvents(e,s);return P(t,R,m,a)},async handleNetsSessionEventsForClientToken(e,s,t){let r=await n.handleNetsSessionEventsForClientToken(e,s,t);return P(r,R,m,a)},async handlePreorderReminder(e,s){let t=await n.handlePreorderReminder(e,s);return P(t,R,m,a)},async handleRoleWebhook(e,s){let t=await n.handleRoleWebhook(e,s);return P(t,R,m,a)},async handleShiftWebhook(e,s){let t=await n.handleShiftWebhook(e,s);return P(t,R,m,a)},async handleVivaEvents(e,s){let t=await n.handleVivaEvents(e,s);return P(t,R,m,a)},async handleVivaSessionEvents(e,s){let t=await n.handleVivaSessionEvents(e,s);return P(t,R,m,a)},async handleWebhook(e,s){let t=await n.handleWebhook(e,s);return P(t,R,m,a)},async handleWoltDriveEventByCountry(e,s,t){let r=await n.handleWoltDriveEventByCountry(e,s,t);return P(r,R,m,a)},async handleWorldlineEvents(e){let s=await n.handleWorldlineEvents(e);return P(s,R,m,a)},async handleWorldlineSessionEvents(e){let s=await n.handleWorldlineSessionEvents(e);return P(s,R,m,a)},async processDispatchTask(e,s,t){let r=await n.processDispatchTask(e,s,t);return P(r,R,m,a)},async processPosOrderActionsQueue(e,s){let t=await n.processPosOrderActionsQueue(e,s);return P(t,R,m,a)},async updateWoltProduct(e,s){let t=await n.updateWoltProduct(e,s);return P(t,R,m,a)},async verifyVivaSessionWebhook(e){let s=await n.verifyVivaSessionWebhook(e);return P(s,R,m,a)},async verifyVivaWebhook(e){let s=await n.verifyVivaWebhook(e);return P(s,R,m,a)}}},ml=function(a,n,e){let s=E(a);return{handleAssignmentWebhook(t,r){return s.handleAssignmentWebhook(t,r).then(o=>o(e,n))},handleBusinessWebhook(t,r){return s.handleBusinessWebhook(t,r).then(o=>o(e,n))},handleFoodoraEvent(t,r){return s.handleFoodoraEvent(t,r).then(o=>o(e,n))},handleKioskAutoReject(t,r){return s.handleKioskAutoReject(t,r).then(o=>o(e,n))},handleLoadEmployee(t,r){return s.handleLoadEmployee(t,r).then(o=>o(e,n))},handleNetsEvents(t,r){return s.handleNetsEvents(t,r).then(o=>o(e,n))},handleNetsEventsV2(t,r){return s.handleNetsEventsV2(t,r).then(o=>o(e,n))},handleNetsSessionEvents(t,r){return s.handleNetsSessionEvents(t,r).then(o=>o(e,n))},handleNetsSessionEventsForClientToken(t,r,o){return s.handleNetsSessionEventsForClientToken(t,r,o).then(i=>i(e,n))},handlePreorderReminder(t,r){return s.handlePreorderReminder(t,r).then(o=>o(e,n))},handleRoleWebhook(t,r){return s.handleRoleWebhook(t,r).then(o=>o(e,n))},handleShiftWebhook(t,r){return s.handleShiftWebhook(t,r).then(o=>o(e,n))},handleVivaEvents(t,r){return s.handleVivaEvents(t,r).then(o=>o(e,n))},handleVivaSessionEvents(t,r){return s.handleVivaSessionEvents(t,r).then(o=>o(e,n))},handleWebhook(t,r){return s.handleWebhook(t,r).then(o=>o(e,n))},handleWoltDriveEventByCountry(t,r,o){return s.handleWoltDriveEventByCountry(t,r,o).then(i=>i(e,n))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(r=>r(e,n))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(r=>r(e,n))},processDispatchTask(t,r,o){return s.processDispatchTask(t,r,o).then(i=>i(e,n))},processPosOrderActionsQueue(t,r){return s.processPosOrderActionsQueue(t,r).then(o=>o(e,n))},updateWoltProduct(t,r){return s.updateWoltProduct(t,r).then(o=>o(e,n))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(r=>r(e,n))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(r=>r(e,n))}}},Ht=class extends I{handleAssignmentWebhook(n,e){return E(this.configuration).handleAssignmentWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleBusinessWebhook(n,e){return E(this.configuration).handleBusinessWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleFoodoraEvent(n,e){return E(this.configuration).handleFoodoraEvent(n,e).then(s=>s(this.axios,this.basePath))}handleKioskAutoReject(n,e){return E(this.configuration).handleKioskAutoReject(n,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(n,e){return E(this.configuration).handleLoadEmployee(n,e).then(s=>s(this.axios,this.basePath))}handleNetsEvents(n,e){return E(this.configuration).handleNetsEvents(n,e).then(s=>s(this.axios,this.basePath))}handleNetsEventsV2(n,e){return E(this.configuration).handleNetsEventsV2(n,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEvents(n,e){return E(this.configuration).handleNetsSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(n,e,s){return E(this.configuration).handleNetsSessionEventsForClientToken(n,e,s).then(t=>t(this.axios,this.basePath))}handlePreorderReminder(n,e){return E(this.configuration).handlePreorderReminder(n,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(n,e){return E(this.configuration).handleRoleWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleShiftWebhook(n,e){return E(this.configuration).handleShiftWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleVivaEvents(n,e){return E(this.configuration).handleVivaEvents(n,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(n,e){return E(this.configuration).handleVivaSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleWebhook(n,e){return E(this.configuration).handleWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleWoltDriveEventByCountry(n,e,s){return E(this.configuration).handleWoltDriveEventByCountry(n,e,s).then(t=>t(this.axios,this.basePath))}handleWorldlineEvents(n){return E(this.configuration).handleWorldlineEvents(n).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(n){return E(this.configuration).handleWorldlineSessionEvents(n).then(e=>e(this.axios,this.basePath))}processDispatchTask(n,e,s){return E(this.configuration).processDispatchTask(n,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(n,e){return E(this.configuration).processPosOrderActionsQueue(n,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(n,e){return E(this.configuration).updateWoltProduct(n,e).then(s=>s(this.axios,this.basePath))}verifyVivaSessionWebhook(n){return E(this.configuration).verifyVivaSessionWebhook(n).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(n){return E(this.configuration).verifyVivaWebhook(n).then(e=>e(this.axios,this.basePath))}},Pr=function(a){return{cancelPayment:async(n,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",n);let s="/api/v1/worldline/payment/cancel",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createPayment:async(n,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",n);let s="/api/v1/worldline/payment",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createRefund:async(n,e={})=>{c("createRefund","createWorldlineRefundDto",n);let s="/api/v1/worldline/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},xe=function(a){let n=Pr(a);return{async cancelPayment(e,s){let t=await n.cancelPayment(e,s);return P(t,R,m,a)},async createPayment(e,s){let t=await n.createPayment(e,s);return P(t,R,m,a)},async createRefund(e,s){let t=await n.createRefund(e,s);return P(t,R,m,a)}}},gl=function(a,n,e){let s=xe(a);return{cancelPayment(t,r){return s.cancelPayment(t,r).then(o=>o(e,n))},createPayment(t,r){return s.createPayment(t,r).then(o=>o(e,n))},createRefund(t,r){return s.createRefund(t,r).then(o=>o(e,n))}}},Qt=class extends I{cancelPayment(n,e){return xe(this.configuration).cancelPayment(n,e).then(s=>s(this.axios,this.basePath))}createPayment(n,e){return xe(this.configuration).createPayment(n,e).then(s=>s(this.axios,this.basePath))}createRefund(n,e){return xe(this.configuration).createRefund(n,e).then(s=>s(this.axios,this.basePath))}},Rr=function(a){return{createPaymentRequest:async(n,e,s={})=>{c("createPaymentRequest","terminalId",n),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createRefundRequest:async(n,e,s={})=>{c("createRefundRequest","terminalId",n),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getPaymentResult:async(n,e={})=>{c("getPaymentResult","operationId",n);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getTerminalAuthContext:async(n,e,s={})=>{c("getTerminalAuthContext","terminalId",n),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getTerminalContext:async(n,e,s={})=>{c("getTerminalContext","terminalId",n),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getTerminalState:async(n,e={})=>{c("getTerminalState","terminalId",n);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleCallback:async(n,e={})=>{let s="/api/v2/worldline/internal/callback",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},J=function(a){let n=Rr(a);return{async createPaymentRequest(e,s,t){let r=await n.createPaymentRequest(e,s,t);return P(r,R,m,a)},async createRefundRequest(e,s,t){let r=await n.createRefundRequest(e,s,t);return P(r,R,m,a)},async getPaymentResult(e,s){let t=await n.getPaymentResult(e,s);return P(t,R,m,a)},async getTerminalAuthContext(e,s,t){let r=await n.getTerminalAuthContext(e,s,t);return P(r,R,m,a)},async getTerminalContext(e,s,t){let r=await n.getTerminalContext(e,s,t);return P(r,R,m,a)},async getTerminalState(e,s){let t=await n.getTerminalState(e,s);return P(t,R,m,a)},async handleCallback(e,s){let t=await n.handleCallback(e,s);return P(t,R,m,a)}}},yl=function(a,n,e){let s=J(a);return{createPaymentRequest(t,r,o){return s.createPaymentRequest(t,r,o).then(i=>i(e,n))},createRefundRequest(t,r,o){return s.createRefundRequest(t,r,o).then(i=>i(e,n))},getPaymentResult(t,r){return s.getPaymentResult(t,r).then(o=>o(e,n))},getTerminalAuthContext(t,r,o){return s.getTerminalAuthContext(t,r,o).then(i=>i(e,n))},getTerminalContext(t,r,o){return s.getTerminalContext(t,r,o).then(i=>i(e,n))},getTerminalState(t,r){return s.getTerminalState(t,r).then(o=>o(e,n))},handleCallback(t,r){return s.handleCallback(t,r).then(o=>o(e,n))}}},$t=class extends I{createPaymentRequest(n,e,s){return J(this.configuration).createPaymentRequest(n,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(n,e,s){return J(this.configuration).createRefundRequest(n,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(n,e){return J(this.configuration).getPaymentResult(n,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(n,e,s){return J(this.configuration).getTerminalAuthContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(n,e,s){return J(this.configuration).getTerminalContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(n,e){return J(this.configuration).getTerminalState(n,e).then(s=>s(this.axios,this.basePath))}handleCallback(n,e){return J(this.configuration).handleCallback(n,e).then(s=>s(this.axios,this.basePath))}};var os=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(n={}){this.apiKey=n.apiKey,this.username=n.username,this.password=n.password,this.accessToken=n.accessToken,this.basePath=n.basePath,this.baseOptions=n.baseOptions,this.formDataCtor=n.formDataCtor}isJsonMime(n){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return n!==null&&(e.test(n)||n.toLowerCase()==="application/json-patch+json")}};var Ar={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 we(a){return Ar[a.toUpperCase()]??2}function Ce(a){return 10**we(a)}function fl(a,n){if(!Number.isFinite(a))return Math.round(a*Ce(n));let[e,s="0"]=String(a).split("e");return Math.round(+`${e}e${Number(s)+we(n)}`)}function br(a,n){return a/Ce(n)}function xl(a,n,e={}){let s=we(a.currency);return new Intl.NumberFormat(n,{style:"currency",currency:a.currency.toUpperCase(),currencyDisplay:e.currencyDisplay??"symbol",signDisplay:e.signDisplay??"auto",minimumFractionDigits:s,maximumFractionDigits:s}).format(br(a.amount,a.currency))}function Cl(a,n){let e=n?.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 Ol={getMultiplier(a){return Ce(a)}};var fr={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 xr(a){if(typeof Intl.Locale=="function")try{return new Intl.Locale(`und-${a}`).maximize().language}catch{return}}function Il(a){if(!a)return{cashRounding:null,customerLanguages:["en"]};let n=a.toUpperCase(),e=fr[n]??{},s=xr(n);return{cashRounding:e.cashRounding??null,customerLanguages:e.customerLanguages??(s&&s!=="und"?[...new Set([s,"en"])]:["en"])}}function vl(a,n){let e=a.split("-")[0].toLowerCase();if(!n)return e;let s=`${e}-${n.toUpperCase()}`;return Intl.NumberFormat.supportedLocalesOf([s]).length>0?s:e}import De from"lodash";var Fe=a=>De.orderBy(a,["rank","id"],["asc","asc"]),Cr=a=>{let n=a.subcategories;return Array.isArray(n)?n:[]},Dr=(a,n)=>({...a,colorCode:a.colorCode??n}),Sr=(a,n)=>De.compact(a.map(e=>n.get(e))),as=(a,n)=>a.flatMap(e=>{let s=n[e];return s?[e,...as(s.childIds,n)]:[]}),is=(a,n)=>a.flatMap(e=>{let s=n[e];return s?.enabled?[e,...is(s.childIds,n)]:[]}),Ul=a=>{let n=new Map,e={},s={},t=Fe(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return n.set(d,Dr(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),p=(C,x)=>{let D=String(C.id),O=o(C.products,u),v=Fe(Cr(C)).map(q=>p(q,D));return s[D]={id:D,name:C.name,rank:C.rank??0,enabled:!!C.enabled,parentCategoryId:l,parentSubcategoryId:x,productIds:O,childIds:v},D},f=Fe(i.subcategories??[]).map(C=>p(C,null));e[l]={...i,productIds:d,subcategoryIds:f}}),{sortedCategories:t,productMap:n,categoriesById:e,subcategoriesById:s,categoryIdsOrder:r}},El=(a,n,e,s)=>{let t=n[a];if(!t)return[];let r=is(t.subcategoryIds,e),o=De.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return Sr(o,s)},kl=(a,n,e)=>{let s=n[a];if(!s)return[];let t=as(s.subcategoryIds,e);return De.compact(t.map(r=>e[r]))};var Or="2.19.0";export{Lr as ABLYEVENT,Le as ActionPasscodesApi,us as ActionPasscodesApiAxiosParamCreator,ai as ActionPasscodesApiFactory,zt as ActionPasscodesApiFp,Gr as ActionsEnum,Ge as AnalyticsDashboardsApi,ds as AnalyticsDashboardsApiAxiosParamCreator,ii as AnalyticsDashboardsApiFactory,ie as AnalyticsDashboardsApiFp,Ne as AuthApi,cs as AuthApiAxiosParamCreator,li as AuthApiFactory,le as AuthApiFp,_r as AutonomousVehicleType,Kr as BasketNotPricedReason,_e as BusinessApi,ps as BusinessApiAxiosParamCreator,ui as BusinessApiFactory,k as BusinessApiFp,Wr as BusinessBackgroundType,jr as BusinessEventAction,Hr as BusinessEventType,Qr as BusinessPaymentIntegrationType,Ke as BusinessScheduleApi,ms as BusinessScheduleApiAxiosParamCreator,di as BusinessScheduleApiFactory,Yt as BusinessScheduleApiFp,$r as BusinessStatusEnum,zr as CashLogReason,Yr as CashLogType,We as CashManagementApi,gs as CashManagementApiAxiosParamCreator,ci as CashManagementApiFactory,ee as CashManagementApiFp,je as CashManagementV6Api,ys as CashManagementV6ApiAxiosParamCreator,pi as CashManagementV6ApiFactory,Xt as CashManagementV6ApiFp,Xr as CashSessionStatus,He as CashSessionV2Api,hs as CashSessionV2ApiAxiosParamCreator,mi as CashSessionV2ApiFactory,Zt as CashSessionV2ApiFp,Zr as CashSignalType,Jr as CdsSessionRole,en as ChannelEnum,Qe as ChannelMenuApi,Ps as ChannelMenuApiAxiosParamCreator,gi as ChannelMenuApiFactory,he as ChannelMenuApiFp,tn as ChargeStatusEnum,sn as CheckoutModelEnum,nn as ConditionType,$e as ConfigManagementApi,Rs as ConfigManagementApiAxiosParamCreator,yi as ConfigManagementApiFactory,M as ConfigManagementApiFp,os as Configuration,on as ConsumptionType,an as CouponRefusal,ze as CouponsApi,As as CouponsApiAxiosParamCreator,hi as CouponsApiFactory,Oe as CouponsApiFp,Ye as CoursesApi,bs as CoursesApiAxiosParamCreator,Pi as CoursesApiFactory,Ve as CoursesApiFp,ln as CredentialType,un as CurrencyCode,Ol as CurrencyRegistry,dn as DatabaseEventType,cn as DayOfWeek,pn as DeliveryCourierProvider,mn as DeliveryIntentAction,Xe as DeliveryIntentApi,fs as DeliveryIntentApiAxiosParamCreator,Ri as DeliveryIntentApiFactory,Ie as DeliveryIntentApiFp,gn as DeliveryIntentStatus,yn as DeliveryPlatformConnection,hn as DeliveryPlatformOpsConnect,Pn as DeliveryStatus,Rn as DeliveryType,An as DeviceType,bn as DiscountScope,fn as DiscountScopeType,xn as DiscountSourceType,Cn as DiscountType,Ze as DisplayApi,xs as DisplayApiAxiosParamCreator,Ai as DisplayApiFactory,ue as DisplayApiFp,Je as EmployeeRolesApi,Cs as EmployeeRolesApiAxiosParamCreator,bi as EmployeeRolesApiFactory,re as EmployeeRolesApiFp,et as EmployeesApi,Ds as EmployeesApiAxiosParamCreator,fi as EmployeesApiFactory,ne as EmployeesApiFp,Dn as EntityType,Oa as ErrorEnum,Nr as EventTypeEnum,Sn as FeeType,On as FileFormat,tt as FloorPlanApi,Ss as FloorPlanApiAxiosParamCreator,xi as FloorPlanApiFactory,F as FloorPlanApiFp,Vn as GiftCardChannel,In as GiftCardEmailKind,vn as GiftCardEmailStatus,Tn as GiftCardErrorCode,qn as GiftCardHistoryKind,Un as GiftCardIssue,En as GiftCardLanguage,kn as GiftCardState,Mn as GiftCardStatus,st as GiftCardsApi,Os as GiftCardsApiAxiosParamCreator,Ci as GiftCardsApiFactory,L as GiftCardsApiFp,rt as GiftcardApi,Vs as GiftcardApiAxiosParamCreator,Di as GiftcardApiFactory,ve as GiftcardApiFp,nt as HistoryApi,Is as HistoryApiAxiosParamCreator,Si as HistoryApiFactory,Te as HistoryApiFp,ot as HistoryV6Api,vs as HistoryV6ApiAxiosParamCreator,Oi as HistoryV6ApiFactory,Pe as HistoryV6ApiFp,Bn as IngredientSectionHeadingCode,wn as IntegrationType,at as InternalGiftCardsApi,Ts as InternalGiftCardsApiAxiosParamCreator,Vi as InternalGiftCardsApiFactory,de as InternalGiftCardsApiFp,it as InvoiceCompaniesApi,qs as InvoiceCompaniesApiAxiosParamCreator,Ii as InvoiceCompaniesApiFactory,te as InvoiceCompaniesApiFp,lt as KDSApi,Us as KDSApiAxiosParamCreator,vi as KDSApiFactory,K as KDSApiFp,Fn as KDSEVENTNAME,Ln as KdsBulkReadySkipReason,Gn as KdsOrderType,Nn as KioskDeviceType,_n as KioskEventType,Kn as KioskLayout,ut as KiosksApi,Es as KiosksApiAxiosParamCreator,Ti as KiosksApiFactory,qe as KiosksApiFp,Wn as KitchenItemStatus,jn as KitchenStatus,Hn as LocatorType,Qn as LoyaltyActionKey,$n as LoyaltyCatalogType,zn as LoyaltyChannel,dt as LoyaltyCommerceApi,ks as LoyaltyCommerceApiAxiosParamCreator,qi as LoyaltyCommerceApiFactory,Jt as LoyaltyCommerceApiFp,ct as LoyaltyIntegerationsApi,Ms as LoyaltyIntegerationsApiAxiosParamCreator,Ui as LoyaltyIntegerationsApiFactory,N as LoyaltyIntegerationsApiFp,Yn as LoyaltyPerkStatus,Xn as LoyaltyRedemptionStatus,Zn as LoyaltyRestoreRequestStatus,Jn as LoyaltyRewardType,eo as LoyaltyRuleActionType,to as LoyaltyRuleApplicationMode,so as LoyaltyRuleConditionType,ro as LoyaltyRuleFulfillmentMode,no as LoyaltyRuleSelection,oo as LoyaltyRuleStackingMode,ao as LoyaltyRuleTargetType,pt as MCPApi,Bs as MCPApiAxiosParamCreator,Ei as MCPApiFactory,Re as MCPApiFp,Or as MUNCHI_CORE_VERSION,mt as MenuApi,ws as MenuApiAxiosParamCreator,ki as MenuApiFactory,Ue as MenuApiFp,io as MenuType,gt as MunchiGiftCardApi,Fs as MunchiGiftCardApiAxiosParamCreator,Mi as MunchiGiftCardApiFactory,oe as MunchiGiftCardApiFp,lo as NetsRevertMethod,uo as NexiPauseReason,yt as NotificationApi,Ls as NotificationApiAxiosParamCreator,Bi as NotificationApiFactory,Ee as NotificationApiFp,co as OperatingMode,ht as OpsApi,Gs as OpsApiAxiosParamCreator,wi as OpsApiFactory,ae as OpsApiFp,rn as OrderCollectionEnum,Pt as OrderCompletionApi,Ns as OrderCompletionApiAxiosParamCreator,Fi as OrderCompletionApiFactory,es as OrderCompletionApiFp,po as OrderFormat,Rt as OrderInternalApi,_s as OrderInternalApiAxiosParamCreator,Li as OrderInternalApiFactory,ts as OrderInternalApiFp,mo as OrderMode,go as OrderRefundStatus,yo as OrderSource,ho as OrderStatus,Po as OrderStatusEnum,Ro as OrderType,Ao as OrderTypePOS,At as OrdersApi,Ks as OrdersApiAxiosParamCreator,Gi as OrdersApiFactory,B as OrdersApiFp,bt as POSPermissionsApi,Ws as POSPermissionsApiAxiosParamCreator,Ni as POSPermissionsApiFactory,ss as POSPermissionsApiFp,ft as POSSessionApi,js as POSSessionApiAxiosParamCreator,_i as POSSessionApiFactory,rs as POSSessionApiFp,xt as PayTerminalApi,Hs as PayTerminalApiAxiosParamCreator,Ki as PayTerminalApiFactory,Y as PayTerminalApiFp,bo as PayTerminalSessionRole,Ct as PaymentApi,Qs as PaymentApiAxiosParamCreator,Wi as PaymentApiFactory,X as PaymentApiFp,fo as PaymentApp,xo as PaymentCheckoutFlow,Co as PaymentEventType,Do as PaymentFailureCode,So as PaymentMethod,Dt as PaymentMethodsApi,$s as PaymentMethodsApiAxiosParamCreator,ji as PaymentMethodsApiFactory,W as PaymentMethodsApiFp,Oo as PaymentOutcomeStatus,Vo as PaymentProvider,Io as PaymentProviderEnum,vo as PaymentReportingBucket,St as PaymentSessionApi,zs as PaymentSessionApiAxiosParamCreator,Hi as PaymentSessionApiFactory,U as PaymentSessionApiFp,To as PaymentSessionPurpose,qo as PaymentSessionStatus,Uo as PaymentStatus,Eo as PaymentSurchargePaidBy,ko as PaymentTypeEnum,Mo as PeriodPreset,Bo as PosBulkOrderStatus,wo as PosBulkStatusSkipReason,Fo as PosDiscountTargetType,Lo as PosDiscountType,Go as PosPaymentStatus,No as PosPaymentType,_o as PosPermission,Ko as PosPermissionGroup,Wo as PosPermissionKind,jo as PreorderStatus,Ho as PriceType,Qo as PrinterConnectionType,$o as PrinterModelType,zo as PrinterTypeEnum,Ot as PrintersApi,Ys as PrintersApiAxiosParamCreator,Qi as PrintersApiFactory,ke as PrintersApiFp,Vt as ProductApi,Xs as ProductApiAxiosParamCreator,$i as ProductApiFactory,ce as ProductApiFp,Yo as ProductAvailability,Xo as ProductDetailLayout,Zo as PromotionDiscountType,It as PromotionsApi,Zs as PromotionsApiAxiosParamCreator,zi as PromotionsApiFactory,pe as PromotionsApiFp,vt as ProviderApi,Js as ProviderApiAxiosParamCreator,Yi as ProviderApiFactory,Q as ProviderApiFp,Jo as ProviderEnum,ea as PubSubAction,ta as PubSubTarget,sa as ReadyMadeReport,Tt as ReceiptFooterApi,er as ReceiptFooterApiAxiosParamCreator,Xi as ReceiptFooterApiFactory,Me as ReceiptFooterApiFp,ra as ReceiptFooterDocumentType,na as RecordManualStatus,oa as RefundFailureReasonKey,aa as RefundMode,ia as RefundOverallStatus,la as RefundStatusEnum,ua as RefundStepStatus,qt as RefundsApi,tr as RefundsApiAxiosParamCreator,Zi as RefundsApiFactory,Z as RefundsApiFp,Ut as ReportApi,sr as ReportApiAxiosParamCreator,Ji as ReportApiFactory,j as ReportApiFp,da as ReportApp,ca as ReportBaselineLeftOut,pa as ReportBreakdown,ma as ReportCadence,ga as ReportChangeField,ya as ReportLanguage,ha as ReportOrderType,Pa as ReportPart,Ra as ReportRunStatus,Et as ReportSchedulesApi,rr as ReportSchedulesApiAxiosParamCreator,el as ReportSchedulesApiFactory,G as ReportSchedulesApiFp,kt as ReportV6Api,nr as ReportV6ApiAxiosParamCreator,tl as ReportV6ApiFactory,Be as ReportV6ApiFp,Mt as ResQApi,or as ResQApiAxiosParamCreator,sl as ResQApiFactory,se as ResQApiFp,Aa as ResQOfferTag,ba as ReservationSource,fa as ReservationStatus,Bt as ReservationsApi,ar as ReservationsApiAxiosParamCreator,rl as ReservationsApiFactory,H as ReservationsApiFp,xa as SYNCKEY,Ca as SavedReportKind,Da as SavedReportVisibility,wt as SavedReportsApi,ir as SavedReportsApiAxiosParamCreator,nl as SavedReportsApiFactory,w as SavedReportsApiFp,Sa as ScheduleType,Va as ShiftStatus,Ft as ShiftTrackingApi,lr as ShiftTrackingApiAxiosParamCreator,ol as ShiftTrackingApiFactory,_ as ShiftTrackingApiFp,Ia as ShipdayEventWebhook,va as ShipdayOrderStatus,Ta as SimplePaymentStatus,qa as SourceType,Ua as StaffActivityActionType,Ea as StationType,Lt as StationsApi,ur as StationsApiAxiosParamCreator,al as StationsApiFactory,Ae as StationsApiFp,ka as Status,Ma as StoreApp,Gt as StoreAppsApi,dr as StoreAppsApiAxiosParamCreator,il as StoreAppsApiFactory,be as StoreAppsApiFp,Ba as StripeConnectionState,wa as SystemProfileType,Fa as TableGroupType,La as TableShape,Ga as TableStatus,Nt as TerminalApi,cr as TerminalApiAxiosParamCreator,ll as TerminalApiFactory,fe as TerminalApiFp,Na as TerminalConnectionType,_a as TerminalProvider,Ka as TimeSpan,Wa as TransactionEventType,ja as TransactionType,Ha as Type,Qa as UpsellMode,_t as UserApi,pr as UserApiAxiosParamCreator,ul as UserApiFactory,me as UserApiFp,Kt as VendureSellerApi,mr as VendureSellerApiAxiosParamCreator,dl as VendureSellerApiFactory,ns as VendureSellerApiFp,Wt as VenueKiosksApi,gr as VenueKiosksApiAxiosParamCreator,cl as VenueKiosksApiFactory,$ as VenueKiosksApiFp,$a as VenueProviderOutcome,jt as VivaApi,yr as VivaApiAxiosParamCreator,pl as VivaApiFactory,ge as VivaApiFp,za as VivaAppToAppPaymentMethod,Ya as VivaCurrencyCode,Xa as VivaErrorId,Za as VivaEventId,Ja as VivaOnlineState,ei as VivaWebhookEventType,Ht as WebhookApi,hr as WebhookApiAxiosParamCreator,ml as WebhookApiFactory,E as WebhookApiFp,Qt as WorldlineApi,Pr as WorldlineApiAxiosParamCreator,gl as WorldlineApiFactory,xe as WorldlineApiFp,ti as WorldlineAppResult,$t as WorldlineInternalApi,Rr as WorldlineInternalApiAxiosParamCreator,yl as WorldlineInternalApiFactory,J as WorldlineInternalApiFp,si as WorldlineOperationStatus,ri as WorldlinePaymentResultStatus,ni as WorldlineResponseStatus,oi as WorldlineRevertMethod,Ul as buildPosCategoryIndex,Cl as cashRound,is as collectEnabledSubcategoryIdsDepthFirst,as as collectSubcategoryIdsDepthFirst,Il as countryQuirks,xl as formatMoney,br as fromMinor,El as getCategoryProductsIncludingSubcategories,kl as getSubcategoriesForCategory,Sr as mapProductIdsToProducts,we as minorUnitDigits,Ce as minorUnitMultiplier,vl as regionLocale,fl as toMinor};
|
|
1
|
+
import R from"axios";import ls from"axios";var m="http://localhost".replace(/\/+$/,"");var I=class{constructor(n,e=m,s=ls){this.basePath=e;this.axios=s;n&&(this.configuration=n,this.basePath=n.basePath||this.basePath)}configuration},ye=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var g="https://example.com",c=function(a,n,e){if(e==null)throw new ye(n,`Required parameter ${n} was null or undefined when calling ${a}.`)};var A=async function(a,n){if(n&&n.accessToken){let e=typeof n.accessToken=="function"?await n.accessToken():await n.accessToken;a.Authorization="Bearer "+e}};function Se(a,n,e=""){n!=null&&(typeof n=="object"?Array.isArray(n)?n.forEach(s=>Se(a,s,e)):Object.keys(n).forEach(s=>Se(a,n[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,n):a.set(e,n))}var y=function(a,...n){let e=new URLSearchParams(a.search);Se(e,n),a.search=e.toString()},b=function(a,n,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},h=function(a){return a.pathname+a.search+a.hash},P=function(a,n,e,s){return(t=n,r=e)=>{let o={...a.options,url:(s?.basePath||r)+a.url};return t.request(o)}};var Lr={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed",CashManagement:"cash-management"},Gr={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Nr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},_r={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Kr={Unavailable:"UNAVAILABLE"},Wr={Image:"image",Video:"video",Animation:"animation"},jr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Hr={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Qr={GiftCard:"GiftCard",MunchiGiftCard:"MunchiGiftCard",Epassi:"Epassi"},$r={Online:"ONLINE",Offline:"OFFLINE"},zr={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"},Yr={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Xr={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Zr={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Jr={Pos:"pos",Display:"display"},en={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"},tn={Pending:"pending",Success:"success",Failure:"failure"},sn={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},rn={Kiosk:"kiosk"},nn={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},on={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},an={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"},ln={ApiKey:"api_key",BasicAuth:"basic_auth",Oauth2:"oauth_2"},un={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"},dn={Insert:"INSERT",Update:"UPDATE",Delete:"DELETE"},cn={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},pn={Shipday:"shipday",UberDirect:"uber_direct"},mn={Create:"CREATE",Update:"UPDATE",Cancel:"CANCEL"},gn={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},yn={Created:"created",Reactivated:"reactivated",AlreadyActive:"already_active"},hn={Foodora:"Foodora",Bolt:"Bolt"},Pn={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Rn={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},An={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},bn={Item:"ITEM",Cart:"CART"},fn={Business:"BUSINESS",Owner:"OWNER"},xn={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Cn={Percentage:"PERCENTAGE",Fixed:"FIXED"},Dn={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Sn={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},On={Pdf:"pdf",Xlsx:"xlsx"},Vn={Till:"TILL",OnlineStore:"ONLINE_STORE",Kiosk:"KIOSK",MobileApp:"MOBILE_APP"},In={Photo:"photo",Birthday:"birthday",Thanks:"thanks",Love:"love",Congrats:"congrats",Baby:"baby",Food:"food",Celebration:"celebration",Holidays:"holidays",JustBecause:"justBecause"},vn={Card:"CARD",CardAgain:"CARD_AGAIN",Expiry30:"EXPIRY_30",Expiry7:"EXPIRY_7",BuyerReceipt:"BUYER_RECEIPT"},Tn={Pending:"PENDING",Sent:"SENT",Failed:"FAILED",Skipped:"SKIPPED"},qn={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},Un={Sold:"SOLD",CreatedByHand:"CREATED_BY_HAND",Spent:"SPENT",GivenBack:"GIVEN_BACK",Corrected:"CORRECTED",Blocked:"BLOCKED",Unblocked:"UNBLOCKED",SwitchedOn:"SWITCHED_ON",Emailed:"EMAILED",EmailFailed:"EMAIL_FAILED",EmailChanged:"EMAIL_CHANGED",Refunded:"REFUNDED",Scheduled:"SCHEDULED"},En={TillSale:"TILL_SALE",OnlineSale:"ONLINE_SALE",ByHand:"BY_HAND"},kn={En:"en",Fi:"fi"},Mn={Blocked:"BLOCKED",NotYetValid:"NOT_YET_VALID",Expired:"EXPIRED",UsedUp:"USED_UP",Active:"ACTIVE"},Bn={Pending:"PENDING",Active:"ACTIVE"},wn={IngredientsDefaultHeading:"INGREDIENTS_DEFAULT_HEADING"},Fn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Ln={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},Gn={Found:"NOT_FOUND",Pos:"NOT_POS",InProgress:"NOT_IN_PROGRESS"},Nn={Standard:"STANDARD",Broadcast:"BROADCAST"},_n={Tablet:"TABLET",KioskStand:"KIOSK_STAND"},Kn={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Wn={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},jn={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},Hn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Qn={Table:"table",Indicator:"indicator"},$n={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},zn={Product:"product",Coupon:"coupon"},Yn={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},Xn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Zn={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},Jn={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},eo={Product:"product",Coupon:"coupon"},to={Percentage:"percentage",Fixed:"fixed"},so={Manual:"manual",Automatic:"automatic"},ro={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"},no={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},oo={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},ao={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},io={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},lo={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},uo={Reversal:"REVERSAL",Refund:"REFUND"},co={NexiUnheard:"nexi unheard",NexiPaused:"nexi paused",ConfirmNotTaken:"confirm not taken",OrderNotWritten:"order not written"},po={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},mo={Open:"OPEN",Instant:"INSTANT"},go={Instant:"INSTANT",PreOrder:"PRE_ORDER"},yo={None:"NONE",Partial:"PARTIAL",Full:"FULL"},ho={Platform:"PLATFORM",Pos:"POS"},Po={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Ro={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"},Ao={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},bo={DineIn:"dine_in",PickUp:"pick_up"},fo={Pos:"pos",Terminal:"terminal"},xo={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},Co={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Do={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},So={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"},Oo={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"},Vo={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},Io={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi",Nexi:"nexi"},vo={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline",Epassi:"epassi",Nexi:"nexi"},To={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},qo={Sale:"SALE",Refund:"REFUND",Void:"VOID"},Uo={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"},Eo={Paid:"paid",Pending:"pending"},ko={Business:"BUSINESS",Customer:"CUSTOMER"},Mo={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Bo={Today:"today",Yesterday:"yesterday",ThisWeek:"thisWeek",LastWeek:"lastWeek",ThisMonth:"thisMonth",LastMonth:"lastMonth",ThisYear:"thisYear",CustomDays:"custom",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR",Custom:"CUSTOM"},wo={Ready:"ready",Delivered:"delivered"},Fo={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"},Go={Percentage:"percentage",Fixed:"fixed"},No={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},_o={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Ko={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"},Wo={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"},jo={Screen:"screen",Action:"action",Visibility:"visibility"},Ho={Waiting:"waiting",Confirm:"confirm"},Qo={Preset:"PRESET",Open:"OPEN"},$o={Bluetooth:"bluetooth",Network:"network"},zo={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Yo={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Xo={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Zo={Modal:"MODAL",Screen:"SCREEN"},Jo={Percentage:"PERCENTAGE",Fixed:"FIXED"},ea={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"},ta={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},sa={Kds:"KDS"},ra={Sales:"sales",ZReport:"zReport",SalesVat:"salesVat",Payments:"payments",ProductSales:"productSales",CashSessions:"cashSessions",Staff:"staff",Hours:"hours"},na={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},oa={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},aa={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"},ia={Full:"FULL",Item:"ITEM"},la={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},ua={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},da={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},ca={Pos:"pos",Kiosk:"kiosk",Storefront:"storefront",Mobile:"mobile"},pa={IsTheBaseline:"is_the_baseline",OtherCurrency:"other_currency"},ma={None:"none",Venue:"venue",App:"app",VenueApp:"venue_app"},ga={Daily:"daily",Weekly:"weekly",Monthly:"monthly",Off:"off"},ya={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"},ha={Fi:"fi",En:"en"},Pa={EatIn:"eat_in",Takeaway:"takeaway",Delivery:"delivery",Unknown:"unknown"},Ra={Summary:"summary",Items:"items",Vat:"vat",Payments:"payments",Discounts:"discounts"},Aa={Making:"making",Sent:"sent",Failed:"failed"},ba={Meal:"meal",Snack:"snack",Ingredients:"ingredients",GroceryBag:"grocery-bag",Dessert:"dessert",Flowers:"flowers",Fee:"fee",Wholesale:"wholesale",HomeCosmetics:"home-cosmetics"},fa={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},xa={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},Ca={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"},Da={Report:"report",Comparison:"comparison"},Sa={Private:"private",Organisation:"organisation",Public:"public"},Oa={Physical:"PHYSICAL"},Va={NoAriAccess:"NO_ARI_ACCESS",NotStoreOwner:"NOT_STORE_OWNER",RightsUnavailable:"RIGHTS_UNAVAILABLE"},Ia={Open:"open",Closed:"closed"},va={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"},Ta={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"},qa={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Ua={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Ea={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"},ka={Kiosk:"KIOSK",Pos:"POS"},Ma={Active:"ACTIVE",Inactive:"INACTIVE"},Ba={OnlineStore:"online_store",Kiosk:"kiosk",Kitchen:"kitchen",Loyalty:"loyalty",OrderStatus:"order_status",Reservation:"reservation",GiftCard:"gift_card",AriCalls:"ari_calls",AriOrders:"ari_orders"},wa={Active:"active",Pending:"pending",None:"none"},Fa={NoStation:"NO_STATION"},La={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Ga={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},Na={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},_a={Network:"NETWORK"},Ka={Viva:"viva",Nets:"nets",Worldline:"worldline",Nexi:"nexi"},Wa={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},ja={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Ha={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Qa={Instant:"instant",Preorder:"preorder"},$a={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},za={Created:"created",Updated:"updated",Unchanged:"unchanged"},Ya={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Xa={_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"},Za={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},Ja={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},ei={Active:"active",None:"none"},ti={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},si={Success:"WPI_RESULT_SUCCESS",Failure:"WPI_RESULT_FAILURE"},ri={Queued:"QUEUED",InProgress:"IN_PROGRESS",Completed:"COMPLETED",Failed:"FAILED",Cancelled:"CANCELLED"},ni={Pending:"PENDING",Completed:"COMPLETED",Failed:"FAILED"},oi={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},ai={Reversal:"REVERSAL",Refund:"REFUND"},us=function(a){return{checkActionPasscode:async(n,e,s,t={})=>{c("checkActionPasscode","businessId",n),c("checkActionPasscode","xPosPin",e),c("checkActionPasscode","checkActionPasscodeDto",s);let r="/api/v2/businesses/{businessId}/action-passcodes/check".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},zt=function(a){let n=us(a);return{async checkActionPasscode(e,s,t,r){let o=await n.checkActionPasscode(e,s,t,r);return P(o,R,m,a)}}},ii=function(a,n,e){let s=zt(a);return{checkActionPasscode(t,r,o,i){return s.checkActionPasscode(t,r,o,i).then(l=>l(e,n))}}},Le=class extends I{checkActionPasscode(n,e,s,t){return zt(this.configuration).checkActionPasscode(n,e,s,t).then(r=>r(this.axios,this.basePath))}},ds=function(a){return{getOrganisationAnalyticsDashboard:async(n,e={})=>{c("getOrganisationAnalyticsDashboard","groupId",n);let s="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getStoreAnalyticsDashboard:async(n,e={})=>{c("getStoreAnalyticsDashboard","businessId",n);let s="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},saveOrganisationAnalyticsDashboard:async(n,e,s={})=>{c("saveOrganisationAnalyticsDashboard","groupId",n),c("saveOrganisationAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/groups/{groupId}/analytics-dashboard".replace("{groupId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},saveStoreAnalyticsDashboard:async(n,e,s={})=>{c("saveStoreAnalyticsDashboard","businessId",n),c("saveStoreAnalyticsDashboard","saveAnalyticsDashboardDto",e);let t="/api/v6/businesses/{businessId}/analytics-dashboard".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},ie=function(a){let n=ds(a);return{async getOrganisationAnalyticsDashboard(e,s){let t=await n.getOrganisationAnalyticsDashboard(e,s);return P(t,R,m,a)},async getStoreAnalyticsDashboard(e,s){let t=await n.getStoreAnalyticsDashboard(e,s);return P(t,R,m,a)},async saveOrganisationAnalyticsDashboard(e,s,t){let r=await n.saveOrganisationAnalyticsDashboard(e,s,t);return P(r,R,m,a)},async saveStoreAnalyticsDashboard(e,s,t){let r=await n.saveStoreAnalyticsDashboard(e,s,t);return P(r,R,m,a)}}},li=function(a,n,e){let s=ie(a);return{getOrganisationAnalyticsDashboard(t,r){return s.getOrganisationAnalyticsDashboard(t,r).then(o=>o(e,n))},getStoreAnalyticsDashboard(t,r){return s.getStoreAnalyticsDashboard(t,r).then(o=>o(e,n))},saveOrganisationAnalyticsDashboard(t,r,o){return s.saveOrganisationAnalyticsDashboard(t,r,o).then(i=>i(e,n))},saveStoreAnalyticsDashboard(t,r,o){return s.saveStoreAnalyticsDashboard(t,r,o).then(i=>i(e,n))}}},Ge=class extends I{getOrganisationAnalyticsDashboard(n,e){return ie(this.configuration).getOrganisationAnalyticsDashboard(n,e).then(s=>s(this.axios,this.basePath))}getStoreAnalyticsDashboard(n,e){return ie(this.configuration).getStoreAnalyticsDashboard(n,e).then(s=>s(this.axios,this.basePath))}saveOrganisationAnalyticsDashboard(n,e,s){return ie(this.configuration).saveOrganisationAnalyticsDashboard(n,e,s).then(t=>t(this.axios,this.basePath))}saveStoreAnalyticsDashboard(n,e,s){return ie(this.configuration).saveStoreAnalyticsDashboard(n,e,s).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{firebaseAuth:async(n={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},login:async(n,e={})=>{c("login","credentialDto",n);let s="/api/v1/auth/login",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},logout:async(n={})=>{let e="/api/v1/auth/logout",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},refreshToken:async(n,e={})=>{c("refreshToken","refreshTokenDto",n);let s="/api/v1/auth/refresh",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},le=function(a){let n=cs(a);return{async firebaseAuth(e){let s=await n.firebaseAuth(e);return P(s,R,m,a)},async login(e,s){let t=await n.login(e,s);return P(t,R,m,a)},async logout(e){let s=await n.logout(e);return P(s,R,m,a)},async refreshToken(e,s){let t=await n.refreshToken(e,s);return P(t,R,m,a)}}},ui=function(a,n,e){let s=le(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(r=>r(e,n))},login(t,r){return s.login(t,r).then(o=>o(e,n))},logout(t){return s.logout(t).then(r=>r(e,n))},refreshToken(t,r){return s.refreshToken(t,r).then(o=>o(e,n))}}},Ne=class extends I{firebaseAuth(n){return le(this.configuration).firebaseAuth(n).then(e=>e(this.axios,this.basePath))}login(n,e){return le(this.configuration).login(n,e).then(s=>s(this.axios,this.basePath))}logout(n){return le(this.configuration).logout(n).then(e=>e(this.axios,this.basePath))}refreshToken(n,e){return le(this.configuration).refreshToken(n,e).then(s=>s(this.axios,this.basePath))}},ps=function(a){return{getAdvancedDiscounts:async(n,e={})=>{c("getAdvancedDiscounts","businessId",n);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getBusinessCategoriesByMenuIdV2:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",n),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getBusinessCategoriesByMenuIdV3:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",n),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getBusinessChannelConfigV2:async(n,e,s={})=>{c("getBusinessChannelConfigV2","businessId",n);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfig:async(n,e,s={})=>{c("getBusinessConfig","businessId",n);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfigById:async(n,e,s={})=>{c("getBusinessConfigById","businessId",n);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessConfigByIdV2:async(n,e,s={})=>{c("getBusinessConfigByIdV2","businessId",n);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.lang=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV2:async(n,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",n),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV3:async(n,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",n),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessMenuByTypeV4:async(n,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",n),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getBusinessProviderStatus:async(n,e={})=>{c("getBusinessProviderStatus","businessId",n);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getBusinessTax:async(n,e={})=>{let s="/api/v1/business/tax",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getProvidersSupportedIntegrations:async(n,e={})=>{c("getProvidersSupportedIntegrations","businessIds",n);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n&&(l.businessIds=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getSingleBusinessProviderStatus:async(n,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",n),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(n))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getVenueCurrency:async(n,e={})=>{c("getVenueCurrency","businessId",n);let s="/api/v1/business/{businessId}/currency".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},setBusinessStatus:async(n,e,s={})=>{c("setBusinessStatus","businessId",n),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},setBusinessStatusSchedule:async(n,e,s={})=>{c("setBusinessStatusSchedule","businessId",n),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},k=function(a){let n=ps(a);return{async getAdvancedDiscounts(e,s){let t=await n.getAdvancedDiscounts(e,s);return P(t,R,m,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV2(e,s,t);return P(r,R,m,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV3(e,s,t);return P(r,R,m,a)},async getBusinessChannelConfigV2(e,s,t){let r=await n.getBusinessChannelConfigV2(e,s,t);return P(r,R,m,a)},async getBusinessConfig(e,s,t){let r=await n.getBusinessConfig(e,s,t);return P(r,R,m,a)},async getBusinessConfigById(e,s,t){let r=await n.getBusinessConfigById(e,s,t);return P(r,R,m,a)},async getBusinessConfigByIdV2(e,s,t){let r=await n.getBusinessConfigByIdV2(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV2(e,s,t){let r=await n.getBusinessMenuByTypeV2(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV3(e,s,t){let r=await n.getBusinessMenuByTypeV3(e,s,t);return P(r,R,m,a)},async getBusinessMenuByTypeV4(e,s,t){let r=await n.getBusinessMenuByTypeV4(e,s,t);return P(r,R,m,a)},async getBusinessProviderStatus(e,s){let t=await n.getBusinessProviderStatus(e,s);return P(t,R,m,a)},async getBusinessTax(e,s){let t=await n.getBusinessTax(e,s);return P(t,R,m,a)},async getProvidersSupportedIntegrations(e,s){let t=await n.getProvidersSupportedIntegrations(e,s);return P(t,R,m,a)},async getSingleBusinessProviderStatus(e,s,t,r){let o=await n.getSingleBusinessProviderStatus(e,s,t,r);return P(o,R,m,a)},async getVenueCurrency(e,s){let t=await n.getVenueCurrency(e,s);return P(t,R,m,a)},async setBusinessStatus(e,s,t){let r=await n.setBusinessStatus(e,s,t);return P(r,R,m,a)},async setBusinessStatusSchedule(e,s,t){let r=await n.setBusinessStatusSchedule(e,s,t);return P(r,R,m,a)}}},di=function(a,n,e){let s=k(a);return{getAdvancedDiscounts(t,r){return s.getAdvancedDiscounts(t,r).then(o=>o(e,n))},getBusinessCategoriesByMenuIdV2(t,r,o){return s.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,n))},getBusinessCategoriesByMenuIdV3(t,r,o){return s.getBusinessCategoriesByMenuIdV3(t,r,o).then(i=>i(e,n))},getBusinessChannelConfigV2(t,r,o){return s.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,n))},getBusinessConfig(t,r,o){return s.getBusinessConfig(t,r,o).then(i=>i(e,n))},getBusinessConfigById(t,r,o){return s.getBusinessConfigById(t,r,o).then(i=>i(e,n))},getBusinessConfigByIdV2(t,r,o){return s.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV2(t,r,o){return s.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV3(t,r,o){return s.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV4(t,r,o){return s.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,n))},getBusinessProviderStatus(t,r){return s.getBusinessProviderStatus(t,r).then(o=>o(e,n))},getBusinessTax(t,r){return s.getBusinessTax(t,r).then(o=>o(e,n))},getProvidersSupportedIntegrations(t,r){return s.getProvidersSupportedIntegrations(t,r).then(o=>o(e,n))},getSingleBusinessProviderStatus(t,r,o,i){return s.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,n))},getVenueCurrency(t,r){return s.getVenueCurrency(t,r).then(o=>o(e,n))},setBusinessStatus(t,r,o){return s.setBusinessStatus(t,r,o).then(i=>i(e,n))},setBusinessStatusSchedule(t,r,o){return s.setBusinessStatusSchedule(t,r,o).then(i=>i(e,n))}}},_e=class extends I{getAdvancedDiscounts(n,e){return k(this.configuration).getAdvancedDiscounts(n,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(n,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(n,e,s){return k(this.configuration).getBusinessCategoriesByMenuIdV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(n,e,s){return k(this.configuration).getBusinessChannelConfigV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(n,e,s){return k(this.configuration).getBusinessConfig(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(n,e,s){return k(this.configuration).getBusinessConfigById(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(n,e,s){return k(this.configuration).getBusinessConfigByIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(n,e,s){return k(this.configuration).getBusinessMenuByTypeV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(n,e,s){return k(this.configuration).getBusinessMenuByTypeV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(n,e,s){return k(this.configuration).getBusinessMenuByTypeV4(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(n,e){return k(this.configuration).getBusinessProviderStatus(n,e).then(s=>s(this.axios,this.basePath))}getBusinessTax(n,e){return k(this.configuration).getBusinessTax(n,e).then(s=>s(this.axios,this.basePath))}getProvidersSupportedIntegrations(n,e){return k(this.configuration).getProvidersSupportedIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(n,e,s,t){return k(this.configuration).getSingleBusinessProviderStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueCurrency(n,e){return k(this.configuration).getVenueCurrency(n,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(n,e,s){return k(this.configuration).setBusinessStatus(n,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(n,e,s){return k(this.configuration).setBusinessStatusSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},ms=function(a){return{upsertSchedule:async(n,e,s={})=>{c("upsertSchedule","businessId",n),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Yt=function(a){let n=ms(a);return{async upsertSchedule(e,s,t){let r=await n.upsertSchedule(e,s,t);return P(r,R,m,a)}}},ci=function(a,n,e){let s=Yt(a);return{upsertSchedule(t,r,o){return s.upsertSchedule(t,r,o).then(i=>i(e,n))}}},Ke=class extends I{upsertSchedule(n,e,s){return Yt(this.configuration).upsertSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},gs=function(a){return{create:async(n,e,s={})=>{c("create","businessId",n),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getCashLogs:async(n,e,s,t,r,o,i,l={})=>{c("getCashLogs","businessId",n);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r!==void 0&&(x.page=r),o!==void 0&&(x.rowPerPage=o),i!==void 0&&(x.timezone=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getCashSession:async(n,e={})=>{c("getCashSession","businessId",n);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getSessionReport:async(n,e,s={})=>{c("getSessionReport","businessId",n),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},recordCashLog:async(n,e,s={})=>{c("recordCashLog","businessId",n),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},sendSessionReport:async(n,e,s,t,r={})=>{c("sendSessionReport","businessId",n),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let o="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};await A(d,a),t!=null&&(d["x-app-x"]=String(t)),d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(s,u,a),{url:h(i),options:u}}}},ee=function(a){let n=gs(a);return{async create(e,s,t){let r=await n.create(e,s,t);return P(r,R,m,a)},async getCashLogs(e,s,t,r,o,i,l,u){let d=await n.getCashLogs(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getCashSession(e,s){let t=await n.getCashSession(e,s);return P(t,R,m,a)},async getSessionReport(e,s,t){let r=await n.getSessionReport(e,s,t);return P(r,R,m,a)},async recordCashLog(e,s,t){let r=await n.recordCashLog(e,s,t);return P(r,R,m,a)},async sendSessionReport(e,s,t,r,o){let i=await n.sendSessionReport(e,s,t,r,o);return P(i,R,m,a)}}},pi=function(a,n,e){let s=ee(a);return{create(t,r,o){return s.create(t,r,o).then(i=>i(e,n))},getCashLogs(t,r,o,i,l,u,d,p){return s.getCashLogs(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getCashSession(t,r){return s.getCashSession(t,r).then(o=>o(e,n))},getSessionReport(t,r,o){return s.getSessionReport(t,r,o).then(i=>i(e,n))},recordCashLog(t,r,o){return s.recordCashLog(t,r,o).then(i=>i(e,n))},sendSessionReport(t,r,o,i,l){return s.sendSessionReport(t,r,o,i,l).then(u=>u(e,n))}}},We=class extends I{create(n,e,s){return ee(this.configuration).create(n,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(n,e,s,t,r,o,i,l){return ee(this.configuration).getCashLogs(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(n,e){return ee(this.configuration).getCashSession(n,e).then(s=>s(this.axios,this.basePath))}getSessionReport(n,e,s){return ee(this.configuration).getSessionReport(n,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(n,e,s){return ee(this.configuration).recordCashLog(n,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(n,e,s,t,r){return ee(this.configuration).sendSessionReport(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},ys=function(a){return{listCashLogsForTill:async(n,e,s,t,r,o,i,l={})=>{c("listCashLogsForTill","businessId",n);let u="/api/v6/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r!==void 0&&(x.page=r),o!==void 0&&(x.rowPerPage=o),i!==void 0&&(x.timezone=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}}}},Xt=function(a){let n=ys(a);return{async listCashLogsForTill(e,s,t,r,o,i,l,u){let d=await n.listCashLogsForTill(e,s,t,r,o,i,l,u);return P(d,R,m,a)}}},mi=function(a,n,e){let s=Xt(a);return{listCashLogsForTill(t,r,o,i,l,u,d,p){return s.listCashLogsForTill(t,r,o,i,l,u,d,p).then(f=>f(e,n))}}},je=class extends I{listCashLogsForTill(n,e,s,t,r,o,i,l){return Xt(this.configuration).listCashLogsForTill(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},hs=function(a){return{openCashSession:async(n,e,s={})=>{c("openCashSession","businessId",n),c("openCashSession","openCashSessionDto",e);let t="/api/v2/cash-management/{businessId}/sessions".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Zt=function(a){let n=hs(a);return{async openCashSession(e,s,t){let r=await n.openCashSession(e,s,t);return P(r,R,m,a)}}},gi=function(a,n,e){let s=Zt(a);return{openCashSession(t,r,o){return s.openCashSession(t,r,o).then(i=>i(e,n))}}},He=class extends I{openCashSession(n,e,s){return Zt(this.configuration).openCashSession(n,e,s).then(t=>t(this.axios,this.basePath))}},Ps=function(a){return{getChannelCatalog:async(n,e,s,t={})=>{c("getChannelCatalog","businessId",n),c("getChannelCatalog","channelType",e);let r="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),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 p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getChannelMenu:async(n,e,s,t={})=>{c("getChannelMenu","businessId",n),c("getChannelMenu","channelType",e);let r="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),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 p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getChannelMenuTimes:async(n,e,s={})=>{c("getChannelMenuTimes","businessId",n),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},he=function(a){let n=Ps(a);return{async getChannelCatalog(e,s,t,r){let o=await n.getChannelCatalog(e,s,t,r);return P(o,R,m,a)},async getChannelMenu(e,s,t,r){let o=await n.getChannelMenu(e,s,t,r);return P(o,R,m,a)},async getChannelMenuTimes(e,s,t){let r=await n.getChannelMenuTimes(e,s,t);return P(r,R,m,a)}}},yi=function(a,n,e){let s=he(a);return{getChannelCatalog(t,r,o,i){return s.getChannelCatalog(t,r,o,i).then(l=>l(e,n))},getChannelMenu(t,r,o,i){return s.getChannelMenu(t,r,o,i).then(l=>l(e,n))},getChannelMenuTimes(t,r,o){return s.getChannelMenuTimes(t,r,o).then(i=>i(e,n))}}},Qe=class extends I{getChannelCatalog(n,e,s,t){return he(this.configuration).getChannelCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(n,e,s,t){return he(this.configuration).getChannelMenu(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(n,e,s){return he(this.configuration).getChannelMenuTimes(n,e,s).then(t=>t(this.axios,this.basePath))}},Rs=function(a){return{configConfigureMunchiGiftCard:async(n,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",n),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configGetProviders:async(n,e,s={})=>{c("configGetProviders","businessId",n),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!=null&&(l["x-app-x"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},configManualSync:async(n,e,s={})=>{c("configManualSync","businessId",n),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configRemovePaymentOption:async(n,e,s,t={})=>{c("configRemovePaymentOption","businessId",n),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await A(u,a),s!=null&&(u["x-app-x"]=String(s)),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},configSaveEpassiCredentials:async(n,e,s,t,r={})=>{c("configSaveEpassiCredentials","businessId",n),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(n))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};await A(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,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},configUpsertBusiness:async(n,e,s={})=>{c("configUpsertBusiness","businessId",n),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configUpsertChannelConfig:async(n,e,s,t={})=>{c("configUpsertChannelConfig","businessId",n),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertGiftCard:async(n,e,s,t={})=>{c("configUpsertGiftCard","businessId",n),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertLoyalty:async(n,e,s={})=>{c("configUpsertLoyalty","businessId",n),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},configUpsertNets:async(n,e,s,t={})=>{c("configUpsertNets","businessId",n),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertNexi:async(n,e,s,t={})=>{c("configUpsertNexi","businessId",n),c("configUpsertNexi","xAppX",e),c("configUpsertNexi","upsertNexiDto",s);let r="/api/v1/config-management/business/{businessId}/config/nexi".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertPaymentOptions:async(n,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",n),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertProviders:async(n,e,s,t={})=>{c("configUpsertProviders","businessId",n),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let r="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertStripe:async(n,e,s,t={})=>{c("configUpsertStripe","businessId",n),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertViva:async(n,e,s,t={})=>{c("configUpsertViva","businessId",n),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},configUpsertWorldline:async(n,e,s,t={})=>{c("configUpsertWorldline","businessId",n),c("configUpsertWorldline","xAppX",e),c("configUpsertWorldline","upsertWorldlineDto",s);let r="/api/v1/config-management/business/{businessId}/config/worldline".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},M=function(a){let n=Rs(a);return{async configConfigureMunchiGiftCard(e,s,t,r){let o=await n.configConfigureMunchiGiftCard(e,s,t,r);return P(o,R,m,a)},async configGetProviders(e,s,t){let r=await n.configGetProviders(e,s,t);return P(r,R,m,a)},async configManualSync(e,s,t){let r=await n.configManualSync(e,s,t);return P(r,R,m,a)},async configRemovePaymentOption(e,s,t,r){let o=await n.configRemovePaymentOption(e,s,t,r);return P(o,R,m,a)},async configSaveEpassiCredentials(e,s,t,r,o){let i=await n.configSaveEpassiCredentials(e,s,t,r,o);return P(i,R,m,a)},async configUpsertBusiness(e,s,t){let r=await n.configUpsertBusiness(e,s,t);return P(r,R,m,a)},async configUpsertChannelConfig(e,s,t,r){let o=await n.configUpsertChannelConfig(e,s,t,r);return P(o,R,m,a)},async configUpsertGiftCard(e,s,t,r){let o=await n.configUpsertGiftCard(e,s,t,r);return P(o,R,m,a)},async configUpsertLoyalty(e,s,t){let r=await n.configUpsertLoyalty(e,s,t);return P(r,R,m,a)},async configUpsertNets(e,s,t,r){let o=await n.configUpsertNets(e,s,t,r);return P(o,R,m,a)},async configUpsertNexi(e,s,t,r){let o=await n.configUpsertNexi(e,s,t,r);return P(o,R,m,a)},async configUpsertPaymentOptions(e,s,t,r){let o=await n.configUpsertPaymentOptions(e,s,t,r);return P(o,R,m,a)},async configUpsertProviders(e,s,t,r){let o=await n.configUpsertProviders(e,s,t,r);return P(o,R,m,a)},async configUpsertStripe(e,s,t,r){let o=await n.configUpsertStripe(e,s,t,r);return P(o,R,m,a)},async configUpsertViva(e,s,t,r){let o=await n.configUpsertViva(e,s,t,r);return P(o,R,m,a)},async configUpsertWorldline(e,s,t,r){let o=await n.configUpsertWorldline(e,s,t,r);return P(o,R,m,a)}}},hi=function(a,n,e){let s=M(a);return{configConfigureMunchiGiftCard(t,r,o,i){return s.configConfigureMunchiGiftCard(t,r,o,i).then(l=>l(e,n))},configGetProviders(t,r,o){return s.configGetProviders(t,r,o).then(i=>i(e,n))},configManualSync(t,r,o){return s.configManualSync(t,r,o).then(i=>i(e,n))},configRemovePaymentOption(t,r,o,i){return s.configRemovePaymentOption(t,r,o,i).then(l=>l(e,n))},configSaveEpassiCredentials(t,r,o,i,l){return s.configSaveEpassiCredentials(t,r,o,i,l).then(u=>u(e,n))},configUpsertBusiness(t,r,o){return s.configUpsertBusiness(t,r,o).then(i=>i(e,n))},configUpsertChannelConfig(t,r,o,i){return s.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,n))},configUpsertGiftCard(t,r,o,i){return s.configUpsertGiftCard(t,r,o,i).then(l=>l(e,n))},configUpsertLoyalty(t,r,o){return s.configUpsertLoyalty(t,r,o).then(i=>i(e,n))},configUpsertNets(t,r,o,i){return s.configUpsertNets(t,r,o,i).then(l=>l(e,n))},configUpsertNexi(t,r,o,i){return s.configUpsertNexi(t,r,o,i).then(l=>l(e,n))},configUpsertPaymentOptions(t,r,o,i){return s.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,n))},configUpsertProviders(t,r,o,i){return s.configUpsertProviders(t,r,o,i).then(l=>l(e,n))},configUpsertStripe(t,r,o,i){return s.configUpsertStripe(t,r,o,i).then(l=>l(e,n))},configUpsertViva(t,r,o,i){return s.configUpsertViva(t,r,o,i).then(l=>l(e,n))},configUpsertWorldline(t,r,o,i){return s.configUpsertWorldline(t,r,o,i).then(l=>l(e,n))}}},$e=class extends I{configConfigureMunchiGiftCard(n,e,s,t){return M(this.configuration).configConfigureMunchiGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configGetProviders(n,e,s){return M(this.configuration).configGetProviders(n,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(n,e,s){return M(this.configuration).configManualSync(n,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(n,e,s,t){return M(this.configuration).configRemovePaymentOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}configSaveEpassiCredentials(n,e,s,t,r){return M(this.configuration).configSaveEpassiCredentials(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}configUpsertBusiness(n,e,s){return M(this.configuration).configUpsertBusiness(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(n,e,s,t){return M(this.configuration).configUpsertChannelConfig(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(n,e,s,t){return M(this.configuration).configUpsertGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(n,e,s){return M(this.configuration).configUpsertLoyalty(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(n,e,s,t){return M(this.configuration).configUpsertNets(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertNexi(n,e,s,t){return M(this.configuration).configUpsertNexi(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(n,e,s,t){return M(this.configuration).configUpsertPaymentOptions(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertProviders(n,e,s,t){return M(this.configuration).configUpsertProviders(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(n,e,s,t){return M(this.configuration).configUpsertStripe(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(n,e,s,t){return M(this.configuration).configUpsertViva(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertWorldline(n,e,s,t){return M(this.configuration).configUpsertWorldline(n,e,s,t).then(r=>r(this.axios,this.basePath))}},As=function(a){return{checkCoupon:async(n,e,s={})=>{c("checkCoupon","businessId",n),c("checkCoupon","checkCouponDto",e);let t="/api/v2/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},checkKioskCoupon:async(n,e,s={})=>{c("checkKioskCoupon","businessId",n),c("checkKioskCoupon","checkCouponDto",e);let t="/api/v2/kiosk/venues/{businessId}/coupons/check".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Oe=function(a){let n=As(a);return{async checkCoupon(e,s,t){let r=await n.checkCoupon(e,s,t);return P(r,R,m,a)},async checkKioskCoupon(e,s,t){let r=await n.checkKioskCoupon(e,s,t);return P(r,R,m,a)}}},Pi=function(a,n,e){let s=Oe(a);return{checkCoupon(t,r,o){return s.checkCoupon(t,r,o).then(i=>i(e,n))},checkKioskCoupon(t,r,o){return s.checkKioskCoupon(t,r,o).then(i=>i(e,n))}}},ze=class extends I{checkCoupon(n,e,s){return Oe(this.configuration).checkCoupon(n,e,s).then(t=>t(this.axios,this.basePath))}checkKioskCoupon(n,e,s){return Oe(this.configuration).checkKioskCoupon(n,e,s).then(t=>t(this.axios,this.basePath))}},bs=function(a){return{getCourseConfig:async(n,e={})=>{c("getCourseConfig","businessId",n);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getCourses:async(n,e={})=>{c("getCourses","businessId",n);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}}}},Ve=function(a){let n=bs(a);return{async getCourseConfig(e,s){let t=await n.getCourseConfig(e,s);return P(t,R,m,a)},async getCourses(e,s){let t=await n.getCourses(e,s);return P(t,R,m,a)}}},Ri=function(a,n,e){let s=Ve(a);return{getCourseConfig(t,r){return s.getCourseConfig(t,r).then(o=>o(e,n))},getCourses(t,r){return s.getCourses(t,r).then(o=>o(e,n))}}},Ye=class extends I{getCourseConfig(n,e){return Ve(this.configuration).getCourseConfig(n,e).then(s=>s(this.axios,this.basePath))}getCourses(n,e){return Ve(this.configuration).getCourses(n,e).then(s=>s(this.axios,this.basePath))}},fs=function(a){return{findIntent:async(n,e={})=>{c("findIntent","intentId",n);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},updateIntent:async(n,e,s={})=>{c("updateIntent","intentId",n),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Ie=function(a){let n=fs(a);return{async findIntent(e,s){let t=await n.findIntent(e,s);return P(t,R,m,a)},async updateIntent(e,s,t){let r=await n.updateIntent(e,s,t);return P(r,R,m,a)}}},Ai=function(a,n,e){let s=Ie(a);return{findIntent(t,r){return s.findIntent(t,r).then(o=>o(e,n))},updateIntent(t,r,o){return s.updateIntent(t,r,o).then(i=>i(e,n))}}},Xe=class extends I{findIntent(n,e){return Ie(this.configuration).findIntent(n,e).then(s=>s(this.axios,this.basePath))}updateIntent(n,e,s){return Ie(this.configuration).updateIntent(n,e,s).then(t=>t(this.axios,this.basePath))}},xs=function(a){return{init:async(n,e={})=>{let s="/api/v1/display/init",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pair:async(n,e={})=>{c("pair","pairDisplayBodyDto",n);let s="/api/v1/display/pair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},sessionToken:async(n,e={})=>{c("sessionToken","requestSessionTokenBodyDto",n);let s="/api/v1/display/session-token",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},unpair:async(n,e={})=>{c("unpair","unpairDisplayBodyDto",n);let s="/api/v1/display/unpair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ue=function(a){let n=xs(a);return{async init(e,s){let t=await n.init(e,s);return P(t,R,m,a)},async pair(e,s){let t=await n.pair(e,s);return P(t,R,m,a)},async sessionToken(e,s){let t=await n.sessionToken(e,s);return P(t,R,m,a)},async unpair(e,s){let t=await n.unpair(e,s);return P(t,R,m,a)}}},bi=function(a,n,e){let s=ue(a);return{init(t,r){return s.init(t,r).then(o=>o(e,n))},pair(t,r){return s.pair(t,r).then(o=>o(e,n))},sessionToken(t,r){return s.sessionToken(t,r).then(o=>o(e,n))},unpair(t,r){return s.unpair(t,r).then(o=>o(e,n))}}},Ze=class extends I{init(n,e){return ue(this.configuration).init(n,e).then(s=>s(this.axios,this.basePath))}pair(n,e){return ue(this.configuration).pair(n,e).then(s=>s(this.axios,this.basePath))}sessionToken(n,e){return ue(this.configuration).sessionToken(n,e).then(s=>s(this.axios,this.basePath))}unpair(n,e){return ue(this.configuration).unpair(n,e).then(s=>s(this.axios,this.basePath))}},Cs=function(a){return{addEmployeeRole:async(n,e,s={})=>{c("addEmployeeRole","businessId",n),c("addEmployeeRole","addEmployeeRoleDto",e);let t="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},addStarterEmployeeRoles:async(n,e={})=>{c("addStarterEmployeeRoles","businessId",n);let s="/api/v2/businesses/{businessId}/employee-roles/starter".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},changeEmployeeRole:async(n,e,s,t={})=>{c("changeEmployeeRole","businessId",n),c("changeEmployeeRole","roleId",e),c("changeEmployeeRole","changeEmployeeRoleDto",s);let r="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{roleId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},listEmployeeRoles:async(n,e={})=>{c("listEmployeeRoles","businessId",n);let s="/api/v2/businesses/{businessId}/employee-roles".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},removeEmployeeRole:async(n,e,s={})=>{c("removeEmployeeRole","businessId",n),c("removeEmployeeRole","roleId",e);let t="/api/v2/businesses/{businessId}/employee-roles/{roleId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{roleId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},re=function(a){let n=Cs(a);return{async addEmployeeRole(e,s,t){let r=await n.addEmployeeRole(e,s,t);return P(r,R,m,a)},async addStarterEmployeeRoles(e,s){let t=await n.addStarterEmployeeRoles(e,s);return P(t,R,m,a)},async changeEmployeeRole(e,s,t,r){let o=await n.changeEmployeeRole(e,s,t,r);return P(o,R,m,a)},async listEmployeeRoles(e,s){let t=await n.listEmployeeRoles(e,s);return P(t,R,m,a)},async removeEmployeeRole(e,s,t){let r=await n.removeEmployeeRole(e,s,t);return P(r,R,m,a)}}},fi=function(a,n,e){let s=re(a);return{addEmployeeRole(t,r,o){return s.addEmployeeRole(t,r,o).then(i=>i(e,n))},addStarterEmployeeRoles(t,r){return s.addStarterEmployeeRoles(t,r).then(o=>o(e,n))},changeEmployeeRole(t,r,o,i){return s.changeEmployeeRole(t,r,o,i).then(l=>l(e,n))},listEmployeeRoles(t,r){return s.listEmployeeRoles(t,r).then(o=>o(e,n))},removeEmployeeRole(t,r,o){return s.removeEmployeeRole(t,r,o).then(i=>i(e,n))}}},Je=class extends I{addEmployeeRole(n,e,s){return re(this.configuration).addEmployeeRole(n,e,s).then(t=>t(this.axios,this.basePath))}addStarterEmployeeRoles(n,e){return re(this.configuration).addStarterEmployeeRoles(n,e).then(s=>s(this.axios,this.basePath))}changeEmployeeRole(n,e,s,t){return re(this.configuration).changeEmployeeRole(n,e,s,t).then(r=>r(this.axios,this.basePath))}listEmployeeRoles(n,e){return re(this.configuration).listEmployeeRoles(n,e).then(s=>s(this.axios,this.basePath))}removeEmployeeRole(n,e,s){return re(this.configuration).removeEmployeeRole(n,e,s).then(t=>t(this.axios,this.basePath))}},Ds=function(a){return{addEmployee:async(n,e,s={})=>{c("addEmployee","businessId",n),c("addEmployee","addEmployeeDto",e);let t="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},changeEmployee:async(n,e,s,t={})=>{c("changeEmployee","businessId",n),c("changeEmployee","employeeId",e),c("changeEmployee","changeEmployeeDto",s);let r="/api/v2/businesses/{businessId}/employees/{employeeId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{employeeId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},listEmployees:async(n,e,s,t={})=>{c("listEmployees","businessId",n);let r="/api/v2/businesses/{businessId}/employees".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.cursor=e),s!==void 0&&(d.limit=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},removeEmployeeFromVenue:async(n,e,s={})=>{c("removeEmployeeFromVenue","businessId",n),c("removeEmployeeFromVenue","employeeId",e);let t="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(n))).replace("{employeeId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},setEmployeeRole:async(n,e,s,t={})=>{c("setEmployeeRole","businessId",n),c("setEmployeeRole","employeeId",e),c("setEmployeeRole","setEmployeeRoleDto",s);let r="/api/v2/businesses/{businessId}/employees/{employeeId}/role".replace("{businessId}",encodeURIComponent(String(n))).replace("{employeeId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},ne=function(a){let n=Ds(a);return{async addEmployee(e,s,t){let r=await n.addEmployee(e,s,t);return P(r,R,m,a)},async changeEmployee(e,s,t,r){let o=await n.changeEmployee(e,s,t,r);return P(o,R,m,a)},async listEmployees(e,s,t,r){let o=await n.listEmployees(e,s,t,r);return P(o,R,m,a)},async removeEmployeeFromVenue(e,s,t){let r=await n.removeEmployeeFromVenue(e,s,t);return P(r,R,m,a)},async setEmployeeRole(e,s,t,r){let o=await n.setEmployeeRole(e,s,t,r);return P(o,R,m,a)}}},xi=function(a,n,e){let s=ne(a);return{addEmployee(t,r,o){return s.addEmployee(t,r,o).then(i=>i(e,n))},changeEmployee(t,r,o,i){return s.changeEmployee(t,r,o,i).then(l=>l(e,n))},listEmployees(t,r,o,i){return s.listEmployees(t,r,o,i).then(l=>l(e,n))},removeEmployeeFromVenue(t,r,o){return s.removeEmployeeFromVenue(t,r,o).then(i=>i(e,n))},setEmployeeRole(t,r,o,i){return s.setEmployeeRole(t,r,o,i).then(l=>l(e,n))}}},et=class extends I{addEmployee(n,e,s){return ne(this.configuration).addEmployee(n,e,s).then(t=>t(this.axios,this.basePath))}changeEmployee(n,e,s,t){return ne(this.configuration).changeEmployee(n,e,s,t).then(r=>r(this.axios,this.basePath))}listEmployees(n,e,s,t){return ne(this.configuration).listEmployees(n,e,s,t).then(r=>r(this.axios,this.basePath))}removeEmployeeFromVenue(n,e,s){return ne(this.configuration).removeEmployeeFromVenue(n,e,s).then(t=>t(this.axios,this.basePath))}setEmployeeRole(n,e,s,t){return ne(this.configuration).setEmployeeRole(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Ss=function(a){return{createDiningTable:async(n,e={})=>{c("createDiningTable","createDiningTableDto",n);let s="/api/v1/floor-plan/tables",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createFloorSection:async(n,e={})=>{c("createFloorSection","createFloorSectionDto",n);let s="/api/v1/floor-plan/sections",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deleteDiningTable:async(n,e,s={})=>{c("deleteDiningTable","id",n),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},deleteFloorSection:async(n,e,s={})=>{c("deleteFloorSection","id",n),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},dissolveTableGroup:async(n,e,s={})=>{c("dissolveTableGroup","id",n),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getFloorPlan:async(n,e={})=>{c("getFloorPlan","businessId",n);let s="/api/v1/floor-plan",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},joinTables:async(n,e,s={})=>{c("joinTables","businessId",n),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},removeTableFromGroup:async(n,e,s={})=>{c("removeTableFromGroup","id",n),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},transferTable:async(n,e,s,t={})=>{c("transferTable","id",n),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let r="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateDiningTable:async(n,e,s,t={})=>{c("updateDiningTable","id",n),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let r="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateFloorSection:async(n,e,s,t={})=>{c("updateFloorSection","id",n),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let r="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateTablePosition:async(n,e,s,t={})=>{c("updateTablePosition","id",n),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let r="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateTableStatus:async(n,e,s,t={})=>{c("updateTableStatus","id",n),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let r="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},F=function(a){let n=Ss(a);return{async createDiningTable(e,s){let t=await n.createDiningTable(e,s);return P(t,R,m,a)},async createFloorSection(e,s){let t=await n.createFloorSection(e,s);return P(t,R,m,a)},async deleteDiningTable(e,s,t){let r=await n.deleteDiningTable(e,s,t);return P(r,R,m,a)},async deleteFloorSection(e,s,t){let r=await n.deleteFloorSection(e,s,t);return P(r,R,m,a)},async dissolveTableGroup(e,s,t){let r=await n.dissolveTableGroup(e,s,t);return P(r,R,m,a)},async getFloorPlan(e,s){let t=await n.getFloorPlan(e,s);return P(t,R,m,a)},async joinTables(e,s,t){let r=await n.joinTables(e,s,t);return P(r,R,m,a)},async removeTableFromGroup(e,s,t){let r=await n.removeTableFromGroup(e,s,t);return P(r,R,m,a)},async transferTable(e,s,t,r){let o=await n.transferTable(e,s,t,r);return P(o,R,m,a)},async updateDiningTable(e,s,t,r){let o=await n.updateDiningTable(e,s,t,r);return P(o,R,m,a)},async updateFloorSection(e,s,t,r){let o=await n.updateFloorSection(e,s,t,r);return P(o,R,m,a)},async updateTablePosition(e,s,t,r){let o=await n.updateTablePosition(e,s,t,r);return P(o,R,m,a)},async updateTableStatus(e,s,t,r){let o=await n.updateTableStatus(e,s,t,r);return P(o,R,m,a)}}},Ci=function(a,n,e){let s=F(a);return{createDiningTable(t,r){return s.createDiningTable(t,r).then(o=>o(e,n))},createFloorSection(t,r){return s.createFloorSection(t,r).then(o=>o(e,n))},deleteDiningTable(t,r,o){return s.deleteDiningTable(t,r,o).then(i=>i(e,n))},deleteFloorSection(t,r,o){return s.deleteFloorSection(t,r,o).then(i=>i(e,n))},dissolveTableGroup(t,r,o){return s.dissolveTableGroup(t,r,o).then(i=>i(e,n))},getFloorPlan(t,r){return s.getFloorPlan(t,r).then(o=>o(e,n))},joinTables(t,r,o){return s.joinTables(t,r,o).then(i=>i(e,n))},removeTableFromGroup(t,r,o){return s.removeTableFromGroup(t,r,o).then(i=>i(e,n))},transferTable(t,r,o,i){return s.transferTable(t,r,o,i).then(l=>l(e,n))},updateDiningTable(t,r,o,i){return s.updateDiningTable(t,r,o,i).then(l=>l(e,n))},updateFloorSection(t,r,o,i){return s.updateFloorSection(t,r,o,i).then(l=>l(e,n))},updateTablePosition(t,r,o,i){return s.updateTablePosition(t,r,o,i).then(l=>l(e,n))},updateTableStatus(t,r,o,i){return s.updateTableStatus(t,r,o,i).then(l=>l(e,n))}}},tt=class extends I{createDiningTable(n,e){return F(this.configuration).createDiningTable(n,e).then(s=>s(this.axios,this.basePath))}createFloorSection(n,e){return F(this.configuration).createFloorSection(n,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(n,e,s){return F(this.configuration).deleteDiningTable(n,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(n,e,s){return F(this.configuration).deleteFloorSection(n,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(n,e,s){return F(this.configuration).dissolveTableGroup(n,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(n,e){return F(this.configuration).getFloorPlan(n,e).then(s=>s(this.axios,this.basePath))}joinTables(n,e,s){return F(this.configuration).joinTables(n,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(n,e,s){return F(this.configuration).removeTableFromGroup(n,e,s).then(t=>t(this.axios,this.basePath))}transferTable(n,e,s,t){return F(this.configuration).transferTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateDiningTable(n,e,s,t){return F(this.configuration).updateDiningTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateFloorSection(n,e,s,t){return F(this.configuration).updateFloorSection(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTablePosition(n,e,s,t){return F(this.configuration).updateTablePosition(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTableStatus(n,e,s,t){return F(this.configuration).updateTableStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Os=function(a){return{activateVenueGiftCard:async(n,e,s={})=>{c("activateVenueGiftCard","businessId",n),c("activateVenueGiftCard","cardId",e);let t="/api/v2/venues/{businessId}/gift-cards/{cardId}/activate".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},blockVenueGiftCard:async(n,e,s,t={})=>{c("blockVenueGiftCard","businessId",n),c("blockVenueGiftCard","cardId",e),c("blockVenueGiftCard","blockVenueGiftCardDto",s);let r="/api/v2/venues/{businessId}/gift-cards/{cardId}/block".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},createVenueGiftCard:async(n,e,s,t={})=>{c("createVenueGiftCard","businessId",n),c("createVenueGiftCard","createVenueGiftCardDto",e);let r="/api/v2/venues/{businessId}/gift-cards".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(e,l,a),{url:h(o),options:l}},emailVenueGiftCard:async(n,e,s,t={})=>{c("emailVenueGiftCard","businessId",n),c("emailVenueGiftCard","cardId",e);let r="/api/v2/venues/{businessId}/gift-cards/{cardId}/email".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),s!=null&&(u["X-Idempotency-Key"]=String(s)),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getVenueGiftCard:async(n,e,s={})=>{c("getVenueGiftCard","businessId",n),c("getVenueGiftCard","cardId",e);let t="/api/v2/venues/{businessId}/gift-cards/{cardId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getVenueGiftCardReport:async(n,e,s,t={})=>{c("getVenueGiftCardReport","businessId",n),c("getVenueGiftCardReport","from",e),c("getVenueGiftCardReport","to",s);let r="/api/v2/venues/{businessId}/gift-card-report".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.from=e),s!==void 0&&(d.to=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getVenueGiftCardSelling:async(n,e={})=>{c("getVenueGiftCardSelling","businessId",n);let s="/api/v2/venues/{businessId}/gift-card-selling".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getVenueGiftCardSettings:async(n,e={})=>{c("getVenueGiftCardSettings","businessId",n);let s="/api/v2/venues/{businessId}/gift-card-settings".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listVenueGiftCardMovements:async(n,e,s,t,r,o,i,l,u={})=>{c("listVenueGiftCardMovements","businessId",n),c("listVenueGiftCardMovements","from",e),c("listVenueGiftCardMovements","to",s);let d="/api/v2/venues/{businessId}/gift-card-movements".replace("{businessId}",encodeURIComponent(String(n))),p=new URL(d,g),f;a&&(f=a.baseOptions);let C={method:"GET",...f,...u},x={},D={};await A(x,a),e!==void 0&&(D.from=e),s!==void 0&&(D.to=s),t!==void 0&&(D.search=t),r&&(D.kinds=r),o&&(D.venueIds=o),i!==void 0&&(D.cursor=i),l!==void 0&&(D.limit=l),y(p,D);let O=f&&f.headers?f.headers:{};return C.headers={...x,...O,...u.headers},{url:h(p),options:C}},listVenueGiftCards:async(n,e,s,t,r,o,i={})=>{c("listVenueGiftCards","businessId",n);let l="/api/v2/venues/{businessId}/gift-cards".replace("{businessId}",encodeURIComponent(String(n))),u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};await A(f,a),e!==void 0&&(C.search=e),s!==void 0&&(C.state=s),t!==void 0&&(C.cursor=t),r!==void 0&&(C.limit=r),o!==void 0&&(C.expiresBefore=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},unblockVenueGiftCard:async(n,e,s={})=>{c("unblockVenueGiftCard","businessId",n),c("unblockVenueGiftCard","cardId",e);let t="/api/v2/venues/{businessId}/gift-cards/{cardId}/unblock".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},updateVenueGiftCard:async(n,e,s,t={})=>{c("updateVenueGiftCard","businessId",n),c("updateVenueGiftCard","cardId",e),c("updateVenueGiftCard","updateVenueGiftCardDto",s);let r="/api/v2/venues/{businessId}/gift-cards/{cardId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{cardId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateVenueGiftCardSettings:async(n,e,s={})=>{c("updateVenueGiftCardSettings","businessId",n),c("updateVenueGiftCardSettings","updateGiftCardSettingsDto",e);let t="/api/v2/venues/{businessId}/gift-card-settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},L=function(a){let n=Os(a);return{async activateVenueGiftCard(e,s,t){let r=await n.activateVenueGiftCard(e,s,t);return P(r,R,m,a)},async blockVenueGiftCard(e,s,t,r){let o=await n.blockVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async createVenueGiftCard(e,s,t,r){let o=await n.createVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async emailVenueGiftCard(e,s,t,r){let o=await n.emailVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async getVenueGiftCard(e,s,t){let r=await n.getVenueGiftCard(e,s,t);return P(r,R,m,a)},async getVenueGiftCardReport(e,s,t,r){let o=await n.getVenueGiftCardReport(e,s,t,r);return P(o,R,m,a)},async getVenueGiftCardSelling(e,s){let t=await n.getVenueGiftCardSelling(e,s);return P(t,R,m,a)},async getVenueGiftCardSettings(e,s){let t=await n.getVenueGiftCardSettings(e,s);return P(t,R,m,a)},async listVenueGiftCardMovements(e,s,t,r,o,i,l,u,d){let p=await n.listVenueGiftCardMovements(e,s,t,r,o,i,l,u,d);return P(p,R,m,a)},async listVenueGiftCards(e,s,t,r,o,i,l){let u=await n.listVenueGiftCards(e,s,t,r,o,i,l);return P(u,R,m,a)},async unblockVenueGiftCard(e,s,t){let r=await n.unblockVenueGiftCard(e,s,t);return P(r,R,m,a)},async updateVenueGiftCard(e,s,t,r){let o=await n.updateVenueGiftCard(e,s,t,r);return P(o,R,m,a)},async updateVenueGiftCardSettings(e,s,t){let r=await n.updateVenueGiftCardSettings(e,s,t);return P(r,R,m,a)}}},Di=function(a,n,e){let s=L(a);return{activateVenueGiftCard(t,r,o){return s.activateVenueGiftCard(t,r,o).then(i=>i(e,n))},blockVenueGiftCard(t,r,o,i){return s.blockVenueGiftCard(t,r,o,i).then(l=>l(e,n))},createVenueGiftCard(t,r,o,i){return s.createVenueGiftCard(t,r,o,i).then(l=>l(e,n))},emailVenueGiftCard(t,r,o,i){return s.emailVenueGiftCard(t,r,o,i).then(l=>l(e,n))},getVenueGiftCard(t,r,o){return s.getVenueGiftCard(t,r,o).then(i=>i(e,n))},getVenueGiftCardReport(t,r,o,i){return s.getVenueGiftCardReport(t,r,o,i).then(l=>l(e,n))},getVenueGiftCardSelling(t,r){return s.getVenueGiftCardSelling(t,r).then(o=>o(e,n))},getVenueGiftCardSettings(t,r){return s.getVenueGiftCardSettings(t,r).then(o=>o(e,n))},listVenueGiftCardMovements(t,r,o,i,l,u,d,p,f){return s.listVenueGiftCardMovements(t,r,o,i,l,u,d,p,f).then(C=>C(e,n))},listVenueGiftCards(t,r,o,i,l,u,d){return s.listVenueGiftCards(t,r,o,i,l,u,d).then(p=>p(e,n))},unblockVenueGiftCard(t,r,o){return s.unblockVenueGiftCard(t,r,o).then(i=>i(e,n))},updateVenueGiftCard(t,r,o,i){return s.updateVenueGiftCard(t,r,o,i).then(l=>l(e,n))},updateVenueGiftCardSettings(t,r,o){return s.updateVenueGiftCardSettings(t,r,o).then(i=>i(e,n))}}},st=class extends I{activateVenueGiftCard(n,e,s){return L(this.configuration).activateVenueGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}blockVenueGiftCard(n,e,s,t){return L(this.configuration).blockVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}createVenueGiftCard(n,e,s,t){return L(this.configuration).createVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}emailVenueGiftCard(n,e,s,t){return L(this.configuration).emailVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueGiftCard(n,e,s){return L(this.configuration).getVenueGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}getVenueGiftCardReport(n,e,s,t){return L(this.configuration).getVenueGiftCardReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}getVenueGiftCardSelling(n,e){return L(this.configuration).getVenueGiftCardSelling(n,e).then(s=>s(this.axios,this.basePath))}getVenueGiftCardSettings(n,e){return L(this.configuration).getVenueGiftCardSettings(n,e).then(s=>s(this.axios,this.basePath))}listVenueGiftCardMovements(n,e,s,t,r,o,i,l,u){return L(this.configuration).listVenueGiftCardMovements(n,e,s,t,r,o,i,l,u).then(d=>d(this.axios,this.basePath))}listVenueGiftCards(n,e,s,t,r,o,i){return L(this.configuration).listVenueGiftCards(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}unblockVenueGiftCard(n,e,s){return L(this.configuration).unblockVenueGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}updateVenueGiftCard(n,e,s,t){return L(this.configuration).updateVenueGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateVenueGiftCardSettings(n,e,s){return L(this.configuration).updateVenueGiftCardSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},Vs=function(a){return{redeemGiftCard:async(n,e={})=>{c("redeemGiftCard","redeemGiftCardDto",n);let s="/api/v1/giftcard/redeem",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},validateGiftCard:async(n,e={})=>{c("validateGiftCard","validateGiftCardDto",n);let s="/api/v1/giftcard/validate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ve=function(a){let n=Vs(a);return{async redeemGiftCard(e,s){let t=await n.redeemGiftCard(e,s);return P(t,R,m,a)},async validateGiftCard(e,s){let t=await n.validateGiftCard(e,s);return P(t,R,m,a)}}},Si=function(a,n,e){let s=ve(a);return{redeemGiftCard(t,r){return s.redeemGiftCard(t,r).then(o=>o(e,n))},validateGiftCard(t,r){return s.validateGiftCard(t,r).then(o=>o(e,n))}}},rt=class extends I{redeemGiftCard(n,e){return ve(this.configuration).redeemGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(n,e){return ve(this.configuration).validateGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Is=function(a){return{getOrderHistoryPOSV5:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("getOrderHistoryPOSV5","businessIds",n);let O="/api/v5/history/orders/pos",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}},getOrderHistoryPOSV5Internal:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("getOrderHistoryPOSV5Internal","businessIds",n);let O="/api/v5/history/internal/orders/pos",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}}}},Te=function(a){let n=Is(a);return{async getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)},async getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)}}},Oi=function(a,n,e){let s=Te(a);return{getOrderHistoryPOSV5(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.getOrderHistoryPOSV5(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))}}},nt=class extends I{getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Te(this.configuration).getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Te(this.configuration).getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}},vs=function(a){return{listOnlineOrderHistoryForServices:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("listOnlineOrderHistoryForServices","businessIds",n);let O="/api/v6/history/internal/orders",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}},listOnlineOrderHistoryForTill:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("listOnlineOrderHistoryForTill","businessIds",n);let O="/api/v6/history/orders",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}},listOrderHistoryForTill:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D={})=>{c("listOrderHistoryForTill","businessIds",n);let O="/api/v6/history/orders/pos",V=new URL(O,g),v;a&&(v=a.baseOptions);let q={method:"GET",...v,...D},T={},S={};await A(T,a),e!==void 0&&(S.timeSpan=e),s!==void 0&&(S.start=s),t!==void 0&&(S.end=t),n&&(S.businessIds=n),r!==void 0&&(S.page=r),o!==void 0&&(S.rowPerPage=o),i&&(S.provider=i),l&&(S.paymentType=l),u&&(S.orderStatus=u),d&&(S.paymentStatus=d),p&&(S.orderType=p),f&&(S.paymentTypePos=f),C!==void 0&&(S.invoiceCompanyId=C),x!==void 0&&(S.timezone=x),y(V,S);let z=v&&v.headers?v.headers:{};return q.headers={...T,...z,...D.headers},{url:h(V),options:q}}}},Pe=function(a){let n=vs(a);return{async listOnlineOrderHistoryForServices(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.listOnlineOrderHistoryForServices(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)},async listOnlineOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.listOnlineOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)},async listOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O){let V=await n.listOrderHistoryForTill(e,s,t,r,o,i,l,u,d,p,f,C,x,D,O);return P(V,R,m,a)}}},Vi=function(a,n,e){let s=Pe(a);return{listOnlineOrderHistoryForServices(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.listOnlineOrderHistoryForServices(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))},listOnlineOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.listOnlineOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))},listOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v){return s.listOrderHistoryForTill(t,r,o,i,l,u,d,p,f,C,x,D,O,V,v).then(q=>q(e,n))}}},ot=class extends I{listOnlineOrderHistoryForServices(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Pe(this.configuration).listOnlineOrderHistoryForServices(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}listOnlineOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Pe(this.configuration).listOnlineOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}listOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D){return Pe(this.configuration).listOrderHistoryForTill(n,e,s,t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(this.axios,this.basePath))}},Ts=function(a){return{getVenueGiftCardOffer:async(n,e={})=>{c("getVenueGiftCardOffer","businessId",n);let s="/api/v2/internal/gift-cards/offers/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getVenuePosVivaMerchant:async(n,e={})=>{c("getVenuePosVivaMerchant","businessId",n);let s="/api/v2/internal/gift-cards/pos-viva/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},refundOnlineGiftCardSale:async(n,e={})=>{c("refundOnlineGiftCardSale","refundOnlineGiftCardSaleDto",n);let s="/api/v2/internal/gift-cards/online-sale/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},sellGiftCardOnline:async(n,e={})=>{c("sellGiftCardOnline","sellGiftCardOnlineDto",n);let s="/api/v2/internal/gift-cards/online-sale",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},de=function(a){let n=Ts(a);return{async getVenueGiftCardOffer(e,s){let t=await n.getVenueGiftCardOffer(e,s);return P(t,R,m,a)},async getVenuePosVivaMerchant(e,s){let t=await n.getVenuePosVivaMerchant(e,s);return P(t,R,m,a)},async refundOnlineGiftCardSale(e,s){let t=await n.refundOnlineGiftCardSale(e,s);return P(t,R,m,a)},async sellGiftCardOnline(e,s){let t=await n.sellGiftCardOnline(e,s);return P(t,R,m,a)}}},Ii=function(a,n,e){let s=de(a);return{getVenueGiftCardOffer(t,r){return s.getVenueGiftCardOffer(t,r).then(o=>o(e,n))},getVenuePosVivaMerchant(t,r){return s.getVenuePosVivaMerchant(t,r).then(o=>o(e,n))},refundOnlineGiftCardSale(t,r){return s.refundOnlineGiftCardSale(t,r).then(o=>o(e,n))},sellGiftCardOnline(t,r){return s.sellGiftCardOnline(t,r).then(o=>o(e,n))}}},at=class extends I{getVenueGiftCardOffer(n,e){return de(this.configuration).getVenueGiftCardOffer(n,e).then(s=>s(this.axios,this.basePath))}getVenuePosVivaMerchant(n,e){return de(this.configuration).getVenuePosVivaMerchant(n,e).then(s=>s(this.axios,this.basePath))}refundOnlineGiftCardSale(n,e){return de(this.configuration).refundOnlineGiftCardSale(n,e).then(s=>s(this.axios,this.basePath))}sellGiftCardOnline(n,e){return de(this.configuration).sellGiftCardOnline(n,e).then(s=>s(this.axios,this.basePath))}},qs=function(a){return{createInvoiceCompany:async(n,e={})=>{c("createInvoiceCompany","createInvoiceCompanyDto",n);let s="/api/v1/invoice-companies",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deleteInvoiceCompany:async(n,e,s={})=>{c("deleteInvoiceCompany","id",n),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getInvoiceCompanies:async(n,e={})=>{c("getInvoiceCompanies","businessId",n);let s="/api/v1/invoice-companies",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getInvoiceCompanyById:async(n,e,s={})=>{c("getInvoiceCompanyById","id",n),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},searchInvoiceCompanies:async(n,e,s={})=>{c("searchInvoiceCompanies","businessId",n);let t="/api/v1/invoice-companies/search",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.search=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},updateInvoiceCompany:async(n,e,s,t={})=>{c("updateInvoiceCompany","id",n),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},te=function(a){let n=qs(a);return{async createInvoiceCompany(e,s){let t=await n.createInvoiceCompany(e,s);return P(t,R,m,a)},async deleteInvoiceCompany(e,s,t){let r=await n.deleteInvoiceCompany(e,s,t);return P(r,R,m,a)},async getInvoiceCompanies(e,s){let t=await n.getInvoiceCompanies(e,s);return P(t,R,m,a)},async getInvoiceCompanyById(e,s,t){let r=await n.getInvoiceCompanyById(e,s,t);return P(r,R,m,a)},async searchInvoiceCompanies(e,s,t){let r=await n.searchInvoiceCompanies(e,s,t);return P(r,R,m,a)},async updateInvoiceCompany(e,s,t,r){let o=await n.updateInvoiceCompany(e,s,t,r);return P(o,R,m,a)}}},vi=function(a,n,e){let s=te(a);return{createInvoiceCompany(t,r){return s.createInvoiceCompany(t,r).then(o=>o(e,n))},deleteInvoiceCompany(t,r,o){return s.deleteInvoiceCompany(t,r,o).then(i=>i(e,n))},getInvoiceCompanies(t,r){return s.getInvoiceCompanies(t,r).then(o=>o(e,n))},getInvoiceCompanyById(t,r,o){return s.getInvoiceCompanyById(t,r,o).then(i=>i(e,n))},searchInvoiceCompanies(t,r,o){return s.searchInvoiceCompanies(t,r,o).then(i=>i(e,n))},updateInvoiceCompany(t,r,o,i){return s.updateInvoiceCompany(t,r,o,i).then(l=>l(e,n))}}},it=class extends I{createInvoiceCompany(n,e){return te(this.configuration).createInvoiceCompany(n,e).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(n,e,s){return te(this.configuration).deleteInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(n,e){return te(this.configuration).getInvoiceCompanies(n,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(n,e,s){return te(this.configuration).getInvoiceCompanyById(n,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(n,e,s){return te(this.configuration).searchInvoiceCompanies(n,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(n,e,s,t){return te(this.configuration).updateInvoiceCompany(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Us=function(a){return{createKdsStations:async(n,e={})=>{c("createKdsStations","createKdsStationsDto",n);let s="/api/v2/kds/stations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deleteKdsStation:async(n,e,s={})=>{c("deleteKdsStation","stationId",n),c("deleteKdsStation","businessId",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.businessId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},kdsGetOrders:async(n,e,s,t,r,o,i,l,u,d,p,f={})=>{c("kdsGetOrders","status",n),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let C="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(n))),x=new URL(C,g),D;a&&(D=a.baseOptions);let O={method:"GET",...D,...f},V={},v={};await A(V,a),e!==void 0&&(v.businessIds=e),s!==void 0&&(v.profileId=s),t!==void 0&&(v.page=t),r!==void 0&&(v.rowPerPage=r),o!==void 0&&(v.timeSpan=o),i!==void 0&&(v.start=i),l!==void 0&&(v.end=l),u!==void 0&&(v.timezone=u),d&&(v.provider=d),p&&(v.consumptionType=p),y(x,v);let q=D&&D.headers?D.headers:{};return O.headers={...V,...q,...f.headers},{url:h(x),options:O}},kdsGetProfiles:async(n,e={})=>{c("kdsGetProfiles","businessId",n);let s="/api/v1/kds/profiles",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},kdsMarkOrderReady:async(n,e={})=>{c("kdsMarkOrderReady","id",n);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},kdsMarkOrdersReady:async(n,e={})=>{c("kdsMarkOrdersReady","kdsMarkOrdersReadyDto",n);let s="/api/v1/kds/orders/ready",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},kdsRevertOrder:async(n,e={})=>{c("kdsRevertOrder","id",n);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listKdsStations:async(n,e={})=>{c("listKdsStations","businessId",n);let s="/api/v2/kds/stations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},setKdsChannelStations:async(n,e,s={})=>{c("setKdsChannelStations","channel",n),c("setKdsChannelStations","setKdsChannelStationsDto",e);let t="/api/v2/kds/stations/channels/{channel}".replace("{channel}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},updateKdsStation:async(n,e,s={})=>{c("updateKdsStation","stationId",n),c("updateKdsStation","updateKdsStationDto",e);let t="/api/v2/kds/stations/{stationId}".replace("{stationId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},K=function(a){let n=Us(a);return{async createKdsStations(e,s){let t=await n.createKdsStations(e,s);return P(t,R,m,a)},async deleteKdsStation(e,s,t){let r=await n.deleteKdsStation(e,s,t);return P(r,R,m,a)},async kdsGetOrders(e,s,t,r,o,i,l,u,d,p,f,C){let x=await n.kdsGetOrders(e,s,t,r,o,i,l,u,d,p,f,C);return P(x,R,m,a)},async kdsGetProfiles(e,s){let t=await n.kdsGetProfiles(e,s);return P(t,R,m,a)},async kdsMarkOrderReady(e,s){let t=await n.kdsMarkOrderReady(e,s);return P(t,R,m,a)},async kdsMarkOrdersReady(e,s){let t=await n.kdsMarkOrdersReady(e,s);return P(t,R,m,a)},async kdsRevertOrder(e,s){let t=await n.kdsRevertOrder(e,s);return P(t,R,m,a)},async listKdsStations(e,s){let t=await n.listKdsStations(e,s);return P(t,R,m,a)},async setKdsChannelStations(e,s,t){let r=await n.setKdsChannelStations(e,s,t);return P(r,R,m,a)},async updateKdsStation(e,s,t){let r=await n.updateKdsStation(e,s,t);return P(r,R,m,a)}}},Ti=function(a,n,e){let s=K(a);return{createKdsStations(t,r){return s.createKdsStations(t,r).then(o=>o(e,n))},deleteKdsStation(t,r,o){return s.deleteKdsStation(t,r,o).then(i=>i(e,n))},kdsGetOrders(t,r,o,i,l,u,d,p,f,C,x,D){return s.kdsGetOrders(t,r,o,i,l,u,d,p,f,C,x,D).then(O=>O(e,n))},kdsGetProfiles(t,r){return s.kdsGetProfiles(t,r).then(o=>o(e,n))},kdsMarkOrderReady(t,r){return s.kdsMarkOrderReady(t,r).then(o=>o(e,n))},kdsMarkOrdersReady(t,r){return s.kdsMarkOrdersReady(t,r).then(o=>o(e,n))},kdsRevertOrder(t,r){return s.kdsRevertOrder(t,r).then(o=>o(e,n))},listKdsStations(t,r){return s.listKdsStations(t,r).then(o=>o(e,n))},setKdsChannelStations(t,r,o){return s.setKdsChannelStations(t,r,o).then(i=>i(e,n))},updateKdsStation(t,r,o){return s.updateKdsStation(t,r,o).then(i=>i(e,n))}}},lt=class extends I{createKdsStations(n,e){return K(this.configuration).createKdsStations(n,e).then(s=>s(this.axios,this.basePath))}deleteKdsStation(n,e,s){return K(this.configuration).deleteKdsStation(n,e,s).then(t=>t(this.axios,this.basePath))}kdsGetOrders(n,e,s,t,r,o,i,l,u,d,p,f){return K(this.configuration).kdsGetOrders(n,e,s,t,r,o,i,l,u,d,p,f).then(C=>C(this.axios,this.basePath))}kdsGetProfiles(n,e){return K(this.configuration).kdsGetProfiles(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(n,e){return K(this.configuration).kdsMarkOrderReady(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrdersReady(n,e){return K(this.configuration).kdsMarkOrdersReady(n,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(n,e){return K(this.configuration).kdsRevertOrder(n,e).then(s=>s(this.axios,this.basePath))}listKdsStations(n,e){return K(this.configuration).listKdsStations(n,e).then(s=>s(this.axios,this.basePath))}setKdsChannelStations(n,e,s){return K(this.configuration).setKdsChannelStations(n,e,s).then(t=>t(this.axios,this.basePath))}updateKdsStation(n,e,s){return K(this.configuration).updateKdsStation(n,e,s).then(t=>t(this.axios,this.basePath))}},Es=function(a){return{getKioskOrder:async(n,e,s={})=>{c("getKioskOrder","orderId",n),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},syncKioskOrder:async(n,e={})=>{c("syncKioskOrder","syncKioskOrderDto",n);let s="/api/v1/kiosk/orders/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},qe=function(a){let n=Es(a);return{async getKioskOrder(e,s,t){let r=await n.getKioskOrder(e,s,t);return P(r,R,m,a)},async syncKioskOrder(e,s){let t=await n.syncKioskOrder(e,s);return P(t,R,m,a)}}},qi=function(a,n,e){let s=qe(a);return{getKioskOrder(t,r,o){return s.getKioskOrder(t,r,o).then(i=>i(e,n))},syncKioskOrder(t,r){return s.syncKioskOrder(t,r).then(o=>o(e,n))}}},ut=class extends I{getKioskOrder(n,e,s){return qe(this.configuration).getKioskOrder(n,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(n,e){return qe(this.configuration).syncKioskOrder(n,e).then(s=>s(this.axios,this.basePath))}},ks=function(a){return{restoreRedemption:async(n,e={})=>{c("restoreRedemption","restoreLoyaltyRedemptionDto",n);let s="/api/v1/loyalty-commerce/redemptions/restore",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Jt=function(a){let n=ks(a);return{async restoreRedemption(e,s){let t=await n.restoreRedemption(e,s);return P(t,R,m,a)}}},Ui=function(a,n,e){let s=Jt(a);return{restoreRedemption(t,r){return s.restoreRedemption(t,r).then(o=>o(e,n))}}},dt=class extends I{restoreRedemption(n,e){return Jt(this.configuration).restoreRedemption(n,e).then(s=>s(this.axios,this.basePath))}},Ms=function(a){return{claimKioskOffer:async(n,e={})=>{c("claimKioskOffer","claimKioskOfferDto",n);let s="/api/v1/loyalty/users/claim",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createLoyaltyUser:async(n,e,s={})=>{c("createLoyaltyUser","businessId",n),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getAdminTransactions:async(n,e,s,t={})=>{c("getAdminTransactions","businessId",n);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getLoyaltyInfo:async(n,e={})=>{c("getLoyaltyInfo","businessId",n);let s="/api/v1/loyalty/info",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getUserById:async(n,e,s={})=>{c("getUserById","businessId",n),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getWalletRewards:async(n,e,s={})=>{c("getWalletRewards","businessId",n),c("getWalletRewards","userId",e);let t="/api/v1/loyalty/users/wallet-rewards",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},memberContext:async(n,e={})=>{c("memberContext","loyaltyMemberContextRequestDto",n);let s="/api/v1/loyalty/member-context",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},resolvePerks:async(n,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",n);let s="/api/v1/loyalty/resolve",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},searchUser:async(n,e,s,t,r={})=>{c("searchUser","businessId",n);let o="/api/v1/loyalty/users/search",i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),e!==void 0&&(p.phone=e),s!==void 0&&(p.country_code=s),t!==void 0&&(p.email=t),n!==void 0&&(p.businessId=n),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},updatePoints:async(n,e,s={})=>{c("updatePoints","businessId",n),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},validateWallet:async(n,e,s,t={})=>{c("validateWallet","businessId",n),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let r="/api/v1/loyalty/wallets/validate",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}}}},N=function(a){let n=Ms(a);return{async claimKioskOffer(e,s){let t=await n.claimKioskOffer(e,s);return P(t,R,m,a)},async createLoyaltyUser(e,s,t){let r=await n.createLoyaltyUser(e,s,t);return P(r,R,m,a)},async getAdminTransactions(e,s,t,r){let o=await n.getAdminTransactions(e,s,t,r);return P(o,R,m,a)},async getLoyaltyInfo(e,s){let t=await n.getLoyaltyInfo(e,s);return P(t,R,m,a)},async getUserById(e,s,t){let r=await n.getUserById(e,s,t);return P(r,R,m,a)},async getWalletRewards(e,s,t){let r=await n.getWalletRewards(e,s,t);return P(r,R,m,a)},async memberContext(e,s){let t=await n.memberContext(e,s);return P(t,R,m,a)},async resolvePerks(e,s){let t=await n.resolvePerks(e,s);return P(t,R,m,a)},async searchUser(e,s,t,r,o){let i=await n.searchUser(e,s,t,r,o);return P(i,R,m,a)},async updatePoints(e,s,t){let r=await n.updatePoints(e,s,t);return P(r,R,m,a)},async validateWallet(e,s,t,r){let o=await n.validateWallet(e,s,t,r);return P(o,R,m,a)}}},Ei=function(a,n,e){let s=N(a);return{claimKioskOffer(t,r){return s.claimKioskOffer(t,r).then(o=>o(e,n))},createLoyaltyUser(t,r,o){return s.createLoyaltyUser(t,r,o).then(i=>i(e,n))},getAdminTransactions(t,r,o,i){return s.getAdminTransactions(t,r,o,i).then(l=>l(e,n))},getLoyaltyInfo(t,r){return s.getLoyaltyInfo(t,r).then(o=>o(e,n))},getUserById(t,r,o){return s.getUserById(t,r,o).then(i=>i(e,n))},getWalletRewards(t,r,o){return s.getWalletRewards(t,r,o).then(i=>i(e,n))},memberContext(t,r){return s.memberContext(t,r).then(o=>o(e,n))},resolvePerks(t,r){return s.resolvePerks(t,r).then(o=>o(e,n))},searchUser(t,r,o,i,l){return s.searchUser(t,r,o,i,l).then(u=>u(e,n))},updatePoints(t,r,o){return s.updatePoints(t,r,o).then(i=>i(e,n))},validateWallet(t,r,o,i){return s.validateWallet(t,r,o,i).then(l=>l(e,n))}}},ct=class extends I{claimKioskOffer(n,e){return N(this.configuration).claimKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(n,e,s){return N(this.configuration).createLoyaltyUser(n,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(n,e,s,t){return N(this.configuration).getAdminTransactions(n,e,s,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(n,e){return N(this.configuration).getLoyaltyInfo(n,e).then(s=>s(this.axios,this.basePath))}getUserById(n,e,s){return N(this.configuration).getUserById(n,e,s).then(t=>t(this.axios,this.basePath))}getWalletRewards(n,e,s){return N(this.configuration).getWalletRewards(n,e,s).then(t=>t(this.axios,this.basePath))}memberContext(n,e){return N(this.configuration).memberContext(n,e).then(s=>s(this.axios,this.basePath))}resolvePerks(n,e){return N(this.configuration).resolvePerks(n,e).then(s=>s(this.axios,this.basePath))}searchUser(n,e,s,t,r){return N(this.configuration).searchUser(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(n,e,s){return N(this.configuration).updatePoints(n,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(n,e,s,t){return N(this.configuration).validateWallet(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Bs=function(a){return{refuseSessionEnd:async(n={})=>{let e="/api/v1/mcp",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"DELETE",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},refuseStream:async(n={})=>{let e="/api/v1/mcp",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},serveMcpRequest:async(n,e={})=>{c("serveMcpRequest","body",n);let s="/api/v1/mcp",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Re=function(a){let n=Bs(a);return{async refuseSessionEnd(e){let s=await n.refuseSessionEnd(e);return P(s,R,m,a)},async refuseStream(e){let s=await n.refuseStream(e);return P(s,R,m,a)},async serveMcpRequest(e,s){let t=await n.serveMcpRequest(e,s);return P(t,R,m,a)}}},ki=function(a,n,e){let s=Re(a);return{refuseSessionEnd(t){return s.refuseSessionEnd(t).then(r=>r(e,n))},refuseStream(t){return s.refuseStream(t).then(r=>r(e,n))},serveMcpRequest(t,r){return s.serveMcpRequest(t,r).then(o=>o(e,n))}}},pt=class extends I{refuseSessionEnd(n){return Re(this.configuration).refuseSessionEnd(n).then(e=>e(this.axios,this.basePath))}refuseStream(n){return Re(this.configuration).refuseStream(n).then(e=>e(this.axios,this.basePath))}serveMcpRequest(n,e){return Re(this.configuration).serveMcpRequest(n,e).then(s=>s(this.axios,this.basePath))}},ws=function(a){return{editBusinessProductV2:async(n,e,s={})=>{c("editBusinessProductV2","businessId",n),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},resetProductEod:async(n,e={})=>{c("resetProductEod","resetEodDto",n);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Ue=function(a){let n=ws(a);return{async editBusinessProductV2(e,s,t){let r=await n.editBusinessProductV2(e,s,t);return P(r,R,m,a)},async resetProductEod(e,s){let t=await n.resetProductEod(e,s);return P(t,R,m,a)}}},Mi=function(a,n,e){let s=Ue(a);return{editBusinessProductV2(t,r,o){return s.editBusinessProductV2(t,r,o).then(i=>i(e,n))},resetProductEod(t,r){return s.resetProductEod(t,r).then(o=>o(e,n))}}},mt=class extends I{editBusinessProductV2(n,e,s){return Ue(this.configuration).editBusinessProductV2(n,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(n,e){return Ue(this.configuration).resetProductEod(n,e).then(s=>s(this.axios,this.basePath))}},Fs=function(a){return{createMunchiGiftCard:async(n,e,s={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",n);let t="/api/v1/munchi-giftcard/create",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},getMunchiGiftCardData:async(n,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",n);let s="/api/v1/munchi-giftcard/data",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},giveBackMunchiGiftCardRedemption:async(n,e={})=>{c("giveBackMunchiGiftCardRedemption","giveBackMunchiGiftCardDto",n);let s="/api/v1/munchi-giftcard/give-back",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},redeemMunchiGiftCard:async(n,e,s={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",n);let t="/api/v1/munchi-giftcard/redeem",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},validateMunchiGiftCard:async(n,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",n);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},oe=function(a){let n=Fs(a);return{async createMunchiGiftCard(e,s,t){let r=await n.createMunchiGiftCard(e,s,t);return P(r,R,m,a)},async getMunchiGiftCardData(e,s){let t=await n.getMunchiGiftCardData(e,s);return P(t,R,m,a)},async giveBackMunchiGiftCardRedemption(e,s){let t=await n.giveBackMunchiGiftCardRedemption(e,s);return P(t,R,m,a)},async redeemMunchiGiftCard(e,s,t){let r=await n.redeemMunchiGiftCard(e,s,t);return P(r,R,m,a)},async validateMunchiGiftCard(e,s){let t=await n.validateMunchiGiftCard(e,s);return P(t,R,m,a)}}},Bi=function(a,n,e){let s=oe(a);return{createMunchiGiftCard(t,r,o){return s.createMunchiGiftCard(t,r,o).then(i=>i(e,n))},getMunchiGiftCardData(t,r){return s.getMunchiGiftCardData(t,r).then(o=>o(e,n))},giveBackMunchiGiftCardRedemption(t,r){return s.giveBackMunchiGiftCardRedemption(t,r).then(o=>o(e,n))},redeemMunchiGiftCard(t,r,o){return s.redeemMunchiGiftCard(t,r,o).then(i=>i(e,n))},validateMunchiGiftCard(t,r){return s.validateMunchiGiftCard(t,r).then(o=>o(e,n))}}},gt=class extends I{createMunchiGiftCard(n,e,s){return oe(this.configuration).createMunchiGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}getMunchiGiftCardData(n,e){return oe(this.configuration).getMunchiGiftCardData(n,e).then(s=>s(this.axios,this.basePath))}giveBackMunchiGiftCardRedemption(n,e){return oe(this.configuration).giveBackMunchiGiftCardRedemption(n,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(n,e,s){return oe(this.configuration).redeemMunchiGiftCard(n,e,s).then(t=>t(this.axios,this.basePath))}validateMunchiGiftCard(n,e){return oe(this.configuration).validateMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Ls=function(a){return{addVenueSubscriptionsV2:async(n,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},removeVenueSubscriptionsV2:async(n,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Ee=function(a){let n=Ls(a);return{async addVenueSubscriptionsV2(e,s){let t=await n.addVenueSubscriptionsV2(e,s);return P(t,R,m,a)},async removeVenueSubscriptionsV2(e,s){let t=await n.removeVenueSubscriptionsV2(e,s);return P(t,R,m,a)}}},wi=function(a,n,e){let s=Ee(a);return{addVenueSubscriptionsV2(t,r){return s.addVenueSubscriptionsV2(t,r).then(o=>o(e,n))},removeVenueSubscriptionsV2(t,r){return s.removeVenueSubscriptionsV2(t,r).then(o=>o(e,n))}}},yt=class extends I{addVenueSubscriptionsV2(n,e){return Ee(this.configuration).addVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(n,e){return Ee(this.configuration).removeVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}},Gs=function(a){return{connectDeliveryPlatform:async(n,e,s={})=>{c("connectDeliveryPlatform","venueId",n),c("connectDeliveryPlatform","connectDeliveryPlatformDto",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms".replace("{venueId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},devicesOfVenue:async(n,e={})=>{c("devicesOfVenue","venueId",n);let s="/api/v1/ops/venues/{venueId}/devices".replace("{venueId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},disconnectDeliveryPlatform:async(n,e,s={})=>{c("disconnectDeliveryPlatform","venueId",n),c("disconnectDeliveryPlatform","channel",e);let t="/api/v1/ops/venues/{venueId}/delivery-platforms/{channel}".replace("{venueId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},releaseLicenceHolds:async(n,e={})=>{c("releaseLicenceHolds","releaseLicenceHoldsDto",n);let s="/api/v1/ops/licence-access/holds/release",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},searchVenues:async(n,e,s={})=>{c("searchVenues","search",n);let t="/api/v1/ops/venues",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),n!==void 0&&(u.search=n),e!==void 0&&(u.limit=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},ae=function(a){let n=Gs(a);return{async connectDeliveryPlatform(e,s,t){let r=await n.connectDeliveryPlatform(e,s,t);return P(r,R,m,a)},async devicesOfVenue(e,s){let t=await n.devicesOfVenue(e,s);return P(t,R,m,a)},async disconnectDeliveryPlatform(e,s,t){let r=await n.disconnectDeliveryPlatform(e,s,t);return P(r,R,m,a)},async releaseLicenceHolds(e,s){let t=await n.releaseLicenceHolds(e,s);return P(t,R,m,a)},async searchVenues(e,s,t){let r=await n.searchVenues(e,s,t);return P(r,R,m,a)}}},Fi=function(a,n,e){let s=ae(a);return{connectDeliveryPlatform(t,r,o){return s.connectDeliveryPlatform(t,r,o).then(i=>i(e,n))},devicesOfVenue(t,r){return s.devicesOfVenue(t,r).then(o=>o(e,n))},disconnectDeliveryPlatform(t,r,o){return s.disconnectDeliveryPlatform(t,r,o).then(i=>i(e,n))},releaseLicenceHolds(t,r){return s.releaseLicenceHolds(t,r).then(o=>o(e,n))},searchVenues(t,r,o){return s.searchVenues(t,r,o).then(i=>i(e,n))}}},ht=class extends I{connectDeliveryPlatform(n,e,s){return ae(this.configuration).connectDeliveryPlatform(n,e,s).then(t=>t(this.axios,this.basePath))}devicesOfVenue(n,e){return ae(this.configuration).devicesOfVenue(n,e).then(s=>s(this.axios,this.basePath))}disconnectDeliveryPlatform(n,e,s){return ae(this.configuration).disconnectDeliveryPlatform(n,e,s).then(t=>t(this.axios,this.basePath))}releaseLicenceHolds(n,e){return ae(this.configuration).releaseLicenceHolds(n,e).then(s=>s(this.axios,this.basePath))}searchVenues(n,e,s){return ae(this.configuration).searchVenues(n,e,s).then(t=>t(this.axios,this.basePath))}},Ns=function(a){return{completeOrder:async(n,e,s,t={})=>{c("completeOrder","businessId",n),c("completeOrder","orderId",e),c("completeOrder","completeOrderDto",s);let r="/api/v1/businesses/{businessId}/orders/{orderId}/complete".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},es=function(a){let n=Ns(a);return{async completeOrder(e,s,t,r){let o=await n.completeOrder(e,s,t,r);return P(o,R,m,a)}}},Li=function(a,n,e){let s=es(a);return{completeOrder(t,r,o,i){return s.completeOrder(t,r,o,i).then(l=>l(e,n))}}},Pt=class extends I{completeOrder(n,e,s,t){return es(this.configuration).completeOrder(n,e,s,t).then(r=>r(this.axios,this.basePath))}},_s=function(a){return{findOneByExternalId:async(n,e={})=>{c("findOneByExternalId","externalId",n);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}}}},ts=function(a){let n=_s(a);return{async findOneByExternalId(e,s){let t=await n.findOneByExternalId(e,s);return P(t,R,m,a)}}},Gi=function(a,n,e){let s=ts(a);return{findOneByExternalId(t,r){return s.findOneByExternalId(t,r).then(o=>o(e,n))}}},Rt=class extends I{findOneByExternalId(n,e){return ts(this.configuration).findOneByExternalId(n,e).then(s=>s(this.axios,this.basePath))}},Ks=function(a){return{acceptOrder:async(n,e={})=>{c("acceptOrder","acceptOrderDto",n);let s="/api/v1/orders/accept",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},changePosOrdersStatusInBulk:async(n,e={})=>{c("changePosOrdersStatusInBulk","changePosOrdersStatusInBulkDto",n);let s="/api/v2/orders/pos/bulk-status",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},confirmPreOrder:async(n,e={})=>{c("confirmPreOrder","confirmPreorderDto",n);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deletePosParkedOrderV2:async(n,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",n);let s="/api/v2/orders/pos/park",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},deliverOrder:async(n,e={})=>{c("deliverOrder","deliveredOrderDto",n);let s="/api/v1/orders/delivered",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},dispatchPosOrderV5:async(n,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",n);let s="/api/v5/orders/pos/dispatch",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getOrdersV2:async(n,e,s,t,r={})=>{c("getOrdersV2","status",n),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};e!==void 0&&(p.businessIds=e),s!==void 0&&(p.posBusinessId=s),t!==void 0&&(p.extraProvider=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},getOrdersV3:async(n,e,s,t,r={})=>{c("getOrdersV3","status",n),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};e!==void 0&&(p.businessIds=e),s!==void 0&&(p.posBusinessId=s),t!==void 0&&(p.extraProvider=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},getParkedPosOrderV2:async(n,e={})=>{c("getParkedPosOrderV2","businessId",n);let s="/api/v2/orders/pos/park",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getPosOrderById:async(n,e={})=>{c("getPosOrderById","getPosOrderDto",n);let s="/api/v1/orders/pos",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},markOrderAsReady:async(n,e={})=>{c("markOrderAsReady","readyOrderDto",n);let s="/api/v1/orders/ready",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},parkPosOrderV5:async(n,e={})=>{c("parkPosOrderV5","parkPosOrderDto",n);let s="/api/v5/orders/pos/park",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},processPosOrderActions:async(n,e={})=>{c("processPosOrderActions","processOrderActionsDto",n);let s="/api/v4/orders/pos/actions",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},rejectOrder:async(n,e={})=>{c("rejectOrder","rejectOrderDto",n);let s="/api/v1/orders/reject",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},syncPosOrder:async(n,e={})=>{c("syncPosOrder","syncPosOrderDto",n);let s="/api/v1/orders/pos/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},updatePosOrderV2:async(n,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",n);let s="/api/v2/orders/pos/update",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},B=function(a){let n=Ks(a);return{async acceptOrder(e,s){let t=await n.acceptOrder(e,s);return P(t,R,m,a)},async changePosOrdersStatusInBulk(e,s){let t=await n.changePosOrdersStatusInBulk(e,s);return P(t,R,m,a)},async confirmPreOrder(e,s){let t=await n.confirmPreOrder(e,s);return P(t,R,m,a)},async deletePosParkedOrderV2(e,s){let t=await n.deletePosParkedOrderV2(e,s);return P(t,R,m,a)},async deliverOrder(e,s){let t=await n.deliverOrder(e,s);return P(t,R,m,a)},async dispatchPosOrderV5(e,s){let t=await n.dispatchPosOrderV5(e,s);return P(t,R,m,a)},async getOrdersV2(e,s,t,r,o){let i=await n.getOrdersV2(e,s,t,r,o);return P(i,R,m,a)},async getOrdersV3(e,s,t,r,o){let i=await n.getOrdersV3(e,s,t,r,o);return P(i,R,m,a)},async getParkedPosOrderV2(e,s){let t=await n.getParkedPosOrderV2(e,s);return P(t,R,m,a)},async getPosOrderById(e,s){let t=await n.getPosOrderById(e,s);return P(t,R,m,a)},async markOrderAsReady(e,s){let t=await n.markOrderAsReady(e,s);return P(t,R,m,a)},async parkPosOrderV5(e,s){let t=await n.parkPosOrderV5(e,s);return P(t,R,m,a)},async processPosOrderActions(e,s){let t=await n.processPosOrderActions(e,s);return P(t,R,m,a)},async rejectOrder(e,s){let t=await n.rejectOrder(e,s);return P(t,R,m,a)},async syncPosOrder(e,s){let t=await n.syncPosOrder(e,s);return P(t,R,m,a)},async updatePosOrderV2(e,s){let t=await n.updatePosOrderV2(e,s);return P(t,R,m,a)}}},Ni=function(a,n,e){let s=B(a);return{acceptOrder(t,r){return s.acceptOrder(t,r).then(o=>o(e,n))},changePosOrdersStatusInBulk(t,r){return s.changePosOrdersStatusInBulk(t,r).then(o=>o(e,n))},confirmPreOrder(t,r){return s.confirmPreOrder(t,r).then(o=>o(e,n))},deletePosParkedOrderV2(t,r){return s.deletePosParkedOrderV2(t,r).then(o=>o(e,n))},deliverOrder(t,r){return s.deliverOrder(t,r).then(o=>o(e,n))},dispatchPosOrderV5(t,r){return s.dispatchPosOrderV5(t,r).then(o=>o(e,n))},getOrdersV2(t,r,o,i,l){return s.getOrdersV2(t,r,o,i,l).then(u=>u(e,n))},getOrdersV3(t,r,o,i,l){return s.getOrdersV3(t,r,o,i,l).then(u=>u(e,n))},getParkedPosOrderV2(t,r){return s.getParkedPosOrderV2(t,r).then(o=>o(e,n))},getPosOrderById(t,r){return s.getPosOrderById(t,r).then(o=>o(e,n))},markOrderAsReady(t,r){return s.markOrderAsReady(t,r).then(o=>o(e,n))},parkPosOrderV5(t,r){return s.parkPosOrderV5(t,r).then(o=>o(e,n))},processPosOrderActions(t,r){return s.processPosOrderActions(t,r).then(o=>o(e,n))},rejectOrder(t,r){return s.rejectOrder(t,r).then(o=>o(e,n))},syncPosOrder(t,r){return s.syncPosOrder(t,r).then(o=>o(e,n))},updatePosOrderV2(t,r){return s.updatePosOrderV2(t,r).then(o=>o(e,n))}}},At=class extends I{acceptOrder(n,e){return B(this.configuration).acceptOrder(n,e).then(s=>s(this.axios,this.basePath))}changePosOrdersStatusInBulk(n,e){return B(this.configuration).changePosOrdersStatusInBulk(n,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(n,e){return B(this.configuration).confirmPreOrder(n,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(n,e){return B(this.configuration).deletePosParkedOrderV2(n,e).then(s=>s(this.axios,this.basePath))}deliverOrder(n,e){return B(this.configuration).deliverOrder(n,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(n,e){return B(this.configuration).dispatchPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(n,e,s,t,r){return B(this.configuration).getOrdersV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getOrdersV3(n,e,s,t,r){return B(this.configuration).getOrdersV3(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(n,e){return B(this.configuration).getParkedPosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(n,e){return B(this.configuration).getPosOrderById(n,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(n,e){return B(this.configuration).markOrderAsReady(n,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(n,e){return B(this.configuration).parkPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(n,e){return B(this.configuration).processPosOrderActions(n,e).then(s=>s(this.axios,this.basePath))}rejectOrder(n,e){return B(this.configuration).rejectOrder(n,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(n,e){return B(this.configuration).syncPosOrder(n,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(n,e){return B(this.configuration).updatePosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}},Ws=function(a){return{listPosPermissions:async(n={})=>{let e="/api/v1/pos-permissions",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}}}},ss=function(a){let n=Ws(a);return{async listPosPermissions(e){let s=await n.listPosPermissions(e);return P(s,R,m,a)}}},_i=function(a,n,e){let s=ss(a);return{listPosPermissions(t){return s.listPosPermissions(t).then(r=>r(e,n))}}},bt=class extends I{listPosPermissions(n){return ss(this.configuration).listPosPermissions(n).then(e=>e(this.axios,this.basePath))}},js=function(a){return{getPosSessionV2:async(n,e={})=>{c("getPosSessionV2","businessId",n);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}}}},rs=function(a){let n=js(a);return{async getPosSessionV2(e,s){let t=await n.getPosSessionV2(e,s);return P(t,R,m,a)}}},Ki=function(a,n,e){let s=rs(a);return{getPosSessionV2(t,r){return s.getPosSessionV2(t,r).then(o=>o(e,n))}}},ft=class extends I{getPosSessionV2(n,e){return rs(this.configuration).getPosSessionV2(n,e).then(s=>s(this.axios,this.basePath))}},Hs=function(a){return{payTerminalInit:async(n,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",n);let s="/api/v1/pay-terminal/init",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalLockStatus:async(n,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",n);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalLockSync:async(n,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalLockVerify:async(n,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalPair:async(n,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/pair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalPresence:async(n,e={})=>{c("payTerminalPresence","payTerminalSessionTokenBodyDto",n);let s="/api/v1/pay-terminal/presence",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalSessionToken:async(n,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",n);let s="/api/v1/pay-terminal/session-token",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},payTerminalUnpair:async(n,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/unpair",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Y=function(a){let n=Hs(a);return{async payTerminalInit(e,s){let t=await n.payTerminalInit(e,s);return P(t,R,m,a)},async payTerminalLockStatus(e,s){let t=await n.payTerminalLockStatus(e,s);return P(t,R,m,a)},async payTerminalLockSync(e,s){let t=await n.payTerminalLockSync(e,s);return P(t,R,m,a)},async payTerminalLockVerify(e,s){let t=await n.payTerminalLockVerify(e,s);return P(t,R,m,a)},async payTerminalPair(e,s){let t=await n.payTerminalPair(e,s);return P(t,R,m,a)},async payTerminalPresence(e,s){let t=await n.payTerminalPresence(e,s);return P(t,R,m,a)},async payTerminalSessionToken(e,s){let t=await n.payTerminalSessionToken(e,s);return P(t,R,m,a)},async payTerminalUnpair(e,s){let t=await n.payTerminalUnpair(e,s);return P(t,R,m,a)}}},Wi=function(a,n,e){let s=Y(a);return{payTerminalInit(t,r){return s.payTerminalInit(t,r).then(o=>o(e,n))},payTerminalLockStatus(t,r){return s.payTerminalLockStatus(t,r).then(o=>o(e,n))},payTerminalLockSync(t,r){return s.payTerminalLockSync(t,r).then(o=>o(e,n))},payTerminalLockVerify(t,r){return s.payTerminalLockVerify(t,r).then(o=>o(e,n))},payTerminalPair(t,r){return s.payTerminalPair(t,r).then(o=>o(e,n))},payTerminalPresence(t,r){return s.payTerminalPresence(t,r).then(o=>o(e,n))},payTerminalSessionToken(t,r){return s.payTerminalSessionToken(t,r).then(o=>o(e,n))},payTerminalUnpair(t,r){return s.payTerminalUnpair(t,r).then(o=>o(e,n))}}},xt=class extends I{payTerminalInit(n,e){return Y(this.configuration).payTerminalInit(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(n,e){return Y(this.configuration).payTerminalLockStatus(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(n,e){return Y(this.configuration).payTerminalLockSync(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(n,e){return Y(this.configuration).payTerminalLockVerify(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(n,e){return Y(this.configuration).payTerminalPair(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPresence(n,e){return Y(this.configuration).payTerminalPresence(n,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(n,e){return Y(this.configuration).payTerminalSessionToken(n,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(n,e){return Y(this.configuration).payTerminalUnpair(n,e).then(s=>s(this.axios,this.basePath))}},Qs=function(a){return{cancelNetsTerminalTransaction:async(n,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",n);let s="/api/v3/payment/nets/cancel",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},cancelVivaTransactionV2:async(n,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",n);let s="/api/v2/payment/viva/cancel",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getPaymentReference:async(n,e={})=>{c("getPaymentReference","getPaymentReferenceDto",n);let s="/api/v1/payment/reference",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getPaymentStatus:async(n,e={})=>{c("getPaymentStatus","getPaymentStatusDto",n);let s="/api/v1/payment/status",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},initiateNetsTerminalTransaction:async(n,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",n);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},initiateTerminalTransaction:async(n,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",n);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},processOnlineOrderRefund:async(n,e={})=>{c("processOnlineOrderRefund","orderResponseDto",n);let s="/api/v1/payment/online-orders/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundSingleVivaTransaction:async(n,e={})=>{c("refundSingleVivaTransaction","createRefundDto",n);let s="/api/v4/payment/viva/refund/single",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},X=function(a){let n=Qs(a);return{async cancelNetsTerminalTransaction(e,s){let t=await n.cancelNetsTerminalTransaction(e,s);return P(t,R,m,a)},async cancelVivaTransactionV2(e,s){let t=await n.cancelVivaTransactionV2(e,s);return P(t,R,m,a)},async getPaymentReference(e,s){let t=await n.getPaymentReference(e,s);return P(t,R,m,a)},async getPaymentStatus(e,s){let t=await n.getPaymentStatus(e,s);return P(t,R,m,a)},async initiateNetsTerminalTransaction(e,s){let t=await n.initiateNetsTerminalTransaction(e,s);return P(t,R,m,a)},async initiateTerminalTransaction(e,s){let t=await n.initiateTerminalTransaction(e,s);return P(t,R,m,a)},async processOnlineOrderRefund(e,s){let t=await n.processOnlineOrderRefund(e,s);return P(t,R,m,a)},async refundSingleVivaTransaction(e,s){let t=await n.refundSingleVivaTransaction(e,s);return P(t,R,m,a)}}},ji=function(a,n,e){let s=X(a);return{cancelNetsTerminalTransaction(t,r){return s.cancelNetsTerminalTransaction(t,r).then(o=>o(e,n))},cancelVivaTransactionV2(t,r){return s.cancelVivaTransactionV2(t,r).then(o=>o(e,n))},getPaymentReference(t,r){return s.getPaymentReference(t,r).then(o=>o(e,n))},getPaymentStatus(t,r){return s.getPaymentStatus(t,r).then(o=>o(e,n))},initiateNetsTerminalTransaction(t,r){return s.initiateNetsTerminalTransaction(t,r).then(o=>o(e,n))},initiateTerminalTransaction(t,r){return s.initiateTerminalTransaction(t,r).then(o=>o(e,n))},processOnlineOrderRefund(t,r){return s.processOnlineOrderRefund(t,r).then(o=>o(e,n))},refundSingleVivaTransaction(t,r){return s.refundSingleVivaTransaction(t,r).then(o=>o(e,n))}}},Ct=class extends I{cancelNetsTerminalTransaction(n,e){return X(this.configuration).cancelNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(n,e){return X(this.configuration).cancelVivaTransactionV2(n,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(n,e){return X(this.configuration).getPaymentReference(n,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(n,e){return X(this.configuration).getPaymentStatus(n,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(n,e){return X(this.configuration).initiateNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(n,e){return X(this.configuration).initiateTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(n,e){return X(this.configuration).processOnlineOrderRefund(n,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(n,e){return X(this.configuration).refundSingleVivaTransaction(n,e).then(s=>s(this.axios,this.basePath))}},$s=function(a){return{changePaymentMethodGiftCardLogin:async(n,e,s,t,r={})=>{c("changePaymentMethodGiftCardLogin","businessId",n),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(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},changePaymentMethodOption:async(n,e,s,t,r={})=>{c("changePaymentMethodOption","businessId",n),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(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},createPaymentMethod:async(n,e,s,t={})=>{c("createPaymentMethod","businessId",n),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},deletePaymentMethodOption:async(n,e,s,t={})=>{c("deletePaymentMethodOption","businessId",n),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getCatalog:async(n,e,s,t={})=>{c("getCatalog","businessId",n),c("getCatalog","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getPaymentMethods:async(n,e,s,t={})=>{c("getPaymentMethods","businessId",n),c("getPaymentMethods","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getTypes:async(n={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},reorder:async(n,e,s,t={})=>{c("reorder","businessId",n),c("reorder","channel",e),c("reorder","bulkRankDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setPaymentMethodPositions:async(n,e,s,t={})=>{c("setPaymentMethodPositions","businessId",n),c("setPaymentMethodPositions","channel",e),c("setPaymentMethodPositions","paymentMethodPositionsDto",s);let r="/api/v2/payment-methods/businesses/{businessId}/channels/{channel}/positions".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updatePaymentMethodOption:async(n,e,s,t,r={})=>{c("updatePaymentMethodOption","businessId",n),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(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}}}},W=function(a){let n=$s(a);return{async changePaymentMethodGiftCardLogin(e,s,t,r,o){let i=await n.changePaymentMethodGiftCardLogin(e,s,t,r,o);return P(i,R,m,a)},async changePaymentMethodOption(e,s,t,r,o){let i=await n.changePaymentMethodOption(e,s,t,r,o);return P(i,R,m,a)},async createPaymentMethod(e,s,t,r){let o=await n.createPaymentMethod(e,s,t,r);return P(o,R,m,a)},async deletePaymentMethodOption(e,s,t,r){let o=await n.deletePaymentMethodOption(e,s,t,r);return P(o,R,m,a)},async getCatalog(e,s,t,r){let o=await n.getCatalog(e,s,t,r);return P(o,R,m,a)},async getPaymentMethods(e,s,t,r){let o=await n.getPaymentMethods(e,s,t,r);return P(o,R,m,a)},async getTypes(e){let s=await n.getTypes(e);return P(s,R,m,a)},async reorder(e,s,t,r){let o=await n.reorder(e,s,t,r);return P(o,R,m,a)},async setPaymentMethodPositions(e,s,t,r){let o=await n.setPaymentMethodPositions(e,s,t,r);return P(o,R,m,a)},async updatePaymentMethodOption(e,s,t,r,o){let i=await n.updatePaymentMethodOption(e,s,t,r,o);return P(i,R,m,a)}}},Hi=function(a,n,e){let s=W(a);return{changePaymentMethodGiftCardLogin(t,r,o,i,l){return s.changePaymentMethodGiftCardLogin(t,r,o,i,l).then(u=>u(e,n))},changePaymentMethodOption(t,r,o,i,l){return s.changePaymentMethodOption(t,r,o,i,l).then(u=>u(e,n))},createPaymentMethod(t,r,o,i){return s.createPaymentMethod(t,r,o,i).then(l=>l(e,n))},deletePaymentMethodOption(t,r,o,i){return s.deletePaymentMethodOption(t,r,o,i).then(l=>l(e,n))},getCatalog(t,r,o,i){return s.getCatalog(t,r,o,i).then(l=>l(e,n))},getPaymentMethods(t,r,o,i){return s.getPaymentMethods(t,r,o,i).then(l=>l(e,n))},getTypes(t){return s.getTypes(t).then(r=>r(e,n))},reorder(t,r,o,i){return s.reorder(t,r,o,i).then(l=>l(e,n))},setPaymentMethodPositions(t,r,o,i){return s.setPaymentMethodPositions(t,r,o,i).then(l=>l(e,n))},updatePaymentMethodOption(t,r,o,i,l){return s.updatePaymentMethodOption(t,r,o,i,l).then(u=>u(e,n))}}},Dt=class extends I{changePaymentMethodGiftCardLogin(n,e,s,t,r){return W(this.configuration).changePaymentMethodGiftCardLogin(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}changePaymentMethodOption(n,e,s,t,r){return W(this.configuration).changePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}createPaymentMethod(n,e,s,t){return W(this.configuration).createPaymentMethod(n,e,s,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(n,e,s,t){return W(this.configuration).deletePaymentMethodOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}getCatalog(n,e,s,t){return W(this.configuration).getCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentMethods(n,e,s,t){return W(this.configuration).getPaymentMethods(n,e,s,t).then(r=>r(this.axios,this.basePath))}getTypes(n){return W(this.configuration).getTypes(n).then(e=>e(this.axios,this.basePath))}reorder(n,e,s,t){return W(this.configuration).reorder(n,e,s,t).then(r=>r(this.axios,this.basePath))}setPaymentMethodPositions(n,e,s,t){return W(this.configuration).setPaymentMethodPositions(n,e,s,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(n,e,s,t,r){return W(this.configuration).updatePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},zs=function(a){return{cancelSession:async(n,e={})=>{c("cancelSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getOrderSettlementStatus:async(n,e,s,t={})=>{c("getOrderSettlementStatus","businessId",n),c("getOrderSettlementStatus","orderId",e);let r="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getPaymentSession:async(n,e={})=>{c("getPaymentSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getPaymentSessionAnalytics:async(n,e,s,t,r={})=>{c("getPaymentSessionAnalytics","businessId",n),c("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};n!==void 0&&(p.businessId=n),e!==void 0&&(p.timeSpan=e),s!==void 0&&(p.start=s),t!==void 0&&(p.end=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},getPaymentSessionCurrency:async(n,e={})=>{c("getPaymentSessionCurrency","sessionId",n);let s="/api/v1/payment-session/currency/{sessionId}".replace("{sessionId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},initiateEpassiSession:async(n,e,s,t={})=>{c("initiateEpassiSession","xEpassiQrCode",n),c("initiateEpassiSession","initiateEpassiSessionDto",e);let r="/api/v1/payment-session/epassi/initiate",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};n!=null&&(u["X-Epassi-Qr-Code"]=String(n)),s!=null&&(u["X-Idempotency-Key"]=String(s)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(e,l,a),{url:h(o),options:l}},initiateNetsSession:async(n,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",n);let t="/api/v1/payment-session/nets/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateNexiSession:async(n,e,s={})=>{c("initiateNexiSession","initiateNexiSessionDto",n);let t="/api/v1/payment-session/nexi/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateVivaA2aSession:async(n,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",n);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},initiateVivaSession:async(n,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",n);let t="/api/v1/payment-session/viva/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateWorldlineA2aSession:async(n,e,s={})=>{c("initiateWorldlineA2aSession","initiateWorldlineA2aSessionDto",n);let t="/api/v1/payment-session/worldline/a2a",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},initiateWorldlineSession:async(n,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",n);let t="/api/v1/payment-session/worldline/initiate",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},paymentSessionGetChargeStatus:async(n,e={})=>{c("paymentSessionGetChargeStatus","chargeId",n);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},paymentSessionRegisterChargeMapping:async(n,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",n);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pollEpassiSession:async(n,e={})=>{c("pollEpassiSession","epassiSessionReferenceDto",n);let s="/api/v1/payment-session/epassi/poll",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pollVivaSession:async(n,e={})=>{c("pollVivaSession","pollVivaSessionDto",n);let s="/api/v1/payment-session/poll",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},pollWorldlineSession:async(n,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",n);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},recordManualPayment:async(n,e,s={})=>{c("recordManualPayment","createManualSessionDto",n);let t="/api/v1/payment-session/manual",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}},recordWorldlineA2aResult:async(n,e={})=>{c("recordWorldlineA2aResult","recordWorldlineA2aResultDto",n);let s="/api/v1/payment-session/worldline/a2a/result",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundEpassiSession:async(n,e={})=>{c("refundEpassiSession","epassiSessionReferenceDto",n);let s="/api/v1/payment-session/epassi/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundNetsSession:async(n,e={})=>{c("refundNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundVivaSession:async(n,e={})=>{c("refundVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundWorldlineA2aSession:async(n,e={})=>{c("refundWorldlineA2aSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/a2a/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},refundWorldlineSession:async(n,e={})=>{c("refundWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},retryWorldlineReversal:async(n,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",n);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertNetsSession:async(n,e={})=>{c("revertNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertVivaSession:async(n,e={})=>{c("revertVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertWorldlineA2aSession:async(n,e={})=>{c("revertWorldlineA2aSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/a2a/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},revertWorldlineSession:async(n,e={})=>{c("revertWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},voidManualPayment:async(n,e={})=>{c("voidManualPayment","voidManualSessionDto",n);let s="/api/v1/payment-session/void",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},waitForNexiSession:async(n,e={})=>{c("waitForNexiSession","nexiWaitRoundDto",n);let s="/api/v1/payment-session/nexi/wait",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},U=function(a){let n=zs(a);return{async cancelSession(e,s){let t=await n.cancelSession(e,s);return P(t,R,m,a)},async getOrderSettlementStatus(e,s,t,r){let o=await n.getOrderSettlementStatus(e,s,t,r);return P(o,R,m,a)},async getPaymentSession(e,s){let t=await n.getPaymentSession(e,s);return P(t,R,m,a)},async getPaymentSessionAnalytics(e,s,t,r,o){let i=await n.getPaymentSessionAnalytics(e,s,t,r,o);return P(i,R,m,a)},async getPaymentSessionCurrency(e,s){let t=await n.getPaymentSessionCurrency(e,s);return P(t,R,m,a)},async initiateEpassiSession(e,s,t,r){let o=await n.initiateEpassiSession(e,s,t,r);return P(o,R,m,a)},async initiateNetsSession(e,s,t){let r=await n.initiateNetsSession(e,s,t);return P(r,R,m,a)},async initiateNexiSession(e,s,t){let r=await n.initiateNexiSession(e,s,t);return P(r,R,m,a)},async initiateVivaA2aSession(e,s){let t=await n.initiateVivaA2aSession(e,s);return P(t,R,m,a)},async initiateVivaSession(e,s,t){let r=await n.initiateVivaSession(e,s,t);return P(r,R,m,a)},async initiateWorldlineA2aSession(e,s,t){let r=await n.initiateWorldlineA2aSession(e,s,t);return P(r,R,m,a)},async initiateWorldlineSession(e,s,t){let r=await n.initiateWorldlineSession(e,s,t);return P(r,R,m,a)},async paymentSessionGetChargeStatus(e,s){let t=await n.paymentSessionGetChargeStatus(e,s);return P(t,R,m,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await n.paymentSessionRegisterChargeMapping(e,s);return P(t,R,m,a)},async pollEpassiSession(e,s){let t=await n.pollEpassiSession(e,s);return P(t,R,m,a)},async pollVivaSession(e,s){let t=await n.pollVivaSession(e,s);return P(t,R,m,a)},async pollWorldlineSession(e,s){let t=await n.pollWorldlineSession(e,s);return P(t,R,m,a)},async recordManualPayment(e,s,t){let r=await n.recordManualPayment(e,s,t);return P(r,R,m,a)},async recordWorldlineA2aResult(e,s){let t=await n.recordWorldlineA2aResult(e,s);return P(t,R,m,a)},async refundEpassiSession(e,s){let t=await n.refundEpassiSession(e,s);return P(t,R,m,a)},async refundNetsSession(e,s){let t=await n.refundNetsSession(e,s);return P(t,R,m,a)},async refundVivaSession(e,s){let t=await n.refundVivaSession(e,s);return P(t,R,m,a)},async refundWorldlineA2aSession(e,s){let t=await n.refundWorldlineA2aSession(e,s);return P(t,R,m,a)},async refundWorldlineSession(e,s){let t=await n.refundWorldlineSession(e,s);return P(t,R,m,a)},async retryWorldlineReversal(e,s){let t=await n.retryWorldlineReversal(e,s);return P(t,R,m,a)},async revertNetsSession(e,s){let t=await n.revertNetsSession(e,s);return P(t,R,m,a)},async revertVivaSession(e,s){let t=await n.revertVivaSession(e,s);return P(t,R,m,a)},async revertWorldlineA2aSession(e,s){let t=await n.revertWorldlineA2aSession(e,s);return P(t,R,m,a)},async revertWorldlineSession(e,s){let t=await n.revertWorldlineSession(e,s);return P(t,R,m,a)},async voidManualPayment(e,s){let t=await n.voidManualPayment(e,s);return P(t,R,m,a)},async waitForNexiSession(e,s){let t=await n.waitForNexiSession(e,s);return P(t,R,m,a)}}},Qi=function(a,n,e){let s=U(a);return{cancelSession(t,r){return s.cancelSession(t,r).then(o=>o(e,n))},getOrderSettlementStatus(t,r,o,i){return s.getOrderSettlementStatus(t,r,o,i).then(l=>l(e,n))},getPaymentSession(t,r){return s.getPaymentSession(t,r).then(o=>o(e,n))},getPaymentSessionAnalytics(t,r,o,i,l){return s.getPaymentSessionAnalytics(t,r,o,i,l).then(u=>u(e,n))},getPaymentSessionCurrency(t,r){return s.getPaymentSessionCurrency(t,r).then(o=>o(e,n))},initiateEpassiSession(t,r,o,i){return s.initiateEpassiSession(t,r,o,i).then(l=>l(e,n))},initiateNetsSession(t,r,o){return s.initiateNetsSession(t,r,o).then(i=>i(e,n))},initiateNexiSession(t,r,o){return s.initiateNexiSession(t,r,o).then(i=>i(e,n))},initiateVivaA2aSession(t,r){return s.initiateVivaA2aSession(t,r).then(o=>o(e,n))},initiateVivaSession(t,r,o){return s.initiateVivaSession(t,r,o).then(i=>i(e,n))},initiateWorldlineA2aSession(t,r,o){return s.initiateWorldlineA2aSession(t,r,o).then(i=>i(e,n))},initiateWorldlineSession(t,r,o){return s.initiateWorldlineSession(t,r,o).then(i=>i(e,n))},paymentSessionGetChargeStatus(t,r){return s.paymentSessionGetChargeStatus(t,r).then(o=>o(e,n))},paymentSessionRegisterChargeMapping(t,r){return s.paymentSessionRegisterChargeMapping(t,r).then(o=>o(e,n))},pollEpassiSession(t,r){return s.pollEpassiSession(t,r).then(o=>o(e,n))},pollVivaSession(t,r){return s.pollVivaSession(t,r).then(o=>o(e,n))},pollWorldlineSession(t,r){return s.pollWorldlineSession(t,r).then(o=>o(e,n))},recordManualPayment(t,r,o){return s.recordManualPayment(t,r,o).then(i=>i(e,n))},recordWorldlineA2aResult(t,r){return s.recordWorldlineA2aResult(t,r).then(o=>o(e,n))},refundEpassiSession(t,r){return s.refundEpassiSession(t,r).then(o=>o(e,n))},refundNetsSession(t,r){return s.refundNetsSession(t,r).then(o=>o(e,n))},refundVivaSession(t,r){return s.refundVivaSession(t,r).then(o=>o(e,n))},refundWorldlineA2aSession(t,r){return s.refundWorldlineA2aSession(t,r).then(o=>o(e,n))},refundWorldlineSession(t,r){return s.refundWorldlineSession(t,r).then(o=>o(e,n))},retryWorldlineReversal(t,r){return s.retryWorldlineReversal(t,r).then(o=>o(e,n))},revertNetsSession(t,r){return s.revertNetsSession(t,r).then(o=>o(e,n))},revertVivaSession(t,r){return s.revertVivaSession(t,r).then(o=>o(e,n))},revertWorldlineA2aSession(t,r){return s.revertWorldlineA2aSession(t,r).then(o=>o(e,n))},revertWorldlineSession(t,r){return s.revertWorldlineSession(t,r).then(o=>o(e,n))},voidManualPayment(t,r){return s.voidManualPayment(t,r).then(o=>o(e,n))},waitForNexiSession(t,r){return s.waitForNexiSession(t,r).then(o=>o(e,n))}}},St=class extends I{cancelSession(n,e){return U(this.configuration).cancelSession(n,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(n,e,s,t){return U(this.configuration).getOrderSettlementStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentSession(n,e){return U(this.configuration).getPaymentSession(n,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(n,e,s,t,r){return U(this.configuration).getPaymentSessionAnalytics(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getPaymentSessionCurrency(n,e){return U(this.configuration).getPaymentSessionCurrency(n,e).then(s=>s(this.axios,this.basePath))}initiateEpassiSession(n,e,s,t){return U(this.configuration).initiateEpassiSession(n,e,s,t).then(r=>r(this.axios,this.basePath))}initiateNetsSession(n,e,s){return U(this.configuration).initiateNetsSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateNexiSession(n,e,s){return U(this.configuration).initiateNexiSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(n,e){return U(this.configuration).initiateVivaA2aSession(n,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(n,e,s){return U(this.configuration).initiateVivaSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineA2aSession(n,e,s){return U(this.configuration).initiateWorldlineA2aSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(n,e,s){return U(this.configuration).initiateWorldlineSession(n,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(n,e){return U(this.configuration).paymentSessionGetChargeStatus(n,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(n,e){return U(this.configuration).paymentSessionRegisterChargeMapping(n,e).then(s=>s(this.axios,this.basePath))}pollEpassiSession(n,e){return U(this.configuration).pollEpassiSession(n,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(n,e){return U(this.configuration).pollVivaSession(n,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(n,e){return U(this.configuration).pollWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(n,e,s){return U(this.configuration).recordManualPayment(n,e,s).then(t=>t(this.axios,this.basePath))}recordWorldlineA2aResult(n,e){return U(this.configuration).recordWorldlineA2aResult(n,e).then(s=>s(this.axios,this.basePath))}refundEpassiSession(n,e){return U(this.configuration).refundEpassiSession(n,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(n,e){return U(this.configuration).refundNetsSession(n,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(n,e){return U(this.configuration).refundVivaSession(n,e).then(s=>s(this.axios,this.basePath))}refundWorldlineA2aSession(n,e){return U(this.configuration).refundWorldlineA2aSession(n,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(n,e){return U(this.configuration).refundWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(n,e){return U(this.configuration).retryWorldlineReversal(n,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(n,e){return U(this.configuration).revertNetsSession(n,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(n,e){return U(this.configuration).revertVivaSession(n,e).then(s=>s(this.axios,this.basePath))}revertWorldlineA2aSession(n,e){return U(this.configuration).revertWorldlineA2aSession(n,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(n,e){return U(this.configuration).revertWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(n,e){return U(this.configuration).voidManualPayment(n,e).then(s=>s(this.axios,this.basePath))}waitForNexiSession(n,e){return U(this.configuration).waitForNexiSession(n,e).then(s=>s(this.axios,this.basePath))}},Ys=function(a){return{deletePrinterByAddress:async(n,e,s={})=>{c("deletePrinterByAddress","businessId",n),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.address=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},upsertPrinter:async(n,e={})=>{c("upsertPrinter","upsertPrinterDto",n);let s="/api/v1/printer",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ke=function(a){let n=Ys(a);return{async deletePrinterByAddress(e,s,t){let r=await n.deletePrinterByAddress(e,s,t);return P(r,R,m,a)},async upsertPrinter(e,s){let t=await n.upsertPrinter(e,s);return P(t,R,m,a)}}},$i=function(a,n,e){let s=ke(a);return{deletePrinterByAddress(t,r,o){return s.deletePrinterByAddress(t,r,o).then(i=>i(e,n))},upsertPrinter(t,r){return s.upsertPrinter(t,r).then(o=>o(e,n))}}},Ot=class extends I{deletePrinterByAddress(n,e,s){return ke(this.configuration).deletePrinterByAddress(n,e,s).then(t=>t(this.axios,this.basePath))}upsertPrinter(n,e){return ke(this.configuration).upsertPrinter(n,e).then(s=>s(this.axios,this.basePath))}},Xs=function(a){return{getChannelInventoryV2:async(n,e,s,t={})=>{c("getChannelInventoryV2","businessId",n),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},updateChannelInventoryV2:async(n,e,s,t,r={})=>{c("updateChannelInventoryV2","businessId",n),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(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},updateProductSkuV2:async(n,e,s,t,r={})=>{c("updateProductSkuV2","businessId",n),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(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},updateProductSkusV2:async(n,e,s,t,r={})=>{c("updateProductSkusV2","businessId",n),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(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}}}},ce=function(a){let n=Xs(a);return{async getChannelInventoryV2(e,s,t,r){let o=await n.getChannelInventoryV2(e,s,t,r);return P(o,R,m,a)},async updateChannelInventoryV2(e,s,t,r,o){let i=await n.updateChannelInventoryV2(e,s,t,r,o);return P(i,R,m,a)},async updateProductSkuV2(e,s,t,r,o){let i=await n.updateProductSkuV2(e,s,t,r,o);return P(i,R,m,a)},async updateProductSkusV2(e,s,t,r,o){let i=await n.updateProductSkusV2(e,s,t,r,o);return P(i,R,m,a)}}},zi=function(a,n,e){let s=ce(a);return{getChannelInventoryV2(t,r,o,i){return s.getChannelInventoryV2(t,r,o,i).then(l=>l(e,n))},updateChannelInventoryV2(t,r,o,i,l){return s.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,n))},updateProductSkuV2(t,r,o,i,l){return s.updateProductSkuV2(t,r,o,i,l).then(u=>u(e,n))},updateProductSkusV2(t,r,o,i,l){return s.updateProductSkusV2(t,r,o,i,l).then(u=>u(e,n))}}},Vt=class extends I{getChannelInventoryV2(n,e,s,t){return ce(this.configuration).getChannelInventoryV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(n,e,s,t,r){return ce(this.configuration).updateChannelInventoryV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(n,e,s,t,r){return ce(this.configuration).updateProductSkuV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkusV2(n,e,s,t,r){return ce(this.configuration).updateProductSkusV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},Zs=function(a){return{listAutomaticPromotions:async(n,e={})=>{c("listAutomaticPromotions","businessId",n);let s="/api/v2/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listKioskAutomaticPromotions:async(n,e={})=>{c("listKioskAutomaticPromotions","businessId",n);let s="/api/v2/kiosk/venues/{businessId}/promotions/automatic".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},priceBasketWithPromotions:async(n,e,s={})=>{c("priceBasketWithPromotions","businessId",n),c("priceBasketWithPromotions","priceBasketDto",e);let t="/api/v2/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},priceKioskBasketWithPromotions:async(n,e,s={})=>{c("priceKioskBasketWithPromotions","businessId",n),c("priceKioskBasketWithPromotions","priceBasketDto",e);let t="/api/v2/kiosk/venues/{businessId}/promotions/price".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},pe=function(a){let n=Zs(a);return{async listAutomaticPromotions(e,s){let t=await n.listAutomaticPromotions(e,s);return P(t,R,m,a)},async listKioskAutomaticPromotions(e,s){let t=await n.listKioskAutomaticPromotions(e,s);return P(t,R,m,a)},async priceBasketWithPromotions(e,s,t){let r=await n.priceBasketWithPromotions(e,s,t);return P(r,R,m,a)},async priceKioskBasketWithPromotions(e,s,t){let r=await n.priceKioskBasketWithPromotions(e,s,t);return P(r,R,m,a)}}},Yi=function(a,n,e){let s=pe(a);return{listAutomaticPromotions(t,r){return s.listAutomaticPromotions(t,r).then(o=>o(e,n))},listKioskAutomaticPromotions(t,r){return s.listKioskAutomaticPromotions(t,r).then(o=>o(e,n))},priceBasketWithPromotions(t,r,o){return s.priceBasketWithPromotions(t,r,o).then(i=>i(e,n))},priceKioskBasketWithPromotions(t,r,o){return s.priceKioskBasketWithPromotions(t,r,o).then(i=>i(e,n))}}},It=class extends I{listAutomaticPromotions(n,e){return pe(this.configuration).listAutomaticPromotions(n,e).then(s=>s(this.axios,this.basePath))}listKioskAutomaticPromotions(n,e){return pe(this.configuration).listKioskAutomaticPromotions(n,e).then(s=>s(this.axios,this.basePath))}priceBasketWithPromotions(n,e,s){return pe(this.configuration).priceBasketWithPromotions(n,e,s).then(t=>t(this.axios,this.basePath))}priceKioskBasketWithPromotions(n,e,s){return pe(this.configuration).priceKioskBasketWithPromotions(n,e,s).then(t=>t(this.axios,this.basePath))}},Js=function(a){return{createOnboardingSession:async(n,e,s={})=>{c("createOnboardingSession","channel",n),c("createOnboardingSession","createOnboardingSessionDto",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},disconnectOnboarding:async(n,e,s={})=>{c("disconnectOnboarding","channel",n),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getMenuIntegrations:async(n,e={})=>{c("getMenuIntegrations","businessId",n);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getOnboardingStatus:async(n,e,s={})=>{c("getOnboardingStatus","channel",n),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getVenueProviders:async(n,e={})=>{c("getVenueProviders","businessId",n);let s="/api/v2/venues/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listOnboardingStores:async(n,e,s={})=>{c("listOnboardingStores","channel",n),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},provisionOnboardingStore:async(n,e,s,t={})=>{c("provisionOnboardingStore","channel",n),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","provisionOnboardingStoreDto",s);let r="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateProviderSettings:async(n,e,s={})=>{c("updateProviderSettings","businessId",n),c("updateProviderSettings","updateProviderSettingsDto",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},updateVenueProviders:async(n,e,s={})=>{c("updateVenueProviders","businessId",n),c("updateVenueProviders","updateVenueProvidersDto",e);let t="/api/v2/venues/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},Q=function(a){let n=Js(a);return{async createOnboardingSession(e,s,t){let r=await n.createOnboardingSession(e,s,t);return P(r,R,m,a)},async disconnectOnboarding(e,s,t){let r=await n.disconnectOnboarding(e,s,t);return P(r,R,m,a)},async getMenuIntegrations(e,s){let t=await n.getMenuIntegrations(e,s);return P(t,R,m,a)},async getOnboardingStatus(e,s,t){let r=await n.getOnboardingStatus(e,s,t);return P(r,R,m,a)},async getVenueProviders(e,s){let t=await n.getVenueProviders(e,s);return P(t,R,m,a)},async listOnboardingStores(e,s,t){let r=await n.listOnboardingStores(e,s,t);return P(r,R,m,a)},async provisionOnboardingStore(e,s,t,r){let o=await n.provisionOnboardingStore(e,s,t,r);return P(o,R,m,a)},async updateProviderSettings(e,s,t){let r=await n.updateProviderSettings(e,s,t);return P(r,R,m,a)},async updateVenueProviders(e,s,t){let r=await n.updateVenueProviders(e,s,t);return P(r,R,m,a)}}},Xi=function(a,n,e){let s=Q(a);return{createOnboardingSession(t,r,o){return s.createOnboardingSession(t,r,o).then(i=>i(e,n))},disconnectOnboarding(t,r,o){return s.disconnectOnboarding(t,r,o).then(i=>i(e,n))},getMenuIntegrations(t,r){return s.getMenuIntegrations(t,r).then(o=>o(e,n))},getOnboardingStatus(t,r,o){return s.getOnboardingStatus(t,r,o).then(i=>i(e,n))},getVenueProviders(t,r){return s.getVenueProviders(t,r).then(o=>o(e,n))},listOnboardingStores(t,r,o){return s.listOnboardingStores(t,r,o).then(i=>i(e,n))},provisionOnboardingStore(t,r,o,i){return s.provisionOnboardingStore(t,r,o,i).then(l=>l(e,n))},updateProviderSettings(t,r,o){return s.updateProviderSettings(t,r,o).then(i=>i(e,n))},updateVenueProviders(t,r,o){return s.updateVenueProviders(t,r,o).then(i=>i(e,n))}}},vt=class extends I{createOnboardingSession(n,e,s){return Q(this.configuration).createOnboardingSession(n,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(n,e,s){return Q(this.configuration).disconnectOnboarding(n,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(n,e){return Q(this.configuration).getMenuIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(n,e,s){return Q(this.configuration).getOnboardingStatus(n,e,s).then(t=>t(this.axios,this.basePath))}getVenueProviders(n,e){return Q(this.configuration).getVenueProviders(n,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(n,e,s){return Q(this.configuration).listOnboardingStores(n,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(n,e,s,t){return Q(this.configuration).provisionOnboardingStore(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateProviderSettings(n,e,s){return Q(this.configuration).updateProviderSettings(n,e,s).then(t=>t(this.axios,this.basePath))}updateVenueProviders(n,e,s){return Q(this.configuration).updateVenueProviders(n,e,s).then(t=>t(this.axios,this.basePath))}},er=function(a){return{receiptFooterGetConfig:async(n,e,s={})=>{c("receiptFooterGetConfig","businessId",n),c("receiptFooterGetConfig","xAppX",e);let t="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!=null&&(l["x-app-x"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},receiptFooterUpsertConfig:async(n,e,s,t={})=>{c("receiptFooterUpsertConfig","businessId",n),c("receiptFooterUpsertConfig","xAppX",e),c("receiptFooterUpsertConfig","upsertReceiptFooterDto",s);let r="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},Me=function(a){let n=er(a);return{async receiptFooterGetConfig(e,s,t){let r=await n.receiptFooterGetConfig(e,s,t);return P(r,R,m,a)},async receiptFooterUpsertConfig(e,s,t,r){let o=await n.receiptFooterUpsertConfig(e,s,t,r);return P(o,R,m,a)}}},Zi=function(a,n,e){let s=Me(a);return{receiptFooterGetConfig(t,r,o){return s.receiptFooterGetConfig(t,r,o).then(i=>i(e,n))},receiptFooterUpsertConfig(t,r,o,i){return s.receiptFooterUpsertConfig(t,r,o,i).then(l=>l(e,n))}}},Tt=class extends I{receiptFooterGetConfig(n,e,s){return Me(this.configuration).receiptFooterGetConfig(n,e,s).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(n,e,s,t){return Me(this.configuration).receiptFooterUpsertConfig(n,e,s,t).then(r=>r(this.axios,this.basePath))}},tr=function(a){return{cancelPlanV2:async(n,e,s,t={})=>{c("cancelPlanV2","businessId",n),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},createRefundPlanV2:async(n,e,s,t={})=>{c("createRefundPlanV2","businessId",n),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getRefundPlanV2:async(n,e,s,t={})=>{c("getRefundPlanV2","businessId",n),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},recordRefundPlanV2:async(n,e,s,t,r={})=>{c("recordRefundPlanV2","businessId",n),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(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},refundOnlineOrder:async(n,e,s,t={})=>{c("refundOnlineOrder","businessId",n),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},resolveRefundChoiceV2:async(n,e,s,t,r={})=>{c("resolveRefundChoiceV2","businessId",n),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(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},p={};d["Content-Type"]="application/json",y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},u.data=b(t,u,a),{url:h(i),options:u}},startProcessPlanV2:async(n,e,s,t={})=>{c("startProcessPlanV2","businessId",n),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}}}},Z=function(a){let n=tr(a);return{async cancelPlanV2(e,s,t,r){let o=await n.cancelPlanV2(e,s,t,r);return P(o,R,m,a)},async createRefundPlanV2(e,s,t,r){let o=await n.createRefundPlanV2(e,s,t,r);return P(o,R,m,a)},async getRefundPlanV2(e,s,t,r){let o=await n.getRefundPlanV2(e,s,t,r);return P(o,R,m,a)},async recordRefundPlanV2(e,s,t,r,o){let i=await n.recordRefundPlanV2(e,s,t,r,o);return P(i,R,m,a)},async refundOnlineOrder(e,s,t,r){let o=await n.refundOnlineOrder(e,s,t,r);return P(o,R,m,a)},async resolveRefundChoiceV2(e,s,t,r,o){let i=await n.resolveRefundChoiceV2(e,s,t,r,o);return P(i,R,m,a)},async startProcessPlanV2(e,s,t,r){let o=await n.startProcessPlanV2(e,s,t,r);return P(o,R,m,a)}}},Ji=function(a,n,e){let s=Z(a);return{cancelPlanV2(t,r,o,i){return s.cancelPlanV2(t,r,o,i).then(l=>l(e,n))},createRefundPlanV2(t,r,o,i){return s.createRefundPlanV2(t,r,o,i).then(l=>l(e,n))},getRefundPlanV2(t,r,o,i){return s.getRefundPlanV2(t,r,o,i).then(l=>l(e,n))},recordRefundPlanV2(t,r,o,i,l){return s.recordRefundPlanV2(t,r,o,i,l).then(u=>u(e,n))},refundOnlineOrder(t,r,o,i){return s.refundOnlineOrder(t,r,o,i).then(l=>l(e,n))},resolveRefundChoiceV2(t,r,o,i,l){return s.resolveRefundChoiceV2(t,r,o,i,l).then(u=>u(e,n))},startProcessPlanV2(t,r,o,i){return s.startProcessPlanV2(t,r,o,i).then(l=>l(e,n))}}},qt=class extends I{cancelPlanV2(n,e,s,t){return Z(this.configuration).cancelPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlanV2(n,e,s,t){return Z(this.configuration).createRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlanV2(n,e,s,t){return Z(this.configuration).getRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}recordRefundPlanV2(n,e,s,t,r){return Z(this.configuration).recordRefundPlanV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(n,e,s,t){return Z(this.configuration).refundOnlineOrder(n,e,s,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoiceV2(n,e,s,t,r){return Z(this.configuration).resolveRefundChoiceV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlanV2(n,e,s,t){return Z(this.configuration).startProcessPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}},sr=function(a){return{getBoughtTogether:async(n,e,s,t,r,o,i,l,u,d,p={})=>{c("getBoughtTogether","businessIds",n);let f="/api/v6/report/sales/bought-together",C=new URL(f,g),x;a&&(x=a.baseOptions);let D={method:"GET",...x,...p},O={},V={};await A(O,a),e!==void 0&&(V.timeSpan=e),s!==void 0&&(V.start=s),t!==void 0&&(V.end=t),n&&(V.businessIds=n),r!==void 0&&(V.timezone=r),o&&(V.apps=o),i!==void 0&&(V.breakdown=i),l!==void 0&&(V.language=l),u!==void 0&&(V.itemKey=u),d!==void 0&&(V.limit=d),y(C,V);let v=x&&x.headers?x.headers:{};return D.headers={...O,...v,...p.headers},{url:h(C),options:D}},getEndOfDayReportFile:async(n,e,s,t,r,o,i,l={})=>{c("getEndOfDayReportFile","businessId",n);let u="/api/v6/report/end-of-day/file",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n!==void 0&&(x.businessId=n),r!==void 0&&(x.timezone=r),o!==void 0&&(x.provider=o),i!==void 0&&(x.language=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getEndOfDayReportV5:async(n,e,s,t,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",n);let l="/api/v5/report/end-of-day",u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),n&&(C.businessIds=n),r!==void 0&&(C.timezone=r),o!==void 0&&(C.provider=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},getSalesReport:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x={})=>{c("getSalesReport","businessIds",n);let D="/api/v6/report/sales",O=new URL(D,g),V;a&&(V=a.baseOptions);let v={method:"GET",...V,...x},q={},T={};await A(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),n&&(T.businessIds=n),r!==void 0&&(T.timezone=r),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),p!==void 0&&(T.compareEnd=p),f!==void 0&&(T.compareSameTime=f),C!==void 0&&(T.baseline=C),y(O,T);let S=V&&V.headers?V.headers:{};return v.headers={...q,...S,...x.headers},{url:h(O),options:v}},getSalesReportFile:async(n,e,s,t,r,o,i,l={})=>{c("getSalesReportFile","businessId",n);let u="/api/v6/report/sales/file",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n!==void 0&&(x.businessId=n),r!==void 0&&(x.timezone=r),o!==void 0&&(x.language=o),i!==void 0&&(x.format=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getSalesReportHours:async(n,e,s,t,r,o,i,l,u,d={})=>{c("getSalesReportHours","businessIds",n);let p="/api/v6/report/sales/hours",f=new URL(p,g),C;a&&(C=a.baseOptions);let x={method:"GET",...C,...d},D={},O={};await A(D,a),e!==void 0&&(O.timeSpan=e),s!==void 0&&(O.start=s),t!==void 0&&(O.end=t),n&&(O.businessIds=n),r!==void 0&&(O.timezone=r),o&&(O.apps=o),i!==void 0&&(O.breakdown=i),l!==void 0&&(O.language=l),u!==void 0&&(O.isoWeekday=u),y(f,O);let V=C&&C.headers?C.headers:{};return x.headers={...D,...V,...d.headers},{url:h(f),options:x}},getSalesReportOrderTypes:async(n,e,s,t,r,o,i,l,u={})=>{c("getSalesReportOrderTypes","businessIds",n);let d="/api/v6/report/sales/order-types",p=new URL(d,g),f;a&&(f=a.baseOptions);let C={method:"GET",...f,...u},x={},D={};await A(x,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.timezone=r),o&&(D.apps=o),i!==void 0&&(D.breakdown=i),l!==void 0&&(D.language=l),y(p,D);let O=f&&f.headers?f.headers:{};return C.headers={...x,...O,...u.headers},{url:h(p),options:C}},getSalesReportStaff:async(n,e,s,t,r,o,i,l={})=>{c("getSalesReportStaff","businessIds",n);let u="/api/v6/report/sales/staff",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),n&&(x.businessIds=n),r!==void 0&&(x.timezone=r),o&&(x.apps=o),i!==void 0&&(x.language=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},getShortSalesReport:async(n,e,s,t,r,o,i,l,u,d,p,f,C,x={})=>{c("getShortSalesReport","businessIds",n);let D="/api/v6/report/sales/short",O=new URL(D,g),V;a&&(V=a.baseOptions);let v={method:"GET",...V,...x},q={},T={};await A(q,a),e!==void 0&&(T.timeSpan=e),s!==void 0&&(T.start=s),t!==void 0&&(T.end=t),n&&(T.businessIds=n),r!==void 0&&(T.timezone=r),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),p!==void 0&&(T.compareEnd=p),f!==void 0&&(T.compareSameTime=f),C!==void 0&&(T.baseline=C),y(O,T);let S=V&&V.headers?V.headers:{};return v.headers={...q,...S,...x.headers},{url:h(O),options:v}},sendReportEmailV5:async(n,e,s,t,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",n),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"POST",...p,...l},C={},x={};t!==void 0&&(x.timeSpan=t),r!==void 0&&(x.start=r),o!==void 0&&(x.end=o),n&&(x.businessIds=n),e!==void 0&&(x.timezone=e),i!==void 0&&(x.provider=i),C["Content-Type"]="application/json",y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},f.data=b(s,f,a),{url:h(d),options:f}}}},j=function(a){let n=sr(a);return{async getBoughtTogether(e,s,t,r,o,i,l,u,d,p,f){let C=await n.getBoughtTogether(e,s,t,r,o,i,l,u,d,p,f);return P(C,R,m,a)},async getEndOfDayReportFile(e,s,t,r,o,i,l,u){let d=await n.getEndOfDayReportFile(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getEndOfDayReportV5(e,s,t,r,o,i,l){let u=await n.getEndOfDayReportV5(e,s,t,r,o,i,l);return P(u,R,m,a)},async getSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D){let O=await n.getSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D);return P(O,R,m,a)},async getSalesReportFile(e,s,t,r,o,i,l,u){let d=await n.getSalesReportFile(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getSalesReportHours(e,s,t,r,o,i,l,u,d,p){let f=await n.getSalesReportHours(e,s,t,r,o,i,l,u,d,p);return P(f,R,m,a)},async getSalesReportOrderTypes(e,s,t,r,o,i,l,u,d){let p=await n.getSalesReportOrderTypes(e,s,t,r,o,i,l,u,d);return P(p,R,m,a)},async getSalesReportStaff(e,s,t,r,o,i,l,u){let d=await n.getSalesReportStaff(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async getShortSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D){let O=await n.getShortSalesReport(e,s,t,r,o,i,l,u,d,p,f,C,x,D);return P(O,R,m,a)},async sendReportEmailV5(e,s,t,r,o,i,l,u){let d=await n.sendReportEmailV5(e,s,t,r,o,i,l,u);return P(d,R,m,a)}}},el=function(a,n,e){let s=j(a);return{getBoughtTogether(t,r,o,i,l,u,d,p,f,C,x){return s.getBoughtTogether(t,r,o,i,l,u,d,p,f,C,x).then(D=>D(e,n))},getEndOfDayReportFile(t,r,o,i,l,u,d,p){return s.getEndOfDayReportFile(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getEndOfDayReportV5(t,r,o,i,l,u,d){return s.getEndOfDayReportV5(t,r,o,i,l,u,d).then(p=>p(e,n))},getSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V){return s.getSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V).then(v=>v(e,n))},getSalesReportFile(t,r,o,i,l,u,d,p){return s.getSalesReportFile(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getSalesReportHours(t,r,o,i,l,u,d,p,f,C){return s.getSalesReportHours(t,r,o,i,l,u,d,p,f,C).then(x=>x(e,n))},getSalesReportOrderTypes(t,r,o,i,l,u,d,p,f){return s.getSalesReportOrderTypes(t,r,o,i,l,u,d,p,f).then(C=>C(e,n))},getSalesReportStaff(t,r,o,i,l,u,d,p){return s.getSalesReportStaff(t,r,o,i,l,u,d,p).then(f=>f(e,n))},getShortSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V){return s.getShortSalesReport(t,r,o,i,l,u,d,p,f,C,x,D,O,V).then(v=>v(e,n))},sendReportEmailV5(t,r,o,i,l,u,d,p){return s.sendReportEmailV5(t,r,o,i,l,u,d,p).then(f=>f(e,n))}}},Ut=class extends I{getBoughtTogether(n,e,s,t,r,o,i,l,u,d,p){return j(this.configuration).getBoughtTogether(n,e,s,t,r,o,i,l,u,d,p).then(f=>f(this.axios,this.basePath))}getEndOfDayReportFile(n,e,s,t,r,o,i,l){return j(this.configuration).getEndOfDayReportFile(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getEndOfDayReportV5(n,e,s,t,r,o,i){return j(this.configuration).getEndOfDayReportV5(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}getSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x){return j(this.configuration).getSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x).then(D=>D(this.axios,this.basePath))}getSalesReportFile(n,e,s,t,r,o,i,l){return j(this.configuration).getSalesReportFile(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getSalesReportHours(n,e,s,t,r,o,i,l,u,d){return j(this.configuration).getSalesReportHours(n,e,s,t,r,o,i,l,u,d).then(p=>p(this.axios,this.basePath))}getSalesReportOrderTypes(n,e,s,t,r,o,i,l,u){return j(this.configuration).getSalesReportOrderTypes(n,e,s,t,r,o,i,l,u).then(d=>d(this.axios,this.basePath))}getSalesReportStaff(n,e,s,t,r,o,i,l){return j(this.configuration).getSalesReportStaff(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getShortSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x){return j(this.configuration).getShortSalesReport(n,e,s,t,r,o,i,l,u,d,p,f,C,x).then(D=>D(this.axios,this.basePath))}sendReportEmailV5(n,e,s,t,r,o,i,l){return j(this.configuration).sendReportEmailV5(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},rr=function(a){return{getOrganisationReportRunFile:async(n,e,s,t={})=>{c("getOrganisationReportRunFile","groupId",n),c("getOrganisationReportRunFile","runId",e),c("getOrganisationReportRunFile","format",s);let r="/api/v6/groups/{groupId}/report-runs/{runId}/file".replace("{groupId}",encodeURIComponent(String(n))).replace("{runId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),s!==void 0&&(d.format=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getOrganisationSavedReportSchedule:async(n,e,s={})=>{c("getOrganisationSavedReportSchedule","groupId",n),c("getOrganisationSavedReportSchedule","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}/schedule".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getReportRun:async(n,e={})=>{c("getReportRun","runId",n);let s="/api/v6/report-runs/{runId}".replace("{runId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getStoreReadyMadeReportSchedule:async(n,e,s={})=>{c("getStoreReadyMadeReportSchedule","businessId",n),c("getStoreReadyMadeReportSchedule","readyMadeReport",e);let t="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{readyMadeReport}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getStoreReportRunFile:async(n,e,s,t={})=>{c("getStoreReportRunFile","businessId",n),c("getStoreReportRunFile","runId",e),c("getStoreReportRunFile","format",s);let r="/api/v6/businesses/{businessId}/report-runs/{runId}/file".replace("{businessId}",encodeURIComponent(String(n))).replace("{runId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),s!==void 0&&(d.format=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},getStoreSavedReportSchedule:async(n,e,s={})=>{c("getStoreSavedReportSchedule","businessId",n),c("getStoreSavedReportSchedule","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOrganisationSavedReportRuns:async(n,e,s,t,r={})=>{c("listOrganisationSavedReportRuns","groupId",n),c("listOrganisationSavedReportRuns","reportId",e);let o="/api/v6/groups/{groupId}/reports/{reportId}/runs".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},listStoreReadyMadeReportRuns:async(n,e,s,t,r={})=>{c("listStoreReadyMadeReportRuns","businessId",n),c("listStoreReadyMadeReportRuns","readyMadeReport",e);let o="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/runs".replace("{businessId}",encodeURIComponent(String(n))).replace("{readyMadeReport}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},listStoreSavedReportRuns:async(n,e,s,t,r={})=>{c("listStoreSavedReportRuns","businessId",n),c("listStoreSavedReportRuns","reportId",e);let o="/api/v6/businesses/{businessId}/reports/{reportId}/runs".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),i=new URL(o,g),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},p={};await A(d,a),s!==void 0&&(p.limit=s),t!==void 0&&(p.after=t),y(i,p);let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...r.headers},{url:h(i),options:u}},setOrganisationSavedReportSchedule:async(n,e,s,t={})=>{c("setOrganisationSavedReportSchedule","groupId",n),c("setOrganisationSavedReportSchedule","reportId",e),c("setOrganisationSavedReportSchedule","setReportScheduleDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/schedule".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setStoreReadyMadeReportSchedule:async(n,e,s,t={})=>{c("setStoreReadyMadeReportSchedule","businessId",n),c("setStoreReadyMadeReportSchedule","readyMadeReport",e),c("setStoreReadyMadeReportSchedule","setReportScheduleDto",s);let r="/api/v6/businesses/{businessId}/ready-made-reports/{readyMadeReport}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{readyMadeReport}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setStoreSavedReportSchedule:async(n,e,s,t={})=>{c("setStoreSavedReportSchedule","businessId",n),c("setStoreSavedReportSchedule","reportId",e),c("setStoreSavedReportSchedule","setReportScheduleDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/schedule".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},G=function(a){let n=rr(a);return{async getOrganisationReportRunFile(e,s,t,r){let o=await n.getOrganisationReportRunFile(e,s,t,r);return P(o,R,m,a)},async getOrganisationSavedReportSchedule(e,s,t){let r=await n.getOrganisationSavedReportSchedule(e,s,t);return P(r,R,m,a)},async getReportRun(e,s){let t=await n.getReportRun(e,s);return P(t,R,m,a)},async getStoreReadyMadeReportSchedule(e,s,t){let r=await n.getStoreReadyMadeReportSchedule(e,s,t);return P(r,R,m,a)},async getStoreReportRunFile(e,s,t,r){let o=await n.getStoreReportRunFile(e,s,t,r);return P(o,R,m,a)},async getStoreSavedReportSchedule(e,s,t){let r=await n.getStoreSavedReportSchedule(e,s,t);return P(r,R,m,a)},async listOrganisationSavedReportRuns(e,s,t,r,o){let i=await n.listOrganisationSavedReportRuns(e,s,t,r,o);return P(i,R,m,a)},async listStoreReadyMadeReportRuns(e,s,t,r,o){let i=await n.listStoreReadyMadeReportRuns(e,s,t,r,o);return P(i,R,m,a)},async listStoreSavedReportRuns(e,s,t,r,o){let i=await n.listStoreSavedReportRuns(e,s,t,r,o);return P(i,R,m,a)},async setOrganisationSavedReportSchedule(e,s,t,r){let o=await n.setOrganisationSavedReportSchedule(e,s,t,r);return P(o,R,m,a)},async setStoreReadyMadeReportSchedule(e,s,t,r){let o=await n.setStoreReadyMadeReportSchedule(e,s,t,r);return P(o,R,m,a)},async setStoreSavedReportSchedule(e,s,t,r){let o=await n.setStoreSavedReportSchedule(e,s,t,r);return P(o,R,m,a)}}},tl=function(a,n,e){let s=G(a);return{getOrganisationReportRunFile(t,r,o,i){return s.getOrganisationReportRunFile(t,r,o,i).then(l=>l(e,n))},getOrganisationSavedReportSchedule(t,r,o){return s.getOrganisationSavedReportSchedule(t,r,o).then(i=>i(e,n))},getReportRun(t,r){return s.getReportRun(t,r).then(o=>o(e,n))},getStoreReadyMadeReportSchedule(t,r,o){return s.getStoreReadyMadeReportSchedule(t,r,o).then(i=>i(e,n))},getStoreReportRunFile(t,r,o,i){return s.getStoreReportRunFile(t,r,o,i).then(l=>l(e,n))},getStoreSavedReportSchedule(t,r,o){return s.getStoreSavedReportSchedule(t,r,o).then(i=>i(e,n))},listOrganisationSavedReportRuns(t,r,o,i,l){return s.listOrganisationSavedReportRuns(t,r,o,i,l).then(u=>u(e,n))},listStoreReadyMadeReportRuns(t,r,o,i,l){return s.listStoreReadyMadeReportRuns(t,r,o,i,l).then(u=>u(e,n))},listStoreSavedReportRuns(t,r,o,i,l){return s.listStoreSavedReportRuns(t,r,o,i,l).then(u=>u(e,n))},setOrganisationSavedReportSchedule(t,r,o,i){return s.setOrganisationSavedReportSchedule(t,r,o,i).then(l=>l(e,n))},setStoreReadyMadeReportSchedule(t,r,o,i){return s.setStoreReadyMadeReportSchedule(t,r,o,i).then(l=>l(e,n))},setStoreSavedReportSchedule(t,r,o,i){return s.setStoreSavedReportSchedule(t,r,o,i).then(l=>l(e,n))}}},Et=class extends I{getOrganisationReportRunFile(n,e,s,t){return G(this.configuration).getOrganisationReportRunFile(n,e,s,t).then(r=>r(this.axios,this.basePath))}getOrganisationSavedReportSchedule(n,e,s){return G(this.configuration).getOrganisationSavedReportSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}getReportRun(n,e){return G(this.configuration).getReportRun(n,e).then(s=>s(this.axios,this.basePath))}getStoreReadyMadeReportSchedule(n,e,s){return G(this.configuration).getStoreReadyMadeReportSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}getStoreReportRunFile(n,e,s,t){return G(this.configuration).getStoreReportRunFile(n,e,s,t).then(r=>r(this.axios,this.basePath))}getStoreSavedReportSchedule(n,e,s){return G(this.configuration).getStoreSavedReportSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}listOrganisationSavedReportRuns(n,e,s,t,r){return G(this.configuration).listOrganisationSavedReportRuns(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}listStoreReadyMadeReportRuns(n,e,s,t,r){return G(this.configuration).listStoreReadyMadeReportRuns(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}listStoreSavedReportRuns(n,e,s,t,r){return G(this.configuration).listStoreSavedReportRuns(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}setOrganisationSavedReportSchedule(n,e,s,t){return G(this.configuration).setOrganisationSavedReportSchedule(n,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreReadyMadeReportSchedule(n,e,s,t){return G(this.configuration).setStoreReadyMadeReportSchedule(n,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreSavedReportSchedule(n,e,s,t){return G(this.configuration).setStoreSavedReportSchedule(n,e,s,t).then(r=>r(this.axios,this.basePath))}},nr=function(a){return{getEndOfDayReportForTill:async(n,e,s,t,r,o,i={})=>{c("getEndOfDayReportForTill","businessIds",n);let l="/api/v6/report/end-of-day",u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};await A(f,a),e!==void 0&&(C.timeSpan=e),s!==void 0&&(C.start=s),t!==void 0&&(C.end=t),n&&(C.businessIds=n),r!==void 0&&(C.timezone=r),o!==void 0&&(C.provider=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},sendEndOfDayReportForTill:async(n,e,s,t,r,o,i,l={})=>{c("sendEndOfDayReportForTill","businessIds",n),c("sendEndOfDayReportForTill","sendReportEmailDto",e);let u="/api/v6/report/email",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"POST",...p,...l},C={},x={};await A(C,a),s!==void 0&&(x.timeSpan=s),t!==void 0&&(x.start=t),r!==void 0&&(x.end=r),n&&(x.businessIds=n),o!==void 0&&(x.timezone=o),i!==void 0&&(x.provider=i),C["Content-Type"]="application/json",y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},f.data=b(e,f,a),{url:h(d),options:f}}}},Be=function(a){let n=nr(a);return{async getEndOfDayReportForTill(e,s,t,r,o,i,l){let u=await n.getEndOfDayReportForTill(e,s,t,r,o,i,l);return P(u,R,m,a)},async sendEndOfDayReportForTill(e,s,t,r,o,i,l,u){let d=await n.sendEndOfDayReportForTill(e,s,t,r,o,i,l,u);return P(d,R,m,a)}}},sl=function(a,n,e){let s=Be(a);return{getEndOfDayReportForTill(t,r,o,i,l,u,d){return s.getEndOfDayReportForTill(t,r,o,i,l,u,d).then(p=>p(e,n))},sendEndOfDayReportForTill(t,r,o,i,l,u,d,p){return s.sendEndOfDayReportForTill(t,r,o,i,l,u,d,p).then(f=>f(e,n))}}},kt=class extends I{getEndOfDayReportForTill(n,e,s,t,r,o,i){return Be(this.configuration).getEndOfDayReportForTill(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendEndOfDayReportForTill(n,e,s,t,r,o,i,l){return Be(this.configuration).sendEndOfDayReportForTill(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},or=function(a){return{changeResQOffer:async(n,e,s,t={})=>{c("changeResQOffer","businessId",n),c("changeResQOffer","offerId",e),c("changeResQOffer","changeResQOfferDto",s);let r="/api/v2/venues/{businessId}/resq/offers/{offerId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{offerId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},createResQOffer:async(n,e,s={})=>{c("createResQOffer","businessId",n),c("createResQOffer","createResQOfferDto",e);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},deactivateResQOffer:async(n,e,s={})=>{c("deactivateResQOffer","businessId",n),c("deactivateResQOffer","offerId",e);let t="/api/v2/venues/{businessId}/resq/offers/{offerId}/deactivate".replace("{businessId}",encodeURIComponent(String(n))).replace("{offerId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getResQOrder:async(n,e,s={})=>{c("getResQOrder","businessId",n),c("getResQOrder","orderId",e);let t="/api/v2/venues/{businessId}/resq/orders/{orderId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listResQOffers:async(n,e,s={})=>{c("listResQOffers","businessId",n);let t="/api/v2/venues/{businessId}/resq/offers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.page=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listResQOrders:async(n,e,s={})=>{c("listResQOrders","businessId",n);let t="/api/v2/venues/{businessId}/resq/orders".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),e!==void 0&&(u.page=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},se=function(a){let n=or(a);return{async changeResQOffer(e,s,t,r){let o=await n.changeResQOffer(e,s,t,r);return P(o,R,m,a)},async createResQOffer(e,s,t){let r=await n.createResQOffer(e,s,t);return P(r,R,m,a)},async deactivateResQOffer(e,s,t){let r=await n.deactivateResQOffer(e,s,t);return P(r,R,m,a)},async getResQOrder(e,s,t){let r=await n.getResQOrder(e,s,t);return P(r,R,m,a)},async listResQOffers(e,s,t){let r=await n.listResQOffers(e,s,t);return P(r,R,m,a)},async listResQOrders(e,s,t){let r=await n.listResQOrders(e,s,t);return P(r,R,m,a)}}},rl=function(a,n,e){let s=se(a);return{changeResQOffer(t,r,o,i){return s.changeResQOffer(t,r,o,i).then(l=>l(e,n))},createResQOffer(t,r,o){return s.createResQOffer(t,r,o).then(i=>i(e,n))},deactivateResQOffer(t,r,o){return s.deactivateResQOffer(t,r,o).then(i=>i(e,n))},getResQOrder(t,r,o){return s.getResQOrder(t,r,o).then(i=>i(e,n))},listResQOffers(t,r,o){return s.listResQOffers(t,r,o).then(i=>i(e,n))},listResQOrders(t,r,o){return s.listResQOrders(t,r,o).then(i=>i(e,n))}}},Mt=class extends I{changeResQOffer(n,e,s,t){return se(this.configuration).changeResQOffer(n,e,s,t).then(r=>r(this.axios,this.basePath))}createResQOffer(n,e,s){return se(this.configuration).createResQOffer(n,e,s).then(t=>t(this.axios,this.basePath))}deactivateResQOffer(n,e,s){return se(this.configuration).deactivateResQOffer(n,e,s).then(t=>t(this.axios,this.basePath))}getResQOrder(n,e,s){return se(this.configuration).getResQOrder(n,e,s).then(t=>t(this.axios,this.basePath))}listResQOffers(n,e,s){return se(this.configuration).listResQOffers(n,e,s).then(t=>t(this.axios,this.basePath))}listResQOrders(n,e,s){return se(this.configuration).listResQOrders(n,e,s).then(t=>t(this.axios,this.basePath))}},ar=function(a){return{createReservation:async(n,e={})=>{c("createReservation","createReservationDto",n);let s="/api/v1/reservations",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getReservationAvailability:async(n,e,s,t,r,o,i={})=>{c("getReservationAvailability","businessId",n),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let l="/api/v1/reservations/availability",u=new URL(l,g),d;a&&(d=a.baseOptions);let p={method:"GET",...d,...i},f={},C={};await A(f,a),n!==void 0&&(C.businessId=n),e!==void 0&&(C.date=e),s!==void 0&&(C.partySize=s),t!==void 0&&(C.source=t),r!==void 0&&(C.sectionId=r),o!==void 0&&(C.excludeReservationId=o),y(u,C);let x=d&&d.headers?d.headers:{};return p.headers={...f,...x,...i.headers},{url:h(u),options:p}},getReservationPolicy:async(n,e={})=>{c("getReservationPolicy","businessId",n);let s="/api/v1/reservations/policy",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},linkReservationIntegration:async(n,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",n);let s="/api/v1/reservations/link",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},listReservations:async(n,e,s,t={})=>{c("listReservations","businessId",n);let r="/api/v1/reservations",o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},reservationInboundWebhook:async(n,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",n);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},unlinkReservationIntegration:async(n,e={})=>{c("unlinkReservationIntegration","businessId",n);let s="/api/v1/reservations/link",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await A(i,a),n!==void 0&&(l.businessId=n),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},updateReservation:async(n,e,s,t={})=>{c("updateReservation","id",n),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let r="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateReservationPolicy:async(n,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",n);let s="/api/v1/reservations/policy",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await A(i,a),i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},updateReservationStatus:async(n,e,s,t={})=>{c("updateReservationStatus","id",n),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let r="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},H=function(a){let n=ar(a);return{async createReservation(e,s){let t=await n.createReservation(e,s);return P(t,R,m,a)},async getReservationAvailability(e,s,t,r,o,i,l){let u=await n.getReservationAvailability(e,s,t,r,o,i,l);return P(u,R,m,a)},async getReservationPolicy(e,s){let t=await n.getReservationPolicy(e,s);return P(t,R,m,a)},async linkReservationIntegration(e,s){let t=await n.linkReservationIntegration(e,s);return P(t,R,m,a)},async listReservations(e,s,t,r){let o=await n.listReservations(e,s,t,r);return P(o,R,m,a)},async reservationInboundWebhook(e,s){let t=await n.reservationInboundWebhook(e,s);return P(t,R,m,a)},async unlinkReservationIntegration(e,s){let t=await n.unlinkReservationIntegration(e,s);return P(t,R,m,a)},async updateReservation(e,s,t,r){let o=await n.updateReservation(e,s,t,r);return P(o,R,m,a)},async updateReservationPolicy(e,s){let t=await n.updateReservationPolicy(e,s);return P(t,R,m,a)},async updateReservationStatus(e,s,t,r){let o=await n.updateReservationStatus(e,s,t,r);return P(o,R,m,a)}}},nl=function(a,n,e){let s=H(a);return{createReservation(t,r){return s.createReservation(t,r).then(o=>o(e,n))},getReservationAvailability(t,r,o,i,l,u,d){return s.getReservationAvailability(t,r,o,i,l,u,d).then(p=>p(e,n))},getReservationPolicy(t,r){return s.getReservationPolicy(t,r).then(o=>o(e,n))},linkReservationIntegration(t,r){return s.linkReservationIntegration(t,r).then(o=>o(e,n))},listReservations(t,r,o,i){return s.listReservations(t,r,o,i).then(l=>l(e,n))},reservationInboundWebhook(t,r){return s.reservationInboundWebhook(t,r).then(o=>o(e,n))},unlinkReservationIntegration(t,r){return s.unlinkReservationIntegration(t,r).then(o=>o(e,n))},updateReservation(t,r,o,i){return s.updateReservation(t,r,o,i).then(l=>l(e,n))},updateReservationPolicy(t,r){return s.updateReservationPolicy(t,r).then(o=>o(e,n))},updateReservationStatus(t,r,o,i){return s.updateReservationStatus(t,r,o,i).then(l=>l(e,n))}}},Bt=class extends I{createReservation(n,e){return H(this.configuration).createReservation(n,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(n,e,s,t,r,o,i){return H(this.configuration).getReservationAvailability(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}getReservationPolicy(n,e){return H(this.configuration).getReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(n,e){return H(this.configuration).linkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}listReservations(n,e,s,t){return H(this.configuration).listReservations(n,e,s,t).then(r=>r(this.axios,this.basePath))}reservationInboundWebhook(n,e){return H(this.configuration).reservationInboundWebhook(n,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(n,e){return H(this.configuration).unlinkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}updateReservation(n,e,s,t){return H(this.configuration).updateReservation(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateReservationPolicy(n,e){return H(this.configuration).updateReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(n,e,s,t){return H(this.configuration).updateReservationStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},ir=function(a){return{createOrganisationSavedReport:async(n,e,s={})=>{c("createOrganisationSavedReport","groupId",n),c("createOrganisationSavedReport","createSavedReportDto",e);let t="/api/v6/groups/{groupId}/reports".replace("{groupId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createStoreSavedReport:async(n,e,s={})=>{c("createStoreSavedReport","businessId",n),c("createStoreSavedReport","createSavedReportDto",e);let t="/api/v6/businesses/{businessId}/reports".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},deleteOrganisationSavedReport:async(n,e,s={})=>{c("deleteOrganisationSavedReport","groupId",n),c("deleteOrganisationSavedReport","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},deleteStoreSavedReport:async(n,e,s={})=>{c("deleteStoreSavedReport","businessId",n),c("deleteStoreSavedReport","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},duplicateOrganisationSavedReport:async(n,e,s,t={})=>{c("duplicateOrganisationSavedReport","groupId",n),c("duplicateOrganisationSavedReport","reportId",e),c("duplicateOrganisationSavedReport","duplicateSavedReportDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/duplicate".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},duplicateStoreSavedReport:async(n,e,s,t={})=>{c("duplicateStoreSavedReport","businessId",n),c("duplicateStoreSavedReport","reportId",e),c("duplicateStoreSavedReport","duplicateSavedReportDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/duplicate".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getOrganisationSavedReport:async(n,e,s={})=>{c("getOrganisationSavedReport","groupId",n),c("getOrganisationSavedReport","reportId",e);let t="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getPublicSavedReport:async(n,e={})=>{c("getPublicSavedReport","token",n);let s="/api/v6/public-reports/{token}".replace("{token}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getStoreSavedReport:async(n,e,s={})=>{c("getStoreSavedReport","businessId",n),c("getStoreSavedReport","reportId",e);let t="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},listOrganisationSavedReports:async(n,e,s,t={})=>{c("listOrganisationSavedReports","groupId",n);let r="/api/v6/groups/{groupId}/reports".replace("{groupId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.limit=e),s!==void 0&&(d.after=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},listStoreSavedReports:async(n,e,s,t={})=>{c("listStoreSavedReports","businessId",n);let r="/api/v6/businesses/{businessId}/reports".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await A(u,a),e!==void 0&&(d.limit=e),s!==void 0&&(d.after=s),y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},{url:h(o),options:l}},setOrganisationSavedReportVisibility:async(n,e,s,t={})=>{c("setOrganisationSavedReportVisibility","groupId",n),c("setOrganisationSavedReportVisibility","reportId",e),c("setOrganisationSavedReportVisibility","setSavedReportVisibilityDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}/visibility".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},setStoreSavedReportVisibility:async(n,e,s,t={})=>{c("setStoreSavedReportVisibility","businessId",n),c("setStoreSavedReportVisibility","reportId",e),c("setStoreSavedReportVisibility","setSavedReportVisibilityDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}/visibility".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateOrganisationSavedReport:async(n,e,s,t={})=>{c("updateOrganisationSavedReport","groupId",n),c("updateOrganisationSavedReport","reportId",e),c("updateOrganisationSavedReport","updateSavedReportDto",s);let r="/api/v6/groups/{groupId}/reports/{reportId}".replace("{groupId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},updateStoreSavedReport:async(n,e,s,t={})=>{c("updateStoreSavedReport","businessId",n),c("updateStoreSavedReport","reportId",e),c("updateStoreSavedReport","updateSavedReportDto",s);let r="/api/v6/businesses/{businessId}/reports/{reportId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{reportId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},w=function(a){let n=ir(a);return{async createOrganisationSavedReport(e,s,t){let r=await n.createOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async createStoreSavedReport(e,s,t){let r=await n.createStoreSavedReport(e,s,t);return P(r,R,m,a)},async deleteOrganisationSavedReport(e,s,t){let r=await n.deleteOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async deleteStoreSavedReport(e,s,t){let r=await n.deleteStoreSavedReport(e,s,t);return P(r,R,m,a)},async duplicateOrganisationSavedReport(e,s,t,r){let o=await n.duplicateOrganisationSavedReport(e,s,t,r);return P(o,R,m,a)},async duplicateStoreSavedReport(e,s,t,r){let o=await n.duplicateStoreSavedReport(e,s,t,r);return P(o,R,m,a)},async getOrganisationSavedReport(e,s,t){let r=await n.getOrganisationSavedReport(e,s,t);return P(r,R,m,a)},async getPublicSavedReport(e,s){let t=await n.getPublicSavedReport(e,s);return P(t,R,m,a)},async getStoreSavedReport(e,s,t){let r=await n.getStoreSavedReport(e,s,t);return P(r,R,m,a)},async listOrganisationSavedReports(e,s,t,r){let o=await n.listOrganisationSavedReports(e,s,t,r);return P(o,R,m,a)},async listStoreSavedReports(e,s,t,r){let o=await n.listStoreSavedReports(e,s,t,r);return P(o,R,m,a)},async setOrganisationSavedReportVisibility(e,s,t,r){let o=await n.setOrganisationSavedReportVisibility(e,s,t,r);return P(o,R,m,a)},async setStoreSavedReportVisibility(e,s,t,r){let o=await n.setStoreSavedReportVisibility(e,s,t,r);return P(o,R,m,a)},async updateOrganisationSavedReport(e,s,t,r){let o=await n.updateOrganisationSavedReport(e,s,t,r);return P(o,R,m,a)},async updateStoreSavedReport(e,s,t,r){let o=await n.updateStoreSavedReport(e,s,t,r);return P(o,R,m,a)}}},ol=function(a,n,e){let s=w(a);return{createOrganisationSavedReport(t,r,o){return s.createOrganisationSavedReport(t,r,o).then(i=>i(e,n))},createStoreSavedReport(t,r,o){return s.createStoreSavedReport(t,r,o).then(i=>i(e,n))},deleteOrganisationSavedReport(t,r,o){return s.deleteOrganisationSavedReport(t,r,o).then(i=>i(e,n))},deleteStoreSavedReport(t,r,o){return s.deleteStoreSavedReport(t,r,o).then(i=>i(e,n))},duplicateOrganisationSavedReport(t,r,o,i){return s.duplicateOrganisationSavedReport(t,r,o,i).then(l=>l(e,n))},duplicateStoreSavedReport(t,r,o,i){return s.duplicateStoreSavedReport(t,r,o,i).then(l=>l(e,n))},getOrganisationSavedReport(t,r,o){return s.getOrganisationSavedReport(t,r,o).then(i=>i(e,n))},getPublicSavedReport(t,r){return s.getPublicSavedReport(t,r).then(o=>o(e,n))},getStoreSavedReport(t,r,o){return s.getStoreSavedReport(t,r,o).then(i=>i(e,n))},listOrganisationSavedReports(t,r,o,i){return s.listOrganisationSavedReports(t,r,o,i).then(l=>l(e,n))},listStoreSavedReports(t,r,o,i){return s.listStoreSavedReports(t,r,o,i).then(l=>l(e,n))},setOrganisationSavedReportVisibility(t,r,o,i){return s.setOrganisationSavedReportVisibility(t,r,o,i).then(l=>l(e,n))},setStoreSavedReportVisibility(t,r,o,i){return s.setStoreSavedReportVisibility(t,r,o,i).then(l=>l(e,n))},updateOrganisationSavedReport(t,r,o,i){return s.updateOrganisationSavedReport(t,r,o,i).then(l=>l(e,n))},updateStoreSavedReport(t,r,o,i){return s.updateStoreSavedReport(t,r,o,i).then(l=>l(e,n))}}},wt=class extends I{createOrganisationSavedReport(n,e,s){return w(this.configuration).createOrganisationSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}createStoreSavedReport(n,e,s){return w(this.configuration).createStoreSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}deleteOrganisationSavedReport(n,e,s){return w(this.configuration).deleteOrganisationSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}deleteStoreSavedReport(n,e,s){return w(this.configuration).deleteStoreSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}duplicateOrganisationSavedReport(n,e,s,t){return w(this.configuration).duplicateOrganisationSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}duplicateStoreSavedReport(n,e,s,t){return w(this.configuration).duplicateStoreSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}getOrganisationSavedReport(n,e,s){return w(this.configuration).getOrganisationSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}getPublicSavedReport(n,e){return w(this.configuration).getPublicSavedReport(n,e).then(s=>s(this.axios,this.basePath))}getStoreSavedReport(n,e,s){return w(this.configuration).getStoreSavedReport(n,e,s).then(t=>t(this.axios,this.basePath))}listOrganisationSavedReports(n,e,s,t){return w(this.configuration).listOrganisationSavedReports(n,e,s,t).then(r=>r(this.axios,this.basePath))}listStoreSavedReports(n,e,s,t){return w(this.configuration).listStoreSavedReports(n,e,s,t).then(r=>r(this.axios,this.basePath))}setOrganisationSavedReportVisibility(n,e,s,t){return w(this.configuration).setOrganisationSavedReportVisibility(n,e,s,t).then(r=>r(this.axios,this.basePath))}setStoreSavedReportVisibility(n,e,s,t){return w(this.configuration).setStoreSavedReportVisibility(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateOrganisationSavedReport(n,e,s,t){return w(this.configuration).updateOrganisationSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateStoreSavedReport(n,e,s,t){return w(this.configuration).updateStoreSavedReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}},lr=function(a){return{addShiftAtVenue:async(n,e,s={})=>{c("addShiftAtVenue","businessId",n),c("addShiftAtVenue","addShiftDto",e);let t="/api/v2/businesses/{businessId}/shifts".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},changeShiftAtVenue:async(n,e,s,t={})=>{c("changeShiftAtVenue","businessId",n),c("changeShiftAtVenue","shiftId",e),c("changeShiftAtVenue","changeShiftDto",s);let r="/api/v2/businesses/{businessId}/shifts/{shiftId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{shiftId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},clockIn:async(n,e,s={})=>{c("clockIn","businessId",n),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},clockOut:async(n,e,s={})=>{c("clockOut","businessId",n),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getTodayShift:async(n,e,s={})=>{c("getTodayShift","businessId",n),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},lockTill:async(n,e={})=>{c("lockTill","businessId",n);let s="/api/v2/businesses/{businessId}/shifts/lock".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},removeShiftAtVenue:async(n,e,s={})=>{c("removeShiftAtVenue","businessId",n),c("removeShiftAtVenue","shiftId",e);let t="/api/v2/businesses/{businessId}/shifts/{shiftId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{shiftId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},staffHoursAtVenue:async(n,e,s,t,r,o={})=>{c("staffHoursAtVenue","businessId",n),c("staffHoursAtVenue","from",e),c("staffHoursAtVenue","to",s);let i="/api/v2/businesses/{businessId}/shifts/hours".replace("{businessId}",encodeURIComponent(String(n))),l=new URL(i,g),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},p={},f={};await A(p,a),e!==void 0&&(f.from=e),s!==void 0&&(f.to=s),t&&(f.employeeIds=t),r!==void 0&&(f.status=r),y(l,f);let C=u&&u.headers?u.headers:{};return d.headers={...p,...C,...o.headers},{url:h(l),options:d}},staffHoursFileAtVenue:async(n,e,s,t,r,o,i,l={})=>{c("staffHoursFileAtVenue","businessId",n),c("staffHoursFileAtVenue","from",e),c("staffHoursFileAtVenue","to",s);let u="/api/v2/businesses/{businessId}/shifts/hours/file".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};await A(C,a),e!==void 0&&(x.from=e),s!==void 0&&(x.to=s),t&&(x.employeeIds=t),r!==void 0&&(x.status=r),o!==void 0&&(x.language=o),i!==void 0&&(x.format=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},unlock:async(n,e,s={})=>{c("unlock","businessId",n),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},unlockTillWithPin:async(n,e,s={})=>{c("unlockTillWithPin","businessId",n),c("unlockTillWithPin","xPosPin",e);let t="/api/v2/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}}}},_=function(a){let n=lr(a);return{async addShiftAtVenue(e,s,t){let r=await n.addShiftAtVenue(e,s,t);return P(r,R,m,a)},async changeShiftAtVenue(e,s,t,r){let o=await n.changeShiftAtVenue(e,s,t,r);return P(o,R,m,a)},async clockIn(e,s,t){let r=await n.clockIn(e,s,t);return P(r,R,m,a)},async clockOut(e,s,t){let r=await n.clockOut(e,s,t);return P(r,R,m,a)},async getTodayShift(e,s,t){let r=await n.getTodayShift(e,s,t);return P(r,R,m,a)},async lockTill(e,s){let t=await n.lockTill(e,s);return P(t,R,m,a)},async removeShiftAtVenue(e,s,t){let r=await n.removeShiftAtVenue(e,s,t);return P(r,R,m,a)},async staffHoursAtVenue(e,s,t,r,o,i){let l=await n.staffHoursAtVenue(e,s,t,r,o,i);return P(l,R,m,a)},async staffHoursFileAtVenue(e,s,t,r,o,i,l,u){let d=await n.staffHoursFileAtVenue(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async unlock(e,s,t){let r=await n.unlock(e,s,t);return P(r,R,m,a)},async unlockTillWithPin(e,s,t){let r=await n.unlockTillWithPin(e,s,t);return P(r,R,m,a)}}},al=function(a,n,e){let s=_(a);return{addShiftAtVenue(t,r,o){return s.addShiftAtVenue(t,r,o).then(i=>i(e,n))},changeShiftAtVenue(t,r,o,i){return s.changeShiftAtVenue(t,r,o,i).then(l=>l(e,n))},clockIn(t,r,o){return s.clockIn(t,r,o).then(i=>i(e,n))},clockOut(t,r,o){return s.clockOut(t,r,o).then(i=>i(e,n))},getTodayShift(t,r,o){return s.getTodayShift(t,r,o).then(i=>i(e,n))},lockTill(t,r){return s.lockTill(t,r).then(o=>o(e,n))},removeShiftAtVenue(t,r,o){return s.removeShiftAtVenue(t,r,o).then(i=>i(e,n))},staffHoursAtVenue(t,r,o,i,l,u){return s.staffHoursAtVenue(t,r,o,i,l,u).then(d=>d(e,n))},staffHoursFileAtVenue(t,r,o,i,l,u,d,p){return s.staffHoursFileAtVenue(t,r,o,i,l,u,d,p).then(f=>f(e,n))},unlock(t,r,o){return s.unlock(t,r,o).then(i=>i(e,n))},unlockTillWithPin(t,r,o){return s.unlockTillWithPin(t,r,o).then(i=>i(e,n))}}},Ft=class extends I{addShiftAtVenue(n,e,s){return _(this.configuration).addShiftAtVenue(n,e,s).then(t=>t(this.axios,this.basePath))}changeShiftAtVenue(n,e,s,t){return _(this.configuration).changeShiftAtVenue(n,e,s,t).then(r=>r(this.axios,this.basePath))}clockIn(n,e,s){return _(this.configuration).clockIn(n,e,s).then(t=>t(this.axios,this.basePath))}clockOut(n,e,s){return _(this.configuration).clockOut(n,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(n,e,s){return _(this.configuration).getTodayShift(n,e,s).then(t=>t(this.axios,this.basePath))}lockTill(n,e){return _(this.configuration).lockTill(n,e).then(s=>s(this.axios,this.basePath))}removeShiftAtVenue(n,e,s){return _(this.configuration).removeShiftAtVenue(n,e,s).then(t=>t(this.axios,this.basePath))}staffHoursAtVenue(n,e,s,t,r,o){return _(this.configuration).staffHoursAtVenue(n,e,s,t,r,o).then(i=>i(this.axios,this.basePath))}staffHoursFileAtVenue(n,e,s,t,r,o,i,l){return _(this.configuration).staffHoursFileAtVenue(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}unlock(n,e,s){return _(this.configuration).unlock(n,e,s).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(n,e,s){return _(this.configuration).unlockTillWithPin(n,e,s).then(t=>t(this.axios,this.basePath))}},ur=function(a){return{deactivateStation:async(n={})=>{let e="/api/v1/station/deactivate",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},getStation:async(n={})=>{let e="/api/v1/station",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},syncStation:async(n,e={})=>{c("syncStation","syncStationDto",n);let s="/api/v1/station/sync",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},Ae=function(a){let n=ur(a);return{async deactivateStation(e){let s=await n.deactivateStation(e);return P(s,R,m,a)},async getStation(e){let s=await n.getStation(e);return P(s,R,m,a)},async syncStation(e,s){let t=await n.syncStation(e,s);return P(t,R,m,a)}}},il=function(a,n,e){let s=Ae(a);return{deactivateStation(t){return s.deactivateStation(t).then(r=>r(e,n))},getStation(t){return s.getStation(t).then(r=>r(e,n))},syncStation(t,r){return s.syncStation(t,r).then(o=>o(e,n))}}},Lt=class extends I{deactivateStation(n){return Ae(this.configuration).deactivateStation(n).then(e=>e(this.axios,this.basePath))}getStation(n){return Ae(this.configuration).getStation(n).then(e=>e(this.axios,this.basePath))}syncStation(n,e){return Ae(this.configuration).syncStation(n,e).then(s=>s(this.axios,this.basePath))}},dr=function(a){return{changeStoreApp:async(n,e,s,t={})=>{c("changeStoreApp","businessId",n),c("changeStoreApp","app",e),c("changeStoreApp","changeStoreAppDto",s);let r="/api/v6/businesses/{businessId}/apps/{app}".replace("{businessId}",encodeURIComponent(String(n))).replace("{app}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},getStoreApps:async(n,e={})=>{c("getStoreApps","businessId",n);let s="/api/v6/businesses/{businessId}/apps".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},startStoreApps:async(n,e,s={})=>{c("startStoreApps","businessId",n),c("startStoreApps","startStoreAppsDto",e);let t="/api/v6/businesses/{businessId}/apps".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}}}},be=function(a){let n=dr(a);return{async changeStoreApp(e,s,t,r){let o=await n.changeStoreApp(e,s,t,r);return P(o,R,m,a)},async getStoreApps(e,s){let t=await n.getStoreApps(e,s);return P(t,R,m,a)},async startStoreApps(e,s,t){let r=await n.startStoreApps(e,s,t);return P(r,R,m,a)}}},ll=function(a,n,e){let s=be(a);return{changeStoreApp(t,r,o,i){return s.changeStoreApp(t,r,o,i).then(l=>l(e,n))},getStoreApps(t,r){return s.getStoreApps(t,r).then(o=>o(e,n))},startStoreApps(t,r,o){return s.startStoreApps(t,r,o).then(i=>i(e,n))}}},Gt=class extends I{changeStoreApp(n,e,s,t){return be(this.configuration).changeStoreApp(n,e,s,t).then(r=>r(this.axios,this.basePath))}getStoreApps(n,e){return be(this.configuration).getStoreApps(n,e).then(s=>s(this.axios,this.basePath))}startStoreApps(n,e,s){return be(this.configuration).startStoreApps(n,e,s).then(t=>t(this.axios,this.basePath))}},cr=function(a){return{connectTerminal:async(n,e={})=>{c("connectTerminal","connectTerminalDto",n);let s="/api/v1/terminal/connect",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},disconnectTerminal:async(n={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},discoverTerminal:async(n,e={})=>{c("discoverTerminal","discoverTerminalDto",n);let s="/api/v1/terminal/discover",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},fe=function(a){let n=cr(a);return{async connectTerminal(e,s){let t=await n.connectTerminal(e,s);return P(t,R,m,a)},async disconnectTerminal(e){let s=await n.disconnectTerminal(e);return P(s,R,m,a)},async discoverTerminal(e,s){let t=await n.discoverTerminal(e,s);return P(t,R,m,a)}}},ul=function(a,n,e){let s=fe(a);return{connectTerminal(t,r){return s.connectTerminal(t,r).then(o=>o(e,n))},disconnectTerminal(t){return s.disconnectTerminal(t).then(r=>r(e,n))},discoverTerminal(t,r){return s.discoverTerminal(t,r).then(o=>o(e,n))}}},Nt=class extends I{connectTerminal(n,e){return fe(this.configuration).connectTerminal(n,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(n){return fe(this.configuration).disconnectTerminal(n).then(e=>e(this.axios,this.basePath))}discoverTerminal(n,e){return fe(this.configuration).discoverTerminal(n,e).then(s=>s(this.axios,this.basePath))}},pr=function(a){return{getMyVenue:async(n,e={})=>{c("getMyVenue","businessId",n);let s="/api/v3/user/venues/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getUserBusinessV1:async(n={})=>{let e="/api/v1/user/business",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},getUserBusinessV2:async(n={})=>{let e="/api/v2/user/business",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},listMyVenues:async(n={})=>{let e="/api/v3/user/venues",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await A(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}}}},me=function(a){let n=pr(a);return{async getMyVenue(e,s){let t=await n.getMyVenue(e,s);return P(t,R,m,a)},async getUserBusinessV1(e){let s=await n.getUserBusinessV1(e);return P(s,R,m,a)},async getUserBusinessV2(e){let s=await n.getUserBusinessV2(e);return P(s,R,m,a)},async listMyVenues(e){let s=await n.listMyVenues(e);return P(s,R,m,a)}}},dl=function(a,n,e){let s=me(a);return{getMyVenue(t,r){return s.getMyVenue(t,r).then(o=>o(e,n))},getUserBusinessV1(t){return s.getUserBusinessV1(t).then(r=>r(e,n))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(r=>r(e,n))},listMyVenues(t){return s.listMyVenues(t).then(r=>r(e,n))}}},_t=class extends I{getMyVenue(n,e){return me(this.configuration).getMyVenue(n,e).then(s=>s(this.axios,this.basePath))}getUserBusinessV1(n){return me(this.configuration).getUserBusinessV1(n).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(n){return me(this.configuration).getUserBusinessV2(n).then(e=>e(this.axios,this.basePath))}listMyVenues(n){return me(this.configuration).listMyVenues(n).then(e=>e(this.axios,this.basePath))}},mr=function(a){return{upsert:async(n,e={})=>{c("upsert","vendureSellerUpsertDto",n);let s="/api/v1/vendure/seller/upsert",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},ns=function(a){let n=mr(a);return{async upsert(e,s){let t=await n.upsert(e,s);return P(t,R,m,a)}}},cl=function(a,n,e){let s=ns(a);return{upsert(t,r){return s.upsert(t,r).then(o=>o(e,n))}}},Kt=class extends I{upsert(n,e){return ns(this.configuration).upsert(n,e).then(s=>s(this.axios,this.basePath))}},gr=function(a){return{changeVenueKiosk:async(n,e,s,t={})=>{c("changeVenueKiosk","businessId",n),c("changeVenueKiosk","stationId",e),c("changeVenueKiosk","changeKioskDto",s);let r="/api/v2/venues/{businessId}/kiosks/{stationId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{stationId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},claimVenueKiosk:async(n,e,s={})=>{c("claimVenueKiosk","businessId",n),c("claimVenueKiosk","claimKioskDto",e);let t="/api/v2/venues/{businessId}/kiosks".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createVenuePaymentTerminal:async(n,e,s={})=>{c("createVenuePaymentTerminal","businessId",n),c("createVenuePaymentTerminal","createPaymentTerminalDto",e);let t="/api/v2/venues/{businessId}/payment-terminals".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await A(l,a),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},linkVenueKioskTerminal:async(n,e,s,t={})=>{c("linkVenueKioskTerminal","businessId",n),c("linkVenueKioskTerminal","stationId",e),c("linkVenueKioskTerminal","linkKioskTerminalDto",s);let r="/api/v2/venues/{businessId}/kiosks/{stationId}/terminal".replace("{businessId}",encodeURIComponent(String(n))).replace("{stationId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}},listVenueKiosks:async(n,e={})=>{c("listVenueKiosks","businessId",n);let s="/api/v2/venues/{businessId}/kiosks".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listVenuePaymentTerminals:async(n,e={})=>{c("listVenuePaymentTerminals","businessId",n);let s="/api/v2/venues/{businessId}/payment-terminals".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await A(i,a),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},removeVenueKiosk:async(n,e,s={})=>{c("removeVenueKiosk","businessId",n),c("removeVenueKiosk","stationId",e);let t="/api/v2/venues/{businessId}/kiosks/{stationId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{stationId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},removeVenuePaymentTerminal:async(n,e,s={})=>{c("removeVenuePaymentTerminal","businessId",n),c("removeVenuePaymentTerminal","paymentTerminalId",e);let t="/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{paymentTerminalId}",encodeURIComponent(String(e))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await A(l,a),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},renameVenuePaymentTerminal:async(n,e,s,t={})=>{c("renameVenuePaymentTerminal","businessId",n),c("renameVenuePaymentTerminal","paymentTerminalId",e),c("renameVenuePaymentTerminal","renamePaymentTerminalDto",s);let r="/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{paymentTerminalId}",encodeURIComponent(String(e))),o=new URL(r,g),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await A(u,a),u["Content-Type"]="application/json",y(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...t.headers},l.data=b(s,l,a),{url:h(o),options:l}}}},$=function(a){let n=gr(a);return{async changeVenueKiosk(e,s,t,r){let o=await n.changeVenueKiosk(e,s,t,r);return P(o,R,m,a)},async claimVenueKiosk(e,s,t){let r=await n.claimVenueKiosk(e,s,t);return P(r,R,m,a)},async createVenuePaymentTerminal(e,s,t){let r=await n.createVenuePaymentTerminal(e,s,t);return P(r,R,m,a)},async linkVenueKioskTerminal(e,s,t,r){let o=await n.linkVenueKioskTerminal(e,s,t,r);return P(o,R,m,a)},async listVenueKiosks(e,s){let t=await n.listVenueKiosks(e,s);return P(t,R,m,a)},async listVenuePaymentTerminals(e,s){let t=await n.listVenuePaymentTerminals(e,s);return P(t,R,m,a)},async removeVenueKiosk(e,s,t){let r=await n.removeVenueKiosk(e,s,t);return P(r,R,m,a)},async removeVenuePaymentTerminal(e,s,t){let r=await n.removeVenuePaymentTerminal(e,s,t);return P(r,R,m,a)},async renameVenuePaymentTerminal(e,s,t,r){let o=await n.renameVenuePaymentTerminal(e,s,t,r);return P(o,R,m,a)}}},pl=function(a,n,e){let s=$(a);return{changeVenueKiosk(t,r,o,i){return s.changeVenueKiosk(t,r,o,i).then(l=>l(e,n))},claimVenueKiosk(t,r,o){return s.claimVenueKiosk(t,r,o).then(i=>i(e,n))},createVenuePaymentTerminal(t,r,o){return s.createVenuePaymentTerminal(t,r,o).then(i=>i(e,n))},linkVenueKioskTerminal(t,r,o,i){return s.linkVenueKioskTerminal(t,r,o,i).then(l=>l(e,n))},listVenueKiosks(t,r){return s.listVenueKiosks(t,r).then(o=>o(e,n))},listVenuePaymentTerminals(t,r){return s.listVenuePaymentTerminals(t,r).then(o=>o(e,n))},removeVenueKiosk(t,r,o){return s.removeVenueKiosk(t,r,o).then(i=>i(e,n))},removeVenuePaymentTerminal(t,r,o){return s.removeVenuePaymentTerminal(t,r,o).then(i=>i(e,n))},renameVenuePaymentTerminal(t,r,o,i){return s.renameVenuePaymentTerminal(t,r,o,i).then(l=>l(e,n))}}},Wt=class extends I{changeVenueKiosk(n,e,s,t){return $(this.configuration).changeVenueKiosk(n,e,s,t).then(r=>r(this.axios,this.basePath))}claimVenueKiosk(n,e,s){return $(this.configuration).claimVenueKiosk(n,e,s).then(t=>t(this.axios,this.basePath))}createVenuePaymentTerminal(n,e,s){return $(this.configuration).createVenuePaymentTerminal(n,e,s).then(t=>t(this.axios,this.basePath))}linkVenueKioskTerminal(n,e,s,t){return $(this.configuration).linkVenueKioskTerminal(n,e,s,t).then(r=>r(this.axios,this.basePath))}listVenueKiosks(n,e){return $(this.configuration).listVenueKiosks(n,e).then(s=>s(this.axios,this.basePath))}listVenuePaymentTerminals(n,e){return $(this.configuration).listVenuePaymentTerminals(n,e).then(s=>s(this.axios,this.basePath))}removeVenueKiosk(n,e,s){return $(this.configuration).removeVenueKiosk(n,e,s).then(t=>t(this.axios,this.basePath))}removeVenuePaymentTerminal(n,e,s){return $(this.configuration).removeVenuePaymentTerminal(n,e,s).then(t=>t(this.axios,this.basePath))}renameVenuePaymentTerminal(n,e,s,t){return $(this.configuration).renameVenuePaymentTerminal(n,e,s,t).then(r=>r(this.axios,this.basePath))}},yr=function(a){return{createVivaAppToAppPayment:async(n,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",n);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},getVivaSession:async(n,e={})=>{c("getVivaSession","id",n);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},listVivaSessions:async(n,e,s,t,r,o,i,l={})=>{c("listVivaSessions","businessId",n);let u="/api/v1/viva/sessions",d=new URL(u,g),p;a&&(p=a.baseOptions);let f={method:"GET",...p,...l},C={},x={};n!==void 0&&(x.businessId=n),e!==void 0&&(x.page=e),s!==void 0&&(x.rowPerPage=s),t!==void 0&&(x.terminalId=t),r!==void 0&&(x.timeSpan=r),o!==void 0&&(x.start=o),i!==void 0&&(x.end=i),y(d,x);let D=p&&p.headers?p.headers:{};return f.headers={...C,...D,...l.headers},{url:h(d),options:f}},refundVivaPayment:async(n,e,s={})=>{c("refundVivaPayment","vivaA2aRefundDto",n);let t="/api/v1/viva/refund",r=new URL(t,g),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(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:h(r),options:i}}}},ge=function(a){let n=yr(a);return{async createVivaAppToAppPayment(e,s){let t=await n.createVivaAppToAppPayment(e,s);return P(t,R,m,a)},async getVivaSession(e,s){let t=await n.getVivaSession(e,s);return P(t,R,m,a)},async listVivaSessions(e,s,t,r,o,i,l,u){let d=await n.listVivaSessions(e,s,t,r,o,i,l,u);return P(d,R,m,a)},async refundVivaPayment(e,s,t){let r=await n.refundVivaPayment(e,s,t);return P(r,R,m,a)}}},ml=function(a,n,e){let s=ge(a);return{createVivaAppToAppPayment(t,r){return s.createVivaAppToAppPayment(t,r).then(o=>o(e,n))},getVivaSession(t,r){return s.getVivaSession(t,r).then(o=>o(e,n))},listVivaSessions(t,r,o,i,l,u,d,p){return s.listVivaSessions(t,r,o,i,l,u,d,p).then(f=>f(e,n))},refundVivaPayment(t,r,o){return s.refundVivaPayment(t,r,o).then(i=>i(e,n))}}},jt=class extends I{createVivaAppToAppPayment(n,e){return ge(this.configuration).createVivaAppToAppPayment(n,e).then(s=>s(this.axios,this.basePath))}getVivaSession(n,e){return ge(this.configuration).getVivaSession(n,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(n,e,s,t,r,o,i,l){return ge(this.configuration).listVivaSessions(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(n,e,s){return ge(this.configuration).refundVivaPayment(n,e,s).then(t=>t(this.axios,this.basePath))}},hr=function(a){return{handleAssignmentWebhook:async(n,e={})=>{c("handleAssignmentWebhook","supabaseAssignmentHookDto",n);let s="/api/webhook/add-employee-assignments",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleBusinessWebhook:async(n,e={})=>{c("handleBusinessWebhook","supabaseBusinessHookDto",n);let s="/api/webhook/add-business",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleFoodoraEvent:async(n,e={})=>{c("handleFoodoraEvent","orderUpdateDto",n);let s="/api/webhook/order/event",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleKioskAutoReject:async(n,e={})=>{c("handleKioskAutoReject","kioskAutoRejectDto",n);let s="/api/webhook/kiosk-auto-reject",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleLoadEmployee:async(n,e={})=>{c("handleLoadEmployee","supabaseEmployeeHookDto",n);let s="/api/webhook/load-employee",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleNetsEvents:async(n,e={})=>{let s="/api/webhook/nets",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};n!=null&&(i["connectcloud-request-id"]=String(n)),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleNetsEventsV2:async(n,e={})=>{let s="/api/webhook/v2/nets",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};n!=null&&(i["connectcloud-request-id"]=String(n)),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleNetsSessionEvents:async(n,e={})=>{let s="/api/webhook/nets/payments",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};n!=null&&(i["connectcloud-request-id"]=String(n)),y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleNetsSessionEventsForClientToken:async(n,e,s={})=>{c("handleNetsSessionEventsForClientToken","clientToken",n);let t="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["connectcloud-request-id"]=String(e)),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},handlePreorderReminder:async(n,e={})=>{c("handlePreorderReminder","preOrderReminderDto",n);let s="/api/webhook/preorder-reminder",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleRoleWebhook:async(n,e={})=>{c("handleRoleWebhook","supabaseRoleHookDto",n);let s="/api/webhook/add-roles",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleShiftWebhook:async(n,e={})=>{c("handleShiftWebhook","supabaseShiftHookDto",n);let s="/api/webhook/add-employee-shifts",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleVivaEvents:async(n,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/verification",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleVivaSessionEvents:async(n,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/payments",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleWebhook:async(n,e={})=>{let s="/api/webhook/ship-day",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},handleWoltDriveEventByCountry:async(n,e,s={})=>{c("handleWoltDriveEventByCountry","country",n),c("handleWoltDriveEventByCountry","woltDriveWebhookDto",e);let t="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},handleWorldlineEvents:async(n={})=>{let e="/api/webhook/worldline/events",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},handleWorldlineSessionEvents:async(n={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},processDispatchTask:async(n,e,s={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",n),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};n!=null&&(l["x-cloudtasks-taskretrycount"]=String(n)),l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},processPosOrderActionsQueue:async(n,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",n);let s="/api/webhook/pos/order-actions/process",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},updateWoltProduct:async(n,e={})=>{c("updateWoltProduct","woltSwitchesTaskDto",n);let s="/api/webhook/wolt/product/edit",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},verifyVivaSessionWebhook:async(n={})=>{let e="/api/webhook/viva/payments",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}},verifyVivaWebhook:async(n={})=>{let e="/api/webhook/viva/verification",s=new URL(e,g),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};y(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:h(s),options:r}}}},E=function(a){let n=hr(a);return{async handleAssignmentWebhook(e,s){let t=await n.handleAssignmentWebhook(e,s);return P(t,R,m,a)},async handleBusinessWebhook(e,s){let t=await n.handleBusinessWebhook(e,s);return P(t,R,m,a)},async handleFoodoraEvent(e,s){let t=await n.handleFoodoraEvent(e,s);return P(t,R,m,a)},async handleKioskAutoReject(e,s){let t=await n.handleKioskAutoReject(e,s);return P(t,R,m,a)},async handleLoadEmployee(e,s){let t=await n.handleLoadEmployee(e,s);return P(t,R,m,a)},async handleNetsEvents(e,s){let t=await n.handleNetsEvents(e,s);return P(t,R,m,a)},async handleNetsEventsV2(e,s){let t=await n.handleNetsEventsV2(e,s);return P(t,R,m,a)},async handleNetsSessionEvents(e,s){let t=await n.handleNetsSessionEvents(e,s);return P(t,R,m,a)},async handleNetsSessionEventsForClientToken(e,s,t){let r=await n.handleNetsSessionEventsForClientToken(e,s,t);return P(r,R,m,a)},async handlePreorderReminder(e,s){let t=await n.handlePreorderReminder(e,s);return P(t,R,m,a)},async handleRoleWebhook(e,s){let t=await n.handleRoleWebhook(e,s);return P(t,R,m,a)},async handleShiftWebhook(e,s){let t=await n.handleShiftWebhook(e,s);return P(t,R,m,a)},async handleVivaEvents(e,s){let t=await n.handleVivaEvents(e,s);return P(t,R,m,a)},async handleVivaSessionEvents(e,s){let t=await n.handleVivaSessionEvents(e,s);return P(t,R,m,a)},async handleWebhook(e,s){let t=await n.handleWebhook(e,s);return P(t,R,m,a)},async handleWoltDriveEventByCountry(e,s,t){let r=await n.handleWoltDriveEventByCountry(e,s,t);return P(r,R,m,a)},async handleWorldlineEvents(e){let s=await n.handleWorldlineEvents(e);return P(s,R,m,a)},async handleWorldlineSessionEvents(e){let s=await n.handleWorldlineSessionEvents(e);return P(s,R,m,a)},async processDispatchTask(e,s,t){let r=await n.processDispatchTask(e,s,t);return P(r,R,m,a)},async processPosOrderActionsQueue(e,s){let t=await n.processPosOrderActionsQueue(e,s);return P(t,R,m,a)},async updateWoltProduct(e,s){let t=await n.updateWoltProduct(e,s);return P(t,R,m,a)},async verifyVivaSessionWebhook(e){let s=await n.verifyVivaSessionWebhook(e);return P(s,R,m,a)},async verifyVivaWebhook(e){let s=await n.verifyVivaWebhook(e);return P(s,R,m,a)}}},gl=function(a,n,e){let s=E(a);return{handleAssignmentWebhook(t,r){return s.handleAssignmentWebhook(t,r).then(o=>o(e,n))},handleBusinessWebhook(t,r){return s.handleBusinessWebhook(t,r).then(o=>o(e,n))},handleFoodoraEvent(t,r){return s.handleFoodoraEvent(t,r).then(o=>o(e,n))},handleKioskAutoReject(t,r){return s.handleKioskAutoReject(t,r).then(o=>o(e,n))},handleLoadEmployee(t,r){return s.handleLoadEmployee(t,r).then(o=>o(e,n))},handleNetsEvents(t,r){return s.handleNetsEvents(t,r).then(o=>o(e,n))},handleNetsEventsV2(t,r){return s.handleNetsEventsV2(t,r).then(o=>o(e,n))},handleNetsSessionEvents(t,r){return s.handleNetsSessionEvents(t,r).then(o=>o(e,n))},handleNetsSessionEventsForClientToken(t,r,o){return s.handleNetsSessionEventsForClientToken(t,r,o).then(i=>i(e,n))},handlePreorderReminder(t,r){return s.handlePreorderReminder(t,r).then(o=>o(e,n))},handleRoleWebhook(t,r){return s.handleRoleWebhook(t,r).then(o=>o(e,n))},handleShiftWebhook(t,r){return s.handleShiftWebhook(t,r).then(o=>o(e,n))},handleVivaEvents(t,r){return s.handleVivaEvents(t,r).then(o=>o(e,n))},handleVivaSessionEvents(t,r){return s.handleVivaSessionEvents(t,r).then(o=>o(e,n))},handleWebhook(t,r){return s.handleWebhook(t,r).then(o=>o(e,n))},handleWoltDriveEventByCountry(t,r,o){return s.handleWoltDriveEventByCountry(t,r,o).then(i=>i(e,n))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(r=>r(e,n))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(r=>r(e,n))},processDispatchTask(t,r,o){return s.processDispatchTask(t,r,o).then(i=>i(e,n))},processPosOrderActionsQueue(t,r){return s.processPosOrderActionsQueue(t,r).then(o=>o(e,n))},updateWoltProduct(t,r){return s.updateWoltProduct(t,r).then(o=>o(e,n))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(r=>r(e,n))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(r=>r(e,n))}}},Ht=class extends I{handleAssignmentWebhook(n,e){return E(this.configuration).handleAssignmentWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleBusinessWebhook(n,e){return E(this.configuration).handleBusinessWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleFoodoraEvent(n,e){return E(this.configuration).handleFoodoraEvent(n,e).then(s=>s(this.axios,this.basePath))}handleKioskAutoReject(n,e){return E(this.configuration).handleKioskAutoReject(n,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(n,e){return E(this.configuration).handleLoadEmployee(n,e).then(s=>s(this.axios,this.basePath))}handleNetsEvents(n,e){return E(this.configuration).handleNetsEvents(n,e).then(s=>s(this.axios,this.basePath))}handleNetsEventsV2(n,e){return E(this.configuration).handleNetsEventsV2(n,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEvents(n,e){return E(this.configuration).handleNetsSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(n,e,s){return E(this.configuration).handleNetsSessionEventsForClientToken(n,e,s).then(t=>t(this.axios,this.basePath))}handlePreorderReminder(n,e){return E(this.configuration).handlePreorderReminder(n,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(n,e){return E(this.configuration).handleRoleWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleShiftWebhook(n,e){return E(this.configuration).handleShiftWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleVivaEvents(n,e){return E(this.configuration).handleVivaEvents(n,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(n,e){return E(this.configuration).handleVivaSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleWebhook(n,e){return E(this.configuration).handleWebhook(n,e).then(s=>s(this.axios,this.basePath))}handleWoltDriveEventByCountry(n,e,s){return E(this.configuration).handleWoltDriveEventByCountry(n,e,s).then(t=>t(this.axios,this.basePath))}handleWorldlineEvents(n){return E(this.configuration).handleWorldlineEvents(n).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(n){return E(this.configuration).handleWorldlineSessionEvents(n).then(e=>e(this.axios,this.basePath))}processDispatchTask(n,e,s){return E(this.configuration).processDispatchTask(n,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(n,e){return E(this.configuration).processPosOrderActionsQueue(n,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(n,e){return E(this.configuration).updateWoltProduct(n,e).then(s=>s(this.axios,this.basePath))}verifyVivaSessionWebhook(n){return E(this.configuration).verifyVivaSessionWebhook(n).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(n){return E(this.configuration).verifyVivaWebhook(n).then(e=>e(this.axios,this.basePath))}},Pr=function(a){return{cancelPayment:async(n,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",n);let s="/api/v1/worldline/payment/cancel",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createPayment:async(n,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",n);let s="/api/v1/worldline/payment",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}},createRefund:async(n,e={})=>{c("createRefund","createWorldlineRefundDto",n);let s="/api/v1/worldline/refund",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},xe=function(a){let n=Pr(a);return{async cancelPayment(e,s){let t=await n.cancelPayment(e,s);return P(t,R,m,a)},async createPayment(e,s){let t=await n.createPayment(e,s);return P(t,R,m,a)},async createRefund(e,s){let t=await n.createRefund(e,s);return P(t,R,m,a)}}},yl=function(a,n,e){let s=xe(a);return{cancelPayment(t,r){return s.cancelPayment(t,r).then(o=>o(e,n))},createPayment(t,r){return s.createPayment(t,r).then(o=>o(e,n))},createRefund(t,r){return s.createRefund(t,r).then(o=>o(e,n))}}},Qt=class extends I{cancelPayment(n,e){return xe(this.configuration).cancelPayment(n,e).then(s=>s(this.axios,this.basePath))}createPayment(n,e){return xe(this.configuration).createPayment(n,e).then(s=>s(this.axios,this.basePath))}createRefund(n,e){return xe(this.configuration).createRefund(n,e).then(s=>s(this.axios,this.basePath))}},Rr=function(a){return{createPaymentRequest:async(n,e,s={})=>{c("createPaymentRequest","terminalId",n),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},createRefundRequest:async(n,e,s={})=>{c("createRefundRequest","terminalId",n),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:h(r),options:i}},getPaymentResult:async(n,e={})=>{c("getPaymentResult","operationId",n);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},getTerminalAuthContext:async(n,e,s={})=>{c("getTerminalAuthContext","terminalId",n),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getTerminalContext:async(n,e,s={})=>{c("getTerminalContext","terminalId",n),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,g),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:h(r),options:i}},getTerminalState:async(n,e={})=>{c("getTerminalState","terminalId",n);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(n))),t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};y(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:h(t),options:o}},handleCallback:async(n,e={})=>{let s="/api/v2/worldline/internal/callback",t=new URL(s,g),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:h(t),options:o}}}},J=function(a){let n=Rr(a);return{async createPaymentRequest(e,s,t){let r=await n.createPaymentRequest(e,s,t);return P(r,R,m,a)},async createRefundRequest(e,s,t){let r=await n.createRefundRequest(e,s,t);return P(r,R,m,a)},async getPaymentResult(e,s){let t=await n.getPaymentResult(e,s);return P(t,R,m,a)},async getTerminalAuthContext(e,s,t){let r=await n.getTerminalAuthContext(e,s,t);return P(r,R,m,a)},async getTerminalContext(e,s,t){let r=await n.getTerminalContext(e,s,t);return P(r,R,m,a)},async getTerminalState(e,s){let t=await n.getTerminalState(e,s);return P(t,R,m,a)},async handleCallback(e,s){let t=await n.handleCallback(e,s);return P(t,R,m,a)}}},hl=function(a,n,e){let s=J(a);return{createPaymentRequest(t,r,o){return s.createPaymentRequest(t,r,o).then(i=>i(e,n))},createRefundRequest(t,r,o){return s.createRefundRequest(t,r,o).then(i=>i(e,n))},getPaymentResult(t,r){return s.getPaymentResult(t,r).then(o=>o(e,n))},getTerminalAuthContext(t,r,o){return s.getTerminalAuthContext(t,r,o).then(i=>i(e,n))},getTerminalContext(t,r,o){return s.getTerminalContext(t,r,o).then(i=>i(e,n))},getTerminalState(t,r){return s.getTerminalState(t,r).then(o=>o(e,n))},handleCallback(t,r){return s.handleCallback(t,r).then(o=>o(e,n))}}},$t=class extends I{createPaymentRequest(n,e,s){return J(this.configuration).createPaymentRequest(n,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(n,e,s){return J(this.configuration).createRefundRequest(n,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(n,e){return J(this.configuration).getPaymentResult(n,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(n,e,s){return J(this.configuration).getTerminalAuthContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(n,e,s){return J(this.configuration).getTerminalContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(n,e){return J(this.configuration).getTerminalState(n,e).then(s=>s(this.axios,this.basePath))}handleCallback(n,e){return J(this.configuration).handleCallback(n,e).then(s=>s(this.axios,this.basePath))}};var os=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(n={}){this.apiKey=n.apiKey,this.username=n.username,this.password=n.password,this.accessToken=n.accessToken,this.basePath=n.basePath,this.baseOptions=n.baseOptions,this.formDataCtor=n.formDataCtor}isJsonMime(n){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return n!==null&&(e.test(n)||n.toLowerCase()==="application/json-patch+json")}};var Ar={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 we(a){return Ar[a.toUpperCase()]??2}function Ce(a){return 10**we(a)}function xl(a,n){if(!Number.isFinite(a))return Math.round(a*Ce(n));let[e,s="0"]=String(a).split("e");return Math.round(+`${e}e${Number(s)+we(n)}`)}function br(a,n){return a/Ce(n)}function Cl(a,n,e={}){let s=we(a.currency);return new Intl.NumberFormat(n,{style:"currency",currency:a.currency.toUpperCase(),currencyDisplay:e.currencyDisplay??"symbol",signDisplay:e.signDisplay??"auto",minimumFractionDigits:s,maximumFractionDigits:s}).format(br(a.amount,a.currency))}function Dl(a,n){let e=n?.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 Vl={getMultiplier(a){return Ce(a)}};var fr={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 xr(a){if(typeof Intl.Locale=="function")try{return new Intl.Locale(`und-${a}`).maximize().language}catch{return}}function vl(a){if(!a)return{cashRounding:null,customerLanguages:["en"]};let n=a.toUpperCase(),e=fr[n]??{},s=xr(n);return{cashRounding:e.cashRounding??null,customerLanguages:e.customerLanguages??(s&&s!=="und"?[...new Set([s,"en"])]:["en"])}}function Tl(a,n){let e=a.split("-")[0].toLowerCase();if(!n)return e;let s=`${e}-${n.toUpperCase()}`;return Intl.NumberFormat.supportedLocalesOf([s]).length>0?s:e}import De from"lodash";var Fe=a=>De.orderBy(a,["rank","id"],["asc","asc"]),Cr=a=>{let n=a.subcategories;return Array.isArray(n)?n:[]},Dr=(a,n)=>({...a,colorCode:a.colorCode??n}),Sr=(a,n)=>De.compact(a.map(e=>n.get(e))),as=(a,n)=>a.flatMap(e=>{let s=n[e];return s?[e,...as(s.childIds,n)]:[]}),is=(a,n)=>a.flatMap(e=>{let s=n[e];return s?.enabled?[e,...is(s.childIds,n)]:[]}),El=a=>{let n=new Map,e={},s={},t=Fe(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return n.set(d,Dr(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),p=(C,x)=>{let D=String(C.id),O=o(C.products,u),v=Fe(Cr(C)).map(q=>p(q,D));return s[D]={id:D,name:C.name,rank:C.rank??0,enabled:!!C.enabled,parentCategoryId:l,parentSubcategoryId:x,productIds:O,childIds:v},D},f=Fe(i.subcategories??[]).map(C=>p(C,null));e[l]={...i,productIds:d,subcategoryIds:f}}),{sortedCategories:t,productMap:n,categoriesById:e,subcategoriesById:s,categoryIdsOrder:r}},kl=(a,n,e,s)=>{let t=n[a];if(!t)return[];let r=is(t.subcategoryIds,e),o=De.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return Sr(o,s)},Ml=(a,n,e)=>{let s=n[a];if(!s)return[];let t=as(s.subcategoryIds,e);return De.compact(t.map(r=>e[r]))};var Or="2.20.0";export{Lr as ABLYEVENT,Le as ActionPasscodesApi,us as ActionPasscodesApiAxiosParamCreator,ii as ActionPasscodesApiFactory,zt as ActionPasscodesApiFp,Gr as ActionsEnum,Ge as AnalyticsDashboardsApi,ds as AnalyticsDashboardsApiAxiosParamCreator,li as AnalyticsDashboardsApiFactory,ie as AnalyticsDashboardsApiFp,Ne as AuthApi,cs as AuthApiAxiosParamCreator,ui as AuthApiFactory,le as AuthApiFp,_r as AutonomousVehicleType,Kr as BasketNotPricedReason,_e as BusinessApi,ps as BusinessApiAxiosParamCreator,di as BusinessApiFactory,k as BusinessApiFp,Wr as BusinessBackgroundType,jr as BusinessEventAction,Hr as BusinessEventType,Qr as BusinessPaymentIntegrationType,Ke as BusinessScheduleApi,ms as BusinessScheduleApiAxiosParamCreator,ci as BusinessScheduleApiFactory,Yt as BusinessScheduleApiFp,$r as BusinessStatusEnum,zr as CashLogReason,Yr as CashLogType,We as CashManagementApi,gs as CashManagementApiAxiosParamCreator,pi as CashManagementApiFactory,ee as CashManagementApiFp,je as CashManagementV6Api,ys as CashManagementV6ApiAxiosParamCreator,mi as CashManagementV6ApiFactory,Xt as CashManagementV6ApiFp,Xr as CashSessionStatus,He as CashSessionV2Api,hs as CashSessionV2ApiAxiosParamCreator,gi as CashSessionV2ApiFactory,Zt as CashSessionV2ApiFp,Zr as CashSignalType,Jr as CdsSessionRole,en as ChannelEnum,Qe as ChannelMenuApi,Ps as ChannelMenuApiAxiosParamCreator,yi as ChannelMenuApiFactory,he as ChannelMenuApiFp,tn as ChargeStatusEnum,sn as CheckoutModelEnum,nn as ConditionType,$e as ConfigManagementApi,Rs as ConfigManagementApiAxiosParamCreator,hi as ConfigManagementApiFactory,M as ConfigManagementApiFp,os as Configuration,on as ConsumptionType,an as CouponRefusal,ze as CouponsApi,As as CouponsApiAxiosParamCreator,Pi as CouponsApiFactory,Oe as CouponsApiFp,Ye as CoursesApi,bs as CoursesApiAxiosParamCreator,Ri as CoursesApiFactory,Ve as CoursesApiFp,ln as CredentialType,un as CurrencyCode,Vl as CurrencyRegistry,dn as DatabaseEventType,cn as DayOfWeek,pn as DeliveryCourierProvider,mn as DeliveryIntentAction,Xe as DeliveryIntentApi,fs as DeliveryIntentApiAxiosParamCreator,Ai as DeliveryIntentApiFactory,Ie as DeliveryIntentApiFp,gn as DeliveryIntentStatus,yn as DeliveryPlatformConnection,hn as DeliveryPlatformOpsConnect,Pn as DeliveryStatus,Rn as DeliveryType,An as DeviceType,bn as DiscountScope,fn as DiscountScopeType,xn as DiscountSourceType,Cn as DiscountType,Ze as DisplayApi,xs as DisplayApiAxiosParamCreator,bi as DisplayApiFactory,ue as DisplayApiFp,Je as EmployeeRolesApi,Cs as EmployeeRolesApiAxiosParamCreator,fi as EmployeeRolesApiFactory,re as EmployeeRolesApiFp,et as EmployeesApi,Ds as EmployeesApiAxiosParamCreator,xi as EmployeesApiFactory,ne as EmployeesApiFp,Dn as EntityType,Va as ErrorEnum,Nr as EventTypeEnum,Sn as FeeType,On as FileFormat,tt as FloorPlanApi,Ss as FloorPlanApiAxiosParamCreator,Ci as FloorPlanApiFactory,F as FloorPlanApiFp,Vn as GiftCardChannel,In as GiftCardDesign,vn as GiftCardEmailKind,Tn as GiftCardEmailStatus,qn as GiftCardErrorCode,Un as GiftCardHistoryKind,En as GiftCardIssue,kn as GiftCardLanguage,Mn as GiftCardState,Bn as GiftCardStatus,st as GiftCardsApi,Os as GiftCardsApiAxiosParamCreator,Di as GiftCardsApiFactory,L as GiftCardsApiFp,rt as GiftcardApi,Vs as GiftcardApiAxiosParamCreator,Si as GiftcardApiFactory,ve as GiftcardApiFp,nt as HistoryApi,Is as HistoryApiAxiosParamCreator,Oi as HistoryApiFactory,Te as HistoryApiFp,ot as HistoryV6Api,vs as HistoryV6ApiAxiosParamCreator,Vi as HistoryV6ApiFactory,Pe as HistoryV6ApiFp,wn as IngredientSectionHeadingCode,Fn as IntegrationType,at as InternalGiftCardsApi,Ts as InternalGiftCardsApiAxiosParamCreator,Ii as InternalGiftCardsApiFactory,de as InternalGiftCardsApiFp,it as InvoiceCompaniesApi,qs as InvoiceCompaniesApiAxiosParamCreator,vi as InvoiceCompaniesApiFactory,te as InvoiceCompaniesApiFp,lt as KDSApi,Us as KDSApiAxiosParamCreator,Ti as KDSApiFactory,K as KDSApiFp,Ln as KDSEVENTNAME,Gn as KdsBulkReadySkipReason,Nn as KdsOrderType,_n as KioskDeviceType,Kn as KioskEventType,Wn as KioskLayout,ut as KiosksApi,Es as KiosksApiAxiosParamCreator,qi as KiosksApiFactory,qe as KiosksApiFp,jn as KitchenItemStatus,Hn as KitchenStatus,Qn as LocatorType,$n as LoyaltyActionKey,zn as LoyaltyCatalogType,Yn as LoyaltyChannel,dt as LoyaltyCommerceApi,ks as LoyaltyCommerceApiAxiosParamCreator,Ui as LoyaltyCommerceApiFactory,Jt as LoyaltyCommerceApiFp,ct as LoyaltyIntegerationsApi,Ms as LoyaltyIntegerationsApiAxiosParamCreator,Ei as LoyaltyIntegerationsApiFactory,N as LoyaltyIntegerationsApiFp,Xn as LoyaltyPerkStatus,Zn as LoyaltyRedemptionStatus,Jn as LoyaltyRestoreRequestStatus,eo as LoyaltyRewardType,to as LoyaltyRuleActionType,so as LoyaltyRuleApplicationMode,ro as LoyaltyRuleConditionType,no as LoyaltyRuleFulfillmentMode,oo as LoyaltyRuleSelection,ao as LoyaltyRuleStackingMode,io as LoyaltyRuleTargetType,pt as MCPApi,Bs as MCPApiAxiosParamCreator,ki as MCPApiFactory,Re as MCPApiFp,Or as MUNCHI_CORE_VERSION,mt as MenuApi,ws as MenuApiAxiosParamCreator,Mi as MenuApiFactory,Ue as MenuApiFp,lo as MenuType,gt as MunchiGiftCardApi,Fs as MunchiGiftCardApiAxiosParamCreator,Bi as MunchiGiftCardApiFactory,oe as MunchiGiftCardApiFp,uo as NetsRevertMethod,co as NexiPauseReason,yt as NotificationApi,Ls as NotificationApiAxiosParamCreator,wi as NotificationApiFactory,Ee as NotificationApiFp,po as OperatingMode,ht as OpsApi,Gs as OpsApiAxiosParamCreator,Fi as OpsApiFactory,ae as OpsApiFp,rn as OrderCollectionEnum,Pt as OrderCompletionApi,Ns as OrderCompletionApiAxiosParamCreator,Li as OrderCompletionApiFactory,es as OrderCompletionApiFp,mo as OrderFormat,Rt as OrderInternalApi,_s as OrderInternalApiAxiosParamCreator,Gi as OrderInternalApiFactory,ts as OrderInternalApiFp,go as OrderMode,yo as OrderRefundStatus,ho as OrderSource,Po as OrderStatus,Ro as OrderStatusEnum,Ao as OrderType,bo as OrderTypePOS,At as OrdersApi,Ks as OrdersApiAxiosParamCreator,Ni as OrdersApiFactory,B as OrdersApiFp,bt as POSPermissionsApi,Ws as POSPermissionsApiAxiosParamCreator,_i as POSPermissionsApiFactory,ss as POSPermissionsApiFp,ft as POSSessionApi,js as POSSessionApiAxiosParamCreator,Ki as POSSessionApiFactory,rs as POSSessionApiFp,xt as PayTerminalApi,Hs as PayTerminalApiAxiosParamCreator,Wi as PayTerminalApiFactory,Y as PayTerminalApiFp,fo as PayTerminalSessionRole,Ct as PaymentApi,Qs as PaymentApiAxiosParamCreator,ji as PaymentApiFactory,X as PaymentApiFp,xo as PaymentApp,Co as PaymentCheckoutFlow,Do as PaymentEventType,So as PaymentFailureCode,Oo as PaymentMethod,Dt as PaymentMethodsApi,$s as PaymentMethodsApiAxiosParamCreator,Hi as PaymentMethodsApiFactory,W as PaymentMethodsApiFp,Vo as PaymentOutcomeStatus,Io as PaymentProvider,vo as PaymentProviderEnum,To as PaymentReportingBucket,St as PaymentSessionApi,zs as PaymentSessionApiAxiosParamCreator,Qi as PaymentSessionApiFactory,U as PaymentSessionApiFp,qo as PaymentSessionPurpose,Uo as PaymentSessionStatus,Eo as PaymentStatus,ko as PaymentSurchargePaidBy,Mo as PaymentTypeEnum,Bo as PeriodPreset,wo as PosBulkOrderStatus,Fo as PosBulkStatusSkipReason,Lo as PosDiscountTargetType,Go as PosDiscountType,No as PosPaymentStatus,_o as PosPaymentType,Ko as PosPermission,Wo as PosPermissionGroup,jo as PosPermissionKind,Ho as PreorderStatus,Qo as PriceType,$o as PrinterConnectionType,zo as PrinterModelType,Yo as PrinterTypeEnum,Ot as PrintersApi,Ys as PrintersApiAxiosParamCreator,$i as PrintersApiFactory,ke as PrintersApiFp,Vt as ProductApi,Xs as ProductApiAxiosParamCreator,zi as ProductApiFactory,ce as ProductApiFp,Xo as ProductAvailability,Zo as ProductDetailLayout,Jo as PromotionDiscountType,It as PromotionsApi,Zs as PromotionsApiAxiosParamCreator,Yi as PromotionsApiFactory,pe as PromotionsApiFp,vt as ProviderApi,Js as ProviderApiAxiosParamCreator,Xi as ProviderApiFactory,Q as ProviderApiFp,ea as ProviderEnum,ta as PubSubAction,sa as PubSubTarget,ra as ReadyMadeReport,Tt as ReceiptFooterApi,er as ReceiptFooterApiAxiosParamCreator,Zi as ReceiptFooterApiFactory,Me as ReceiptFooterApiFp,na as ReceiptFooterDocumentType,oa as RecordManualStatus,aa as RefundFailureReasonKey,ia as RefundMode,la as RefundOverallStatus,ua as RefundStatusEnum,da as RefundStepStatus,qt as RefundsApi,tr as RefundsApiAxiosParamCreator,Ji as RefundsApiFactory,Z as RefundsApiFp,Ut as ReportApi,sr as ReportApiAxiosParamCreator,el as ReportApiFactory,j as ReportApiFp,ca as ReportApp,pa as ReportBaselineLeftOut,ma as ReportBreakdown,ga as ReportCadence,ya as ReportChangeField,ha as ReportLanguage,Pa as ReportOrderType,Ra as ReportPart,Aa as ReportRunStatus,Et as ReportSchedulesApi,rr as ReportSchedulesApiAxiosParamCreator,tl as ReportSchedulesApiFactory,G as ReportSchedulesApiFp,kt as ReportV6Api,nr as ReportV6ApiAxiosParamCreator,sl as ReportV6ApiFactory,Be as ReportV6ApiFp,Mt as ResQApi,or as ResQApiAxiosParamCreator,rl as ResQApiFactory,se as ResQApiFp,ba as ResQOfferTag,fa as ReservationSource,xa as ReservationStatus,Bt as ReservationsApi,ar as ReservationsApiAxiosParamCreator,nl as ReservationsApiFactory,H as ReservationsApiFp,Ca as SYNCKEY,Da as SavedReportKind,Sa as SavedReportVisibility,wt as SavedReportsApi,ir as SavedReportsApiAxiosParamCreator,ol as SavedReportsApiFactory,w as SavedReportsApiFp,Oa as ScheduleType,Ia as ShiftStatus,Ft as ShiftTrackingApi,lr as ShiftTrackingApiAxiosParamCreator,al as ShiftTrackingApiFactory,_ as ShiftTrackingApiFp,va as ShipdayEventWebhook,Ta as ShipdayOrderStatus,qa as SimplePaymentStatus,Ua as SourceType,Ea as StaffActivityActionType,ka as StationType,Lt as StationsApi,ur as StationsApiAxiosParamCreator,il as StationsApiFactory,Ae as StationsApiFp,Ma as Status,Ba as StoreApp,Gt as StoreAppsApi,dr as StoreAppsApiAxiosParamCreator,ll as StoreAppsApiFactory,be as StoreAppsApiFp,wa as StripeConnectionState,Fa as SystemProfileType,La as TableGroupType,Ga as TableShape,Na as TableStatus,Nt as TerminalApi,cr as TerminalApiAxiosParamCreator,ul as TerminalApiFactory,fe as TerminalApiFp,_a as TerminalConnectionType,Ka as TerminalProvider,Wa as TimeSpan,ja as TransactionEventType,Ha as TransactionType,Qa as Type,$a as UpsellMode,_t as UserApi,pr as UserApiAxiosParamCreator,dl as UserApiFactory,me as UserApiFp,Kt as VendureSellerApi,mr as VendureSellerApiAxiosParamCreator,cl as VendureSellerApiFactory,ns as VendureSellerApiFp,Wt as VenueKiosksApi,gr as VenueKiosksApiAxiosParamCreator,pl as VenueKiosksApiFactory,$ as VenueKiosksApiFp,za as VenueProviderOutcome,jt as VivaApi,yr as VivaApiAxiosParamCreator,ml as VivaApiFactory,ge as VivaApiFp,Ya as VivaAppToAppPaymentMethod,Xa as VivaCurrencyCode,Za as VivaErrorId,Ja as VivaEventId,ei as VivaOnlineState,ti as VivaWebhookEventType,Ht as WebhookApi,hr as WebhookApiAxiosParamCreator,gl as WebhookApiFactory,E as WebhookApiFp,Qt as WorldlineApi,Pr as WorldlineApiAxiosParamCreator,yl as WorldlineApiFactory,xe as WorldlineApiFp,si as WorldlineAppResult,$t as WorldlineInternalApi,Rr as WorldlineInternalApiAxiosParamCreator,hl as WorldlineInternalApiFactory,J as WorldlineInternalApiFp,ri as WorldlineOperationStatus,ni as WorldlinePaymentResultStatus,oi as WorldlineResponseStatus,ai as WorldlineRevertMethod,El as buildPosCategoryIndex,Dl as cashRound,is as collectEnabledSubcategoryIdsDepthFirst,as as collectSubcategoryIdsDepthFirst,vl as countryQuirks,Cl as formatMoney,br as fromMinor,kl as getCategoryProductsIncludingSubcategories,Ml as getSubcategoriesForCategory,Sr as mapProductIdsToProducts,we as minorUnitDigits,Ce as minorUnitMultiplier,Tl as regionLocale,xl as toMinor};
|