@munchi_oy/core 1.9.134 → 1.9.136
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 +524 -8
- 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 +943 -8
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import h from"axios";import Et from"axios";var p="http://localhost".replace(/\/+$/,"");var S=class{constructor(r,e=p,s=Et){this.basePath=e;this.axios=s;r&&(this.configuration=r,this.basePath=r.basePath||this.basePath)}configuration},ce=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,r,e){if(e==null)throw new ce(r,`Required parameter ${r} was null or undefined when calling ${a}.`)};var R=async function(a,r){if(r&&r.accessToken){let e=typeof r.accessToken=="function"?await r.accessToken():await r.accessToken;a.Authorization="Bearer "+e}};function he(a,r,e=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(s=>he(a,s,e)):Object.keys(r).forEach(s=>he(a,r[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,r):a.set(e,r))}var y=function(a,...r){let e=new URLSearchParams(a.search);he(e,r),a.search=e.toString()},b=function(a,r,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(r.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},g=function(a){return a.pathname+a.search+a.hash},P=function(a,r,e,s){return(t=r,n=e)=>{let o={...a.options,url:(s?.basePath||n)+a.url};return t.request(o)}};var Qs={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed"},$s={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Ys={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},zs={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Js={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Xs={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Zs={Image:"image",Video:"video",Animation:"animation"},er={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},tr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},sr={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},rr={GiftCard:"GiftCard"},nr={Online:"ONLINE",Offline:"OFFLINE"},or={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"},ar={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},ir={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},lr={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},ur={Pos:"pos",Display:"display"},cr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},dr={Pending:"pending",Success:"success",Failure:"failure"},pr={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},mr={Kiosk:"kiosk"},yr={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},gr={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},ue={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"},Pr={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},hr={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},Ar={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},br={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},xr={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Rr={Item:"ITEM",Cart:"CART"},fr={Business:"BUSINESS",Owner:"OWNER"},Cr={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Dr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Or={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Sr={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Vr={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Ir={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},vr={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Tr={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},qr={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},Ur={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Er={Table:"table",Indicator:"indicator"},Br={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Mr={Product:"product",Coupon:"coupon"},kr={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},wr={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},Lr={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},Fr={Product:"product",Coupon:"coupon"},_r={Percentage:"percentage",Fixed:"fixed"},jr={Manual:"manual",Automatic:"automatic"},Nr={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"},Wr={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},Gr={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},Kr={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},Hr={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},Qr={Reversal:"REVERSAL",Refund:"REFUND"},$r={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Yr={Open:"OPEN",Instant:"INSTANT"},zr={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Jr={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Xr={Platform:"PLATFORM",Pos:"POS"},Zr={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},en={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"},tn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},sn={DineIn:"dine_in",PickUp:"pick_up"},rn={Pos:"pos",Terminal:"terminal"},nn={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},on={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},an={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},ln={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"},un={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"},cn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},dn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},pn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},mn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},yn={Sale:"SALE",Refund:"REFUND",Void:"VOID"},gn={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"},Pn={Paid:"paid",Pending:"pending"},hn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},An={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},bn={Percentage:"percentage",Fixed:"fixed"},xn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Rn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},fn={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",TransactionViewTips:"Transaction::ViewTips",TransactionViewSurcharges:"Transaction::ViewSurcharges",TransactionViewDiscounts:"Transaction::ViewDiscounts",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",ReportViewAll:"Report::ViewAll",ReportViewSalesSummary:"Report::ViewSalesSummary",ReportViewPaymentMethods:"Report::ViewPaymentMethods",ReportViewItemSales:"Report::ViewItemSales",ReportViewCashLogs:"Report::ViewCashLogs",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"},Cn={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"},Dn={Screen:"screen",Action:"action",Visibility:"visibility"},On={Waiting:"waiting",Confirm:"confirm"},Sn={Preset:"PRESET",Open:"OPEN"},Vn={Bluetooth:"bluetooth",Network:"network"},In={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},vn={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Tn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},qn={Modal:"MODAL",Screen:"SCREEN"},Un={Percentage:"PERCENTAGE",Fixed:"FIXED"},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"},Bn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},Mn={Kds:"KDS"},kn={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},wn={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},Ln={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},Fn={Full:"FULL",Item:"ITEM"},_n={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},jn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Nn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Wn={Fi:"fi",En:"en"},Gn={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},Kn={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},Hn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Qn={Percentage:"PERCENTAGE",Fixed:"FIXED"},$n={Item:"ITEM",Cart:"CART"},Yn={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"},zn={Physical:"PHYSICAL"},Jn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Xn={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Zn={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"},eo={Kiosk:"KIOSK",Pos:"POS"},to={Active:"ACTIVE",Inactive:"INACTIVE"},so={NoStation:"NO_STATION"},ro={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},no={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},oo={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},ao={Network:"NETWORK"},io={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},lo={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},uo={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},co={Instant:"instant",Preorder:"preorder"},po={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},mo={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},yo={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},go={Modal:"MODAL",Screen:"SCREEN"},Po={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"},ho={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Ao={_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"},bo={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},xo={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},Ro={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},fo={Claimed:"Claimed",Redeemed:"Redeemed"},Co={Reversal:"REVERSAL",Refund:"REFUND"},Bt=function(a){return{refreshConfig:async(r={})=>{let e="/api/v1/ably/refresh-config",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},requestSettings:async(r={})=>{let e="/api/v1/ably/request-settings",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},Ae=function(a){let r=Bt(a);return{async refreshConfig(e){let s=await r.refreshConfig(e);return P(s,h,p,a)},async requestSettings(e){let s=await r.requestSettings(e);return P(s,h,p,a)}}},Do=function(a,r,e){let s=Ae(a);return{refreshConfig(t){return s.refreshConfig(t).then(n=>n(e,r))},requestSettings(t){return s.requestSettings(t).then(n=>n(e,r))}}},Se=class extends S{refreshConfig(r){return Ae(this.configuration).refreshConfig(r).then(e=>e(this.axios,this.basePath))}requestSettings(r){return Ae(this.configuration).requestSettings(r).then(e=>e(this.axios,this.basePath))}},Mt=function(a){return{checkActionPasscode:async(r,e,s,t={})=>{c("checkActionPasscode","businessId",r),c("checkActionPasscode","xPosPin",e),c("checkActionPasscode","checkActionPasscodeDto",s);let n="/api/v2/businesses/{businessId}/action-passcodes/check".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},createActionPasscode:async(r,e={})=>{c("createActionPasscode","createActionPasscodeDto",r);let s="/api/v1/action-passcodes",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},deleteActionPasscode:async(r,e={})=>{c("deleteActionPasscode","id",r);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateActionPasscode:async(r,e,s={})=>{c("updateActionPasscode","id",r),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},Z=function(a){let r=Mt(a);return{async checkActionPasscode(e,s,t,n){let o=await r.checkActionPasscode(e,s,t,n);return P(o,h,p,a)},async createActionPasscode(e,s){let t=await r.createActionPasscode(e,s);return P(t,h,p,a)},async deleteActionPasscode(e,s){let t=await r.deleteActionPasscode(e,s);return P(t,h,p,a)},async updateActionPasscode(e,s,t){let n=await r.updateActionPasscode(e,s,t);return P(n,h,p,a)}}},Oo=function(a,r,e){let s=Z(a);return{checkActionPasscode(t,n,o,i){return s.checkActionPasscode(t,n,o,i).then(l=>l(e,r))},createActionPasscode(t,n){return s.createActionPasscode(t,n).then(o=>o(e,r))},deleteActionPasscode(t,n){return s.deleteActionPasscode(t,n).then(o=>o(e,r))},updateActionPasscode(t,n,o){return s.updateActionPasscode(t,n,o).then(i=>i(e,r))}}},Ve=class extends S{checkActionPasscode(r,e,s,t){return Z(this.configuration).checkActionPasscode(r,e,s,t).then(n=>n(this.axios,this.basePath))}createActionPasscode(r,e){return Z(this.configuration).createActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(r,e){return Z(this.configuration).deleteActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(r,e,s){return Z(this.configuration).updateActionPasscode(r,e,s).then(t=>t(this.axios,this.basePath))}},kt=function(a){return{firebaseAuth:async(r={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},login:async(r,e={})=>{c("login","credentialDto",r);let s="/api/v1/auth/login",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},logout:async(r={})=>{let e="/api/v1/auth/logout",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},refreshToken:async(r,e={})=>{c("refreshToken","refreshTokenDto",r);let s="/api/v1/auth/refresh",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},ee=function(a){let r=kt(a);return{async firebaseAuth(e){let s=await r.firebaseAuth(e);return P(s,h,p,a)},async login(e,s){let t=await r.login(e,s);return P(t,h,p,a)},async logout(e){let s=await r.logout(e);return P(s,h,p,a)},async refreshToken(e,s){let t=await r.refreshToken(e,s);return P(t,h,p,a)}}},So=function(a,r,e){let s=ee(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(n=>n(e,r))},login(t,n){return s.login(t,n).then(o=>o(e,r))},logout(t){return s.logout(t).then(n=>n(e,r))},refreshToken(t,n){return s.refreshToken(t,n).then(o=>o(e,r))}}},Ie=class extends S{firebaseAuth(r){return ee(this.configuration).firebaseAuth(r).then(e=>e(this.axios,this.basePath))}login(r,e){return ee(this.configuration).login(r,e).then(s=>s(this.axios,this.basePath))}logout(r){return ee(this.configuration).logout(r).then(e=>e(this.axios,this.basePath))}refreshToken(r,e){return ee(this.configuration).refreshToken(r,e).then(s=>s(this.axios,this.basePath))}},wt=function(a){return{createBusinessPermission:async(r,e,s={})=>{c("createBusinessPermission","businessId",r),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},deleteBusinessPermission:async(r,e,s={})=>{c("deleteBusinessPermission","permissionId",r),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getAdvancedDiscounts:async(r,e={})=>{c("getAdvancedDiscounts","businessId",r);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getBusinessCategoriesByMenuId:async(r,e,s={})=>{c("getBusinessCategoriesByMenuId","businessId",r),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV2:async(r,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",r),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV3:async(r,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",r),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessChannelConfig:async(r,e,s={})=>{c("getBusinessChannelConfig","businessId",r);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessChannelConfigV2:async(r,e,s={})=>{c("getBusinessChannelConfigV2","businessId",r);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfig:async(r,e,s={})=>{c("getBusinessConfig","businessId",r);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfigById:async(r,e,s={})=>{c("getBusinessConfigById","businessId",r);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfigByIdV2:async(r,e,s={})=>{c("getBusinessConfigByIdV2","businessId",r);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessConfiguration:async(r,e,s={})=>{c("getBusinessConfiguration","businessId",r);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByType:async(r,e,s={})=>{c("getBusinessMenuByType","businessId",r),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV2:async(r,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",r),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV3:async(r,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",r),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessMenuByTypeV4:async(r,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",r),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessProviderStatus:async(r,e={})=>{c("getBusinessProviderStatus","businessId",r);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getBusinessProviderStatusExternal:async(r,e,s={})=>{c("getBusinessProviderStatusExternal","businessId",r);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getBusinessTax:async(r={})=>{let e="/api/v1/business/tax",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},getProvidersSupportedIntegrations:async(r,e={})=>{c("getProvidersSupportedIntegrations","businessIds",r);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),r&&(l.businessIds=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getSingleBusinessProviderStatus:async(r,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",r),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(r))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await R(u,a),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getUnifiedDiscounts:async(r,e={})=>{c("getUnifiedDiscounts","businessId",r);let s="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},setBusinessStatus:async(r,e,s={})=>{c("setBusinessStatus","businessId",r),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},setBusinessStatusSchedule:async(r,e,s={})=>{c("setBusinessStatusSchedule","businessId",r),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},updateBusinessPermission:async(r,e,s,t={})=>{c("updateBusinessPermission","permissionId",r),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",s);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},validateBusiness:async(r,e={})=>{c("validateBusiness","businessId",r);let s="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},T=function(a){let r=wt(a);return{async createBusinessPermission(e,s,t){let n=await r.createBusinessPermission(e,s,t);return P(n,h,p,a)},async deleteBusinessPermission(e,s,t){let n=await r.deleteBusinessPermission(e,s,t);return P(n,h,p,a)},async getAdvancedDiscounts(e,s){let t=await r.getAdvancedDiscounts(e,s);return P(t,h,p,a)},async getBusinessCategoriesByMenuId(e,s,t){let n=await r.getBusinessCategoriesByMenuId(e,s,t);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let n=await r.getBusinessCategoriesByMenuIdV2(e,s,t);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let n=await r.getBusinessCategoriesByMenuIdV3(e,s,t);return P(n,h,p,a)},async getBusinessChannelConfig(e,s,t){let n=await r.getBusinessChannelConfig(e,s,t);return P(n,h,p,a)},async getBusinessChannelConfigV2(e,s,t){let n=await r.getBusinessChannelConfigV2(e,s,t);return P(n,h,p,a)},async getBusinessConfig(e,s,t){let n=await r.getBusinessConfig(e,s,t);return P(n,h,p,a)},async getBusinessConfigById(e,s,t){let n=await r.getBusinessConfigById(e,s,t);return P(n,h,p,a)},async getBusinessConfigByIdV2(e,s,t){let n=await r.getBusinessConfigByIdV2(e,s,t);return P(n,h,p,a)},async getBusinessConfiguration(e,s,t){let n=await r.getBusinessConfiguration(e,s,t);return P(n,h,p,a)},async getBusinessMenuByType(e,s,t){let n=await r.getBusinessMenuByType(e,s,t);return P(n,h,p,a)},async getBusinessMenuByTypeV2(e,s,t){let n=await r.getBusinessMenuByTypeV2(e,s,t);return P(n,h,p,a)},async getBusinessMenuByTypeV3(e,s,t){let n=await r.getBusinessMenuByTypeV3(e,s,t);return P(n,h,p,a)},async getBusinessMenuByTypeV4(e,s,t){let n=await r.getBusinessMenuByTypeV4(e,s,t);return P(n,h,p,a)},async getBusinessProviderStatus(e,s){let t=await r.getBusinessProviderStatus(e,s);return P(t,h,p,a)},async getBusinessProviderStatusExternal(e,s,t){let n=await r.getBusinessProviderStatusExternal(e,s,t);return P(n,h,p,a)},async getBusinessTax(e){let s=await r.getBusinessTax(e);return P(s,h,p,a)},async getProvidersSupportedIntegrations(e,s){let t=await r.getProvidersSupportedIntegrations(e,s);return P(t,h,p,a)},async getSingleBusinessProviderStatus(e,s,t,n){let o=await r.getSingleBusinessProviderStatus(e,s,t,n);return P(o,h,p,a)},async getUnifiedDiscounts(e,s){let t=await r.getUnifiedDiscounts(e,s);return P(t,h,p,a)},async setBusinessStatus(e,s,t){let n=await r.setBusinessStatus(e,s,t);return P(n,h,p,a)},async setBusinessStatusSchedule(e,s,t){let n=await r.setBusinessStatusSchedule(e,s,t);return P(n,h,p,a)},async updateBusinessPermission(e,s,t,n){let o=await r.updateBusinessPermission(e,s,t,n);return P(o,h,p,a)},async validateBusiness(e,s){let t=await r.validateBusiness(e,s);return P(t,h,p,a)}}},Vo=function(a,r,e){let s=T(a);return{createBusinessPermission(t,n,o){return s.createBusinessPermission(t,n,o).then(i=>i(e,r))},deleteBusinessPermission(t,n,o){return s.deleteBusinessPermission(t,n,o).then(i=>i(e,r))},getAdvancedDiscounts(t,n){return s.getAdvancedDiscounts(t,n).then(o=>o(e,r))},getBusinessCategoriesByMenuId(t,n,o){return s.getBusinessCategoriesByMenuId(t,n,o).then(i=>i(e,r))},getBusinessCategoriesByMenuIdV2(t,n,o){return s.getBusinessCategoriesByMenuIdV2(t,n,o).then(i=>i(e,r))},getBusinessCategoriesByMenuIdV3(t,n,o){return s.getBusinessCategoriesByMenuIdV3(t,n,o).then(i=>i(e,r))},getBusinessChannelConfig(t,n,o){return s.getBusinessChannelConfig(t,n,o).then(i=>i(e,r))},getBusinessChannelConfigV2(t,n,o){return s.getBusinessChannelConfigV2(t,n,o).then(i=>i(e,r))},getBusinessConfig(t,n,o){return s.getBusinessConfig(t,n,o).then(i=>i(e,r))},getBusinessConfigById(t,n,o){return s.getBusinessConfigById(t,n,o).then(i=>i(e,r))},getBusinessConfigByIdV2(t,n,o){return s.getBusinessConfigByIdV2(t,n,o).then(i=>i(e,r))},getBusinessConfiguration(t,n,o){return s.getBusinessConfiguration(t,n,o).then(i=>i(e,r))},getBusinessMenuByType(t,n,o){return s.getBusinessMenuByType(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV2(t,n,o){return s.getBusinessMenuByTypeV2(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV3(t,n,o){return s.getBusinessMenuByTypeV3(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV4(t,n,o){return s.getBusinessMenuByTypeV4(t,n,o).then(i=>i(e,r))},getBusinessProviderStatus(t,n){return s.getBusinessProviderStatus(t,n).then(o=>o(e,r))},getBusinessProviderStatusExternal(t,n,o){return s.getBusinessProviderStatusExternal(t,n,o).then(i=>i(e,r))},getBusinessTax(t){return s.getBusinessTax(t).then(n=>n(e,r))},getProvidersSupportedIntegrations(t,n){return s.getProvidersSupportedIntegrations(t,n).then(o=>o(e,r))},getSingleBusinessProviderStatus(t,n,o,i){return s.getSingleBusinessProviderStatus(t,n,o,i).then(l=>l(e,r))},getUnifiedDiscounts(t,n){return s.getUnifiedDiscounts(t,n).then(o=>o(e,r))},setBusinessStatus(t,n,o){return s.setBusinessStatus(t,n,o).then(i=>i(e,r))},setBusinessStatusSchedule(t,n,o){return s.setBusinessStatusSchedule(t,n,o).then(i=>i(e,r))},updateBusinessPermission(t,n,o,i){return s.updateBusinessPermission(t,n,o,i).then(l=>l(e,r))},validateBusiness(t,n){return s.validateBusiness(t,n).then(o=>o(e,r))}}},ve=class extends S{createBusinessPermission(r,e,s){return T(this.configuration).createBusinessPermission(r,e,s).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(r,e,s){return T(this.configuration).deleteBusinessPermission(r,e,s).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(r,e){return T(this.configuration).getAdvancedDiscounts(r,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuId(r,e,s){return T(this.configuration).getBusinessCategoriesByMenuId(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(r,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(r,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(r,e,s){return T(this.configuration).getBusinessChannelConfig(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(r,e,s){return T(this.configuration).getBusinessChannelConfigV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(r,e,s){return T(this.configuration).getBusinessConfig(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(r,e,s){return T(this.configuration).getBusinessConfigById(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(r,e,s){return T(this.configuration).getBusinessConfigByIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(r,e,s){return T(this.configuration).getBusinessConfiguration(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(r,e,s){return T(this.configuration).getBusinessMenuByType(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(r,e,s){return T(this.configuration).getBusinessMenuByTypeV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(r,e,s){return T(this.configuration).getBusinessMenuByTypeV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(r,e,s){return T(this.configuration).getBusinessMenuByTypeV4(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(r,e){return T(this.configuration).getBusinessProviderStatus(r,e).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatusExternal(r,e,s){return T(this.configuration).getBusinessProviderStatusExternal(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessTax(r){return T(this.configuration).getBusinessTax(r).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(r,e){return T(this.configuration).getProvidersSupportedIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(r,e,s,t){return T(this.configuration).getSingleBusinessProviderStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(r,e){return T(this.configuration).getUnifiedDiscounts(r,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(r,e,s){return T(this.configuration).setBusinessStatus(r,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(r,e,s){return T(this.configuration).setBusinessStatusSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(r,e,s,t){return T(this.configuration).updateBusinessPermission(r,e,s,t).then(n=>n(this.axios,this.basePath))}validateBusiness(r,e){return T(this.configuration).validateBusiness(r,e).then(s=>s(this.axios,this.basePath))}},Lt=function(a){return{updatePosGlobalSettings:async(r,e,s={})=>{c("updatePosGlobalSettings","businessId",r),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},ft=function(a){let r=Lt(a);return{async updatePosGlobalSettings(e,s,t){let n=await r.updatePosGlobalSettings(e,s,t);return P(n,h,p,a)}}},Io=function(a,r,e){let s=ft(a);return{updatePosGlobalSettings(t,n,o){return s.updatePosGlobalSettings(t,n,o).then(i=>i(e,r))}}},Te=class extends S{updatePosGlobalSettings(r,e,s){return ft(this.configuration).updatePosGlobalSettings(r,e,s).then(t=>t(this.axios,this.basePath))}},Ft=function(a){return{upsertSchedule:async(r,e,s={})=>{c("upsertSchedule","businessId",r),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},Ct=function(a){let r=Ft(a);return{async upsertSchedule(e,s,t){let n=await r.upsertSchedule(e,s,t);return P(n,h,p,a)}}},vo=function(a,r,e){let s=Ct(a);return{upsertSchedule(t,n,o){return s.upsertSchedule(t,n,o).then(i=>i(e,r))}}},qe=class extends S{upsertSchedule(r,e,s){return Ct(this.configuration).upsertSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}},_t=function(a){return{create:async(r,e,s={})=>{c("create","businessId",r),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getCashLogs:async(r,e,s,t,n,o,i,l={})=>{c("getCashLogs","businessId",r),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(r))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},f={},C={};s!==void 0&&(C.timeSpan=s),t!==void 0&&(C.start=t),n!==void 0&&(C.end=n),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),y(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},{url:g(d),options:x}},getCashSession:async(r,e={})=>{c("getCashSession","businessId",r);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getSessionReport:async(r,e,s={})=>{c("getSessionReport","businessId",r),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(r))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},recordCashLog:async(r,e,s={})=>{c("recordCashLog","businessId",r),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},sendSessionReport:async(r,e,s,t={})=>{c("sendSessionReport","businessId",r),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(r))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},$=function(a){let r=_t(a);return{async create(e,s,t){let n=await r.create(e,s,t);return P(n,h,p,a)},async getCashLogs(e,s,t,n,o,i,l,u){let d=await r.getCashLogs(e,s,t,n,o,i,l,u);return P(d,h,p,a)},async getCashSession(e,s){let t=await r.getCashSession(e,s);return P(t,h,p,a)},async getSessionReport(e,s,t){let n=await r.getSessionReport(e,s,t);return P(n,h,p,a)},async recordCashLog(e,s,t){let n=await r.recordCashLog(e,s,t);return P(n,h,p,a)},async sendSessionReport(e,s,t,n){let o=await r.sendSessionReport(e,s,t,n);return P(o,h,p,a)}}},To=function(a,r,e){let s=$(a);return{create(t,n,o){return s.create(t,n,o).then(i=>i(e,r))},getCashLogs(t,n,o,i,l,u,d,A){return s.getCashLogs(t,n,o,i,l,u,d,A).then(x=>x(e,r))},getCashSession(t,n){return s.getCashSession(t,n).then(o=>o(e,r))},getSessionReport(t,n,o){return s.getSessionReport(t,n,o).then(i=>i(e,r))},recordCashLog(t,n,o){return s.recordCashLog(t,n,o).then(i=>i(e,r))},sendSessionReport(t,n,o,i){return s.sendSessionReport(t,n,o,i).then(l=>l(e,r))}}},Ue=class extends S{create(r,e,s){return $(this.configuration).create(r,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(r,e,s,t,n,o,i,l){return $(this.configuration).getCashLogs(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(r,e){return $(this.configuration).getCashSession(r,e).then(s=>s(this.axios,this.basePath))}getSessionReport(r,e,s){return $(this.configuration).getSessionReport(r,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(r,e,s){return $(this.configuration).recordCashLog(r,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(r,e,s,t){return $(this.configuration).sendSessionReport(r,e,s,t).then(n=>n(this.axios,this.basePath))}},jt=function(a){return{getChannelCatalog:async(r,e,s,t={})=>{c("getChannelCatalog","businessId",r),c("getChannelCatalog","channelType",e);let n="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.menuId=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getChannelMenu:async(r,e,s,t={})=>{c("getChannelMenu","businessId",r),c("getChannelMenu","channelType",e);let n="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.deliveryType=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getChannelMenuTimes:async(r,e,s={})=>{c("getChannelMenuTimes","businessId",r),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},de=function(a){let r=jt(a);return{async getChannelCatalog(e,s,t,n){let o=await r.getChannelCatalog(e,s,t,n);return P(o,h,p,a)},async getChannelMenu(e,s,t,n){let o=await r.getChannelMenu(e,s,t,n);return P(o,h,p,a)},async getChannelMenuTimes(e,s,t){let n=await r.getChannelMenuTimes(e,s,t);return P(n,h,p,a)}}},qo=function(a,r,e){let s=de(a);return{getChannelCatalog(t,n,o,i){return s.getChannelCatalog(t,n,o,i).then(l=>l(e,r))},getChannelMenu(t,n,o,i){return s.getChannelMenu(t,n,o,i).then(l=>l(e,r))},getChannelMenuTimes(t,n,o){return s.getChannelMenuTimes(t,n,o).then(i=>i(e,r))}}},Ee=class extends S{getChannelCatalog(r,e,s,t){return de(this.configuration).getChannelCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(r,e,s,t){return de(this.configuration).getChannelMenu(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(r,e,s){return de(this.configuration).getChannelMenuTimes(r,e,s).then(t=>t(this.axios,this.basePath))}},Nt=function(a){return{configConfigureMunchiGiftCard:async(r,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",r),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configGetProviders:async(r,e,s={})=>{c("configGetProviders","businessId",r),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},configManualSync:async(r,e,s={})=>{c("configManualSync","businessId",r),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},configRemovePaymentOption:async(r,e,s,t={})=>{c("configRemovePaymentOption","businessId",r),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await R(u,a),s!=null&&(u["x-app-x"]=String(s)),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},configUpsertBusiness:async(r,e,s={})=>{c("configUpsertBusiness","businessId",r),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},configUpsertChannelConfig:async(r,e,s,t={})=>{c("configUpsertChannelConfig","businessId",r),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configUpsertGiftCard:async(r,e,s,t={})=>{c("configUpsertGiftCard","businessId",r),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configUpsertLoyalty:async(r,e,s={})=>{c("configUpsertLoyalty","businessId",r),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},configUpsertNets:async(r,e,s,t={})=>{c("configUpsertNets","businessId",r),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configUpsertPaymentOptions:async(r,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",r),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configUpsertProviders:async(r,e,s,t={})=>{c("configUpsertProviders","businessId",r),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let n="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configUpsertStripe:async(r,e,s,t={})=>{c("configUpsertStripe","businessId",r),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},configUpsertViva:async(r,e,s,t={})=>{c("configUpsertViva","businessId",r),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},w=function(a){let r=Nt(a);return{async configConfigureMunchiGiftCard(e,s,t,n){let o=await r.configConfigureMunchiGiftCard(e,s,t,n);return P(o,h,p,a)},async configGetProviders(e,s,t){let n=await r.configGetProviders(e,s,t);return P(n,h,p,a)},async configManualSync(e,s,t){let n=await r.configManualSync(e,s,t);return P(n,h,p,a)},async configRemovePaymentOption(e,s,t,n){let o=await r.configRemovePaymentOption(e,s,t,n);return P(o,h,p,a)},async configUpsertBusiness(e,s,t){let n=await r.configUpsertBusiness(e,s,t);return P(n,h,p,a)},async configUpsertChannelConfig(e,s,t,n){let o=await r.configUpsertChannelConfig(e,s,t,n);return P(o,h,p,a)},async configUpsertGiftCard(e,s,t,n){let o=await r.configUpsertGiftCard(e,s,t,n);return P(o,h,p,a)},async configUpsertLoyalty(e,s,t){let n=await r.configUpsertLoyalty(e,s,t);return P(n,h,p,a)},async configUpsertNets(e,s,t,n){let o=await r.configUpsertNets(e,s,t,n);return P(o,h,p,a)},async configUpsertPaymentOptions(e,s,t,n){let o=await r.configUpsertPaymentOptions(e,s,t,n);return P(o,h,p,a)},async configUpsertProviders(e,s,t,n){let o=await r.configUpsertProviders(e,s,t,n);return P(o,h,p,a)},async configUpsertStripe(e,s,t,n){let o=await r.configUpsertStripe(e,s,t,n);return P(o,h,p,a)},async configUpsertViva(e,s,t,n){let o=await r.configUpsertViva(e,s,t,n);return P(o,h,p,a)}}},Uo=function(a,r,e){let s=w(a);return{configConfigureMunchiGiftCard(t,n,o,i){return s.configConfigureMunchiGiftCard(t,n,o,i).then(l=>l(e,r))},configGetProviders(t,n,o){return s.configGetProviders(t,n,o).then(i=>i(e,r))},configManualSync(t,n,o){return s.configManualSync(t,n,o).then(i=>i(e,r))},configRemovePaymentOption(t,n,o,i){return s.configRemovePaymentOption(t,n,o,i).then(l=>l(e,r))},configUpsertBusiness(t,n,o){return s.configUpsertBusiness(t,n,o).then(i=>i(e,r))},configUpsertChannelConfig(t,n,o,i){return s.configUpsertChannelConfig(t,n,o,i).then(l=>l(e,r))},configUpsertGiftCard(t,n,o,i){return s.configUpsertGiftCard(t,n,o,i).then(l=>l(e,r))},configUpsertLoyalty(t,n,o){return s.configUpsertLoyalty(t,n,o).then(i=>i(e,r))},configUpsertNets(t,n,o,i){return s.configUpsertNets(t,n,o,i).then(l=>l(e,r))},configUpsertPaymentOptions(t,n,o,i){return s.configUpsertPaymentOptions(t,n,o,i).then(l=>l(e,r))},configUpsertProviders(t,n,o,i){return s.configUpsertProviders(t,n,o,i).then(l=>l(e,r))},configUpsertStripe(t,n,o,i){return s.configUpsertStripe(t,n,o,i).then(l=>l(e,r))},configUpsertViva(t,n,o,i){return s.configUpsertViva(t,n,o,i).then(l=>l(e,r))}}},Be=class extends S{configConfigureMunchiGiftCard(r,e,s,t){return w(this.configuration).configConfigureMunchiGiftCard(r,e,s,t).then(n=>n(this.axios,this.basePath))}configGetProviders(r,e,s){return w(this.configuration).configGetProviders(r,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(r,e,s){return w(this.configuration).configManualSync(r,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(r,e,s,t){return w(this.configuration).configRemovePaymentOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(r,e,s){return w(this.configuration).configUpsertBusiness(r,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(r,e,s,t){return w(this.configuration).configUpsertChannelConfig(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(r,e,s,t){return w(this.configuration).configUpsertGiftCard(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(r,e,s){return w(this.configuration).configUpsertLoyalty(r,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(r,e,s,t){return w(this.configuration).configUpsertNets(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(r,e,s,t){return w(this.configuration).configUpsertPaymentOptions(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertProviders(r,e,s,t){return w(this.configuration).configUpsertProviders(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertStripe(r,e,s,t){return w(this.configuration).configUpsertStripe(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertViva(r,e,s,t){return w(this.configuration).configUpsertViva(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Wt=function(a){return{getCourseConfig:async(r,e={})=>{c("getCourseConfig","businessId",r);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getCourses:async(r,e={})=>{c("getCourses","businessId",r);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},be=function(a){let r=Wt(a);return{async getCourseConfig(e,s){let t=await r.getCourseConfig(e,s);return P(t,h,p,a)},async getCourses(e,s){let t=await r.getCourses(e,s);return P(t,h,p,a)}}},Eo=function(a,r,e){let s=be(a);return{getCourseConfig(t,n){return s.getCourseConfig(t,n).then(o=>o(e,r))},getCourses(t,n){return s.getCourses(t,n).then(o=>o(e,r))}}},Me=class extends S{getCourseConfig(r,e){return be(this.configuration).getCourseConfig(r,e).then(s=>s(this.axios,this.basePath))}getCourses(r,e){return be(this.configuration).getCourses(r,e).then(s=>s(this.axios,this.basePath))}},Gt=function(a){return{findIntent:async(r,e={})=>{c("findIntent","intentId",r);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateIntent:async(r,e,s={})=>{c("updateIntent","intentId",r),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},xe=function(a){let r=Gt(a);return{async findIntent(e,s){let t=await r.findIntent(e,s);return P(t,h,p,a)},async updateIntent(e,s,t){let n=await r.updateIntent(e,s,t);return P(n,h,p,a)}}},Bo=function(a,r,e){let s=xe(a);return{findIntent(t,n){return s.findIntent(t,n).then(o=>o(e,r))},updateIntent(t,n,o){return s.updateIntent(t,n,o).then(i=>i(e,r))}}},ke=class extends S{findIntent(r,e){return xe(this.configuration).findIntent(r,e).then(s=>s(this.axios,this.basePath))}updateIntent(r,e,s){return xe(this.configuration).updateIntent(r,e,s).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{init:async(r,e={})=>{let s="/api/v1/display/init",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},pair:async(r,e={})=>{c("pair","pairDisplayBodyDto",r);let s="/api/v1/display/pair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},sessionToken:async(r,e={})=>{c("sessionToken","requestSessionTokenBodyDto",r);let s="/api/v1/display/session-token",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},unpair:async(r,e={})=>{c("unpair","unpairDisplayBodyDto",r);let s="/api/v1/display/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},te=function(a){let r=Kt(a);return{async init(e,s){let t=await r.init(e,s);return P(t,h,p,a)},async pair(e,s){let t=await r.pair(e,s);return P(t,h,p,a)},async sessionToken(e,s){let t=await r.sessionToken(e,s);return P(t,h,p,a)},async unpair(e,s){let t=await r.unpair(e,s);return P(t,h,p,a)}}},Mo=function(a,r,e){let s=te(a);return{init(t,n){return s.init(t,n).then(o=>o(e,r))},pair(t,n){return s.pair(t,n).then(o=>o(e,r))},sessionToken(t,n){return s.sessionToken(t,n).then(o=>o(e,r))},unpair(t,n){return s.unpair(t,n).then(o=>o(e,r))}}},we=class extends S{init(r,e){return te(this.configuration).init(r,e).then(s=>s(this.axios,this.basePath))}pair(r,e){return te(this.configuration).pair(r,e).then(s=>s(this.axios,this.basePath))}sessionToken(r,e){return te(this.configuration).sessionToken(r,e).then(s=>s(this.axios,this.basePath))}unpair(r,e){return te(this.configuration).unpair(r,e).then(s=>s(this.axios,this.basePath))}},Ht=function(a){return{createAssignment:async(r,e,s={})=>{c("createAssignment","businessId",r),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},Dt=function(a){let r=Ht(a);return{async createAssignment(e,s,t){let n=await r.createAssignment(e,s,t);return P(n,h,p,a)}}},ko=function(a,r,e){let s=Dt(a);return{createAssignment(t,n,o){return s.createAssignment(t,n,o).then(i=>i(e,r))}}},Le=class extends S{createAssignment(r,e,s){return Dt(this.configuration).createAssignment(r,e,s).then(t=>t(this.axios,this.basePath))}},Qt=function(a){return{createDiningTable:async(r,e={})=>{c("createDiningTable","createDiningTableDto",r);let s="/api/v1/floor-plan/tables",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},createFloorSection:async(r,e={})=>{c("createFloorSection","createFloorSectionDto",r);let s="/api/v1/floor-plan/sections",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},deleteDiningTable:async(r,e,s={})=>{c("deleteDiningTable","id",r),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},deleteFloorSection:async(r,e,s={})=>{c("deleteFloorSection","id",r),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},dissolveTableGroup:async(r,e,s={})=>{c("dissolveTableGroup","id",r),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getFloorPlan:async(r,e={})=>{c("getFloorPlan","businessId",r);let s="/api/v1/floor-plan",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},joinTables:async(r,e,s={})=>{c("joinTables","businessId",r),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},removeTableFromGroup:async(r,e,s={})=>{c("removeTableFromGroup","id",r),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},transferTable:async(r,e,s,t={})=>{c("transferTable","id",r),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let n="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},updateDiningTable:async(r,e,s,t={})=>{c("updateDiningTable","id",r),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let n="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},updateFloorSection:async(r,e,s,t={})=>{c("updateFloorSection","id",r),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let n="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},updateTablePosition:async(r,e,s,t={})=>{c("updateTablePosition","id",r),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let n="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},updateTableStatus:async(r,e,s,t={})=>{c("updateTableStatus","id",r),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let n="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},L=function(a){let r=Qt(a);return{async createDiningTable(e,s){let t=await r.createDiningTable(e,s);return P(t,h,p,a)},async createFloorSection(e,s){let t=await r.createFloorSection(e,s);return P(t,h,p,a)},async deleteDiningTable(e,s,t){let n=await r.deleteDiningTable(e,s,t);return P(n,h,p,a)},async deleteFloorSection(e,s,t){let n=await r.deleteFloorSection(e,s,t);return P(n,h,p,a)},async dissolveTableGroup(e,s,t){let n=await r.dissolveTableGroup(e,s,t);return P(n,h,p,a)},async getFloorPlan(e,s){let t=await r.getFloorPlan(e,s);return P(t,h,p,a)},async joinTables(e,s,t){let n=await r.joinTables(e,s,t);return P(n,h,p,a)},async removeTableFromGroup(e,s,t){let n=await r.removeTableFromGroup(e,s,t);return P(n,h,p,a)},async transferTable(e,s,t,n){let o=await r.transferTable(e,s,t,n);return P(o,h,p,a)},async updateDiningTable(e,s,t,n){let o=await r.updateDiningTable(e,s,t,n);return P(o,h,p,a)},async updateFloorSection(e,s,t,n){let o=await r.updateFloorSection(e,s,t,n);return P(o,h,p,a)},async updateTablePosition(e,s,t,n){let o=await r.updateTablePosition(e,s,t,n);return P(o,h,p,a)},async updateTableStatus(e,s,t,n){let o=await r.updateTableStatus(e,s,t,n);return P(o,h,p,a)}}},wo=function(a,r,e){let s=L(a);return{createDiningTable(t,n){return s.createDiningTable(t,n).then(o=>o(e,r))},createFloorSection(t,n){return s.createFloorSection(t,n).then(o=>o(e,r))},deleteDiningTable(t,n,o){return s.deleteDiningTable(t,n,o).then(i=>i(e,r))},deleteFloorSection(t,n,o){return s.deleteFloorSection(t,n,o).then(i=>i(e,r))},dissolveTableGroup(t,n,o){return s.dissolveTableGroup(t,n,o).then(i=>i(e,r))},getFloorPlan(t,n){return s.getFloorPlan(t,n).then(o=>o(e,r))},joinTables(t,n,o){return s.joinTables(t,n,o).then(i=>i(e,r))},removeTableFromGroup(t,n,o){return s.removeTableFromGroup(t,n,o).then(i=>i(e,r))},transferTable(t,n,o,i){return s.transferTable(t,n,o,i).then(l=>l(e,r))},updateDiningTable(t,n,o,i){return s.updateDiningTable(t,n,o,i).then(l=>l(e,r))},updateFloorSection(t,n,o,i){return s.updateFloorSection(t,n,o,i).then(l=>l(e,r))},updateTablePosition(t,n,o,i){return s.updateTablePosition(t,n,o,i).then(l=>l(e,r))},updateTableStatus(t,n,o,i){return s.updateTableStatus(t,n,o,i).then(l=>l(e,r))}}},Fe=class extends S{createDiningTable(r,e){return L(this.configuration).createDiningTable(r,e).then(s=>s(this.axios,this.basePath))}createFloorSection(r,e){return L(this.configuration).createFloorSection(r,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(r,e,s){return L(this.configuration).deleteDiningTable(r,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(r,e,s){return L(this.configuration).deleteFloorSection(r,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(r,e,s){return L(this.configuration).dissolveTableGroup(r,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(r,e){return L(this.configuration).getFloorPlan(r,e).then(s=>s(this.axios,this.basePath))}joinTables(r,e,s){return L(this.configuration).joinTables(r,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(r,e,s){return L(this.configuration).removeTableFromGroup(r,e,s).then(t=>t(this.axios,this.basePath))}transferTable(r,e,s,t){return L(this.configuration).transferTable(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateDiningTable(r,e,s,t){return L(this.configuration).updateDiningTable(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateFloorSection(r,e,s,t){return L(this.configuration).updateFloorSection(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateTablePosition(r,e,s,t){return L(this.configuration).updateTablePosition(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateTableStatus(r,e,s,t){return L(this.configuration).updateTableStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},$t=function(a){return{redeemGiftCard:async(r,e={})=>{c("redeemGiftCard","redeemGiftCardDto",r);let s="/api/v1/giftcard/redeem",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},validateGiftCard:async(r,e={})=>{c("validateGiftCard","validateGiftCardDto",r);let s="/api/v1/giftcard/validate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},Re=function(a){let r=$t(a);return{async redeemGiftCard(e,s){let t=await r.redeemGiftCard(e,s);return P(t,h,p,a)},async validateGiftCard(e,s){let t=await r.validateGiftCard(e,s);return P(t,h,p,a)}}},Lo=function(a,r,e){let s=Re(a);return{redeemGiftCard(t,n){return s.redeemGiftCard(t,n).then(o=>o(e,r))},validateGiftCard(t,n){return s.validateGiftCard(t,n).then(o=>o(e,r))}}},_e=class extends S{redeemGiftCard(r,e){return Re(this.configuration).redeemGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(r,e){return Re(this.configuration).validateGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},Yt=function(a){return{getInternalOrderHistoryOnline:async(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",r);let I="/api/v1/history/internal/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},G={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),C!==void 0&&(D.timezone=C),y(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...G,...Q,...O.headers},{url:g(v),options:U}},getOrderHistoryOnline:async(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O={})=>{c("getOrderHistoryOnline","businessIds",r);let I="/api/v1/history/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},G={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),C!==void 0&&(D.timezone=C),y(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...G,...Q,...O.headers},{url:g(v),options:U}},getOrderHistoryPOSV5:async(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",r);let I="/api/v5/history/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},G={},D={};await R(G,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),C!==void 0&&(D.timezone=C),y(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...G,...Q,...O.headers},{url:g(v),options:U}},getOrderHistoryPOSV5Internal:async(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",r);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},G={},D={};await R(G,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),C!==void 0&&(D.timezone=C),y(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...G,...Q,...O.headers},{url:g(v),options:U}}}},se=function(a){let r=Yt(a);return{async getInternalOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I){let v=await r.getInternalOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I){let v=await r.getOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I){let v=await r.getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I){let v=await r.getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,d,A,x,f,C,O,I);return P(v,h,p,a)}}},Fo=function(a,r,e){let s=se(a);return{getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V){return s.getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V).then(U=>U(e,r))},getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V){return s.getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V).then(U=>U(e,r))},getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V){return s.getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V).then(U=>U(e,r))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V){return s.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,f,C,O,I,v,V).then(U=>U(e,r))}}},je=class extends S{getInternalOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O){return se(this.configuration).getInternalOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O){return se(this.configuration).getOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O){return se(this.configuration).getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O){return se(this.configuration).getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,d,A,x,f,C,O).then(I=>I(this.axios,this.basePath))}},zt=function(a){return{createInvoiceCompany:async(r,e,s={})=>{c("createInvoiceCompany","businessId",r),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},deleteInvoiceCompany:async(r,e,s={})=>{c("deleteInvoiceCompany","id",r),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getInvoiceCompanies:async(r,e={})=>{c("getInvoiceCompanies","businessId",r);let s="/api/v1/invoice-companies",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getInvoiceCompanyById:async(r,e,s={})=>{c("getInvoiceCompanyById","id",r),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},searchInvoiceCompanies:async(r,e,s={})=>{c("searchInvoiceCompanies","businessId",r);let t="/api/v1/invoice-companies/search",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.search=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},updateInvoiceCompany:async(r,e,s,t={})=>{c("updateInvoiceCompany","id",r),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},Y=function(a){let r=zt(a);return{async createInvoiceCompany(e,s,t){let n=await r.createInvoiceCompany(e,s,t);return P(n,h,p,a)},async deleteInvoiceCompany(e,s,t){let n=await r.deleteInvoiceCompany(e,s,t);return P(n,h,p,a)},async getInvoiceCompanies(e,s){let t=await r.getInvoiceCompanies(e,s);return P(t,h,p,a)},async getInvoiceCompanyById(e,s,t){let n=await r.getInvoiceCompanyById(e,s,t);return P(n,h,p,a)},async searchInvoiceCompanies(e,s,t){let n=await r.searchInvoiceCompanies(e,s,t);return P(n,h,p,a)},async updateInvoiceCompany(e,s,t,n){let o=await r.updateInvoiceCompany(e,s,t,n);return P(o,h,p,a)}}},_o=function(a,r,e){let s=Y(a);return{createInvoiceCompany(t,n,o){return s.createInvoiceCompany(t,n,o).then(i=>i(e,r))},deleteInvoiceCompany(t,n,o){return s.deleteInvoiceCompany(t,n,o).then(i=>i(e,r))},getInvoiceCompanies(t,n){return s.getInvoiceCompanies(t,n).then(o=>o(e,r))},getInvoiceCompanyById(t,n,o){return s.getInvoiceCompanyById(t,n,o).then(i=>i(e,r))},searchInvoiceCompanies(t,n,o){return s.searchInvoiceCompanies(t,n,o).then(i=>i(e,r))},updateInvoiceCompany(t,n,o,i){return s.updateInvoiceCompany(t,n,o,i).then(l=>l(e,r))}}},Ne=class extends S{createInvoiceCompany(r,e,s){return Y(this.configuration).createInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(r,e,s){return Y(this.configuration).deleteInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(r,e){return Y(this.configuration).getInvoiceCompanies(r,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(r,e,s){return Y(this.configuration).getInvoiceCompanyById(r,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(r,e,s){return Y(this.configuration).searchInvoiceCompanies(r,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(r,e,s,t){return Y(this.configuration).updateInvoiceCompany(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Jt=function(a){return{kdsGetOrders:async(r,e,s,t,n,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",r),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let f="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(r))),C=new URL(f,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...x},v={},V={};await R(v,a),e!==void 0&&(V.businessIds=e),s!==void 0&&(V.profileId=s),t!==void 0&&(V.page=t),n!==void 0&&(V.rowPerPage=n),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),A&&(V.consumptionType=A),y(C,V);let U=O&&O.headers?O.headers:{};return I.headers={...v,...U,...x.headers},{url:g(C),options:I}},kdsGetProfiles:async(r,e={})=>{c("kdsGetProfiles","businessId",r);let s="/api/v1/kds/profiles",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},kdsMarkOrderReady:async(r,e={})=>{c("kdsMarkOrderReady","id",r);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},kdsRevertOrder:async(r,e={})=>{c("kdsRevertOrder","id",r);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},re=function(a){let r=Jt(a);return{async kdsGetOrders(e,s,t,n,o,i,l,u,d,A,x,f){let C=await r.kdsGetOrders(e,s,t,n,o,i,l,u,d,A,x,f);return P(C,h,p,a)},async kdsGetProfiles(e,s){let t=await r.kdsGetProfiles(e,s);return P(t,h,p,a)},async kdsMarkOrderReady(e,s){let t=await r.kdsMarkOrderReady(e,s);return P(t,h,p,a)},async kdsRevertOrder(e,s){let t=await r.kdsRevertOrder(e,s);return P(t,h,p,a)}}},jo=function(a,r,e){let s=re(a);return{kdsGetOrders(t,n,o,i,l,u,d,A,x,f,C,O){return s.kdsGetOrders(t,n,o,i,l,u,d,A,x,f,C,O).then(I=>I(e,r))},kdsGetProfiles(t,n){return s.kdsGetProfiles(t,n).then(o=>o(e,r))},kdsMarkOrderReady(t,n){return s.kdsMarkOrderReady(t,n).then(o=>o(e,r))},kdsRevertOrder(t,n){return s.kdsRevertOrder(t,n).then(o=>o(e,r))}}},We=class extends S{kdsGetOrders(r,e,s,t,n,o,i,l,u,d,A,x){return re(this.configuration).kdsGetOrders(r,e,s,t,n,o,i,l,u,d,A,x).then(f=>f(this.axios,this.basePath))}kdsGetProfiles(r,e){return re(this.configuration).kdsGetProfiles(r,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(r,e){return re(this.configuration).kdsMarkOrderReady(r,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(r,e){return re(this.configuration).kdsRevertOrder(r,e).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{getKioskOrder:async(r,e,s={})=>{c("getKioskOrder","orderId",r),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getOrderStatus:async(r,e,s={})=>{c("getOrderStatus","orderId",r),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},recoverOrder:async(r,e,s={})=>{c("recoverOrder","orderId",r),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},syncKioskOrder:async(r,e={})=>{c("syncKioskOrder","syncKioskOrderDto",r);let s="/api/v1/kiosk/orders/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},validate:async(r,e,s={})=>{c("validate","terminalId",r),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};r!==void 0&&(u.terminalId=r),e!==void 0&&(u.provider=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},X=function(a){let r=Xt(a);return{async getKioskOrder(e,s,t){let n=await r.getKioskOrder(e,s,t);return P(n,h,p,a)},async getOrderStatus(e,s,t){let n=await r.getOrderStatus(e,s,t);return P(n,h,p,a)},async recoverOrder(e,s,t){let n=await r.recoverOrder(e,s,t);return P(n,h,p,a)},async syncKioskOrder(e,s){let t=await r.syncKioskOrder(e,s);return P(t,h,p,a)},async validate(e,s,t){let n=await r.validate(e,s,t);return P(n,h,p,a)}}},No=function(a,r,e){let s=X(a);return{getKioskOrder(t,n,o){return s.getKioskOrder(t,n,o).then(i=>i(e,r))},getOrderStatus(t,n,o){return s.getOrderStatus(t,n,o).then(i=>i(e,r))},recoverOrder(t,n,o){return s.recoverOrder(t,n,o).then(i=>i(e,r))},syncKioskOrder(t,n){return s.syncKioskOrder(t,n).then(o=>o(e,r))},validate(t,n,o){return s.validate(t,n,o).then(i=>i(e,r))}}},Ge=class extends S{getKioskOrder(r,e,s){return X(this.configuration).getKioskOrder(r,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(r,e,s){return X(this.configuration).getOrderStatus(r,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(r,e,s){return X(this.configuration).recoverOrder(r,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(r,e){return X(this.configuration).syncKioskOrder(r,e).then(s=>s(this.axios,this.basePath))}validate(r,e,s){return X(this.configuration).validate(r,e,s).then(t=>t(this.axios,this.basePath))}},Zt=function(a){return{restoreRedemption:async(r,e={})=>{c("restoreRedemption","restoreLoyaltyRedemptionDto",r);let s="/api/v1/loyalty-commerce/redemptions/restore",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},Ot=function(a){let r=Zt(a);return{async restoreRedemption(e,s){let t=await r.restoreRedemption(e,s);return P(t,h,p,a)}}},Wo=function(a,r,e){let s=Ot(a);return{restoreRedemption(t,n){return s.restoreRedemption(t,n).then(o=>o(e,r))}}},Ke=class extends S{restoreRedemption(r,e){return Ot(this.configuration).restoreRedemption(r,e).then(s=>s(this.axios,this.basePath))}},es=function(a){return{activateKioskOffer:async(r,e={})=>{c("activateKioskOffer","activateKioskOfferDto",r);let s="/api/v1/loyalty/users/activate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},claimKioskOffer:async(r,e={})=>{c("claimKioskOffer","claimKioskOfferDto",r);let s="/api/v1/loyalty/users/claim",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},createLoyaltyUser:async(r,e,s={})=>{c("createLoyaltyUser","businessId",r),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getAdminTransactions:async(r,e,s,t={})=>{c("getAdminTransactions","businessId",r);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await R(u,a),r!==void 0&&(d.businessId=r),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getLoyaltyInfo:async(r,e={})=>{c("getLoyaltyInfo","businessId",r);let s="/api/v1/loyalty/info",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getUserById:async(r,e,s={})=>{c("getUserById","businessId",r),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getUserPerks:async(r,e,s={})=>{c("getUserPerks","businessId",r),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getUserWallet:async(r,e,s={})=>{c("getUserWallet","businessId",r),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getWalletRewards:async(r,e,s={})=>{c("getWalletRewards","businessId",r),c("getWalletRewards","userId",e);let t="/api/v1/loyalty/users/wallet-rewards",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},memberContext:async(r,e={})=>{c("memberContext","loyaltyMemberContextRequestDto",r);let s="/api/v1/loyalty/member-context",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},resolvePerks:async(r,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",r);let s="/api/v1/loyalty/resolve",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},searchUser:async(r,e,s,t,n={})=>{c("searchUser","businessId",r);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};await R(d,a),e!==void 0&&(A.phone=e),s!==void 0&&(A.country_code=s),t!==void 0&&(A.email=t),r!==void 0&&(A.businessId=r),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},updatePoints:async(r,e,s={})=>{c("updatePoints","businessId",r),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},validateWallet:async(r,e,s,t={})=>{c("validateWallet","businessId",r),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let n="/api/v1/loyalty/wallets/validate",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await R(u,a),r!==void 0&&(d.businessId=r),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}}}},M=function(a){let r=es(a);return{async activateKioskOffer(e,s){let t=await r.activateKioskOffer(e,s);return P(t,h,p,a)},async claimKioskOffer(e,s){let t=await r.claimKioskOffer(e,s);return P(t,h,p,a)},async createLoyaltyUser(e,s,t){let n=await r.createLoyaltyUser(e,s,t);return P(n,h,p,a)},async getAdminTransactions(e,s,t,n){let o=await r.getAdminTransactions(e,s,t,n);return P(o,h,p,a)},async getLoyaltyInfo(e,s){let t=await r.getLoyaltyInfo(e,s);return P(t,h,p,a)},async getUserById(e,s,t){let n=await r.getUserById(e,s,t);return P(n,h,p,a)},async getUserPerks(e,s,t){let n=await r.getUserPerks(e,s,t);return P(n,h,p,a)},async getUserWallet(e,s,t){let n=await r.getUserWallet(e,s,t);return P(n,h,p,a)},async getWalletRewards(e,s,t){let n=await r.getWalletRewards(e,s,t);return P(n,h,p,a)},async memberContext(e,s){let t=await r.memberContext(e,s);return P(t,h,p,a)},async resolvePerks(e,s){let t=await r.resolvePerks(e,s);return P(t,h,p,a)},async searchUser(e,s,t,n,o){let i=await r.searchUser(e,s,t,n,o);return P(i,h,p,a)},async updatePoints(e,s,t){let n=await r.updatePoints(e,s,t);return P(n,h,p,a)},async validateWallet(e,s,t,n){let o=await r.validateWallet(e,s,t,n);return P(o,h,p,a)}}},Go=function(a,r,e){let s=M(a);return{activateKioskOffer(t,n){return s.activateKioskOffer(t,n).then(o=>o(e,r))},claimKioskOffer(t,n){return s.claimKioskOffer(t,n).then(o=>o(e,r))},createLoyaltyUser(t,n,o){return s.createLoyaltyUser(t,n,o).then(i=>i(e,r))},getAdminTransactions(t,n,o,i){return s.getAdminTransactions(t,n,o,i).then(l=>l(e,r))},getLoyaltyInfo(t,n){return s.getLoyaltyInfo(t,n).then(o=>o(e,r))},getUserById(t,n,o){return s.getUserById(t,n,o).then(i=>i(e,r))},getUserPerks(t,n,o){return s.getUserPerks(t,n,o).then(i=>i(e,r))},getUserWallet(t,n,o){return s.getUserWallet(t,n,o).then(i=>i(e,r))},getWalletRewards(t,n,o){return s.getWalletRewards(t,n,o).then(i=>i(e,r))},memberContext(t,n){return s.memberContext(t,n).then(o=>o(e,r))},resolvePerks(t,n){return s.resolvePerks(t,n).then(o=>o(e,r))},searchUser(t,n,o,i,l){return s.searchUser(t,n,o,i,l).then(u=>u(e,r))},updatePoints(t,n,o){return s.updatePoints(t,n,o).then(i=>i(e,r))},validateWallet(t,n,o,i){return s.validateWallet(t,n,o,i).then(l=>l(e,r))}}},He=class extends S{activateKioskOffer(r,e){return M(this.configuration).activateKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(r,e){return M(this.configuration).claimKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(r,e,s){return M(this.configuration).createLoyaltyUser(r,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(r,e,s,t){return M(this.configuration).getAdminTransactions(r,e,s,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(r,e){return M(this.configuration).getLoyaltyInfo(r,e).then(s=>s(this.axios,this.basePath))}getUserById(r,e,s){return M(this.configuration).getUserById(r,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(r,e,s){return M(this.configuration).getUserPerks(r,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(r,e,s){return M(this.configuration).getUserWallet(r,e,s).then(t=>t(this.axios,this.basePath))}getWalletRewards(r,e,s){return M(this.configuration).getWalletRewards(r,e,s).then(t=>t(this.axios,this.basePath))}memberContext(r,e){return M(this.configuration).memberContext(r,e).then(s=>s(this.axios,this.basePath))}resolvePerks(r,e){return M(this.configuration).resolvePerks(r,e).then(s=>s(this.axios,this.basePath))}searchUser(r,e,s,t,n){return M(this.configuration).searchUser(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(r,e,s){return M(this.configuration).updatePoints(r,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(r,e,s,t){return M(this.configuration).validateWallet(r,e,s,t).then(n=>n(this.axios,this.basePath))}},ts=function(a){return{editBusinessProduct:async(r,e,s={})=>{c("editBusinessProduct","businessId",r),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},editBusinessProductV2:async(r,e,s={})=>{c("editBusinessProductV2","businessId",r),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessExtras:async(r,e={})=>{c("getBusinessExtras","businessId",r);let s="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getProductsByCategoriesV2:async(r,e,s={})=>{c("getProductsByCategoriesV2","businessId",r);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getProductsByCategoriesV3:async(r,e,s={})=>{c("getProductsByCategoriesV3","businessId",r);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},resetProductEod:async(r,e={})=>{c("resetProductEod","resetEodDto",r);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},z=function(a){let r=ts(a);return{async editBusinessProduct(e,s,t){let n=await r.editBusinessProduct(e,s,t);return P(n,h,p,a)},async editBusinessProductV2(e,s,t){let n=await r.editBusinessProductV2(e,s,t);return P(n,h,p,a)},async getBusinessExtras(e,s){let t=await r.getBusinessExtras(e,s);return P(t,h,p,a)},async getProductsByCategoriesV2(e,s,t){let n=await r.getProductsByCategoriesV2(e,s,t);return P(n,h,p,a)},async getProductsByCategoriesV3(e,s,t){let n=await r.getProductsByCategoriesV3(e,s,t);return P(n,h,p,a)},async resetProductEod(e,s){let t=await r.resetProductEod(e,s);return P(t,h,p,a)}}},Ko=function(a,r,e){let s=z(a);return{editBusinessProduct(t,n,o){return s.editBusinessProduct(t,n,o).then(i=>i(e,r))},editBusinessProductV2(t,n,o){return s.editBusinessProductV2(t,n,o).then(i=>i(e,r))},getBusinessExtras(t,n){return s.getBusinessExtras(t,n).then(o=>o(e,r))},getProductsByCategoriesV2(t,n,o){return s.getProductsByCategoriesV2(t,n,o).then(i=>i(e,r))},getProductsByCategoriesV3(t,n,o){return s.getProductsByCategoriesV3(t,n,o).then(i=>i(e,r))},resetProductEod(t,n){return s.resetProductEod(t,n).then(o=>o(e,r))}}},Qe=class extends S{editBusinessProduct(r,e,s){return z(this.configuration).editBusinessProduct(r,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(r,e,s){return z(this.configuration).editBusinessProductV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(r,e){return z(this.configuration).getBusinessExtras(r,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(r,e,s){return z(this.configuration).getProductsByCategoriesV2(r,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(r,e,s){return z(this.configuration).getProductsByCategoriesV3(r,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(r,e){return z(this.configuration).resetProductEod(r,e).then(s=>s(this.axios,this.basePath))}},ss=function(a){return{addBusinessesToMerchant:async(r,e,s={})=>{c("addBusinessesToMerchant","merchantId",r),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},createMerchant:async(r,e={})=>{c("createMerchant","createMerchantDto",r);let s="/api/v1/merchants",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},removeBusinessFromMerchant:async(r,e,s={})=>{c("removeBusinessFromMerchant","merchantId",r),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await R(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},pe=function(a){let r=ss(a);return{async addBusinessesToMerchant(e,s,t){let n=await r.addBusinessesToMerchant(e,s,t);return P(n,h,p,a)},async createMerchant(e,s){let t=await r.createMerchant(e,s);return P(t,h,p,a)},async removeBusinessFromMerchant(e,s,t){let n=await r.removeBusinessFromMerchant(e,s,t);return P(n,h,p,a)}}},Ho=function(a,r,e){let s=pe(a);return{addBusinessesToMerchant(t,n,o){return s.addBusinessesToMerchant(t,n,o).then(i=>i(e,r))},createMerchant(t,n){return s.createMerchant(t,n).then(o=>o(e,r))},removeBusinessFromMerchant(t,n,o){return s.removeBusinessFromMerchant(t,n,o).then(i=>i(e,r))}}},$e=class extends S{addBusinessesToMerchant(r,e,s){return pe(this.configuration).addBusinessesToMerchant(r,e,s).then(t=>t(this.axios,this.basePath))}createMerchant(r,e){return pe(this.configuration).createMerchant(r,e).then(s=>s(this.axios,this.basePath))}removeBusinessFromMerchant(r,e,s){return pe(this.configuration).removeBusinessFromMerchant(r,e,s).then(t=>t(this.axios,this.basePath))}},rs=function(a){return{createMunchiGiftCard:async(r,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",r);let s="/api/v1/munchi-giftcard/create",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getMunchiGiftCardData:async(r,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",r);let s="/api/v1/munchi-giftcard/data",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},redeemMunchiGiftCard:async(r,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",r);let s="/api/v1/munchi-giftcard/redeem",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},validateMunchiGiftCard:async(r,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",r);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},ne=function(a){let r=rs(a);return{async createMunchiGiftCard(e,s){let t=await r.createMunchiGiftCard(e,s);return P(t,h,p,a)},async getMunchiGiftCardData(e,s){let t=await r.getMunchiGiftCardData(e,s);return P(t,h,p,a)},async redeemMunchiGiftCard(e,s){let t=await r.redeemMunchiGiftCard(e,s);return P(t,h,p,a)},async validateMunchiGiftCard(e,s){let t=await r.validateMunchiGiftCard(e,s);return P(t,h,p,a)}}},Qo=function(a,r,e){let s=ne(a);return{createMunchiGiftCard(t,n){return s.createMunchiGiftCard(t,n).then(o=>o(e,r))},getMunchiGiftCardData(t,n){return s.getMunchiGiftCardData(t,n).then(o=>o(e,r))},redeemMunchiGiftCard(t,n){return s.redeemMunchiGiftCard(t,n).then(o=>o(e,r))},validateMunchiGiftCard(t,n){return s.validateMunchiGiftCard(t,n).then(o=>o(e,r))}}},Ye=class extends S{createMunchiGiftCard(r,e){return ne(this.configuration).createMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(r,e){return ne(this.configuration).getMunchiGiftCardData(r,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(r,e){return ne(this.configuration).redeemMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(r,e){return ne(this.configuration).validateMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},ns=function(a){return{addVenueSubscriptionsV2:async(r,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",r);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},removeVenueSubscriptionsV2:async(r,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",r);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},fe=function(a){let r=ns(a);return{async addVenueSubscriptionsV2(e,s){let t=await r.addVenueSubscriptionsV2(e,s);return P(t,h,p,a)},async removeVenueSubscriptionsV2(e,s){let t=await r.removeVenueSubscriptionsV2(e,s);return P(t,h,p,a)}}},$o=function(a,r,e){let s=fe(a);return{addVenueSubscriptionsV2(t,n){return s.addVenueSubscriptionsV2(t,n).then(o=>o(e,r))},removeVenueSubscriptionsV2(t,n){return s.removeVenueSubscriptionsV2(t,n).then(o=>o(e,r))}}},ze=class extends S{addVenueSubscriptionsV2(r,e){return fe(this.configuration).addVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(r,e){return fe(this.configuration).removeVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}},os=function(a){return{completeOrder:async(r,e,s,t={})=>{c("completeOrder","businessId",r),c("completeOrder","orderId",e),c("completeOrder","completeOrderDto",s);let n="/api/v1/businesses/{businessId}/orders/{orderId}/complete".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await R(u,a),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},St=function(a){let r=os(a);return{async completeOrder(e,s,t,n){let o=await r.completeOrder(e,s,t,n);return P(o,h,p,a)}}},Yo=function(a,r,e){let s=St(a);return{completeOrder(t,n,o,i){return s.completeOrder(t,n,o,i).then(l=>l(e,r))}}},Je=class extends S{completeOrder(r,e,s,t){return St(this.configuration).completeOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}},as=function(a){return{findOneByExternalId:async(r,e={})=>{c("findOneByExternalId","externalId",r);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},Vt=function(a){let r=as(a);return{async findOneByExternalId(e,s){let t=await r.findOneByExternalId(e,s);return P(t,h,p,a)}}},zo=function(a,r,e){let s=Vt(a);return{findOneByExternalId(t,n){return s.findOneByExternalId(t,n).then(o=>o(e,r))}}},Xe=class extends S{findOneByExternalId(r,e){return Vt(this.configuration).findOneByExternalId(r,e).then(s=>s(this.axios,this.basePath))}},is=function(a){return{acceptOrder:async(r,e={})=>{c("acceptOrder","acceptOrderDto",r);let s="/api/v1/orders/accept",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},confirmPreOrder:async(r,e={})=>{c("confirmPreOrder","confirmPreorderDto",r);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},deletePosParkedOrderV2:async(r,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",r);let s="/api/v2/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},deliverOrder:async(r,e={})=>{c("deliverOrder","deliveredOrderDto",r);let s="/api/v1/orders/delivered",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},dispatchPosOrderV5:async(r,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",r);let s="/api/v5/orders/pos/dispatch",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getAllOrdersV2:async(r,e={})=>{c("getAllOrdersV2","businessIds",r);let s="/api/v2/orders",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessIds=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOrdersV2:async(r,e,s,t,n={})=>{c("getOrdersV2","status",r),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},getOrdersV3:async(r,e,s,t,n={})=>{c("getOrdersV3","status",r),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},getParkedPosOrderV2:async(r,e={})=>{c("getParkedPosOrderV2","businessId",r);let s="/api/v2/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPosOrderById:async(r,e={})=>{c("getPosOrderById","getPosOrderDto",r);let s="/api/v1/orders/pos",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},markOrderAsReady:async(r,e={})=>{c("markOrderAsReady","readyOrderDto",r);let s="/api/v1/orders/ready",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},parkPosOrderV5:async(r,e={})=>{c("parkPosOrderV5","parkPosOrderDto",r);let s="/api/v5/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},placePosOrderV4:async(r,e={})=>{c("placePosOrderV4","posOrderPayloadDto",r);let s="/api/v4/orders/pos/place",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},processPosOrderActions:async(r,e={})=>{c("processPosOrderActions","processOrderActionsDto",r);let s="/api/v4/orders/pos/actions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},rejectOrder:async(r,e={})=>{c("rejectOrder","rejectOrderDto",r);let s="/api/v1/orders/reject",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},syncPosOrder:async(r,e={})=>{c("syncPosOrder","syncPosOrderDto",r);let s="/api/v1/orders/pos/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},updatePosOrderV2:async(r,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",r);let s="/api/v2/orders/pos/update",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},B=function(a){let r=is(a);return{async acceptOrder(e,s){let t=await r.acceptOrder(e,s);return P(t,h,p,a)},async confirmPreOrder(e,s){let t=await r.confirmPreOrder(e,s);return P(t,h,p,a)},async deletePosParkedOrderV2(e,s){let t=await r.deletePosParkedOrderV2(e,s);return P(t,h,p,a)},async deliverOrder(e,s){let t=await r.deliverOrder(e,s);return P(t,h,p,a)},async dispatchPosOrderV5(e,s){let t=await r.dispatchPosOrderV5(e,s);return P(t,h,p,a)},async getAllOrdersV2(e,s){let t=await r.getAllOrdersV2(e,s);return P(t,h,p,a)},async getOrdersV2(e,s,t,n,o){let i=await r.getOrdersV2(e,s,t,n,o);return P(i,h,p,a)},async getOrdersV3(e,s,t,n,o){let i=await r.getOrdersV3(e,s,t,n,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,s){let t=await r.getParkedPosOrderV2(e,s);return P(t,h,p,a)},async getPosOrderById(e,s){let t=await r.getPosOrderById(e,s);return P(t,h,p,a)},async markOrderAsReady(e,s){let t=await r.markOrderAsReady(e,s);return P(t,h,p,a)},async parkPosOrderV5(e,s){let t=await r.parkPosOrderV5(e,s);return P(t,h,p,a)},async placePosOrderV4(e,s){let t=await r.placePosOrderV4(e,s);return P(t,h,p,a)},async processPosOrderActions(e,s){let t=await r.processPosOrderActions(e,s);return P(t,h,p,a)},async rejectOrder(e,s){let t=await r.rejectOrder(e,s);return P(t,h,p,a)},async syncPosOrder(e,s){let t=await r.syncPosOrder(e,s);return P(t,h,p,a)},async updatePosOrderV2(e,s){let t=await r.updatePosOrderV2(e,s);return P(t,h,p,a)}}},Jo=function(a,r,e){let s=B(a);return{acceptOrder(t,n){return s.acceptOrder(t,n).then(o=>o(e,r))},confirmPreOrder(t,n){return s.confirmPreOrder(t,n).then(o=>o(e,r))},deletePosParkedOrderV2(t,n){return s.deletePosParkedOrderV2(t,n).then(o=>o(e,r))},deliverOrder(t,n){return s.deliverOrder(t,n).then(o=>o(e,r))},dispatchPosOrderV5(t,n){return s.dispatchPosOrderV5(t,n).then(o=>o(e,r))},getAllOrdersV2(t,n){return s.getAllOrdersV2(t,n).then(o=>o(e,r))},getOrdersV2(t,n,o,i,l){return s.getOrdersV2(t,n,o,i,l).then(u=>u(e,r))},getOrdersV3(t,n,o,i,l){return s.getOrdersV3(t,n,o,i,l).then(u=>u(e,r))},getParkedPosOrderV2(t,n){return s.getParkedPosOrderV2(t,n).then(o=>o(e,r))},getPosOrderById(t,n){return s.getPosOrderById(t,n).then(o=>o(e,r))},markOrderAsReady(t,n){return s.markOrderAsReady(t,n).then(o=>o(e,r))},parkPosOrderV5(t,n){return s.parkPosOrderV5(t,n).then(o=>o(e,r))},placePosOrderV4(t,n){return s.placePosOrderV4(t,n).then(o=>o(e,r))},processPosOrderActions(t,n){return s.processPosOrderActions(t,n).then(o=>o(e,r))},rejectOrder(t,n){return s.rejectOrder(t,n).then(o=>o(e,r))},syncPosOrder(t,n){return s.syncPosOrder(t,n).then(o=>o(e,r))},updatePosOrderV2(t,n){return s.updatePosOrderV2(t,n).then(o=>o(e,r))}}},Ze=class extends S{acceptOrder(r,e){return B(this.configuration).acceptOrder(r,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(r,e){return B(this.configuration).confirmPreOrder(r,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(r,e){return B(this.configuration).deletePosParkedOrderV2(r,e).then(s=>s(this.axios,this.basePath))}deliverOrder(r,e){return B(this.configuration).deliverOrder(r,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(r,e){return B(this.configuration).dispatchPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}getAllOrdersV2(r,e){return B(this.configuration).getAllOrdersV2(r,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(r,e,s,t,n){return B(this.configuration).getOrdersV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getOrdersV3(r,e,s,t,n){return B(this.configuration).getOrdersV3(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(r,e){return B(this.configuration).getParkedPosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(r,e){return B(this.configuration).getPosOrderById(r,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(r,e){return B(this.configuration).markOrderAsReady(r,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(r,e){return B(this.configuration).parkPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}placePosOrderV4(r,e){return B(this.configuration).placePosOrderV4(r,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(r,e){return B(this.configuration).processPosOrderActions(r,e).then(s=>s(this.axios,this.basePath))}rejectOrder(r,e){return B(this.configuration).rejectOrder(r,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(r,e){return B(this.configuration).syncPosOrder(r,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(r,e){return B(this.configuration).updatePosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}},ls=function(a){return{listPosPermissions:async(r={})=>{let e="/api/v1/pos-permissions",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},It=function(a){let r=ls(a);return{async listPosPermissions(e){let s=await r.listPosPermissions(e);return P(s,h,p,a)}}},Xo=function(a,r,e){let s=It(a);return{listPosPermissions(t){return s.listPosPermissions(t).then(n=>n(e,r))}}},et=class extends S{listPosPermissions(r){return It(this.configuration).listPosPermissions(r).then(e=>e(this.axios,this.basePath))}},us=function(a){return{getPosSession:async(r,e={})=>{c("getPosSession","businessId",r);let s="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPosSessionV2:async(r,e={})=>{c("getPosSessionV2","businessId",r);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},Ce=function(a){let r=us(a);return{async getPosSession(e,s){let t=await r.getPosSession(e,s);return P(t,h,p,a)},async getPosSessionV2(e,s){let t=await r.getPosSessionV2(e,s);return P(t,h,p,a)}}},Zo=function(a,r,e){let s=Ce(a);return{getPosSession(t,n){return s.getPosSession(t,n).then(o=>o(e,r))},getPosSessionV2(t,n){return s.getPosSessionV2(t,n).then(o=>o(e,r))}}},tt=class extends S{getPosSession(r,e){return Ce(this.configuration).getPosSession(r,e).then(s=>s(this.axios,this.basePath))}getPosSessionV2(r,e){return Ce(this.configuration).getPosSessionV2(r,e).then(s=>s(this.axios,this.basePath))}},cs=function(a){return{payTerminalInit:async(r,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",r);let s="/api/v1/pay-terminal/init",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalLockSet:async(r,e={})=>{c("payTerminalLockSet","setPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalLockStatus:async(r,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",r);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalLockSync:async(r,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalLockVerify:async(r,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalPair:async(r,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",r);let s="/api/v1/pay-terminal/pair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalPresence:async(r,e={})=>{c("payTerminalPresence","payTerminalSessionTokenBodyDto",r);let s="/api/v1/pay-terminal/presence",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalSessionToken:async(r,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",r);let s="/api/v1/pay-terminal/session-token",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},payTerminalUnpair:async(r,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",r);let s="/api/v1/pay-terminal/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},N=function(a){let r=cs(a);return{async payTerminalInit(e,s){let t=await r.payTerminalInit(e,s);return P(t,h,p,a)},async payTerminalLockSet(e,s){let t=await r.payTerminalLockSet(e,s);return P(t,h,p,a)},async payTerminalLockStatus(e,s){let t=await r.payTerminalLockStatus(e,s);return P(t,h,p,a)},async payTerminalLockSync(e,s){let t=await r.payTerminalLockSync(e,s);return P(t,h,p,a)},async payTerminalLockVerify(e,s){let t=await r.payTerminalLockVerify(e,s);return P(t,h,p,a)},async payTerminalPair(e,s){let t=await r.payTerminalPair(e,s);return P(t,h,p,a)},async payTerminalPresence(e,s){let t=await r.payTerminalPresence(e,s);return P(t,h,p,a)},async payTerminalSessionToken(e,s){let t=await r.payTerminalSessionToken(e,s);return P(t,h,p,a)},async payTerminalUnpair(e,s){let t=await r.payTerminalUnpair(e,s);return P(t,h,p,a)}}},ea=function(a,r,e){let s=N(a);return{payTerminalInit(t,n){return s.payTerminalInit(t,n).then(o=>o(e,r))},payTerminalLockSet(t,n){return s.payTerminalLockSet(t,n).then(o=>o(e,r))},payTerminalLockStatus(t,n){return s.payTerminalLockStatus(t,n).then(o=>o(e,r))},payTerminalLockSync(t,n){return s.payTerminalLockSync(t,n).then(o=>o(e,r))},payTerminalLockVerify(t,n){return s.payTerminalLockVerify(t,n).then(o=>o(e,r))},payTerminalPair(t,n){return s.payTerminalPair(t,n).then(o=>o(e,r))},payTerminalPresence(t,n){return s.payTerminalPresence(t,n).then(o=>o(e,r))},payTerminalSessionToken(t,n){return s.payTerminalSessionToken(t,n).then(o=>o(e,r))},payTerminalUnpair(t,n){return s.payTerminalUnpair(t,n).then(o=>o(e,r))}}},st=class extends S{payTerminalInit(r,e){return N(this.configuration).payTerminalInit(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSet(r,e){return N(this.configuration).payTerminalLockSet(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(r,e){return N(this.configuration).payTerminalLockStatus(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(r,e){return N(this.configuration).payTerminalLockSync(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(r,e){return N(this.configuration).payTerminalLockVerify(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(r,e){return N(this.configuration).payTerminalPair(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPresence(r,e){return N(this.configuration).payTerminalPresence(r,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(r,e){return N(this.configuration).payTerminalSessionToken(r,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(r,e){return N(this.configuration).payTerminalUnpair(r,e).then(s=>s(this.axios,this.basePath))}},ds=function(a){return{cancelNetsTerminalTransaction:async(r,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",r);let s="/api/v3/payment/nets/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},cancelVivaTransactionV2:async(r,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",r);let s="/api/v2/payment/viva/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},createNetsRefundTransaction:async(r,e={})=>{c("createNetsRefundTransaction","createRefundDto",r);let s="/api/v4/payment/nets/refund/transaction",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getPaymentReference:async(r,e={})=>{c("getPaymentReference","getPaymentReferenceDto",r);let s="/api/v1/payment/reference",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getPaymentStatus:async(r,e={})=>{c("getPaymentStatus","getPaymentStatusDto",r);let s="/api/v1/payment/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},initiateNetsTerminalTransaction:async(r,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",r);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},initiateTerminalTransaction:async(r,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",r);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},processOnlineOrderRefund:async(r,e={})=>{c("processOnlineOrderRefund","orderResponseDto",r);let s="/api/v1/payment/online-orders/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},refundSingleVivaTransaction:async(r,e={})=>{c("refundSingleVivaTransaction","createRefundDto",r);let s="/api/v4/payment/viva/refund/single",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},W=function(a){let r=ds(a);return{async cancelNetsTerminalTransaction(e,s){let t=await r.cancelNetsTerminalTransaction(e,s);return P(t,h,p,a)},async cancelVivaTransactionV2(e,s){let t=await r.cancelVivaTransactionV2(e,s);return P(t,h,p,a)},async createNetsRefundTransaction(e,s){let t=await r.createNetsRefundTransaction(e,s);return P(t,h,p,a)},async getPaymentReference(e,s){let t=await r.getPaymentReference(e,s);return P(t,h,p,a)},async getPaymentStatus(e,s){let t=await r.getPaymentStatus(e,s);return P(t,h,p,a)},async initiateNetsTerminalTransaction(e,s){let t=await r.initiateNetsTerminalTransaction(e,s);return P(t,h,p,a)},async initiateTerminalTransaction(e,s){let t=await r.initiateTerminalTransaction(e,s);return P(t,h,p,a)},async processOnlineOrderRefund(e,s){let t=await r.processOnlineOrderRefund(e,s);return P(t,h,p,a)},async refundSingleVivaTransaction(e,s){let t=await r.refundSingleVivaTransaction(e,s);return P(t,h,p,a)}}},ta=function(a,r,e){let s=W(a);return{cancelNetsTerminalTransaction(t,n){return s.cancelNetsTerminalTransaction(t,n).then(o=>o(e,r))},cancelVivaTransactionV2(t,n){return s.cancelVivaTransactionV2(t,n).then(o=>o(e,r))},createNetsRefundTransaction(t,n){return s.createNetsRefundTransaction(t,n).then(o=>o(e,r))},getPaymentReference(t,n){return s.getPaymentReference(t,n).then(o=>o(e,r))},getPaymentStatus(t,n){return s.getPaymentStatus(t,n).then(o=>o(e,r))},initiateNetsTerminalTransaction(t,n){return s.initiateNetsTerminalTransaction(t,n).then(o=>o(e,r))},initiateTerminalTransaction(t,n){return s.initiateTerminalTransaction(t,n).then(o=>o(e,r))},processOnlineOrderRefund(t,n){return s.processOnlineOrderRefund(t,n).then(o=>o(e,r))},refundSingleVivaTransaction(t,n){return s.refundSingleVivaTransaction(t,n).then(o=>o(e,r))}}},rt=class extends S{cancelNetsTerminalTransaction(r,e){return W(this.configuration).cancelNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(r,e){return W(this.configuration).cancelVivaTransactionV2(r,e).then(s=>s(this.axios,this.basePath))}createNetsRefundTransaction(r,e){return W(this.configuration).createNetsRefundTransaction(r,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(r,e){return W(this.configuration).getPaymentReference(r,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(r,e){return W(this.configuration).getPaymentStatus(r,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(r,e){return W(this.configuration).initiateNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(r,e){return W(this.configuration).initiateTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(r,e){return W(this.configuration).processOnlineOrderRefund(r,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(r,e){return W(this.configuration).refundSingleVivaTransaction(r,e).then(s=>s(this.axios,this.basePath))}},ps=function(a){return{createPaymentMethod:async(r,e,s,t={})=>{c("createPaymentMethod","businessId",r),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},deletePaymentMethodOption:async(r,e,s,t={})=>{c("deletePaymentMethodOption","businessId",r),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getCatalog:async(r,e,s,t={})=>{c("getCatalog","businessId",r),c("getCatalog","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getGlobalCatalog:async(r,e={})=>{let s="/api/v1/payment-methods/catalog",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.locale=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPaymentMethods:async(r,e,s,t={})=>{c("getPaymentMethods","businessId",r),c("getPaymentMethods","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getTypes:async(r={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},reorder:async(r,e,s,t={})=>{c("reorder","businessId",r),c("reorder","channel",e),c("reorder","bulkRankDto",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},updatePaymentMethodOption:async(r,e,s,t,n={})=>{c("updatePaymentMethodOption","businessId",r),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",s),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}}}},K=function(a){let r=ps(a);return{async createPaymentMethod(e,s,t,n){let o=await r.createPaymentMethod(e,s,t,n);return P(o,h,p,a)},async deletePaymentMethodOption(e,s,t,n){let o=await r.deletePaymentMethodOption(e,s,t,n);return P(o,h,p,a)},async getCatalog(e,s,t,n){let o=await r.getCatalog(e,s,t,n);return P(o,h,p,a)},async getGlobalCatalog(e,s){let t=await r.getGlobalCatalog(e,s);return P(t,h,p,a)},async getPaymentMethods(e,s,t,n){let o=await r.getPaymentMethods(e,s,t,n);return P(o,h,p,a)},async getTypes(e){let s=await r.getTypes(e);return P(s,h,p,a)},async reorder(e,s,t,n){let o=await r.reorder(e,s,t,n);return P(o,h,p,a)},async updatePaymentMethodOption(e,s,t,n,o){let i=await r.updatePaymentMethodOption(e,s,t,n,o);return P(i,h,p,a)}}},sa=function(a,r,e){let s=K(a);return{createPaymentMethod(t,n,o,i){return s.createPaymentMethod(t,n,o,i).then(l=>l(e,r))},deletePaymentMethodOption(t,n,o,i){return s.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,r))},getCatalog(t,n,o,i){return s.getCatalog(t,n,o,i).then(l=>l(e,r))},getGlobalCatalog(t,n){return s.getGlobalCatalog(t,n).then(o=>o(e,r))},getPaymentMethods(t,n,o,i){return s.getPaymentMethods(t,n,o,i).then(l=>l(e,r))},getTypes(t){return s.getTypes(t).then(n=>n(e,r))},reorder(t,n,o,i){return s.reorder(t,n,o,i).then(l=>l(e,r))},updatePaymentMethodOption(t,n,o,i,l){return s.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,r))}}},nt=class extends S{createPaymentMethod(r,e,s,t){return K(this.configuration).createPaymentMethod(r,e,s,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(r,e,s,t){return K(this.configuration).deletePaymentMethodOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}getCatalog(r,e,s,t){return K(this.configuration).getCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getGlobalCatalog(r,e){return K(this.configuration).getGlobalCatalog(r,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(r,e,s,t){return K(this.configuration).getPaymentMethods(r,e,s,t).then(n=>n(this.axios,this.basePath))}getTypes(r){return K(this.configuration).getTypes(r).then(e=>e(this.axios,this.basePath))}reorder(r,e,s,t){return K(this.configuration).reorder(r,e,s,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(r,e,s,t,n){return K(this.configuration).updatePaymentMethodOption(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},ms=function(a){return{cancelSession:async(r,e={})=>{c("cancelSession","clientToken",r);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOrderSettlementStatus:async(r,e,s,t={})=>{c("getOrderSettlementStatus","businessId",r),c("getOrderSettlementStatus","orderId",e);let n="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},getPaymentSession:async(r,e={})=>{c("getPaymentSession","clientToken",r);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPaymentSessionAnalytics:async(r,e,s,t,n={})=>{c("getPaymentSessionAnalytics","businessId",r),c("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};r!==void 0&&(A.businessId=r),e!==void 0&&(A.timeSpan=e),s!==void 0&&(A.start=s),t!==void 0&&(A.end=t),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},initiateNetsSession:async(r,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",r);let t="/api/v1/payment-session/nets/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(r,i,a),{url:g(n),options:i}},initiateVivaA2aSession:async(r,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",r);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},initiateVivaSession:async(r,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",r);let t="/api/v1/payment-session/viva/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(r,i,a),{url:g(n),options:i}},initiateWorldlineSession:async(r,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",r);let t="/api/v1/payment-session/worldline/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(r,i,a),{url:g(n),options:i}},paymentSessionGetChargeStatus:async(r,e={})=>{c("paymentSessionGetChargeStatus","chargeId",r);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},paymentSessionRegisterChargeMapping:async(r,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",r);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},pollVivaSession:async(r,e={})=>{c("pollVivaSession","pollVivaSessionDto",r);let s="/api/v1/payment-session/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},pollWorldlineSession:async(r,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",r);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},recordManualPayment:async(r,e={})=>{c("recordManualPayment","createManualSessionDto",r);let s="/api/v1/payment-session/manual",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},refundNetsSession:async(r,e={})=>{c("refundNetsSession","reverseSessionDto",r);let s="/api/v1/payment-session/nets/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},refundVivaSession:async(r,e={})=>{c("refundVivaSession","reverseSessionDto",r);let s="/api/v1/payment-session/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},refundWorldlineSession:async(r,e={})=>{c("refundWorldlineSession","reverseSessionDto",r);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},retryWorldlineReversal:async(r,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",r);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},revertNetsSession:async(r,e={})=>{c("revertNetsSession","reverseSessionDto",r);let s="/api/v1/payment-session/nets/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},revertVivaSession:async(r,e={})=>{c("revertVivaSession","reverseSessionDto",r);let s="/api/v1/payment-session/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},revertWorldlineSession:async(r,e={})=>{c("revertWorldlineSession","reverseSessionDto",r);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},voidManualPayment:async(r,e={})=>{c("voidManualPayment","voidManualSessionDto",r);let s="/api/v1/payment-session/void",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},E=function(a){let r=ms(a);return{async cancelSession(e,s){let t=await r.cancelSession(e,s);return P(t,h,p,a)},async getOrderSettlementStatus(e,s,t,n){let o=await r.getOrderSettlementStatus(e,s,t,n);return P(o,h,p,a)},async getPaymentSession(e,s){let t=await r.getPaymentSession(e,s);return P(t,h,p,a)},async getPaymentSessionAnalytics(e,s,t,n,o){let i=await r.getPaymentSessionAnalytics(e,s,t,n,o);return P(i,h,p,a)},async initiateNetsSession(e,s,t){let n=await r.initiateNetsSession(e,s,t);return P(n,h,p,a)},async initiateVivaA2aSession(e,s){let t=await r.initiateVivaA2aSession(e,s);return P(t,h,p,a)},async initiateVivaSession(e,s,t){let n=await r.initiateVivaSession(e,s,t);return P(n,h,p,a)},async initiateWorldlineSession(e,s,t){let n=await r.initiateWorldlineSession(e,s,t);return P(n,h,p,a)},async paymentSessionGetChargeStatus(e,s){let t=await r.paymentSessionGetChargeStatus(e,s);return P(t,h,p,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await r.paymentSessionRegisterChargeMapping(e,s);return P(t,h,p,a)},async pollVivaSession(e,s){let t=await r.pollVivaSession(e,s);return P(t,h,p,a)},async pollWorldlineSession(e,s){let t=await r.pollWorldlineSession(e,s);return P(t,h,p,a)},async recordManualPayment(e,s){let t=await r.recordManualPayment(e,s);return P(t,h,p,a)},async refundNetsSession(e,s){let t=await r.refundNetsSession(e,s);return P(t,h,p,a)},async refundVivaSession(e,s){let t=await r.refundVivaSession(e,s);return P(t,h,p,a)},async refundWorldlineSession(e,s){let t=await r.refundWorldlineSession(e,s);return P(t,h,p,a)},async retryWorldlineReversal(e,s){let t=await r.retryWorldlineReversal(e,s);return P(t,h,p,a)},async revertNetsSession(e,s){let t=await r.revertNetsSession(e,s);return P(t,h,p,a)},async revertVivaSession(e,s){let t=await r.revertVivaSession(e,s);return P(t,h,p,a)},async revertWorldlineSession(e,s){let t=await r.revertWorldlineSession(e,s);return P(t,h,p,a)},async voidManualPayment(e,s){let t=await r.voidManualPayment(e,s);return P(t,h,p,a)}}},ra=function(a,r,e){let s=E(a);return{cancelSession(t,n){return s.cancelSession(t,n).then(o=>o(e,r))},getOrderSettlementStatus(t,n,o,i){return s.getOrderSettlementStatus(t,n,o,i).then(l=>l(e,r))},getPaymentSession(t,n){return s.getPaymentSession(t,n).then(o=>o(e,r))},getPaymentSessionAnalytics(t,n,o,i,l){return s.getPaymentSessionAnalytics(t,n,o,i,l).then(u=>u(e,r))},initiateNetsSession(t,n,o){return s.initiateNetsSession(t,n,o).then(i=>i(e,r))},initiateVivaA2aSession(t,n){return s.initiateVivaA2aSession(t,n).then(o=>o(e,r))},initiateVivaSession(t,n,o){return s.initiateVivaSession(t,n,o).then(i=>i(e,r))},initiateWorldlineSession(t,n,o){return s.initiateWorldlineSession(t,n,o).then(i=>i(e,r))},paymentSessionGetChargeStatus(t,n){return s.paymentSessionGetChargeStatus(t,n).then(o=>o(e,r))},paymentSessionRegisterChargeMapping(t,n){return s.paymentSessionRegisterChargeMapping(t,n).then(o=>o(e,r))},pollVivaSession(t,n){return s.pollVivaSession(t,n).then(o=>o(e,r))},pollWorldlineSession(t,n){return s.pollWorldlineSession(t,n).then(o=>o(e,r))},recordManualPayment(t,n){return s.recordManualPayment(t,n).then(o=>o(e,r))},refundNetsSession(t,n){return s.refundNetsSession(t,n).then(o=>o(e,r))},refundVivaSession(t,n){return s.refundVivaSession(t,n).then(o=>o(e,r))},refundWorldlineSession(t,n){return s.refundWorldlineSession(t,n).then(o=>o(e,r))},retryWorldlineReversal(t,n){return s.retryWorldlineReversal(t,n).then(o=>o(e,r))},revertNetsSession(t,n){return s.revertNetsSession(t,n).then(o=>o(e,r))},revertVivaSession(t,n){return s.revertVivaSession(t,n).then(o=>o(e,r))},revertWorldlineSession(t,n){return s.revertWorldlineSession(t,n).then(o=>o(e,r))},voidManualPayment(t,n){return s.voidManualPayment(t,n).then(o=>o(e,r))}}},ot=class extends S{cancelSession(r,e){return E(this.configuration).cancelSession(r,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(r,e,s,t){return E(this.configuration).getOrderSettlementStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getPaymentSession(r,e){return E(this.configuration).getPaymentSession(r,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(r,e,s,t,n){return E(this.configuration).getPaymentSessionAnalytics(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}initiateNetsSession(r,e,s){return E(this.configuration).initiateNetsSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(r,e){return E(this.configuration).initiateVivaA2aSession(r,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(r,e,s){return E(this.configuration).initiateVivaSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(r,e,s){return E(this.configuration).initiateWorldlineSession(r,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(r,e){return E(this.configuration).paymentSessionGetChargeStatus(r,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(r,e){return E(this.configuration).paymentSessionRegisterChargeMapping(r,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(r,e){return E(this.configuration).pollVivaSession(r,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(r,e){return E(this.configuration).pollWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(r,e){return E(this.configuration).recordManualPayment(r,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(r,e){return E(this.configuration).refundNetsSession(r,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(r,e){return E(this.configuration).refundVivaSession(r,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(r,e){return E(this.configuration).refundWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(r,e){return E(this.configuration).retryWorldlineReversal(r,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(r,e){return E(this.configuration).revertNetsSession(r,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(r,e){return E(this.configuration).revertVivaSession(r,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(r,e){return E(this.configuration).revertWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(r,e){return E(this.configuration).voidManualPayment(r,e).then(s=>s(this.axios,this.basePath))}},ys=function(a){return{deleteCategoryPolicy:async(r,e,s={})=>{c("deleteCategoryPolicy","businessId",r),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.categoryId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},deletePrinter:async(r,e,s={})=>{c("deletePrinter","id",r),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},deletePrinterByAddress:async(r,e,s={})=>{c("deletePrinterByAddress","businessId",r),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.address=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},deleteProductPolicy:async(r,e,s={})=>{c("deleteProductPolicy","businessId",r),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.productId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},listCategoryPolicies:async(r,e={})=>{c("listCategoryPolicies","businessId",r);let s="/api/v1/printer/policies/category",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listPrinters:async(r,e={})=>{c("listPrinters","businessId",r);let s="/api/v1/printer",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listProductPolicies:async(r,e={})=>{c("listProductPolicies","businessId",r);let s="/api/v1/printer/policies/product",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},upsertCategoryPolicy:async(r,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",r);let s="/api/v1/printer/policies/category",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},upsertPrinter:async(r,e={})=>{c("upsertPrinter","upsertPrinterDto",r);let s="/api/v1/printer",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},upsertProductPolicy:async(r,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",r);let s="/api/v1/printer/policies/product",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},F=function(a){let r=ys(a);return{async deleteCategoryPolicy(e,s,t){let n=await r.deleteCategoryPolicy(e,s,t);return P(n,h,p,a)},async deletePrinter(e,s,t){let n=await r.deletePrinter(e,s,t);return P(n,h,p,a)},async deletePrinterByAddress(e,s,t){let n=await r.deletePrinterByAddress(e,s,t);return P(n,h,p,a)},async deleteProductPolicy(e,s,t){let n=await r.deleteProductPolicy(e,s,t);return P(n,h,p,a)},async listCategoryPolicies(e,s){let t=await r.listCategoryPolicies(e,s);return P(t,h,p,a)},async listPrinters(e,s){let t=await r.listPrinters(e,s);return P(t,h,p,a)},async listProductPolicies(e,s){let t=await r.listProductPolicies(e,s);return P(t,h,p,a)},async upsertCategoryPolicy(e,s){let t=await r.upsertCategoryPolicy(e,s);return P(t,h,p,a)},async upsertPrinter(e,s){let t=await r.upsertPrinter(e,s);return P(t,h,p,a)},async upsertProductPolicy(e,s){let t=await r.upsertProductPolicy(e,s);return P(t,h,p,a)}}},na=function(a,r,e){let s=F(a);return{deleteCategoryPolicy(t,n,o){return s.deleteCategoryPolicy(t,n,o).then(i=>i(e,r))},deletePrinter(t,n,o){return s.deletePrinter(t,n,o).then(i=>i(e,r))},deletePrinterByAddress(t,n,o){return s.deletePrinterByAddress(t,n,o).then(i=>i(e,r))},deleteProductPolicy(t,n,o){return s.deleteProductPolicy(t,n,o).then(i=>i(e,r))},listCategoryPolicies(t,n){return s.listCategoryPolicies(t,n).then(o=>o(e,r))},listPrinters(t,n){return s.listPrinters(t,n).then(o=>o(e,r))},listProductPolicies(t,n){return s.listProductPolicies(t,n).then(o=>o(e,r))},upsertCategoryPolicy(t,n){return s.upsertCategoryPolicy(t,n).then(o=>o(e,r))},upsertPrinter(t,n){return s.upsertPrinter(t,n).then(o=>o(e,r))},upsertProductPolicy(t,n){return s.upsertProductPolicy(t,n).then(o=>o(e,r))}}},at=class extends S{deleteCategoryPolicy(r,e,s){return F(this.configuration).deleteCategoryPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(r,e,s){return F(this.configuration).deletePrinter(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(r,e,s){return F(this.configuration).deletePrinterByAddress(r,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(r,e,s){return F(this.configuration).deleteProductPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(r,e){return F(this.configuration).listCategoryPolicies(r,e).then(s=>s(this.axios,this.basePath))}listPrinters(r,e){return F(this.configuration).listPrinters(r,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(r,e){return F(this.configuration).listProductPolicies(r,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(r,e){return F(this.configuration).upsertCategoryPolicy(r,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(r,e){return F(this.configuration).upsertPrinter(r,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(r,e){return F(this.configuration).upsertProductPolicy(r,e).then(s=>s(this.axios,this.basePath))}},gs=function(a){return{generateProductSkuV2:async(r,e,s,t={})=>{c("generateProductSkuV2","businessId",r),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",s);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getChannelInventoryV2:async(r,e,s,t={})=>{c("getChannelInventoryV2","businessId",r),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},updateChannelInventoryV2:async(r,e,s,t,n={})=>{c("updateChannelInventoryV2","businessId",r),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",s),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},updateProductSkuV2:async(r,e,s,t,n={})=>{c("updateProductSkuV2","businessId",r),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",s),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}}}},oe=function(a){let r=gs(a);return{async generateProductSkuV2(e,s,t,n){let o=await r.generateProductSkuV2(e,s,t,n);return P(o,h,p,a)},async getChannelInventoryV2(e,s,t,n){let o=await r.getChannelInventoryV2(e,s,t,n);return P(o,h,p,a)},async updateChannelInventoryV2(e,s,t,n,o){let i=await r.updateChannelInventoryV2(e,s,t,n,o);return P(i,h,p,a)},async updateProductSkuV2(e,s,t,n,o){let i=await r.updateProductSkuV2(e,s,t,n,o);return P(i,h,p,a)}}},oa=function(a,r,e){let s=oe(a);return{generateProductSkuV2(t,n,o,i){return s.generateProductSkuV2(t,n,o,i).then(l=>l(e,r))},getChannelInventoryV2(t,n,o,i){return s.getChannelInventoryV2(t,n,o,i).then(l=>l(e,r))},updateChannelInventoryV2(t,n,o,i,l){return s.updateChannelInventoryV2(t,n,o,i,l).then(u=>u(e,r))},updateProductSkuV2(t,n,o,i,l){return s.updateProductSkuV2(t,n,o,i,l).then(u=>u(e,r))}}},it=class extends S{generateProductSkuV2(r,e,s,t){return oe(this.configuration).generateProductSkuV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelInventoryV2(r,e,s,t){return oe(this.configuration).getChannelInventoryV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(r,e,s,t,n){return oe(this.configuration).updateChannelInventoryV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(r,e,s,t,n){return oe(this.configuration).updateProductSkuV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},Ps=function(a){return{createOnboardingSession:async(r,e,s={})=>{c("createOnboardingSession","channel",r),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},disconnectOnboarding:async(r,e,s={})=>{c("disconnectOnboarding","channel",r),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getMenuIntegrations:async(r,e={})=>{c("getMenuIntegrations","businessId",r);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOnboardingStatus:async(r,e,s={})=>{c("getOnboardingStatus","channel",r),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getSupportedChannels:async(r,e={})=>{c("getSupportedChannels","businessId",r);let s="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listOnboardingStores:async(r,e,s={})=>{c("listOnboardingStores","channel",r),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(r))).replace("{state}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},provisionOnboardingStore:async(r,e,s,t={})=>{c("provisionOnboardingStore","channel",r),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",s);let n="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(r))).replace("{state}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},registerCredential:async(r,e={})=>{c("registerCredential","body",r);let s="/api/v1/provider/credentials",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},registerProvider:async(r,e={})=>{c("registerProvider","body",r);let s="/api/v1/provider",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},updateProviderSettings:async(r,e,s={})=>{c("updateProviderSettings","businessId",r),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},_=function(a){let r=Ps(a);return{async createOnboardingSession(e,s,t){let n=await r.createOnboardingSession(e,s,t);return P(n,h,p,a)},async disconnectOnboarding(e,s,t){let n=await r.disconnectOnboarding(e,s,t);return P(n,h,p,a)},async getMenuIntegrations(e,s){let t=await r.getMenuIntegrations(e,s);return P(t,h,p,a)},async getOnboardingStatus(e,s,t){let n=await r.getOnboardingStatus(e,s,t);return P(n,h,p,a)},async getSupportedChannels(e,s){let t=await r.getSupportedChannels(e,s);return P(t,h,p,a)},async listOnboardingStores(e,s,t){let n=await r.listOnboardingStores(e,s,t);return P(n,h,p,a)},async provisionOnboardingStore(e,s,t,n){let o=await r.provisionOnboardingStore(e,s,t,n);return P(o,h,p,a)},async registerCredential(e,s){let t=await r.registerCredential(e,s);return P(t,h,p,a)},async registerProvider(e,s){let t=await r.registerProvider(e,s);return P(t,h,p,a)},async updateProviderSettings(e,s,t){let n=await r.updateProviderSettings(e,s,t);return P(n,h,p,a)}}},aa=function(a,r,e){let s=_(a);return{createOnboardingSession(t,n,o){return s.createOnboardingSession(t,n,o).then(i=>i(e,r))},disconnectOnboarding(t,n,o){return s.disconnectOnboarding(t,n,o).then(i=>i(e,r))},getMenuIntegrations(t,n){return s.getMenuIntegrations(t,n).then(o=>o(e,r))},getOnboardingStatus(t,n,o){return s.getOnboardingStatus(t,n,o).then(i=>i(e,r))},getSupportedChannels(t,n){return s.getSupportedChannels(t,n).then(o=>o(e,r))},listOnboardingStores(t,n,o){return s.listOnboardingStores(t,n,o).then(i=>i(e,r))},provisionOnboardingStore(t,n,o,i){return s.provisionOnboardingStore(t,n,o,i).then(l=>l(e,r))},registerCredential(t,n){return s.registerCredential(t,n).then(o=>o(e,r))},registerProvider(t,n){return s.registerProvider(t,n).then(o=>o(e,r))},updateProviderSettings(t,n,o){return s.updateProviderSettings(t,n,o).then(i=>i(e,r))}}},lt=class extends S{createOnboardingSession(r,e,s){return _(this.configuration).createOnboardingSession(r,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(r,e,s){return _(this.configuration).disconnectOnboarding(r,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(r,e){return _(this.configuration).getMenuIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(r,e,s){return _(this.configuration).getOnboardingStatus(r,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(r,e){return _(this.configuration).getSupportedChannels(r,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(r,e,s){return _(this.configuration).listOnboardingStores(r,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(r,e,s,t){return _(this.configuration).provisionOnboardingStore(r,e,s,t).then(n=>n(this.axios,this.basePath))}registerCredential(r,e){return _(this.configuration).registerCredential(r,e).then(s=>s(this.axios,this.basePath))}registerProvider(r,e){return _(this.configuration).registerProvider(r,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(r,e,s){return _(this.configuration).updateProviderSettings(r,e,s).then(t=>t(this.axios,this.basePath))}},hs=function(a){return{receiptFooterGetConfig:async(r,e,s={})=>{c("receiptFooterGetConfig","businessId",r),c("receiptFooterGetConfig","xAppX",e);let t="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await R(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},receiptFooterUpsertConfig:async(r,e,s,t={})=>{c("receiptFooterUpsertConfig","businessId",r),c("receiptFooterUpsertConfig","xAppX",e),c("receiptFooterUpsertConfig","upsertReceiptFooterDto",s);let n="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await R(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},De=function(a){let r=hs(a);return{async receiptFooterGetConfig(e,s,t){let n=await r.receiptFooterGetConfig(e,s,t);return P(n,h,p,a)},async receiptFooterUpsertConfig(e,s,t,n){let o=await r.receiptFooterUpsertConfig(e,s,t,n);return P(o,h,p,a)}}},ia=function(a,r,e){let s=De(a);return{receiptFooterGetConfig(t,n,o){return s.receiptFooterGetConfig(t,n,o).then(i=>i(e,r))},receiptFooterUpsertConfig(t,n,o,i){return s.receiptFooterUpsertConfig(t,n,o,i).then(l=>l(e,r))}}},ut=class extends S{receiptFooterGetConfig(r,e,s){return De(this.configuration).receiptFooterGetConfig(r,e,s).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(r,e,s,t){return De(this.configuration).receiptFooterUpsertConfig(r,e,s,t).then(n=>n(this.axios,this.basePath))}},As=function(a){return{cancelPlan:async(r,e,s,t={})=>{c("cancelPlan","businessId",r),c("cancelPlan","orderId",e),c("cancelPlan","refundId",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},cancelPlanV2:async(r,e,s,t={})=>{c("cancelPlanV2","businessId",r),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},createRefundPlan:async(r,e,s,t={})=>{c("createRefundPlan","businessId",r),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},createRefundPlanV2:async(r,e,s,t={})=>{c("createRefundPlanV2","businessId",r),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},getRefundPlan:async(r,e,s,t={})=>{c("getRefundPlan","businessId",r),c("getRefundPlan","orderId",e),c("getRefundPlan","status",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getRefundPlanV2:async(r,e,s,t={})=>{c("getRefundPlanV2","businessId",r),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},recordRefundPlan:async(r,e,s,t,n={})=>{c("recordRefundPlan","businessId",r),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",s),c("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},recordRefundPlanV2:async(r,e,s,t,n={})=>{c("recordRefundPlanV2","businessId",r),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",s),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},refundOnlineOrder:async(r,e,s,t={})=>{c("refundOnlineOrder","businessId",r),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},refundOnlineOrderV2:async(r,e,s,t={})=>{c("refundOnlineOrderV2","businessId",r),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},resolveRefundChoice:async(r,e,s,t,n={})=>{c("resolveRefundChoice","businessId",r),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",s),c("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},resolveRefundChoiceV2:async(r,e,s,t,n={})=>{c("resolveRefundChoiceV2","businessId",r),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",s),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},startProcessPlan:async(r,e,s,t={})=>{c("startProcessPlan","businessId",r),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},startProcessPlanV2:async(r,e,s,t={})=>{c("startProcessPlanV2","businessId",r),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}}}},k=function(a){let r=As(a);return{async cancelPlan(e,s,t,n){let o=await r.cancelPlan(e,s,t,n);return P(o,h,p,a)},async cancelPlanV2(e,s,t,n){let o=await r.cancelPlanV2(e,s,t,n);return P(o,h,p,a)},async createRefundPlan(e,s,t,n){let o=await r.createRefundPlan(e,s,t,n);return P(o,h,p,a)},async createRefundPlanV2(e,s,t,n){let o=await r.createRefundPlanV2(e,s,t,n);return P(o,h,p,a)},async getRefundPlan(e,s,t,n){let o=await r.getRefundPlan(e,s,t,n);return P(o,h,p,a)},async getRefundPlanV2(e,s,t,n){let o=await r.getRefundPlanV2(e,s,t,n);return P(o,h,p,a)},async recordRefundPlan(e,s,t,n,o){let i=await r.recordRefundPlan(e,s,t,n,o);return P(i,h,p,a)},async recordRefundPlanV2(e,s,t,n,o){let i=await r.recordRefundPlanV2(e,s,t,n,o);return P(i,h,p,a)},async refundOnlineOrder(e,s,t,n){let o=await r.refundOnlineOrder(e,s,t,n);return P(o,h,p,a)},async refundOnlineOrderV2(e,s,t,n){let o=await r.refundOnlineOrderV2(e,s,t,n);return P(o,h,p,a)},async resolveRefundChoice(e,s,t,n,o){let i=await r.resolveRefundChoice(e,s,t,n,o);return P(i,h,p,a)},async resolveRefundChoiceV2(e,s,t,n,o){let i=await r.resolveRefundChoiceV2(e,s,t,n,o);return P(i,h,p,a)},async startProcessPlan(e,s,t,n){let o=await r.startProcessPlan(e,s,t,n);return P(o,h,p,a)},async startProcessPlanV2(e,s,t,n){let o=await r.startProcessPlanV2(e,s,t,n);return P(o,h,p,a)}}},la=function(a,r,e){let s=k(a);return{cancelPlan(t,n,o,i){return s.cancelPlan(t,n,o,i).then(l=>l(e,r))},cancelPlanV2(t,n,o,i){return s.cancelPlanV2(t,n,o,i).then(l=>l(e,r))},createRefundPlan(t,n,o,i){return s.createRefundPlan(t,n,o,i).then(l=>l(e,r))},createRefundPlanV2(t,n,o,i){return s.createRefundPlanV2(t,n,o,i).then(l=>l(e,r))},getRefundPlan(t,n,o,i){return s.getRefundPlan(t,n,o,i).then(l=>l(e,r))},getRefundPlanV2(t,n,o,i){return s.getRefundPlanV2(t,n,o,i).then(l=>l(e,r))},recordRefundPlan(t,n,o,i,l){return s.recordRefundPlan(t,n,o,i,l).then(u=>u(e,r))},recordRefundPlanV2(t,n,o,i,l){return s.recordRefundPlanV2(t,n,o,i,l).then(u=>u(e,r))},refundOnlineOrder(t,n,o,i){return s.refundOnlineOrder(t,n,o,i).then(l=>l(e,r))},refundOnlineOrderV2(t,n,o,i){return s.refundOnlineOrderV2(t,n,o,i).then(l=>l(e,r))},resolveRefundChoice(t,n,o,i,l){return s.resolveRefundChoice(t,n,o,i,l).then(u=>u(e,r))},resolveRefundChoiceV2(t,n,o,i,l){return s.resolveRefundChoiceV2(t,n,o,i,l).then(u=>u(e,r))},startProcessPlan(t,n,o,i){return s.startProcessPlan(t,n,o,i).then(l=>l(e,r))},startProcessPlanV2(t,n,o,i){return s.startProcessPlanV2(t,n,o,i).then(l=>l(e,r))}}},ct=class extends S{cancelPlan(r,e,s,t){return k(this.configuration).cancelPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}cancelPlanV2(r,e,s,t){return k(this.configuration).cancelPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}createRefundPlan(r,e,s,t){return k(this.configuration).createRefundPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}createRefundPlanV2(r,e,s,t){return k(this.configuration).createRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getRefundPlan(r,e,s,t){return k(this.configuration).getRefundPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}getRefundPlanV2(r,e,s,t){return k(this.configuration).getRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}recordRefundPlan(r,e,s,t,n){return k(this.configuration).recordRefundPlan(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(r,e,s,t,n){return k(this.configuration).recordRefundPlanV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(r,e,s,t){return k(this.configuration).refundOnlineOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}refundOnlineOrderV2(r,e,s,t){return k(this.configuration).refundOnlineOrderV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(r,e,s,t,n){return k(this.configuration).resolveRefundChoice(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(r,e,s,t,n){return k(this.configuration).resolveRefundChoiceV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(r,e,s,t){return k(this.configuration).startProcessPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}startProcessPlanV2(r,e,s,t){return k(this.configuration).startProcessPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}},bs=function(a){return{getEndOfDayReportV5:async(r,e,s,t,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",r);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},f={};e!==void 0&&(f.timeSpan=e),s!==void 0&&(f.start=s),t!==void 0&&(f.end=t),r&&(f.businessIds=r),n!==void 0&&(f.timezone=n),o!==void 0&&(f.provider=o),y(u,f);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},{url:g(u),options:A}},getPOSEndOfDayReportV4:async(r,e,s,t,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",r);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r&&(x.businessIds=r),n!==void 0&&(x.timezone=n),y(l,x);let f=u&&u.headers?u.headers:{};return d.headers={...A,...f,...o.headers},{url:g(l),options:d}},sendReportEmailV4:async(r,e,s,t,n,o,i={})=>{c("sendReportEmailV4","businessIds",r),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",s);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},x={},f={};t!==void 0&&(f.timeSpan=t),n!==void 0&&(f.start=n),o!==void 0&&(f.end=o),r&&(f.businessIds=r),e!==void 0&&(f.timezone=e),x["Content-Type"]="application/json",y(u,f);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},A.data=b(s,A,a),{url:g(u),options:A}},sendReportEmailV5:async(r,e,s,t,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",r),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},f={},C={};t!==void 0&&(C.timeSpan=t),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),r&&(C.businessIds=r),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),f["Content-Type"]="application/json",y(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},x.data=b(s,x,a),{url:g(d),options:x}}}},ae=function(a){let r=bs(a);return{async getEndOfDayReportV5(e,s,t,n,o,i,l){let u=await r.getEndOfDayReportV5(e,s,t,n,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,s,t,n,o,i){let l=await r.getPOSEndOfDayReportV4(e,s,t,n,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,s,t,n,o,i,l){let u=await r.sendReportEmailV4(e,s,t,n,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,s,t,n,o,i,l,u){let d=await r.sendReportEmailV5(e,s,t,n,o,i,l,u);return P(d,h,p,a)}}},ua=function(a,r,e){let s=ae(a);return{getEndOfDayReportV5(t,n,o,i,l,u,d){return s.getEndOfDayReportV5(t,n,o,i,l,u,d).then(A=>A(e,r))},getPOSEndOfDayReportV4(t,n,o,i,l,u){return s.getPOSEndOfDayReportV4(t,n,o,i,l,u).then(d=>d(e,r))},sendReportEmailV4(t,n,o,i,l,u,d){return s.sendReportEmailV4(t,n,o,i,l,u,d).then(A=>A(e,r))},sendReportEmailV5(t,n,o,i,l,u,d,A){return s.sendReportEmailV5(t,n,o,i,l,u,d,A).then(x=>x(e,r))}}},dt=class extends S{getEndOfDayReportV5(r,e,s,t,n,o,i){return ae(this.configuration).getEndOfDayReportV5(r,e,s,t,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(r,e,s,t,n,o){return ae(this.configuration).getPOSEndOfDayReportV4(r,e,s,t,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(r,e,s,t,n,o,i){return ae(this.configuration).sendReportEmailV4(r,e,s,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(r,e,s,t,n,o,i,l){return ae(this.configuration).sendReportEmailV5(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},xs=function(a){return{createReservation:async(r,e={})=>{c("createReservation","createReservationDto",r);let s="/api/v1/reservations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getReservationAvailability:async(r,e,s,t,n,o={})=>{c("getReservationAvailability","businessId",r),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let i="/api/v1/reservations/availability",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};await R(A,a),r!==void 0&&(x.businessId=r),e!==void 0&&(x.date=e),s!==void 0&&(x.partySize=s),t!==void 0&&(x.sectionId=t),n!==void 0&&(x.excludeReservationId=n),y(l,x);let f=u&&u.headers?u.headers:{};return d.headers={...A,...f,...o.headers},{url:g(l),options:d}},getReservationPolicy:async(r,e={})=>{c("getReservationPolicy","businessId",r);let s="/api/v1/reservations/policy",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await R(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},linkReservationIntegration:async(r,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",r);let s="/api/v1/reservations/link",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},listReservations:async(r,e,s,t={})=>{c("listReservations","businessId",r);let n="/api/v1/reservations",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await R(u,a),r!==void 0&&(d.businessId=r),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},reservationInboundWebhook:async(r,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",r);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},unlinkReservationIntegration:async(r,e={})=>{c("unlinkReservationIntegration","businessId",r);let s="/api/v1/reservations/link",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await R(i,a),r!==void 0&&(l.businessId=r),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateReservation:async(r,e,s,t={})=>{c("updateReservation","id",r),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let n="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}},updateReservationPolicy:async(r,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",r);let s="/api/v1/reservations/policy",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await R(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},updateReservationStatus:async(r,e,s,t={})=>{c("updateReservationStatus","id",r),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let n="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await R(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:g(o),options:l}}}},j=function(a){let r=xs(a);return{async createReservation(e,s){let t=await r.createReservation(e,s);return P(t,h,p,a)},async getReservationAvailability(e,s,t,n,o,i){let l=await r.getReservationAvailability(e,s,t,n,o,i);return P(l,h,p,a)},async getReservationPolicy(e,s){let t=await r.getReservationPolicy(e,s);return P(t,h,p,a)},async linkReservationIntegration(e,s){let t=await r.linkReservationIntegration(e,s);return P(t,h,p,a)},async listReservations(e,s,t,n){let o=await r.listReservations(e,s,t,n);return P(o,h,p,a)},async reservationInboundWebhook(e,s){let t=await r.reservationInboundWebhook(e,s);return P(t,h,p,a)},async unlinkReservationIntegration(e,s){let t=await r.unlinkReservationIntegration(e,s);return P(t,h,p,a)},async updateReservation(e,s,t,n){let o=await r.updateReservation(e,s,t,n);return P(o,h,p,a)},async updateReservationPolicy(e,s){let t=await r.updateReservationPolicy(e,s);return P(t,h,p,a)},async updateReservationStatus(e,s,t,n){let o=await r.updateReservationStatus(e,s,t,n);return P(o,h,p,a)}}},ca=function(a,r,e){let s=j(a);return{createReservation(t,n){return s.createReservation(t,n).then(o=>o(e,r))},getReservationAvailability(t,n,o,i,l,u){return s.getReservationAvailability(t,n,o,i,l,u).then(d=>d(e,r))},getReservationPolicy(t,n){return s.getReservationPolicy(t,n).then(o=>o(e,r))},linkReservationIntegration(t,n){return s.linkReservationIntegration(t,n).then(o=>o(e,r))},listReservations(t,n,o,i){return s.listReservations(t,n,o,i).then(l=>l(e,r))},reservationInboundWebhook(t,n){return s.reservationInboundWebhook(t,n).then(o=>o(e,r))},unlinkReservationIntegration(t,n){return s.unlinkReservationIntegration(t,n).then(o=>o(e,r))},updateReservation(t,n,o,i){return s.updateReservation(t,n,o,i).then(l=>l(e,r))},updateReservationPolicy(t,n){return s.updateReservationPolicy(t,n).then(o=>o(e,r))},updateReservationStatus(t,n,o,i){return s.updateReservationStatus(t,n,o,i).then(l=>l(e,r))}}},pt=class extends S{createReservation(r,e){return j(this.configuration).createReservation(r,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(r,e,s,t,n,o){return j(this.configuration).getReservationAvailability(r,e,s,t,n,o).then(i=>i(this.axios,this.basePath))}getReservationPolicy(r,e){return j(this.configuration).getReservationPolicy(r,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(r,e){return j(this.configuration).linkReservationIntegration(r,e).then(s=>s(this.axios,this.basePath))}listReservations(r,e,s,t){return j(this.configuration).listReservations(r,e,s,t).then(n=>n(this.axios,this.basePath))}reservationInboundWebhook(r,e){return j(this.configuration).reservationInboundWebhook(r,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(r,e){return j(this.configuration).unlinkReservationIntegration(r,e).then(s=>s(this.axios,this.basePath))}updateReservation(r,e,s,t){return j(this.configuration).updateReservation(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateReservationPolicy(r,e){return j(this.configuration).updateReservationPolicy(r,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(r,e,s,t){return j(this.configuration).updateReservationStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Rs=function(a){return{clockIn:async(r,e,s={})=>{c("clockIn","businessId",r),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},clockOut:async(r,e,s={})=>{c("clockOut","businessId",r),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getTodayShift:async(r,e,s={})=>{c("getTodayShift","businessId",r),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},lockTill:async(r,e={})=>{c("lockTill","businessId",r);let s="/api/v2/businesses/{businessId}/shifts/lock".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await R(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},unlock:async(r,e,s={})=>{c("unlock","businessId",r),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},unlockTillWithPin:async(r,e,s={})=>{c("unlockTillWithPin","businessId",r),c("unlockTillWithPin","xPosPin",e);let t="/api/v2/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await R(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}}}},J=function(a){let r=Rs(a);return{async clockIn(e,s,t){let n=await r.clockIn(e,s,t);return P(n,h,p,a)},async clockOut(e,s,t){let n=await r.clockOut(e,s,t);return P(n,h,p,a)},async getTodayShift(e,s,t){let n=await r.getTodayShift(e,s,t);return P(n,h,p,a)},async lockTill(e,s){let t=await r.lockTill(e,s);return P(t,h,p,a)},async unlock(e,s,t){let n=await r.unlock(e,s,t);return P(n,h,p,a)},async unlockTillWithPin(e,s,t){let n=await r.unlockTillWithPin(e,s,t);return P(n,h,p,a)}}},da=function(a,r,e){let s=J(a);return{clockIn(t,n,o){return s.clockIn(t,n,o).then(i=>i(e,r))},clockOut(t,n,o){return s.clockOut(t,n,o).then(i=>i(e,r))},getTodayShift(t,n,o){return s.getTodayShift(t,n,o).then(i=>i(e,r))},lockTill(t,n){return s.lockTill(t,n).then(o=>o(e,r))},unlock(t,n,o){return s.unlock(t,n,o).then(i=>i(e,r))},unlockTillWithPin(t,n,o){return s.unlockTillWithPin(t,n,o).then(i=>i(e,r))}}},mt=class extends S{clockIn(r,e,s){return J(this.configuration).clockIn(r,e,s).then(t=>t(this.axios,this.basePath))}clockOut(r,e,s){return J(this.configuration).clockOut(r,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(r,e,s){return J(this.configuration).getTodayShift(r,e,s).then(t=>t(this.axios,this.basePath))}lockTill(r,e){return J(this.configuration).lockTill(r,e).then(s=>s(this.axios,this.basePath))}unlock(r,e,s){return J(this.configuration).unlock(r,e,s).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(r,e,s){return J(this.configuration).unlockTillWithPin(r,e,s).then(t=>t(this.axios,this.basePath))}},fs=function(a){return{deactivateStation:async(r={})=>{let e="/api/v1/station/deactivate",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},getStation:async(r={})=>{let e="/api/v1/station",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},syncStation:async(r,e={})=>{c("syncStation","syncStationDto",r);let s="/api/v1/station/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},me=function(a){let r=fs(a);return{async deactivateStation(e){let s=await r.deactivateStation(e);return P(s,h,p,a)},async getStation(e){let s=await r.getStation(e);return P(s,h,p,a)},async syncStation(e,s){let t=await r.syncStation(e,s);return P(t,h,p,a)}}},pa=function(a,r,e){let s=me(a);return{deactivateStation(t){return s.deactivateStation(t).then(n=>n(e,r))},getStation(t){return s.getStation(t).then(n=>n(e,r))},syncStation(t,n){return s.syncStation(t,n).then(o=>o(e,r))}}},yt=class extends S{deactivateStation(r){return me(this.configuration).deactivateStation(r).then(e=>e(this.axios,this.basePath))}getStation(r){return me(this.configuration).getStation(r).then(e=>e(this.axios,this.basePath))}syncStation(r,e){return me(this.configuration).syncStation(r,e).then(s=>s(this.axios,this.basePath))}},Cs=function(a){return{connectTerminal:async(r,e={})=>{c("connectTerminal","connectTerminalDto",r);let s="/api/v1/terminal/connect",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},disconnectTerminal:async(r={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},discoverTerminal:async(r,e={})=>{c("discoverTerminal","discoverTerminalDto",r);let s="/api/v1/terminal/discover",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getTerminalStatus:async(r,e,s,t={})=>{c("getTerminalStatus","businessId",r),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",s);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.provider=e),s!==void 0&&(d.terminalId=s),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}}}},ie=function(a){let r=Cs(a);return{async connectTerminal(e,s){let t=await r.connectTerminal(e,s);return P(t,h,p,a)},async disconnectTerminal(e){let s=await r.disconnectTerminal(e);return P(s,h,p,a)},async discoverTerminal(e,s){let t=await r.discoverTerminal(e,s);return P(t,h,p,a)},async getTerminalStatus(e,s,t,n){let o=await r.getTerminalStatus(e,s,t,n);return P(o,h,p,a)}}},ma=function(a,r,e){let s=ie(a);return{connectTerminal(t,n){return s.connectTerminal(t,n).then(o=>o(e,r))},disconnectTerminal(t){return s.disconnectTerminal(t).then(n=>n(e,r))},discoverTerminal(t,n){return s.discoverTerminal(t,n).then(o=>o(e,r))},getTerminalStatus(t,n,o,i){return s.getTerminalStatus(t,n,o,i).then(l=>l(e,r))}}},gt=class extends S{connectTerminal(r,e){return ie(this.configuration).connectTerminal(r,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(r){return ie(this.configuration).disconnectTerminal(r).then(e=>e(this.axios,this.basePath))}discoverTerminal(r,e){return ie(this.configuration).discoverTerminal(r,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(r,e,s,t){return ie(this.configuration).getTerminalStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Ds=function(a){return{getUserBusinessV1:async(r={})=>{let e="/api/v1/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},getUserBusinessV2:async(r={})=>{let e="/api/v2/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},getUserInfoV1:async(r={})=>{let e="/api/v1/user",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await R(o,a),y(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},ye=function(a){let r=Ds(a);return{async getUserBusinessV1(e){let s=await r.getUserBusinessV1(e);return P(s,h,p,a)},async getUserBusinessV2(e){let s=await r.getUserBusinessV2(e);return P(s,h,p,a)},async getUserInfoV1(e){let s=await r.getUserInfoV1(e);return P(s,h,p,a)}}},ya=function(a,r,e){let s=ye(a);return{getUserBusinessV1(t){return s.getUserBusinessV1(t).then(n=>n(e,r))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(n=>n(e,r))},getUserInfoV1(t){return s.getUserInfoV1(t).then(n=>n(e,r))}}},Pt=class extends S{getUserBusinessV1(r){return ye(this.configuration).getUserBusinessV1(r).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(r){return ye(this.configuration).getUserBusinessV2(r).then(e=>e(this.axios,this.basePath))}getUserInfoV1(r){return ye(this.configuration).getUserInfoV1(r).then(e=>e(this.axios,this.basePath))}},Os=function(a){return{upsert:async(r,e={})=>{c("upsert","body",r);let s="/api/v1/vendure/seller/upsert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},vt=function(a){let r=Os(a);return{async upsert(e,s){let t=await r.upsert(e,s);return P(t,h,p,a)}}},ga=function(a,r,e){let s=vt(a);return{upsert(t,n){return s.upsert(t,n).then(o=>o(e,r))}}},ht=class extends S{upsert(r,e){return vt(this.configuration).upsert(r,e).then(s=>s(this.axios,this.basePath))}},Ss=function(a){return{createVivaAppToAppPayment:async(r,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",r);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},getVivaSession:async(r,e={})=>{c("getVivaSession","id",r);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listVivaSessions:async(r,e,s,t,n,o,i,l={})=>{c("listVivaSessions","businessId",r);let u="/api/v1/viva/sessions",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},f={},C={};r!==void 0&&(C.businessId=r),e!==void 0&&(C.page=e),s!==void 0&&(C.rowPerPage=s),t!==void 0&&(C.terminalId=t),n!==void 0&&(C.timeSpan=n),o!==void 0&&(C.start=o),i!==void 0&&(C.end=i),y(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},{url:g(d),options:x}},refundVivaPayment:async(r,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",r);let s="/api/v1/viva/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},le=function(a){let r=Ss(a);return{async createVivaAppToAppPayment(e,s){let t=await r.createVivaAppToAppPayment(e,s);return P(t,h,p,a)},async getVivaSession(e,s){let t=await r.getVivaSession(e,s);return P(t,h,p,a)},async listVivaSessions(e,s,t,n,o,i,l,u){let d=await r.listVivaSessions(e,s,t,n,o,i,l,u);return P(d,h,p,a)},async refundVivaPayment(e,s){let t=await r.refundVivaPayment(e,s);return P(t,h,p,a)}}},Pa=function(a,r,e){let s=le(a);return{createVivaAppToAppPayment(t,n){return s.createVivaAppToAppPayment(t,n).then(o=>o(e,r))},getVivaSession(t,n){return s.getVivaSession(t,n).then(o=>o(e,r))},listVivaSessions(t,n,o,i,l,u,d,A){return s.listVivaSessions(t,n,o,i,l,u,d,A).then(x=>x(e,r))},refundVivaPayment(t,n){return s.refundVivaPayment(t,n).then(o=>o(e,r))}}},At=class extends S{createVivaAppToAppPayment(r,e){return le(this.configuration).createVivaAppToAppPayment(r,e).then(s=>s(this.axios,this.basePath))}getVivaSession(r,e){return le(this.configuration).getVivaSession(r,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(r,e,s,t,n,o,i,l){return le(this.configuration).listVivaSessions(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(r,e){return le(this.configuration).refundVivaPayment(r,e).then(s=>s(this.axios,this.basePath))}},Vs=function(a){return{handleAssignmentWebhook:async(r={})=>{let e="/api/webhook/add-employee-assignments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleBusinessWebhook:async(r={})=>{let e="/api/webhook/add-business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleFoodoraEvent:async(r,e={})=>{c("handleFoodoraEvent","orderUpdateDto",r);let s="/api/webhook/order/event",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},handleLoadEmployee:async(r={})=>{let e="/api/webhook/load-employee",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleNetsEvents:async(r={})=>{let e="/api/webhook/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleNetsEventsV2:async(r={})=>{let e="/api/webhook/v2/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleNetsSessionEvents:async(r={})=>{let e="/api/webhook/nets/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleNetsSessionEventsForClientToken:async(r,e={})=>{c("handleNetsSessionEventsForClientToken","clientToken",r);let s="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handlePreorderReminder:async(r,e={})=>{c("handlePreorderReminder","preOrderReminderDto",r);let s="/api/webhook/preorder-reminder",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},handleRoleWebhook:async(r={})=>{let e="/api/webhook/add-roles",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleShiftWebhook:async(r={})=>{let e="/api/webhook/add-employee-shifts",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleVivaEvents:async(r,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",r);let s="/api/webhook/viva/verification",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},handleVivaSessionEvents:async(r,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",r);let s="/api/webhook/viva/payments",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},handleWebhook:async(r={})=>{let e="/api/webhook/ship-day",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleWoltDriveEvent:async(r={})=>{let e="/api/webhook/wolt-drive/event",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleWoltDriveEventByCountry:async(r,e={})=>{c("handleWoltDriveEventByCountry","country",r);let s="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleWorldlineEvents:async(r={})=>{let e="/api/webhook/worldline/events",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},handleWorldlineSessionEvents:async(r={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},processDispatchTask:async(r,e,s={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",r),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};r!=null&&(l["x-cloudtasks-taskretrycount"]=String(r)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},processPosOrderActionsQueue:async(r,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",r);let s="/api/webhook/pos/order-actions/process",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},updateWoltProduct:async(r={})=>{let e="/api/webhook/wolt/product/edit",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},verifyVivaSessionWebhook:async(r={})=>{let e="/api/webhook/viva/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}},verifyVivaWebhook:async(r={})=>{let e="/api/webhook/viva/verification",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},q=function(a){let r=Vs(a);return{async handleAssignmentWebhook(e){let s=await r.handleAssignmentWebhook(e);return P(s,h,p,a)},async handleBusinessWebhook(e){let s=await r.handleBusinessWebhook(e);return P(s,h,p,a)},async handleFoodoraEvent(e,s){let t=await r.handleFoodoraEvent(e,s);return P(t,h,p,a)},async handleLoadEmployee(e){let s=await r.handleLoadEmployee(e);return P(s,h,p,a)},async handleNetsEvents(e){let s=await r.handleNetsEvents(e);return P(s,h,p,a)},async handleNetsEventsV2(e){let s=await r.handleNetsEventsV2(e);return P(s,h,p,a)},async handleNetsSessionEvents(e){let s=await r.handleNetsSessionEvents(e);return P(s,h,p,a)},async handleNetsSessionEventsForClientToken(e,s){let t=await r.handleNetsSessionEventsForClientToken(e,s);return P(t,h,p,a)},async handlePreorderReminder(e,s){let t=await r.handlePreorderReminder(e,s);return P(t,h,p,a)},async handleRoleWebhook(e){let s=await r.handleRoleWebhook(e);return P(s,h,p,a)},async handleShiftWebhook(e){let s=await r.handleShiftWebhook(e);return P(s,h,p,a)},async handleVivaEvents(e,s){let t=await r.handleVivaEvents(e,s);return P(t,h,p,a)},async handleVivaSessionEvents(e,s){let t=await r.handleVivaSessionEvents(e,s);return P(t,h,p,a)},async handleWebhook(e){let s=await r.handleWebhook(e);return P(s,h,p,a)},async handleWoltDriveEvent(e){let s=await r.handleWoltDriveEvent(e);return P(s,h,p,a)},async handleWoltDriveEventByCountry(e,s){let t=await r.handleWoltDriveEventByCountry(e,s);return P(t,h,p,a)},async handleWorldlineEvents(e){let s=await r.handleWorldlineEvents(e);return P(s,h,p,a)},async handleWorldlineSessionEvents(e){let s=await r.handleWorldlineSessionEvents(e);return P(s,h,p,a)},async processDispatchTask(e,s,t){let n=await r.processDispatchTask(e,s,t);return P(n,h,p,a)},async processPosOrderActionsQueue(e,s){let t=await r.processPosOrderActionsQueue(e,s);return P(t,h,p,a)},async updateWoltProduct(e){let s=await r.updateWoltProduct(e);return P(s,h,p,a)},async verifyVivaSessionWebhook(e){let s=await r.verifyVivaSessionWebhook(e);return P(s,h,p,a)},async verifyVivaWebhook(e){let s=await r.verifyVivaWebhook(e);return P(s,h,p,a)}}},ha=function(a,r,e){let s=q(a);return{handleAssignmentWebhook(t){return s.handleAssignmentWebhook(t).then(n=>n(e,r))},handleBusinessWebhook(t){return s.handleBusinessWebhook(t).then(n=>n(e,r))},handleFoodoraEvent(t,n){return s.handleFoodoraEvent(t,n).then(o=>o(e,r))},handleLoadEmployee(t){return s.handleLoadEmployee(t).then(n=>n(e,r))},handleNetsEvents(t){return s.handleNetsEvents(t).then(n=>n(e,r))},handleNetsEventsV2(t){return s.handleNetsEventsV2(t).then(n=>n(e,r))},handleNetsSessionEvents(t){return s.handleNetsSessionEvents(t).then(n=>n(e,r))},handleNetsSessionEventsForClientToken(t,n){return s.handleNetsSessionEventsForClientToken(t,n).then(o=>o(e,r))},handlePreorderReminder(t,n){return s.handlePreorderReminder(t,n).then(o=>o(e,r))},handleRoleWebhook(t){return s.handleRoleWebhook(t).then(n=>n(e,r))},handleShiftWebhook(t){return s.handleShiftWebhook(t).then(n=>n(e,r))},handleVivaEvents(t,n){return s.handleVivaEvents(t,n).then(o=>o(e,r))},handleVivaSessionEvents(t,n){return s.handleVivaSessionEvents(t,n).then(o=>o(e,r))},handleWebhook(t){return s.handleWebhook(t).then(n=>n(e,r))},handleWoltDriveEvent(t){return s.handleWoltDriveEvent(t).then(n=>n(e,r))},handleWoltDriveEventByCountry(t,n){return s.handleWoltDriveEventByCountry(t,n).then(o=>o(e,r))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(n=>n(e,r))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(n=>n(e,r))},processDispatchTask(t,n,o){return s.processDispatchTask(t,n,o).then(i=>i(e,r))},processPosOrderActionsQueue(t,n){return s.processPosOrderActionsQueue(t,n).then(o=>o(e,r))},updateWoltProduct(t){return s.updateWoltProduct(t).then(n=>n(e,r))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(n=>n(e,r))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(n=>n(e,r))}}},bt=class extends S{handleAssignmentWebhook(r){return q(this.configuration).handleAssignmentWebhook(r).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(r){return q(this.configuration).handleBusinessWebhook(r).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(r,e){return q(this.configuration).handleFoodoraEvent(r,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(r){return q(this.configuration).handleLoadEmployee(r).then(e=>e(this.axios,this.basePath))}handleNetsEvents(r){return q(this.configuration).handleNetsEvents(r).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(r){return q(this.configuration).handleNetsEventsV2(r).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(r){return q(this.configuration).handleNetsSessionEvents(r).then(e=>e(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(r,e){return q(this.configuration).handleNetsSessionEventsForClientToken(r,e).then(s=>s(this.axios,this.basePath))}handlePreorderReminder(r,e){return q(this.configuration).handlePreorderReminder(r,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(r){return q(this.configuration).handleRoleWebhook(r).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(r){return q(this.configuration).handleShiftWebhook(r).then(e=>e(this.axios,this.basePath))}handleVivaEvents(r,e){return q(this.configuration).handleVivaEvents(r,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(r,e){return q(this.configuration).handleVivaSessionEvents(r,e).then(s=>s(this.axios,this.basePath))}handleWebhook(r){return q(this.configuration).handleWebhook(r).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(r){return q(this.configuration).handleWoltDriveEvent(r).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(r,e){return q(this.configuration).handleWoltDriveEventByCountry(r,e).then(s=>s(this.axios,this.basePath))}handleWorldlineEvents(r){return q(this.configuration).handleWorldlineEvents(r).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(r){return q(this.configuration).handleWorldlineSessionEvents(r).then(e=>e(this.axios,this.basePath))}processDispatchTask(r,e,s){return q(this.configuration).processDispatchTask(r,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(r,e){return q(this.configuration).processPosOrderActionsQueue(r,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(r){return q(this.configuration).updateWoltProduct(r).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(r){return q(this.configuration).verifyVivaSessionWebhook(r).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(r){return q(this.configuration).verifyVivaWebhook(r).then(e=>e(this.axios,this.basePath))}},Is=function(a){return{cancelPayment:async(r,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",r);let s="/api/v1/worldline/payment/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},createPayment:async(r,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",r);let s="/api/v1/worldline/payment",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}},createRefund:async(r,e={})=>{c("createRefund","createWorldlineRefundDto",r);let s="/api/v1/worldline/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:g(t),options:o}}}},ge=function(a){let r=Is(a);return{async cancelPayment(e,s){let t=await r.cancelPayment(e,s);return P(t,h,p,a)},async createPayment(e,s){let t=await r.createPayment(e,s);return P(t,h,p,a)},async createRefund(e,s){let t=await r.createRefund(e,s);return P(t,h,p,a)}}},Aa=function(a,r,e){let s=ge(a);return{cancelPayment(t,n){return s.cancelPayment(t,n).then(o=>o(e,r))},createPayment(t,n){return s.createPayment(t,n).then(o=>o(e,r))},createRefund(t,n){return s.createRefund(t,n).then(o=>o(e,r))}}},xt=class extends S{cancelPayment(r,e){return ge(this.configuration).cancelPayment(r,e).then(s=>s(this.axios,this.basePath))}createPayment(r,e){return ge(this.configuration).createPayment(r,e).then(s=>s(this.axios,this.basePath))}createRefund(r,e){return ge(this.configuration).createRefund(r,e).then(s=>s(this.axios,this.basePath))}},vs=function(a){return{createPaymentRequest:async(r,e,s={})=>{c("createPaymentRequest","terminalId",r),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},createRefundRequest:async(r,e,s={})=>{c("createRefundRequest","terminalId",r),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:g(n),options:i}},getPaymentResult:async(r,e={})=>{c("getPaymentResult","operationId",r);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getTerminalAuthContext:async(r,e,s={})=>{c("getTerminalAuthContext","terminalId",r),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getTerminalContext:async(r,e,s={})=>{c("getTerminalContext","terminalId",r),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:g(n),options:i}},getTerminalState:async(r,e={})=>{c("getTerminalState","terminalId",r);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleCallback:async(r={})=>{let e="/api/v2/worldline/internal/callback",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};y(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:g(s),options:n}}}},H=function(a){let r=vs(a);return{async createPaymentRequest(e,s,t){let n=await r.createPaymentRequest(e,s,t);return P(n,h,p,a)},async createRefundRequest(e,s,t){let n=await r.createRefundRequest(e,s,t);return P(n,h,p,a)},async getPaymentResult(e,s){let t=await r.getPaymentResult(e,s);return P(t,h,p,a)},async getTerminalAuthContext(e,s,t){let n=await r.getTerminalAuthContext(e,s,t);return P(n,h,p,a)},async getTerminalContext(e,s,t){let n=await r.getTerminalContext(e,s,t);return P(n,h,p,a)},async getTerminalState(e,s){let t=await r.getTerminalState(e,s);return P(t,h,p,a)},async handleCallback(e){let s=await r.handleCallback(e);return P(s,h,p,a)}}},ba=function(a,r,e){let s=H(a);return{createPaymentRequest(t,n,o){return s.createPaymentRequest(t,n,o).then(i=>i(e,r))},createRefundRequest(t,n,o){return s.createRefundRequest(t,n,o).then(i=>i(e,r))},getPaymentResult(t,n){return s.getPaymentResult(t,n).then(o=>o(e,r))},getTerminalAuthContext(t,n,o){return s.getTerminalAuthContext(t,n,o).then(i=>i(e,r))},getTerminalContext(t,n,o){return s.getTerminalContext(t,n,o).then(i=>i(e,r))},getTerminalState(t,n){return s.getTerminalState(t,n).then(o=>o(e,r))},handleCallback(t){return s.handleCallback(t).then(n=>n(e,r))}}},Rt=class extends S{createPaymentRequest(r,e,s){return H(this.configuration).createPaymentRequest(r,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(r,e,s){return H(this.configuration).createRefundRequest(r,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(r,e){return H(this.configuration).getPaymentResult(r,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(r,e,s){return H(this.configuration).getTerminalAuthContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(r,e,s){return H(this.configuration).getTerminalContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(r,e){return H(this.configuration).getTerminalState(r,e).then(s=>s(this.axios,this.basePath))}handleCallback(r){return H(this.configuration).handleCallback(r).then(e=>e(this.axios,this.basePath))}};var Tt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(r={}){this.apiKey=r.apiKey,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.baseOptions=r.baseOptions,this.formDataCtor=r.formDataCtor}isJsonMime(r){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return r!==null&&(e.test(r)||r.toLowerCase()==="application/json-patch+json")}};var Ts={[ue.Eur]:2,[ue.Aed]:2,[ue.Usd]:2,[ue.Gbp]:2,BHD:3,JPY:0},Sa={getMultiplier(a){let r=Ts[a.toUpperCase()];return typeof r!="number"?100:Math.round(10**r)}};import Pe from"lodash";var Oe=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),qs=a=>{let r=a.subcategories;return Array.isArray(r)?r:[]},Us=(a,r)=>({...a,colorCode:a.colorCode??r}),Es=(a,r)=>Pe.compact(a.map(e=>r.get(e))),qt=(a,r)=>a.flatMap(e=>{let s=r[e];return s?[e,...qt(s.childIds,r)]:[]}),Ut=(a,r)=>a.flatMap(e=>{let s=r[e];return s?.enabled?[e,...Ut(s.childIds,r)]:[]}),va=a=>{let r=new Map,e={},s={},t=Oe(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return r.set(d,Us(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),A=(f,C)=>{let O=String(f.id),I=o(f.products,u),V=Oe(qs(f)).map(U=>A(U,O));return s[O]={id:O,name:f.name,rank:f.rank??0,enabled:!!f.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:V},O},x=Oe(i.subcategories??[]).map(f=>A(f,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:r,categoriesById:e,subcategoriesById:s,categoryIdsOrder:n}},Ta=(a,r,e,s)=>{let t=r[a];if(!t)return[];let n=Ut(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return Es(o,s)},qa=(a,r,e)=>{let s=r[a];if(!s)return[];let t=qt(s.subcategoryIds,e);return Pe.compact(t.map(n=>e[n]))};var Bs="1.9.134";export{Qs as ABLYEVENT,Se as AblyApi,Bt as AblyApiAxiosParamCreator,Do as AblyApiFactory,Ae as AblyApiFp,$s as ActionEnum,Ve as ActionPasscodesApi,Mt as ActionPasscodesApiAxiosParamCreator,Oo as ActionPasscodesApiFactory,Z as ActionPasscodesApiFp,zs as ActionsEnum,Ie as AuthApi,kt as AuthApiAxiosParamCreator,So as AuthApiFactory,ee as AuthApiFp,Xs as AutonomousVehicleType,ve as BusinessApi,wt as BusinessApiAxiosParamCreator,Vo as BusinessApiFactory,T as BusinessApiFp,Zs as BusinessBackgroundType,tr as BusinessEventAction,sr as BusinessEventType,rr as BusinessPaymentIntegrationType,Te as BusinessProviderPolicyApi,Lt as BusinessProviderPolicyApiAxiosParamCreator,Io as BusinessProviderPolicyApiFactory,ft as BusinessProviderPolicyApiFp,qe as BusinessScheduleApi,Ft as BusinessScheduleApiAxiosParamCreator,vo as BusinessScheduleApiFactory,Ct as BusinessScheduleApiFp,nr as BusinessStatusEnum,or as CashLogReason,ar as CashLogType,Ue as CashManagementApi,_t as CashManagementApiAxiosParamCreator,To as CashManagementApiFactory,$ as CashManagementApiFp,ir as CashSessionDtoEnum,lr as CashSessionStatus,ur as CdsSessionRole,cr as ChannelEnum,Ee as ChannelMenuApi,jt as ChannelMenuApiAxiosParamCreator,qo as ChannelMenuApiFactory,de as ChannelMenuApiFp,dr as ChargeStatusEnum,pr as CheckoutModelEnum,yr as ConditionType,Be as ConfigManagementApi,Nt as ConfigManagementApiAxiosParamCreator,Uo as ConfigManagementApiFactory,w as ConfigManagementApiFp,Tt as Configuration,gr as ConsumptionType,Me as CoursesApi,Wt as CoursesApiAxiosParamCreator,Eo as CoursesApiFactory,be as CoursesApiFp,ue as CurrencyCode,Sa as CurrencyRegistry,Pr as DayOfWeek,ke as DeliveryIntentApi,Gt as DeliveryIntentApiAxiosParamCreator,Bo as DeliveryIntentApiFactory,xe as DeliveryIntentApiFp,hr as DeliveryIntentStatus,Ar as DeliveryStatus,br as DeliveryType,xr as DeviceType,Rr as DiscountScope,fr as DiscountScopeType,Cr as DiscountSourceType,Dr as DiscountType,Qn as DiscountTypeEnum,we as DisplayApi,Kt as DisplayApiAxiosParamCreator,Mo as DisplayApiFactory,te as DisplayApiFp,Le as EmployeesApi,Ht as EmployeesApiAxiosParamCreator,ko as EmployeesApiFactory,Dt as EmployeesApiFp,Or as EntityType,Ys as EntityTypeEnum,Js as EventTypeEnum,Ro as EventTypeIdEnum,Sr as FeeType,Fe as FloorPlanApi,Qt as FloorPlanApiAxiosParamCreator,wo as FloorPlanApiFactory,L as FloorPlanApiFp,_e as GiftcardApi,$t as GiftcardApiAxiosParamCreator,Lo as GiftcardApiFactory,Re as GiftcardApiFp,je as HistoryApi,Yt as HistoryApiAxiosParamCreator,Fo as HistoryApiFactory,se as HistoryApiFp,Vr as IntegrationType,Ne as InvoiceCompaniesApi,zt as InvoiceCompaniesApiAxiosParamCreator,_o as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,We as KDSApi,Jt as KDSApiAxiosParamCreator,jo as KDSApiFactory,re as KDSApiFp,Ir as KDSEVENTNAME,vr as KioskEventType,Tr as KioskLayout,Ge as KiosksApi,Xt as KiosksApiAxiosParamCreator,No as KiosksApiFactory,X as KiosksApiFp,qr as KitchenItemStatus,Ur as KitchenStatus,Er as LocatorType,Br as LoyaltyActionKey,Mr as LoyaltyCatalogType,kr as LoyaltyChannel,Ke as LoyaltyCommerceApi,Zt as LoyaltyCommerceApiAxiosParamCreator,Wo as LoyaltyCommerceApiFactory,Ot as LoyaltyCommerceApiFp,He as LoyaltyIntegerationsApi,es as LoyaltyIntegerationsApiAxiosParamCreator,Go as LoyaltyIntegerationsApiFactory,M as LoyaltyIntegerationsApiFp,wr as LoyaltyRedemptionStatus,Lr as LoyaltyRestoreRequestStatus,Fr as LoyaltyRewardType,_r as LoyaltyRuleActionType,jr as LoyaltyRuleApplicationMode,Nr as LoyaltyRuleConditionType,Wr as LoyaltyRuleFulfillmentMode,Gr as LoyaltyRuleSelection,Kr as LoyaltyRuleStackingMode,Hr as LoyaltyRuleTargetType,Bs as MUNCHI_CORE_VERSION,Qe as MenuApi,ts as MenuApiAxiosParamCreator,Ko as MenuApiFactory,z as MenuApiFp,er as MenuTypeEnum,$e as MerchantsApi,ss as MerchantsApiAxiosParamCreator,Ho as MerchantsApiFactory,pe as MerchantsApiFp,Ye as MunchiGiftCardApi,rs as MunchiGiftCardApiAxiosParamCreator,Qo as MunchiGiftCardApiFactory,ne as MunchiGiftCardApiFp,Po as NameEnum,Qr as NetsRevertMethod,ze as NotificationApi,ns as NotificationApiAxiosParamCreator,$o as NotificationApiFactory,fe as NotificationApiFp,$r as OperatingMode,yo as OperatingModeEnum,mr as OrderCollectionEnum,Je as OrderCompletionApi,os as OrderCompletionApiAxiosParamCreator,Yo as OrderCompletionApiFactory,St as OrderCompletionApiFp,Yr as OrderFormat,Xe as OrderInternalApi,as as OrderInternalApiAxiosParamCreator,zo as OrderInternalApiFactory,Vt as OrderInternalApiFp,zr as OrderMode,Jr as OrderRefundStatus,Xr as OrderSource,Zr as OrderStatus,en as OrderStatusEnum,tn as OrderType,sn as OrderTypePOS,Ze as OrdersApi,is as OrdersApiAxiosParamCreator,Jo as OrdersApiFactory,B as OrdersApiFp,et as POSPermissionsApi,ls as POSPermissionsApiAxiosParamCreator,Xo as POSPermissionsApiFactory,It as POSPermissionsApiFp,tt as POSSessionApi,us as POSSessionApiAxiosParamCreator,Zo as POSSessionApiFactory,Ce as POSSessionApiFp,st as PayTerminalApi,cs as PayTerminalApiAxiosParamCreator,ea as PayTerminalApiFactory,N as PayTerminalApiFp,rn as PayTerminalSessionRole,rt as PaymentApi,ds as PaymentApiAxiosParamCreator,ta as PaymentApiFactory,W as PaymentApiFp,nn as PaymentApp,on as PaymentCheckoutFlow,an as PaymentEventType,ln as PaymentFailureCode,un as PaymentMethod,nt as PaymentMethodsApi,ps as PaymentMethodsApiAxiosParamCreator,sa as PaymentMethodsApiFactory,K as PaymentMethodsApiFp,cn as PaymentOutcomeStatus,dn as PaymentProvider,pn as PaymentProviderEnum,mn as PaymentReportingBucket,ot as PaymentSessionApi,ms as PaymentSessionApiAxiosParamCreator,ra as PaymentSessionApiFactory,E as PaymentSessionApiFp,yn as PaymentSessionPurpose,gn as PaymentSessionStatus,Pn as PaymentStatus,hn as PaymentTypeEnum,An as PosDiscountTargetType,bn as PosDiscountType,xn as PosPaymentStatus,Rn as PosPaymentType,fn as PosPermission,Cn as PosPermissionGroup,Dn as PosPermissionKind,On as PreorderStatus,Sn as PriceType,Vn as PrinterConnectionType,In as PrinterModelType,vn as PrinterTypeEnum,at as PrintersApi,ys as PrintersApiAxiosParamCreator,na as PrintersApiFactory,F as PrintersApiFp,it as ProductApi,gs as ProductApiAxiosParamCreator,oa as ProductApiFactory,oe as ProductApiFp,Tn as ProductAvailability,qn as ProductDetailLayout,go as ProductDetailLayoutEnum,Un as PromotionDiscountType,lt as ProviderApi,Ps as ProviderApiAxiosParamCreator,aa as ProviderApiFactory,_ as ProviderApiFp,En as ProviderEnum,Bn as PubSubAction,Mn as PubSubTarget,ut as ReceiptFooterApi,hs as ReceiptFooterApiAxiosParamCreator,ia as ReceiptFooterApiFactory,De as ReceiptFooterApiFp,kn as ReceiptFooterDocumentType,wn as RecordManualStatus,Ln as RefundFailureReasonKey,Fn as RefundMode,_n as RefundOverallStatus,jn as RefundStatusEnum,Nn as RefundStepStatus,ct as RefundsApi,As as RefundsApiAxiosParamCreator,la as RefundsApiFactory,k as RefundsApiFp,dt as ReportApi,bs as ReportApiAxiosParamCreator,ua as ReportApiFactory,ae as ReportApiFp,Wn as ReportLanguage,Gn as ReservationSource,Kn as ReservationStatus,pt as ReservationsApi,xs as ReservationsApiAxiosParamCreator,ca as ReservationsApiFactory,j as ReservationsApiFp,Yn as SYNCKEY,zn as ScheduleType,$n as ScopeEnum,mo as SelectedPaymentProviderEnum,mt as ShiftTrackingApi,Rs as ShiftTrackingApiAxiosParamCreator,da as ShiftTrackingApiFactory,J as ShiftTrackingApiFp,Jn as SimplePaymentStatus,Xn as SourceType,Zn as StaffActivityActionType,eo as StationType,yt as StationsApi,fs as StationsApiAxiosParamCreator,pa as StationsApiFactory,me as StationsApiFp,to as Status,so as SystemProfileType,ro as TableGroupType,no as TableShape,oo as TableStatus,gt as TerminalApi,Cs as TerminalApiAxiosParamCreator,ma as TerminalApiFactory,ie as TerminalApiFp,ao as TerminalConnectionType,io as TimeSpan,lo as TransactionEventType,uo as TransactionType,co as Type,po as UpsellMode,Pt as UserApi,Ds as UserApiAxiosParamCreator,ya as UserApiFactory,ye as UserApiFp,ht as VendureSellerApi,Os as VendureSellerApiAxiosParamCreator,ga as VendureSellerApiFactory,vt as VendureSellerApiFp,At as VivaApi,Ss as VivaApiAxiosParamCreator,Pa as VivaApiFactory,le as VivaApiFp,ho as VivaAppToAppPaymentMethod,Ao as VivaCurrencyCode,bo as VivaErrorId,xo as VivaEventId,fo as WalletItemStatus,Hn as WalletStatusEnum,bt as WebhookApi,Vs as WebhookApiAxiosParamCreator,ha as WebhookApiFactory,q as WebhookApiFp,xt as WorldlineApi,Is as WorldlineApiAxiosParamCreator,Aa as WorldlineApiFactory,ge as WorldlineApiFp,Rt as WorldlineInternalApi,vs as WorldlineInternalApiAxiosParamCreator,ba as WorldlineInternalApiFactory,H as WorldlineInternalApiFp,Co as WorldlineRevertMethod,va as buildPosCategoryIndex,Ut as collectEnabledSubcategoryIdsDepthFirst,qt as collectSubcategoryIdsDepthFirst,Ta as getCategoryProductsIncludingSubcategories,qa as getSubcategoriesForCategory,Es as mapProductIdsToProducts};
|
|
1
|
+
import h from"axios";import Ft from"axios";var p="http://localhost".replace(/\/+$/,"");var V=class{constructor(s,e=p,r=Ft){this.basePath=e;this.axios=r;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},ce=class extends Error{constructor(e,r){super(r);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,s,e){if(e==null)throw new ce(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var C=async function(a,s){if(s&&s.accessToken){let e=typeof s.accessToken=="function"?await s.accessToken():await s.accessToken;a.Authorization="Bearer "+e}};function he(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(r=>he(a,r,e)):Object.keys(s).forEach(r=>he(a,s[r],`${e}${e!==""?".":""}${r}`)):a.has(e)?a.append(e,s):a.set(e,s))}var y=function(a,...s){let e=new URLSearchParams(a.search);he(e,s),a.search=e.toString()},b=function(a,s,e){let r=typeof a!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(s.headers["Content-Type"]):r)?JSON.stringify(a!==void 0?a:{}):a||""},g=function(a){return a.pathname+a.search+a.hash},P=function(a,s,e,r){return(t=s,n=e)=>{let o={...a.options,url:(r?.basePath||n)+a.url};return t.request(o)}};var sr={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed"},rr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},nr={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},or={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},ar={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ir={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},lr={Image:"image",Video:"video",Animation:"animation"},ur={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},cr={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},dr={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},pr={GiftCard:"GiftCard"},mr={Online:"ONLINE",Offline:"OFFLINE"},yr={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"},gr={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Pr={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},hr={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Ar={Pos:"pos",Display:"display"},br={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},xr={Pending:"pending",Success:"success",Failure:"failure"},fr={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Rr={Kiosk:"kiosk"},Cr={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Dr={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},ue={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"},Or={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},Sr={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},Vr={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Ir={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},vr={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Tr={Item:"ITEM",Cart:"CART"},qr={Business:"BUSINESS",Owner:"OWNER"},Ur={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Er={Percentage:"PERCENTAGE",Fixed:"FIXED"},Mr={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Br={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},kr={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},wr={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},Lr={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Fr={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},_r={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},jr={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Nr={Table:"table",Indicator:"indicator"},Wr={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Gr={Product:"product",Coupon:"coupon"},Kr={Kiosk:"kiosk",Pos:"pos",Online:"online",Mobile:"mobile"},Hr={Pending:"pending",Redeemed:"redeemed",Reversed:"reversed"},Qr={Requested:"REQUESTED",AlreadyReversed:"ALREADY_REVERSED"},$r={Product:"product",Coupon:"coupon"},zr={Percentage:"percentage",Fixed:"fixed"},Yr={Manual:"manual",Automatic:"automatic"},Jr={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"},Xr={RequireInCart:"require_in_cart",ConfigureTarget:"configure_target"},Zr={All:"all",Cheapest:"cheapest",MostExpensive:"most_expensive"},en={ExclusiveBestForCustomer:"exclusive_best_for_customer",Stackable:"stackable"},tn={ConditionMatch:"condition_match",Product:"product",Category:"category",Order:"order"},sn={Reversal:"REVERSAL",Refund:"REFUND"},rn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},nn={Open:"OPEN",Instant:"INSTANT"},on={Instant:"INSTANT",PreOrder:"PRE_ORDER"},an={None:"NONE",Partial:"PARTIAL",Full:"FULL"},ln={Platform:"PLATFORM",Pos:"POS"},un={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},cn={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"},dn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},pn={DineIn:"dine_in",PickUp:"pick_up"},mn={Pos:"pos",Terminal:"terminal"},yn={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},gn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Pn={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},hn={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"},An={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"},bn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},xn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},fn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Rn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},Cn={Sale:"SALE",Refund:"REFUND",Void:"VOID"},Dn={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"},On={Paid:"paid",Pending:"pending"},Sn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Vn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},In={Percentage:"percentage",Fixed:"fixed"},vn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Tn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},qn={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"},Un={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"},En={Screen:"screen",Action:"action",Visibility:"visibility"},Mn={Waiting:"waiting",Confirm:"confirm"},Bn={Preset:"PRESET",Open:"OPEN"},kn={Bluetooth:"bluetooth",Network:"network"},wn={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Ln={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Fn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},_n={Modal:"MODAL",Screen:"SCREEN"},jn={Percentage:"PERCENTAGE",Fixed:"FIXED"},Nn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Wn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},Gn={Kds:"KDS"},Kn={ReceiptFinal:"RECEIPT_FINAL",ReceiptPrebill:"RECEIPT_PREBILL",Refund:"REFUND"},Hn={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},Qn={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"},$n={Full:"FULL",Item:"ITEM"},zn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Yn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Jn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Xn={Fi:"fi",En:"en"},Zn={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},eo={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},to={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},so={Percentage:"PERCENTAGE",Fixed:"FIXED"},ro={Item:"ITEM",Cart:"CART"},no={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"},oo={Physical:"PHYSICAL"},ao={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},io={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},lo={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"},uo={Kiosk:"KIOSK",Pos:"POS"},co={Active:"ACTIVE",Inactive:"INACTIVE"},po={NoStation:"NO_STATION"},mo={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},yo={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},go={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Po={Network:"NETWORK"},ho={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Ao={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},bo={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},xo={Instant:"instant",Preorder:"preorder"},fo={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Ro={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Co={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Do={Modal:"MODAL",Screen:"SCREEN"},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"},So={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Vo={_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"},Io={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},vo={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},To={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},qo={Claimed:"Claimed",Redeemed:"Redeemed"},Uo={Reversal:"REVERSAL",Refund:"REFUND"},_t=function(a){return{refreshConfig:async(s={})=>{let e="/api/v1/ably/refresh-config",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},requestSettings:async(s={})=>{let e="/api/v1/ably/request-settings",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}}}},Ae=function(a){let s=_t(a);return{async refreshConfig(e){let r=await s.refreshConfig(e);return P(r,h,p,a)},async requestSettings(e){let r=await s.requestSettings(e);return P(r,h,p,a)}}},Eo=function(a,s,e){let r=Ae(a);return{refreshConfig(t){return r.refreshConfig(t).then(n=>n(e,s))},requestSettings(t){return r.requestSettings(t).then(n=>n(e,s))}}},Ie=class extends V{refreshConfig(s){return Ae(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return Ae(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},jt=function(a){return{checkActionPasscode:async(s,e,r,t={})=>{c("checkActionPasscode","businessId",s),c("checkActionPasscode","xPosPin",e),c("checkActionPasscode","checkActionPasscodeDto",r);let n="/api/v2/businesses/{businessId}/action-passcodes/check".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["X-Pos-Pin"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},createActionPasscode:async(s,e={})=>{c("createActionPasscode","createActionPasscodeDto",s);let r="/api/v1/action-passcodes",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},deleteActionPasscode:async(s,e={})=>{c("deleteActionPasscode","id",s);let r="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateActionPasscode:async(s,e,r={})=>{c("updateActionPasscode","id",s),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},Z=function(a){let s=jt(a);return{async checkActionPasscode(e,r,t,n){let o=await s.checkActionPasscode(e,r,t,n);return P(o,h,p,a)},async createActionPasscode(e,r){let t=await s.createActionPasscode(e,r);return P(t,h,p,a)},async deleteActionPasscode(e,r){let t=await s.deleteActionPasscode(e,r);return P(t,h,p,a)},async updateActionPasscode(e,r,t){let n=await s.updateActionPasscode(e,r,t);return P(n,h,p,a)}}},Mo=function(a,s,e){let r=Z(a);return{checkActionPasscode(t,n,o,i){return r.checkActionPasscode(t,n,o,i).then(l=>l(e,s))},createActionPasscode(t,n){return r.createActionPasscode(t,n).then(o=>o(e,s))},deleteActionPasscode(t,n){return r.deleteActionPasscode(t,n).then(o=>o(e,s))},updateActionPasscode(t,n,o){return r.updateActionPasscode(t,n,o).then(i=>i(e,s))}}},ve=class extends V{checkActionPasscode(s,e,r,t){return Z(this.configuration).checkActionPasscode(s,e,r,t).then(n=>n(this.axios,this.basePath))}createActionPasscode(s,e){return Z(this.configuration).createActionPasscode(s,e).then(r=>r(this.axios,this.basePath))}deleteActionPasscode(s,e){return Z(this.configuration).deleteActionPasscode(s,e).then(r=>r(this.axios,this.basePath))}updateActionPasscode(s,e,r){return Z(this.configuration).updateActionPasscode(s,e,r).then(t=>t(this.axios,this.basePath))}},Nt=function(a){return{firebaseAuth:async(s={})=>{let e="/api/v1/auth/firebase-login",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},login:async(s,e={})=>{c("login","credentialDto",s);let r="/api/v1/auth/login",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},logout:async(s={})=>{let e="/api/v1/auth/logout",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},refreshToken:async(s,e={})=>{c("refreshToken","refreshTokenDto",s);let r="/api/v1/auth/refresh",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},ee=function(a){let s=Nt(a);return{async firebaseAuth(e){let r=await s.firebaseAuth(e);return P(r,h,p,a)},async login(e,r){let t=await s.login(e,r);return P(t,h,p,a)},async logout(e){let r=await s.logout(e);return P(r,h,p,a)},async refreshToken(e,r){let t=await s.refreshToken(e,r);return P(t,h,p,a)}}},Bo=function(a,s,e){let r=ee(a);return{firebaseAuth(t){return r.firebaseAuth(t).then(n=>n(e,s))},login(t,n){return r.login(t,n).then(o=>o(e,s))},logout(t){return r.logout(t).then(n=>n(e,s))},refreshToken(t,n){return r.refreshToken(t,n).then(o=>o(e,s))}}},Te=class extends V{firebaseAuth(s){return ee(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return ee(this.configuration).login(s,e).then(r=>r(this.axios,this.basePath))}logout(s){return ee(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return ee(this.configuration).refreshToken(s,e).then(r=>r(this.axios,this.basePath))}},Wt=function(a){return{createBusinessPermission:async(s,e,r={})=>{c("createBusinessPermission","businessId",s),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},deleteBusinessPermission:async(s,e,r={})=>{c("deleteBusinessPermission","permissionId",s),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await C(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getAdvancedDiscounts:async(s,e={})=>{c("getAdvancedDiscounts","businessId",s);let r="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getBusinessCategoriesByMenuId:async(s,e,r={})=>{c("getBusinessCategoriesByMenuId","businessId",s),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV2:async(s,e,r={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",s),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessCategoriesByMenuIdV3:async(s,e,r={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",s),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessChannelConfig:async(s,e,r={})=>{c("getBusinessChannelConfig","businessId",s);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessChannelConfigV2:async(s,e,r={})=>{c("getBusinessChannelConfigV2","businessId",s);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfig:async(s,e,r={})=>{c("getBusinessConfig","businessId",s);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfigById:async(s,e,r={})=>{c("getBusinessConfigById","businessId",s);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfigByIdV2:async(s,e,r={})=>{c("getBusinessConfigByIdV2","businessId",s);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessConfiguration:async(s,e,r={})=>{c("getBusinessConfiguration","businessId",s);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.lang=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByType:async(s,e,r={})=>{c("getBusinessMenuByType","businessId",s),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByTypeV2:async(s,e,r={})=>{c("getBusinessMenuByTypeV2","businessId",s),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByTypeV3:async(s,e,r={})=>{c("getBusinessMenuByTypeV3","businessId",s),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessMenuByTypeV4:async(s,e,r={})=>{c("getBusinessMenuByTypeV4","businessId",s),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessProviderStatus:async(s,e={})=>{c("getBusinessProviderStatus","businessId",s);let r="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getBusinessProviderStatusExternal:async(s,e,r={})=>{c("getBusinessProviderStatusExternal","businessId",s);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getBusinessTax:async(s={})=>{let e="/api/v1/business/tax",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await C(o,a),y(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},getProvidersSupportedIntegrations:async(s,e={})=>{c("getProvidersSupportedIntegrations","businessIds",s);let r="/api/v1/business/providers/supported-integrations",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),s&&(l.businessIds=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getSingleBusinessProviderStatus:async(s,e,r,t={})=>{c("getSingleBusinessProviderStatus","businessId",s),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",r);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(s))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await C(u,a),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getUnifiedDiscounts:async(s,e={})=>{c("getUnifiedDiscounts","businessId",s);let r="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},setBusinessStatus:async(s,e,r={})=>{c("setBusinessStatus","businessId",s),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},setBusinessStatusSchedule:async(s,e,r={})=>{c("setBusinessStatusSchedule","businessId",s),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},updateBusinessPermission:async(s,e,r,t={})=>{c("updateBusinessPermission","permissionId",s),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",r);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await C(u,a),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},validateBusiness:async(s,e={})=>{c("validateBusiness","businessId",s);let r="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},q=function(a){let s=Wt(a);return{async createBusinessPermission(e,r,t){let n=await s.createBusinessPermission(e,r,t);return P(n,h,p,a)},async deleteBusinessPermission(e,r,t){let n=await s.deleteBusinessPermission(e,r,t);return P(n,h,p,a)},async getAdvancedDiscounts(e,r){let t=await s.getAdvancedDiscounts(e,r);return P(t,h,p,a)},async getBusinessCategoriesByMenuId(e,r,t){let n=await s.getBusinessCategoriesByMenuId(e,r,t);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,r,t){let n=await s.getBusinessCategoriesByMenuIdV2(e,r,t);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV3(e,r,t){let n=await s.getBusinessCategoriesByMenuIdV3(e,r,t);return P(n,h,p,a)},async getBusinessChannelConfig(e,r,t){let n=await s.getBusinessChannelConfig(e,r,t);return P(n,h,p,a)},async getBusinessChannelConfigV2(e,r,t){let n=await s.getBusinessChannelConfigV2(e,r,t);return P(n,h,p,a)},async getBusinessConfig(e,r,t){let n=await s.getBusinessConfig(e,r,t);return P(n,h,p,a)},async getBusinessConfigById(e,r,t){let n=await s.getBusinessConfigById(e,r,t);return P(n,h,p,a)},async getBusinessConfigByIdV2(e,r,t){let n=await s.getBusinessConfigByIdV2(e,r,t);return P(n,h,p,a)},async getBusinessConfiguration(e,r,t){let n=await s.getBusinessConfiguration(e,r,t);return P(n,h,p,a)},async getBusinessMenuByType(e,r,t){let n=await s.getBusinessMenuByType(e,r,t);return P(n,h,p,a)},async getBusinessMenuByTypeV2(e,r,t){let n=await s.getBusinessMenuByTypeV2(e,r,t);return P(n,h,p,a)},async getBusinessMenuByTypeV3(e,r,t){let n=await s.getBusinessMenuByTypeV3(e,r,t);return P(n,h,p,a)},async getBusinessMenuByTypeV4(e,r,t){let n=await s.getBusinessMenuByTypeV4(e,r,t);return P(n,h,p,a)},async getBusinessProviderStatus(e,r){let t=await s.getBusinessProviderStatus(e,r);return P(t,h,p,a)},async getBusinessProviderStatusExternal(e,r,t){let n=await s.getBusinessProviderStatusExternal(e,r,t);return P(n,h,p,a)},async getBusinessTax(e){let r=await s.getBusinessTax(e);return P(r,h,p,a)},async getProvidersSupportedIntegrations(e,r){let t=await s.getProvidersSupportedIntegrations(e,r);return P(t,h,p,a)},async getSingleBusinessProviderStatus(e,r,t,n){let o=await s.getSingleBusinessProviderStatus(e,r,t,n);return P(o,h,p,a)},async getUnifiedDiscounts(e,r){let t=await s.getUnifiedDiscounts(e,r);return P(t,h,p,a)},async setBusinessStatus(e,r,t){let n=await s.setBusinessStatus(e,r,t);return P(n,h,p,a)},async setBusinessStatusSchedule(e,r,t){let n=await s.setBusinessStatusSchedule(e,r,t);return P(n,h,p,a)},async updateBusinessPermission(e,r,t,n){let o=await s.updateBusinessPermission(e,r,t,n);return P(o,h,p,a)},async validateBusiness(e,r){let t=await s.validateBusiness(e,r);return P(t,h,p,a)}}},ko=function(a,s,e){let r=q(a);return{createBusinessPermission(t,n,o){return r.createBusinessPermission(t,n,o).then(i=>i(e,s))},deleteBusinessPermission(t,n,o){return r.deleteBusinessPermission(t,n,o).then(i=>i(e,s))},getAdvancedDiscounts(t,n){return r.getAdvancedDiscounts(t,n).then(o=>o(e,s))},getBusinessCategoriesByMenuId(t,n,o){return r.getBusinessCategoriesByMenuId(t,n,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV2(t,n,o){return r.getBusinessCategoriesByMenuIdV2(t,n,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV3(t,n,o){return r.getBusinessCategoriesByMenuIdV3(t,n,o).then(i=>i(e,s))},getBusinessChannelConfig(t,n,o){return r.getBusinessChannelConfig(t,n,o).then(i=>i(e,s))},getBusinessChannelConfigV2(t,n,o){return r.getBusinessChannelConfigV2(t,n,o).then(i=>i(e,s))},getBusinessConfig(t,n,o){return r.getBusinessConfig(t,n,o).then(i=>i(e,s))},getBusinessConfigById(t,n,o){return r.getBusinessConfigById(t,n,o).then(i=>i(e,s))},getBusinessConfigByIdV2(t,n,o){return r.getBusinessConfigByIdV2(t,n,o).then(i=>i(e,s))},getBusinessConfiguration(t,n,o){return r.getBusinessConfiguration(t,n,o).then(i=>i(e,s))},getBusinessMenuByType(t,n,o){return r.getBusinessMenuByType(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV2(t,n,o){return r.getBusinessMenuByTypeV2(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV3(t,n,o){return r.getBusinessMenuByTypeV3(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV4(t,n,o){return r.getBusinessMenuByTypeV4(t,n,o).then(i=>i(e,s))},getBusinessProviderStatus(t,n){return r.getBusinessProviderStatus(t,n).then(o=>o(e,s))},getBusinessProviderStatusExternal(t,n,o){return r.getBusinessProviderStatusExternal(t,n,o).then(i=>i(e,s))},getBusinessTax(t){return r.getBusinessTax(t).then(n=>n(e,s))},getProvidersSupportedIntegrations(t,n){return r.getProvidersSupportedIntegrations(t,n).then(o=>o(e,s))},getSingleBusinessProviderStatus(t,n,o,i){return r.getSingleBusinessProviderStatus(t,n,o,i).then(l=>l(e,s))},getUnifiedDiscounts(t,n){return r.getUnifiedDiscounts(t,n).then(o=>o(e,s))},setBusinessStatus(t,n,o){return r.setBusinessStatus(t,n,o).then(i=>i(e,s))},setBusinessStatusSchedule(t,n,o){return r.setBusinessStatusSchedule(t,n,o).then(i=>i(e,s))},updateBusinessPermission(t,n,o,i){return r.updateBusinessPermission(t,n,o,i).then(l=>l(e,s))},validateBusiness(t,n){return r.validateBusiness(t,n).then(o=>o(e,s))}}},qe=class extends V{createBusinessPermission(s,e,r){return q(this.configuration).createBusinessPermission(s,e,r).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(s,e,r){return q(this.configuration).deleteBusinessPermission(s,e,r).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(s,e){return q(this.configuration).getAdvancedDiscounts(s,e).then(r=>r(this.axios,this.basePath))}getBusinessCategoriesByMenuId(s,e,r){return q(this.configuration).getBusinessCategoriesByMenuId(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(s,e,r){return q(this.configuration).getBusinessCategoriesByMenuIdV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(s,e,r){return q(this.configuration).getBusinessCategoriesByMenuIdV3(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(s,e,r){return q(this.configuration).getBusinessChannelConfig(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(s,e,r){return q(this.configuration).getBusinessChannelConfigV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfig(s,e,r){return q(this.configuration).getBusinessConfig(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(s,e,r){return q(this.configuration).getBusinessConfigById(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(s,e,r){return q(this.configuration).getBusinessConfigByIdV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(s,e,r){return q(this.configuration).getBusinessConfiguration(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(s,e,r){return q(this.configuration).getBusinessMenuByType(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(s,e,r){return q(this.configuration).getBusinessMenuByTypeV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(s,e,r){return q(this.configuration).getBusinessMenuByTypeV3(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(s,e,r){return q(this.configuration).getBusinessMenuByTypeV4(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(s,e){return q(this.configuration).getBusinessProviderStatus(s,e).then(r=>r(this.axios,this.basePath))}getBusinessProviderStatusExternal(s,e,r){return q(this.configuration).getBusinessProviderStatusExternal(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessTax(s){return q(this.configuration).getBusinessTax(s).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(s,e){return q(this.configuration).getProvidersSupportedIntegrations(s,e).then(r=>r(this.axios,this.basePath))}getSingleBusinessProviderStatus(s,e,r,t){return q(this.configuration).getSingleBusinessProviderStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(s,e){return q(this.configuration).getUnifiedDiscounts(s,e).then(r=>r(this.axios,this.basePath))}setBusinessStatus(s,e,r){return q(this.configuration).setBusinessStatus(s,e,r).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(s,e,r){return q(this.configuration).setBusinessStatusSchedule(s,e,r).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(s,e,r,t){return q(this.configuration).updateBusinessPermission(s,e,r,t).then(n=>n(this.axios,this.basePath))}validateBusiness(s,e){return q(this.configuration).validateBusiness(s,e).then(r=>r(this.axios,this.basePath))}},Gt=function(a){return{updatePosGlobalSettings:async(s,e,r={})=>{c("updatePosGlobalSettings","businessId",s),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},Vt=function(a){let s=Gt(a);return{async updatePosGlobalSettings(e,r,t){let n=await s.updatePosGlobalSettings(e,r,t);return P(n,h,p,a)}}},wo=function(a,s,e){let r=Vt(a);return{updatePosGlobalSettings(t,n,o){return r.updatePosGlobalSettings(t,n,o).then(i=>i(e,s))}}},Ue=class extends V{updatePosGlobalSettings(s,e,r){return Vt(this.configuration).updatePosGlobalSettings(s,e,r).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{upsertSchedule:async(s,e,r={})=>{c("upsertSchedule","businessId",s),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},It=function(a){let s=Kt(a);return{async upsertSchedule(e,r,t){let n=await s.upsertSchedule(e,r,t);return P(n,h,p,a)}}},Lo=function(a,s,e){let r=It(a);return{upsertSchedule(t,n,o){return r.upsertSchedule(t,n,o).then(i=>i(e,s))}}},Ee=class extends V{upsertSchedule(s,e,r){return It(this.configuration).upsertSchedule(s,e,r).then(t=>t(this.axios,this.basePath))}},Ht=function(a){return{create:async(s,e,r={})=>{c("create","businessId",s),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getCashLogs:async(s,e,r,t,n,o,i,l={})=>{c("getCashLogs","businessId",s),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},f={},R={};r!==void 0&&(R.timeSpan=r),t!==void 0&&(R.start=t),n!==void 0&&(R.end=n),o!==void 0&&(R.page=o),i!==void 0&&(R.rowPerPage=i),e!==void 0&&(R.timezone=e),y(d,R);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},{url:g(d),options:x}},getCashSession:async(s,e={})=>{c("getCashSession","businessId",s);let r="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getSessionReport:async(s,e,r={})=>{c("getSessionReport","businessId",s),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},recordCashLog:async(s,e,r={})=>{c("recordCashLog","businessId",s),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},sendSessionReport:async(s,e,r,t={})=>{c("sendSessionReport","businessId",s),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",r);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},$=function(a){let s=Ht(a);return{async create(e,r,t){let n=await s.create(e,r,t);return P(n,h,p,a)},async getCashLogs(e,r,t,n,o,i,l,u){let d=await s.getCashLogs(e,r,t,n,o,i,l,u);return P(d,h,p,a)},async getCashSession(e,r){let t=await s.getCashSession(e,r);return P(t,h,p,a)},async getSessionReport(e,r,t){let n=await s.getSessionReport(e,r,t);return P(n,h,p,a)},async recordCashLog(e,r,t){let n=await s.recordCashLog(e,r,t);return P(n,h,p,a)},async sendSessionReport(e,r,t,n){let o=await s.sendSessionReport(e,r,t,n);return P(o,h,p,a)}}},Fo=function(a,s,e){let r=$(a);return{create(t,n,o){return r.create(t,n,o).then(i=>i(e,s))},getCashLogs(t,n,o,i,l,u,d,A){return r.getCashLogs(t,n,o,i,l,u,d,A).then(x=>x(e,s))},getCashSession(t,n){return r.getCashSession(t,n).then(o=>o(e,s))},getSessionReport(t,n,o){return r.getSessionReport(t,n,o).then(i=>i(e,s))},recordCashLog(t,n,o){return r.recordCashLog(t,n,o).then(i=>i(e,s))},sendSessionReport(t,n,o,i){return r.sendSessionReport(t,n,o,i).then(l=>l(e,s))}}},Me=class extends V{create(s,e,r){return $(this.configuration).create(s,e,r).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,r,t,n,o,i,l){return $(this.configuration).getCashLogs(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(s,e){return $(this.configuration).getCashSession(s,e).then(r=>r(this.axios,this.basePath))}getSessionReport(s,e,r){return $(this.configuration).getSessionReport(s,e,r).then(t=>t(this.axios,this.basePath))}recordCashLog(s,e,r){return $(this.configuration).recordCashLog(s,e,r).then(t=>t(this.axios,this.basePath))}sendSessionReport(s,e,r,t){return $(this.configuration).sendSessionReport(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Qt=function(a){return{listCashLogsForTill:async(s,e,r,t,n,o,i,l={})=>{c("listCashLogsForTill","businessId",s);let u="/api/v6/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},f={},R={};await C(f,a),e!==void 0&&(R.timeSpan=e),r!==void 0&&(R.start=r),t!==void 0&&(R.end=t),n!==void 0&&(R.page=n),o!==void 0&&(R.rowPerPage=o),i!==void 0&&(R.timezone=i),y(d,R);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},{url:g(d),options:x}}}},vt=function(a){let s=Qt(a);return{async listCashLogsForTill(e,r,t,n,o,i,l,u){let d=await s.listCashLogsForTill(e,r,t,n,o,i,l,u);return P(d,h,p,a)}}},_o=function(a,s,e){let r=vt(a);return{listCashLogsForTill(t,n,o,i,l,u,d,A){return r.listCashLogsForTill(t,n,o,i,l,u,d,A).then(x=>x(e,s))}}},Be=class extends V{listCashLogsForTill(s,e,r,t,n,o,i,l){return vt(this.configuration).listCashLogsForTill(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},$t=function(a){return{getChannelCatalog:async(s,e,r,t={})=>{c("getChannelCatalog","businessId",s),c("getChannelCatalog","channelType",e);let n="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),r!==void 0&&(d.menuId=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getChannelMenu:async(s,e,r,t={})=>{c("getChannelMenu","businessId",s),c("getChannelMenu","channelType",e);let n="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),r!==void 0&&(d.deliveryType=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getChannelMenuTimes:async(s,e,r={})=>{c("getChannelMenuTimes","businessId",s),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channelType=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}}}},de=function(a){let s=$t(a);return{async getChannelCatalog(e,r,t,n){let o=await s.getChannelCatalog(e,r,t,n);return P(o,h,p,a)},async getChannelMenu(e,r,t,n){let o=await s.getChannelMenu(e,r,t,n);return P(o,h,p,a)},async getChannelMenuTimes(e,r,t){let n=await s.getChannelMenuTimes(e,r,t);return P(n,h,p,a)}}},jo=function(a,s,e){let r=de(a);return{getChannelCatalog(t,n,o,i){return r.getChannelCatalog(t,n,o,i).then(l=>l(e,s))},getChannelMenu(t,n,o,i){return r.getChannelMenu(t,n,o,i).then(l=>l(e,s))},getChannelMenuTimes(t,n,o){return r.getChannelMenuTimes(t,n,o).then(i=>i(e,s))}}},ke=class extends V{getChannelCatalog(s,e,r,t){return de(this.configuration).getChannelCatalog(s,e,r,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(s,e,r,t){return de(this.configuration).getChannelMenu(s,e,r,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(s,e,r){return de(this.configuration).getChannelMenuTimes(s,e,r).then(t=>t(this.axios,this.basePath))}},zt=function(a){return{configConfigureMunchiGiftCard:async(s,e,r,t={})=>{c("configConfigureMunchiGiftCard","businessId",s),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configGetProviders:async(s,e,r={})=>{c("configGetProviders","businessId",s),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},configManualSync:async(s,e,r={})=>{c("configManualSync","businessId",s),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},configRemovePaymentOption:async(s,e,r,t={})=>{c("configRemovePaymentOption","businessId",s),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await C(u,a),r!=null&&(u["x-app-x"]=String(r)),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},configUpsertBusiness:async(s,e,r={})=>{c("configUpsertBusiness","businessId",s),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},configUpsertChannelConfig:async(s,e,r,t={})=>{c("configUpsertChannelConfig","businessId",s),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",r);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configUpsertGiftCard:async(s,e,r,t={})=>{c("configUpsertGiftCard","businessId",s),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configUpsertLoyalty:async(s,e,r={})=>{c("configUpsertLoyalty","businessId",s),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},configUpsertNets:async(s,e,r,t={})=>{c("configUpsertNets","businessId",s),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",r);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configUpsertPaymentOptions:async(s,e,r,t={})=>{c("configUpsertPaymentOptions","businessId",s),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configUpsertProviders:async(s,e,r,t={})=>{c("configUpsertProviders","businessId",s),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",r);let n="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configUpsertStripe:async(s,e,r,t={})=>{c("configUpsertStripe","businessId",s),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",r);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},configUpsertViva:async(s,e,r,t={})=>{c("configUpsertViva","businessId",s),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",r);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},L=function(a){let s=zt(a);return{async configConfigureMunchiGiftCard(e,r,t,n){let o=await s.configConfigureMunchiGiftCard(e,r,t,n);return P(o,h,p,a)},async configGetProviders(e,r,t){let n=await s.configGetProviders(e,r,t);return P(n,h,p,a)},async configManualSync(e,r,t){let n=await s.configManualSync(e,r,t);return P(n,h,p,a)},async configRemovePaymentOption(e,r,t,n){let o=await s.configRemovePaymentOption(e,r,t,n);return P(o,h,p,a)},async configUpsertBusiness(e,r,t){let n=await s.configUpsertBusiness(e,r,t);return P(n,h,p,a)},async configUpsertChannelConfig(e,r,t,n){let o=await s.configUpsertChannelConfig(e,r,t,n);return P(o,h,p,a)},async configUpsertGiftCard(e,r,t,n){let o=await s.configUpsertGiftCard(e,r,t,n);return P(o,h,p,a)},async configUpsertLoyalty(e,r,t){let n=await s.configUpsertLoyalty(e,r,t);return P(n,h,p,a)},async configUpsertNets(e,r,t,n){let o=await s.configUpsertNets(e,r,t,n);return P(o,h,p,a)},async configUpsertPaymentOptions(e,r,t,n){let o=await s.configUpsertPaymentOptions(e,r,t,n);return P(o,h,p,a)},async configUpsertProviders(e,r,t,n){let o=await s.configUpsertProviders(e,r,t,n);return P(o,h,p,a)},async configUpsertStripe(e,r,t,n){let o=await s.configUpsertStripe(e,r,t,n);return P(o,h,p,a)},async configUpsertViva(e,r,t,n){let o=await s.configUpsertViva(e,r,t,n);return P(o,h,p,a)}}},No=function(a,s,e){let r=L(a);return{configConfigureMunchiGiftCard(t,n,o,i){return r.configConfigureMunchiGiftCard(t,n,o,i).then(l=>l(e,s))},configGetProviders(t,n,o){return r.configGetProviders(t,n,o).then(i=>i(e,s))},configManualSync(t,n,o){return r.configManualSync(t,n,o).then(i=>i(e,s))},configRemovePaymentOption(t,n,o,i){return r.configRemovePaymentOption(t,n,o,i).then(l=>l(e,s))},configUpsertBusiness(t,n,o){return r.configUpsertBusiness(t,n,o).then(i=>i(e,s))},configUpsertChannelConfig(t,n,o,i){return r.configUpsertChannelConfig(t,n,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,n,o,i){return r.configUpsertGiftCard(t,n,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,n,o){return r.configUpsertLoyalty(t,n,o).then(i=>i(e,s))},configUpsertNets(t,n,o,i){return r.configUpsertNets(t,n,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,n,o,i){return r.configUpsertPaymentOptions(t,n,o,i).then(l=>l(e,s))},configUpsertProviders(t,n,o,i){return r.configUpsertProviders(t,n,o,i).then(l=>l(e,s))},configUpsertStripe(t,n,o,i){return r.configUpsertStripe(t,n,o,i).then(l=>l(e,s))},configUpsertViva(t,n,o,i){return r.configUpsertViva(t,n,o,i).then(l=>l(e,s))}}},we=class extends V{configConfigureMunchiGiftCard(s,e,r,t){return L(this.configuration).configConfigureMunchiGiftCard(s,e,r,t).then(n=>n(this.axios,this.basePath))}configGetProviders(s,e,r){return L(this.configuration).configGetProviders(s,e,r).then(t=>t(this.axios,this.basePath))}configManualSync(s,e,r){return L(this.configuration).configManualSync(s,e,r).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,r,t){return L(this.configuration).configRemovePaymentOption(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(s,e,r){return L(this.configuration).configUpsertBusiness(s,e,r).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,r,t){return L(this.configuration).configUpsertChannelConfig(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(s,e,r,t){return L(this.configuration).configUpsertGiftCard(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(s,e,r){return L(this.configuration).configUpsertLoyalty(s,e,r).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,r,t){return L(this.configuration).configUpsertNets(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,r,t){return L(this.configuration).configUpsertPaymentOptions(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertProviders(s,e,r,t){return L(this.configuration).configUpsertProviders(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertStripe(s,e,r,t){return L(this.configuration).configUpsertStripe(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertViva(s,e,r,t){return L(this.configuration).configUpsertViva(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Yt=function(a){return{getCourseConfig:async(s,e={})=>{c("getCourseConfig","businessId",s);let r="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getCourses:async(s,e={})=>{c("getCourses","businessId",s);let r="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},be=function(a){let s=Yt(a);return{async getCourseConfig(e,r){let t=await s.getCourseConfig(e,r);return P(t,h,p,a)},async getCourses(e,r){let t=await s.getCourses(e,r);return P(t,h,p,a)}}},Wo=function(a,s,e){let r=be(a);return{getCourseConfig(t,n){return r.getCourseConfig(t,n).then(o=>o(e,s))},getCourses(t,n){return r.getCourses(t,n).then(o=>o(e,s))}}},Le=class extends V{getCourseConfig(s,e){return be(this.configuration).getCourseConfig(s,e).then(r=>r(this.axios,this.basePath))}getCourses(s,e){return be(this.configuration).getCourses(s,e).then(r=>r(this.axios,this.basePath))}},Jt=function(a){return{findIntent:async(s,e={})=>{c("findIntent","intentId",s);let r="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateIntent:async(s,e,r={})=>{c("updateIntent","intentId",s),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},xe=function(a){let s=Jt(a);return{async findIntent(e,r){let t=await s.findIntent(e,r);return P(t,h,p,a)},async updateIntent(e,r,t){let n=await s.updateIntent(e,r,t);return P(n,h,p,a)}}},Go=function(a,s,e){let r=xe(a);return{findIntent(t,n){return r.findIntent(t,n).then(o=>o(e,s))},updateIntent(t,n,o){return r.updateIntent(t,n,o).then(i=>i(e,s))}}},Fe=class extends V{findIntent(s,e){return xe(this.configuration).findIntent(s,e).then(r=>r(this.axios,this.basePath))}updateIntent(s,e,r){return xe(this.configuration).updateIntent(s,e,r).then(t=>t(this.axios,this.basePath))}},Xt=function(a){return{init:async(s,e={})=>{let r="/api/v1/display/init",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},pair:async(s,e={})=>{c("pair","pairDisplayBodyDto",s);let r="/api/v1/display/pair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},sessionToken:async(s,e={})=>{c("sessionToken","requestSessionTokenBodyDto",s);let r="/api/v1/display/session-token",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},unpair:async(s,e={})=>{c("unpair","unpairDisplayBodyDto",s);let r="/api/v1/display/unpair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},te=function(a){let s=Xt(a);return{async init(e,r){let t=await s.init(e,r);return P(t,h,p,a)},async pair(e,r){let t=await s.pair(e,r);return P(t,h,p,a)},async sessionToken(e,r){let t=await s.sessionToken(e,r);return P(t,h,p,a)},async unpair(e,r){let t=await s.unpair(e,r);return P(t,h,p,a)}}},Ko=function(a,s,e){let r=te(a);return{init(t,n){return r.init(t,n).then(o=>o(e,s))},pair(t,n){return r.pair(t,n).then(o=>o(e,s))},sessionToken(t,n){return r.sessionToken(t,n).then(o=>o(e,s))},unpair(t,n){return r.unpair(t,n).then(o=>o(e,s))}}},_e=class extends V{init(s,e){return te(this.configuration).init(s,e).then(r=>r(this.axios,this.basePath))}pair(s,e){return te(this.configuration).pair(s,e).then(r=>r(this.axios,this.basePath))}sessionToken(s,e){return te(this.configuration).sessionToken(s,e).then(r=>r(this.axios,this.basePath))}unpair(s,e){return te(this.configuration).unpair(s,e).then(r=>r(this.axios,this.basePath))}},Zt=function(a){return{createAssignment:async(s,e,r={})=>{c("createAssignment","businessId",s),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},Tt=function(a){let s=Zt(a);return{async createAssignment(e,r,t){let n=await s.createAssignment(e,r,t);return P(n,h,p,a)}}},Ho=function(a,s,e){let r=Tt(a);return{createAssignment(t,n,o){return r.createAssignment(t,n,o).then(i=>i(e,s))}}},je=class extends V{createAssignment(s,e,r){return Tt(this.configuration).createAssignment(s,e,r).then(t=>t(this.axios,this.basePath))}},es=function(a){return{createDiningTable:async(s,e={})=>{c("createDiningTable","createDiningTableDto",s);let r="/api/v1/floor-plan/tables",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},createFloorSection:async(s,e={})=>{c("createFloorSection","createFloorSectionDto",s);let r="/api/v1/floor-plan/sections",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},deleteDiningTable:async(s,e,r={})=>{c("deleteDiningTable","id",s),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},deleteFloorSection:async(s,e,r={})=>{c("deleteFloorSection","id",s),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},dissolveTableGroup:async(s,e,r={})=>{c("dissolveTableGroup","id",s),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getFloorPlan:async(s,e={})=>{c("getFloorPlan","businessId",s);let r="/api/v1/floor-plan",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},joinTables:async(s,e,r={})=>{c("joinTables","businessId",s),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},removeTableFromGroup:async(s,e,r={})=>{c("removeTableFromGroup","id",s),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},transferTable:async(s,e,r,t={})=>{c("transferTable","id",s),c("transferTable","businessId",e),c("transferTable","transferTableDto",r);let n="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},updateDiningTable:async(s,e,r,t={})=>{c("updateDiningTable","id",s),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",r);let n="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},updateFloorSection:async(s,e,r,t={})=>{c("updateFloorSection","id",s),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",r);let n="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},updateTablePosition:async(s,e,r,t={})=>{c("updateTablePosition","id",s),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",r);let n="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},updateTableStatus:async(s,e,r,t={})=>{c("updateTableStatus","id",s),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",r);let n="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},F=function(a){let s=es(a);return{async createDiningTable(e,r){let t=await s.createDiningTable(e,r);return P(t,h,p,a)},async createFloorSection(e,r){let t=await s.createFloorSection(e,r);return P(t,h,p,a)},async deleteDiningTable(e,r,t){let n=await s.deleteDiningTable(e,r,t);return P(n,h,p,a)},async deleteFloorSection(e,r,t){let n=await s.deleteFloorSection(e,r,t);return P(n,h,p,a)},async dissolveTableGroup(e,r,t){let n=await s.dissolveTableGroup(e,r,t);return P(n,h,p,a)},async getFloorPlan(e,r){let t=await s.getFloorPlan(e,r);return P(t,h,p,a)},async joinTables(e,r,t){let n=await s.joinTables(e,r,t);return P(n,h,p,a)},async removeTableFromGroup(e,r,t){let n=await s.removeTableFromGroup(e,r,t);return P(n,h,p,a)},async transferTable(e,r,t,n){let o=await s.transferTable(e,r,t,n);return P(o,h,p,a)},async updateDiningTable(e,r,t,n){let o=await s.updateDiningTable(e,r,t,n);return P(o,h,p,a)},async updateFloorSection(e,r,t,n){let o=await s.updateFloorSection(e,r,t,n);return P(o,h,p,a)},async updateTablePosition(e,r,t,n){let o=await s.updateTablePosition(e,r,t,n);return P(o,h,p,a)},async updateTableStatus(e,r,t,n){let o=await s.updateTableStatus(e,r,t,n);return P(o,h,p,a)}}},Qo=function(a,s,e){let r=F(a);return{createDiningTable(t,n){return r.createDiningTable(t,n).then(o=>o(e,s))},createFloorSection(t,n){return r.createFloorSection(t,n).then(o=>o(e,s))},deleteDiningTable(t,n,o){return r.deleteDiningTable(t,n,o).then(i=>i(e,s))},deleteFloorSection(t,n,o){return r.deleteFloorSection(t,n,o).then(i=>i(e,s))},dissolveTableGroup(t,n,o){return r.dissolveTableGroup(t,n,o).then(i=>i(e,s))},getFloorPlan(t,n){return r.getFloorPlan(t,n).then(o=>o(e,s))},joinTables(t,n,o){return r.joinTables(t,n,o).then(i=>i(e,s))},removeTableFromGroup(t,n,o){return r.removeTableFromGroup(t,n,o).then(i=>i(e,s))},transferTable(t,n,o,i){return r.transferTable(t,n,o,i).then(l=>l(e,s))},updateDiningTable(t,n,o,i){return r.updateDiningTable(t,n,o,i).then(l=>l(e,s))},updateFloorSection(t,n,o,i){return r.updateFloorSection(t,n,o,i).then(l=>l(e,s))},updateTablePosition(t,n,o,i){return r.updateTablePosition(t,n,o,i).then(l=>l(e,s))},updateTableStatus(t,n,o,i){return r.updateTableStatus(t,n,o,i).then(l=>l(e,s))}}},Ne=class extends V{createDiningTable(s,e){return F(this.configuration).createDiningTable(s,e).then(r=>r(this.axios,this.basePath))}createFloorSection(s,e){return F(this.configuration).createFloorSection(s,e).then(r=>r(this.axios,this.basePath))}deleteDiningTable(s,e,r){return F(this.configuration).deleteDiningTable(s,e,r).then(t=>t(this.axios,this.basePath))}deleteFloorSection(s,e,r){return F(this.configuration).deleteFloorSection(s,e,r).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(s,e,r){return F(this.configuration).dissolveTableGroup(s,e,r).then(t=>t(this.axios,this.basePath))}getFloorPlan(s,e){return F(this.configuration).getFloorPlan(s,e).then(r=>r(this.axios,this.basePath))}joinTables(s,e,r){return F(this.configuration).joinTables(s,e,r).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(s,e,r){return F(this.configuration).removeTableFromGroup(s,e,r).then(t=>t(this.axios,this.basePath))}transferTable(s,e,r,t){return F(this.configuration).transferTable(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateDiningTable(s,e,r,t){return F(this.configuration).updateDiningTable(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateFloorSection(s,e,r,t){return F(this.configuration).updateFloorSection(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateTablePosition(s,e,r,t){return F(this.configuration).updateTablePosition(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateTableStatus(s,e,r,t){return F(this.configuration).updateTableStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},ts=function(a){return{redeemGiftCard:async(s,e={})=>{c("redeemGiftCard","redeemGiftCardDto",s);let r="/api/v1/giftcard/redeem",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},validateGiftCard:async(s,e={})=>{c("validateGiftCard","validateGiftCardDto",s);let r="/api/v1/giftcard/validate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},fe=function(a){let s=ts(a);return{async redeemGiftCard(e,r){let t=await s.redeemGiftCard(e,r);return P(t,h,p,a)},async validateGiftCard(e,r){let t=await s.validateGiftCard(e,r);return P(t,h,p,a)}}},$o=function(a,s,e){let r=fe(a);return{redeemGiftCard(t,n){return r.redeemGiftCard(t,n).then(o=>o(e,s))},validateGiftCard(t,n){return r.validateGiftCard(t,n).then(o=>o(e,s))}}},We=class extends V{redeemGiftCard(s,e){return fe(this.configuration).redeemGiftCard(s,e).then(r=>r(this.axios,this.basePath))}validateGiftCard(s,e){return fe(this.configuration).validateGiftCard(s,e).then(r=>r(this.axios,this.basePath))}},ss=function(a){return{getInternalOrderHistoryOnline:async(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O={})=>{c("getInternalOrderHistoryOnline","businessIds",s);let I="/api/v1/history/internal/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let T={method:"GET",...S,...O},B={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),R!==void 0&&(D.timezone=R),y(v,D);let _=S&&S.headers?S.headers:{};return T.headers={...B,..._,...O.headers},{url:g(v),options:T}},getOrderHistoryOnline:async(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O={})=>{c("getOrderHistoryOnline","businessIds",s);let I="/api/v1/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let T={method:"GET",...S,...O},B={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),R!==void 0&&(D.timezone=R),y(v,D);let _=S&&S.headers?S.headers:{};return T.headers={...B,..._,...O.headers},{url:g(v),options:T}},getOrderHistoryPOSV5:async(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O={})=>{c("getOrderHistoryPOSV5","businessIds",s);let I="/api/v5/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let T={method:"GET",...S,...O},B={},D={};await C(B,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),R!==void 0&&(D.timezone=R),y(v,D);let _=S&&S.headers?S.headers:{};return T.headers={...B,..._,...O.headers},{url:g(v),options:T}},getOrderHistoryPOSV5Internal:async(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",s);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let T={method:"GET",...S,...O},B={},D={};await C(B,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),R!==void 0&&(D.timezone=R),y(v,D);let _=S&&S.headers?S.headers:{};return T.headers={...B,..._,...O.headers},{url:g(v),options:T}}}},se=function(a){let s=ss(a);return{async getInternalOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I){let v=await s.getInternalOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I){let v=await s.getOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I){let v=await s.getOrderHistoryPOSV5(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I){let v=await s.getOrderHistoryPOSV5Internal(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I);return P(v,h,p,a)}}},zo=function(a,s,e){let r=se(a);return{getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S){return r.getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S).then(T=>T(e,s))},getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S){return r.getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S).then(T=>T(e,s))},getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S){return r.getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S).then(T=>T(e,s))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S){return r.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S).then(T=>T(e,s))}}},Ge=class extends V{getInternalOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O){return se(this.configuration).getInternalOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O){return se(this.configuration).getOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O){return se(this.configuration).getOrderHistoryPOSV5(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O){return se(this.configuration).getOrderHistoryPOSV5Internal(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(this.axios,this.basePath))}},rs=function(a){return{listOnlineOrderHistoryForTill:async(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O={})=>{c("listOnlineOrderHistoryForTill","businessIds",s);let I="/api/v6/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let T={method:"GET",...S,...O},B={},D={};await C(B,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),R!==void 0&&(D.timezone=R),y(v,D);let _=S&&S.headers?S.headers:{};return T.headers={...B,..._,...O.headers},{url:g(v),options:T}},listOrderHistoryForTill:async(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O={})=>{c("listOrderHistoryForTill","businessIds",s);let I="/api/v6/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let T={method:"GET",...S,...O},B={},D={};await C(B,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),f!==void 0&&(D.invoiceCompanyId=f),R!==void 0&&(D.timezone=R),y(v,D);let _=S&&S.headers?S.headers:{};return T.headers={...B,..._,...O.headers},{url:g(v),options:T}}}},Re=function(a){let s=rs(a);return{async listOnlineOrderHistoryForTill(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I){let v=await s.listOnlineOrderHistoryForTill(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I);return P(v,h,p,a)},async listOrderHistoryForTill(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I){let v=await s.listOrderHistoryForTill(e,r,t,n,o,i,l,u,d,A,x,f,R,O,I);return P(v,h,p,a)}}},Yo=function(a,s,e){let r=Re(a);return{listOnlineOrderHistoryForTill(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S){return r.listOnlineOrderHistoryForTill(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S).then(T=>T(e,s))},listOrderHistoryForTill(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S){return r.listOrderHistoryForTill(t,n,o,i,l,u,d,A,x,f,R,O,I,v,S).then(T=>T(e,s))}}},Ke=class extends V{listOnlineOrderHistoryForTill(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O){return Re(this.configuration).listOnlineOrderHistoryForTill(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(this.axios,this.basePath))}listOrderHistoryForTill(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O){return Re(this.configuration).listOrderHistoryForTill(s,e,r,t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(this.axios,this.basePath))}},ns=function(a){return{createInvoiceCompany:async(s,e,r={})=>{c("createInvoiceCompany","businessId",s),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},deleteInvoiceCompany:async(s,e,r={})=>{c("deleteInvoiceCompany","id",s),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getInvoiceCompanies:async(s,e={})=>{c("getInvoiceCompanies","businessId",s);let r="/api/v1/invoice-companies",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getInvoiceCompanyById:async(s,e,r={})=>{c("getInvoiceCompanyById","id",s),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},searchInvoiceCompanies:async(s,e,r={})=>{c("searchInvoiceCompanies","businessId",s);let t="/api/v1/invoice-companies/search",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.search=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},updateInvoiceCompany:async(s,e,r,t={})=>{c("updateInvoiceCompany","id",s),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",r);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},z=function(a){let s=ns(a);return{async createInvoiceCompany(e,r,t){let n=await s.createInvoiceCompany(e,r,t);return P(n,h,p,a)},async deleteInvoiceCompany(e,r,t){let n=await s.deleteInvoiceCompany(e,r,t);return P(n,h,p,a)},async getInvoiceCompanies(e,r){let t=await s.getInvoiceCompanies(e,r);return P(t,h,p,a)},async getInvoiceCompanyById(e,r,t){let n=await s.getInvoiceCompanyById(e,r,t);return P(n,h,p,a)},async searchInvoiceCompanies(e,r,t){let n=await s.searchInvoiceCompanies(e,r,t);return P(n,h,p,a)},async updateInvoiceCompany(e,r,t,n){let o=await s.updateInvoiceCompany(e,r,t,n);return P(o,h,p,a)}}},Jo=function(a,s,e){let r=z(a);return{createInvoiceCompany(t,n,o){return r.createInvoiceCompany(t,n,o).then(i=>i(e,s))},deleteInvoiceCompany(t,n,o){return r.deleteInvoiceCompany(t,n,o).then(i=>i(e,s))},getInvoiceCompanies(t,n){return r.getInvoiceCompanies(t,n).then(o=>o(e,s))},getInvoiceCompanyById(t,n,o){return r.getInvoiceCompanyById(t,n,o).then(i=>i(e,s))},searchInvoiceCompanies(t,n,o){return r.searchInvoiceCompanies(t,n,o).then(i=>i(e,s))},updateInvoiceCompany(t,n,o,i){return r.updateInvoiceCompany(t,n,o,i).then(l=>l(e,s))}}},He=class extends V{createInvoiceCompany(s,e,r){return z(this.configuration).createInvoiceCompany(s,e,r).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,r){return z(this.configuration).deleteInvoiceCompany(s,e,r).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return z(this.configuration).getInvoiceCompanies(s,e).then(r=>r(this.axios,this.basePath))}getInvoiceCompanyById(s,e,r){return z(this.configuration).getInvoiceCompanyById(s,e,r).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,r){return z(this.configuration).searchInvoiceCompanies(s,e,r).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,r,t){return z(this.configuration).updateInvoiceCompany(s,e,r,t).then(n=>n(this.axios,this.basePath))}},os=function(a){return{kdsGetOrders:async(s,e,r,t,n,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",s),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",r);let f="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),R=new URL(f,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...x},v={},S={};await C(v,a),e!==void 0&&(S.businessIds=e),r!==void 0&&(S.profileId=r),t!==void 0&&(S.page=t),n!==void 0&&(S.rowPerPage=n),o!==void 0&&(S.timeSpan=o),i!==void 0&&(S.start=i),l!==void 0&&(S.end=l),u!==void 0&&(S.timezone=u),d&&(S.provider=d),A&&(S.consumptionType=A),y(R,S);let T=O&&O.headers?O.headers:{};return I.headers={...v,...T,...x.headers},{url:g(R),options:I}},kdsGetProfiles:async(s,e={})=>{c("kdsGetProfiles","businessId",s);let r="/api/v1/kds/profiles",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},kdsMarkOrderReady:async(s,e={})=>{c("kdsMarkOrderReady","id",s);let r="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},kdsRevertOrder:async(s,e={})=>{c("kdsRevertOrder","id",s);let r="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},re=function(a){let s=os(a);return{async kdsGetOrders(e,r,t,n,o,i,l,u,d,A,x,f){let R=await s.kdsGetOrders(e,r,t,n,o,i,l,u,d,A,x,f);return P(R,h,p,a)},async kdsGetProfiles(e,r){let t=await s.kdsGetProfiles(e,r);return P(t,h,p,a)},async kdsMarkOrderReady(e,r){let t=await s.kdsMarkOrderReady(e,r);return P(t,h,p,a)},async kdsRevertOrder(e,r){let t=await s.kdsRevertOrder(e,r);return P(t,h,p,a)}}},Xo=function(a,s,e){let r=re(a);return{kdsGetOrders(t,n,o,i,l,u,d,A,x,f,R,O){return r.kdsGetOrders(t,n,o,i,l,u,d,A,x,f,R,O).then(I=>I(e,s))},kdsGetProfiles(t,n){return r.kdsGetProfiles(t,n).then(o=>o(e,s))},kdsMarkOrderReady(t,n){return r.kdsMarkOrderReady(t,n).then(o=>o(e,s))},kdsRevertOrder(t,n){return r.kdsRevertOrder(t,n).then(o=>o(e,s))}}},Qe=class extends V{kdsGetOrders(s,e,r,t,n,o,i,l,u,d,A,x){return re(this.configuration).kdsGetOrders(s,e,r,t,n,o,i,l,u,d,A,x).then(f=>f(this.axios,this.basePath))}kdsGetProfiles(s,e){return re(this.configuration).kdsGetProfiles(s,e).then(r=>r(this.axios,this.basePath))}kdsMarkOrderReady(s,e){return re(this.configuration).kdsMarkOrderReady(s,e).then(r=>r(this.axios,this.basePath))}kdsRevertOrder(s,e){return re(this.configuration).kdsRevertOrder(s,e).then(r=>r(this.axios,this.basePath))}},as=function(a){return{getKioskOrder:async(s,e,r={})=>{c("getKioskOrder","orderId",s),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getOrderStatus:async(s,e,r={})=>{c("getOrderStatus","orderId",s),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},recoverOrder:async(s,e,r={})=>{c("recoverOrder","orderId",s),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},syncKioskOrder:async(s,e={})=>{c("syncKioskOrder","syncKioskOrderDto",s);let r="/api/v1/kiosk/orders/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},validate:async(s,e,r={})=>{c("validate","terminalId",s),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};s!==void 0&&(u.terminalId=s),e!==void 0&&(u.provider=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}}}},X=function(a){let s=as(a);return{async getKioskOrder(e,r,t){let n=await s.getKioskOrder(e,r,t);return P(n,h,p,a)},async getOrderStatus(e,r,t){let n=await s.getOrderStatus(e,r,t);return P(n,h,p,a)},async recoverOrder(e,r,t){let n=await s.recoverOrder(e,r,t);return P(n,h,p,a)},async syncKioskOrder(e,r){let t=await s.syncKioskOrder(e,r);return P(t,h,p,a)},async validate(e,r,t){let n=await s.validate(e,r,t);return P(n,h,p,a)}}},Zo=function(a,s,e){let r=X(a);return{getKioskOrder(t,n,o){return r.getKioskOrder(t,n,o).then(i=>i(e,s))},getOrderStatus(t,n,o){return r.getOrderStatus(t,n,o).then(i=>i(e,s))},recoverOrder(t,n,o){return r.recoverOrder(t,n,o).then(i=>i(e,s))},syncKioskOrder(t,n){return r.syncKioskOrder(t,n).then(o=>o(e,s))},validate(t,n,o){return r.validate(t,n,o).then(i=>i(e,s))}}},$e=class extends V{getKioskOrder(s,e,r){return X(this.configuration).getKioskOrder(s,e,r).then(t=>t(this.axios,this.basePath))}getOrderStatus(s,e,r){return X(this.configuration).getOrderStatus(s,e,r).then(t=>t(this.axios,this.basePath))}recoverOrder(s,e,r){return X(this.configuration).recoverOrder(s,e,r).then(t=>t(this.axios,this.basePath))}syncKioskOrder(s,e){return X(this.configuration).syncKioskOrder(s,e).then(r=>r(this.axios,this.basePath))}validate(s,e,r){return X(this.configuration).validate(s,e,r).then(t=>t(this.axios,this.basePath))}},is=function(a){return{restoreRedemption:async(s,e={})=>{c("restoreRedemption","restoreLoyaltyRedemptionDto",s);let r="/api/v1/loyalty-commerce/redemptions/restore",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},qt=function(a){let s=is(a);return{async restoreRedemption(e,r){let t=await s.restoreRedemption(e,r);return P(t,h,p,a)}}},ea=function(a,s,e){let r=qt(a);return{restoreRedemption(t,n){return r.restoreRedemption(t,n).then(o=>o(e,s))}}},ze=class extends V{restoreRedemption(s,e){return qt(this.configuration).restoreRedemption(s,e).then(r=>r(this.axios,this.basePath))}},ls=function(a){return{activateKioskOffer:async(s,e={})=>{c("activateKioskOffer","activateKioskOfferDto",s);let r="/api/v1/loyalty/users/activate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},claimKioskOffer:async(s,e={})=>{c("claimKioskOffer","claimKioskOfferDto",s);let r="/api/v1/loyalty/users/claim",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},createLoyaltyUser:async(s,e,r={})=>{c("createLoyaltyUser","businessId",s),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getAdminTransactions:async(s,e,r,t={})=>{c("getAdminTransactions","businessId",s);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await C(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getLoyaltyInfo:async(s,e={})=>{c("getLoyaltyInfo","businessId",s);let r="/api/v1/loyalty/info",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getUserById:async(s,e,r={})=>{c("getUserById","businessId",s),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getUserPerks:async(s,e,r={})=>{c("getUserPerks","businessId",s),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getUserWallet:async(s,e,r={})=>{c("getUserWallet","businessId",s),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getWalletRewards:async(s,e,r={})=>{c("getWalletRewards","businessId",s),c("getWalletRewards","userId",e);let t="/api/v1/loyalty/users/wallet-rewards",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},memberContext:async(s,e={})=>{c("memberContext","loyaltyMemberContextRequestDto",s);let r="/api/v1/loyalty/member-context",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},resolvePerks:async(s,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",s);let r="/api/v1/loyalty/resolve",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},searchUser:async(s,e,r,t,n={})=>{c("searchUser","businessId",s);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};await C(d,a),e!==void 0&&(A.phone=e),r!==void 0&&(A.country_code=r),t!==void 0&&(A.email=t),s!==void 0&&(A.businessId=s),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},updatePoints:async(s,e,r={})=>{c("updatePoints","businessId",s),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},validateWallet:async(s,e,r,t={})=>{c("validateWallet","businessId",s),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",r);let n="/api/v1/loyalty/wallets/validate",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await C(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.loyaltyId=e),r!==void 0&&(d.walletId=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}}}},k=function(a){let s=ls(a);return{async activateKioskOffer(e,r){let t=await s.activateKioskOffer(e,r);return P(t,h,p,a)},async claimKioskOffer(e,r){let t=await s.claimKioskOffer(e,r);return P(t,h,p,a)},async createLoyaltyUser(e,r,t){let n=await s.createLoyaltyUser(e,r,t);return P(n,h,p,a)},async getAdminTransactions(e,r,t,n){let o=await s.getAdminTransactions(e,r,t,n);return P(o,h,p,a)},async getLoyaltyInfo(e,r){let t=await s.getLoyaltyInfo(e,r);return P(t,h,p,a)},async getUserById(e,r,t){let n=await s.getUserById(e,r,t);return P(n,h,p,a)},async getUserPerks(e,r,t){let n=await s.getUserPerks(e,r,t);return P(n,h,p,a)},async getUserWallet(e,r,t){let n=await s.getUserWallet(e,r,t);return P(n,h,p,a)},async getWalletRewards(e,r,t){let n=await s.getWalletRewards(e,r,t);return P(n,h,p,a)},async memberContext(e,r){let t=await s.memberContext(e,r);return P(t,h,p,a)},async resolvePerks(e,r){let t=await s.resolvePerks(e,r);return P(t,h,p,a)},async searchUser(e,r,t,n,o){let i=await s.searchUser(e,r,t,n,o);return P(i,h,p,a)},async updatePoints(e,r,t){let n=await s.updatePoints(e,r,t);return P(n,h,p,a)},async validateWallet(e,r,t,n){let o=await s.validateWallet(e,r,t,n);return P(o,h,p,a)}}},ta=function(a,s,e){let r=k(a);return{activateKioskOffer(t,n){return r.activateKioskOffer(t,n).then(o=>o(e,s))},claimKioskOffer(t,n){return r.claimKioskOffer(t,n).then(o=>o(e,s))},createLoyaltyUser(t,n,o){return r.createLoyaltyUser(t,n,o).then(i=>i(e,s))},getAdminTransactions(t,n,o,i){return r.getAdminTransactions(t,n,o,i).then(l=>l(e,s))},getLoyaltyInfo(t,n){return r.getLoyaltyInfo(t,n).then(o=>o(e,s))},getUserById(t,n,o){return r.getUserById(t,n,o).then(i=>i(e,s))},getUserPerks(t,n,o){return r.getUserPerks(t,n,o).then(i=>i(e,s))},getUserWallet(t,n,o){return r.getUserWallet(t,n,o).then(i=>i(e,s))},getWalletRewards(t,n,o){return r.getWalletRewards(t,n,o).then(i=>i(e,s))},memberContext(t,n){return r.memberContext(t,n).then(o=>o(e,s))},resolvePerks(t,n){return r.resolvePerks(t,n).then(o=>o(e,s))},searchUser(t,n,o,i,l){return r.searchUser(t,n,o,i,l).then(u=>u(e,s))},updatePoints(t,n,o){return r.updatePoints(t,n,o).then(i=>i(e,s))},validateWallet(t,n,o,i){return r.validateWallet(t,n,o,i).then(l=>l(e,s))}}},Ye=class extends V{activateKioskOffer(s,e){return k(this.configuration).activateKioskOffer(s,e).then(r=>r(this.axios,this.basePath))}claimKioskOffer(s,e){return k(this.configuration).claimKioskOffer(s,e).then(r=>r(this.axios,this.basePath))}createLoyaltyUser(s,e,r){return k(this.configuration).createLoyaltyUser(s,e,r).then(t=>t(this.axios,this.basePath))}getAdminTransactions(s,e,r,t){return k(this.configuration).getAdminTransactions(s,e,r,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(s,e){return k(this.configuration).getLoyaltyInfo(s,e).then(r=>r(this.axios,this.basePath))}getUserById(s,e,r){return k(this.configuration).getUserById(s,e,r).then(t=>t(this.axios,this.basePath))}getUserPerks(s,e,r){return k(this.configuration).getUserPerks(s,e,r).then(t=>t(this.axios,this.basePath))}getUserWallet(s,e,r){return k(this.configuration).getUserWallet(s,e,r).then(t=>t(this.axios,this.basePath))}getWalletRewards(s,e,r){return k(this.configuration).getWalletRewards(s,e,r).then(t=>t(this.axios,this.basePath))}memberContext(s,e){return k(this.configuration).memberContext(s,e).then(r=>r(this.axios,this.basePath))}resolvePerks(s,e){return k(this.configuration).resolvePerks(s,e).then(r=>r(this.axios,this.basePath))}searchUser(s,e,r,t,n){return k(this.configuration).searchUser(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,r){return k(this.configuration).updatePoints(s,e,r).then(t=>t(this.axios,this.basePath))}validateWallet(s,e,r,t){return k(this.configuration).validateWallet(s,e,r,t).then(n=>n(this.axios,this.basePath))}},us=function(a){return{editBusinessProduct:async(s,e,r={})=>{c("editBusinessProduct","businessId",s),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},editBusinessProductV2:async(s,e,r={})=>{c("editBusinessProductV2","businessId",s),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getBusinessExtras:async(s,e={})=>{c("getBusinessExtras","businessId",s);let r="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getProductsByCategoriesV2:async(s,e,r={})=>{c("getProductsByCategoriesV2","businessId",s);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getProductsByCategoriesV3:async(s,e,r={})=>{c("getProductsByCategoriesV3","businessId",s);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},resetProductEod:async(s,e={})=>{c("resetProductEod","resetEodDto",s);let r="/api/v1/menu/availability/reset-eod",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},Y=function(a){let s=us(a);return{async editBusinessProduct(e,r,t){let n=await s.editBusinessProduct(e,r,t);return P(n,h,p,a)},async editBusinessProductV2(e,r,t){let n=await s.editBusinessProductV2(e,r,t);return P(n,h,p,a)},async getBusinessExtras(e,r){let t=await s.getBusinessExtras(e,r);return P(t,h,p,a)},async getProductsByCategoriesV2(e,r,t){let n=await s.getProductsByCategoriesV2(e,r,t);return P(n,h,p,a)},async getProductsByCategoriesV3(e,r,t){let n=await s.getProductsByCategoriesV3(e,r,t);return P(n,h,p,a)},async resetProductEod(e,r){let t=await s.resetProductEod(e,r);return P(t,h,p,a)}}},sa=function(a,s,e){let r=Y(a);return{editBusinessProduct(t,n,o){return r.editBusinessProduct(t,n,o).then(i=>i(e,s))},editBusinessProductV2(t,n,o){return r.editBusinessProductV2(t,n,o).then(i=>i(e,s))},getBusinessExtras(t,n){return r.getBusinessExtras(t,n).then(o=>o(e,s))},getProductsByCategoriesV2(t,n,o){return r.getProductsByCategoriesV2(t,n,o).then(i=>i(e,s))},getProductsByCategoriesV3(t,n,o){return r.getProductsByCategoriesV3(t,n,o).then(i=>i(e,s))},resetProductEod(t,n){return r.resetProductEod(t,n).then(o=>o(e,s))}}},Je=class extends V{editBusinessProduct(s,e,r){return Y(this.configuration).editBusinessProduct(s,e,r).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,r){return Y(this.configuration).editBusinessProductV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return Y(this.configuration).getBusinessExtras(s,e).then(r=>r(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,r){return Y(this.configuration).getProductsByCategoriesV2(s,e,r).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(s,e,r){return Y(this.configuration).getProductsByCategoriesV3(s,e,r).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return Y(this.configuration).resetProductEod(s,e).then(r=>r(this.axios,this.basePath))}},cs=function(a){return{addBusinessesToMerchant:async(s,e,r={})=>{c("addBusinessesToMerchant","merchantId",s),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},createMerchant:async(s,e={})=>{c("createMerchant","createMerchantDto",s);let r="/api/v1/merchants",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},removeBusinessFromMerchant:async(s,e,r={})=>{c("removeBusinessFromMerchant","merchantId",s),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await C(l,a),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}}}},pe=function(a){let s=cs(a);return{async addBusinessesToMerchant(e,r,t){let n=await s.addBusinessesToMerchant(e,r,t);return P(n,h,p,a)},async createMerchant(e,r){let t=await s.createMerchant(e,r);return P(t,h,p,a)},async removeBusinessFromMerchant(e,r,t){let n=await s.removeBusinessFromMerchant(e,r,t);return P(n,h,p,a)}}},ra=function(a,s,e){let r=pe(a);return{addBusinessesToMerchant(t,n,o){return r.addBusinessesToMerchant(t,n,o).then(i=>i(e,s))},createMerchant(t,n){return r.createMerchant(t,n).then(o=>o(e,s))},removeBusinessFromMerchant(t,n,o){return r.removeBusinessFromMerchant(t,n,o).then(i=>i(e,s))}}},Xe=class extends V{addBusinessesToMerchant(s,e,r){return pe(this.configuration).addBusinessesToMerchant(s,e,r).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return pe(this.configuration).createMerchant(s,e).then(r=>r(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,r){return pe(this.configuration).removeBusinessFromMerchant(s,e,r).then(t=>t(this.axios,this.basePath))}},ds=function(a){return{createMunchiGiftCard:async(s,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",s);let r="/api/v1/munchi-giftcard/create",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getMunchiGiftCardData:async(s,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",s);let r="/api/v1/munchi-giftcard/data",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},redeemMunchiGiftCard:async(s,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",s);let r="/api/v1/munchi-giftcard/redeem",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},validateMunchiGiftCard:async(s,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",s);let r="/api/v1/munchi-giftcard/validate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},ne=function(a){let s=ds(a);return{async createMunchiGiftCard(e,r){let t=await s.createMunchiGiftCard(e,r);return P(t,h,p,a)},async getMunchiGiftCardData(e,r){let t=await s.getMunchiGiftCardData(e,r);return P(t,h,p,a)},async redeemMunchiGiftCard(e,r){let t=await s.redeemMunchiGiftCard(e,r);return P(t,h,p,a)},async validateMunchiGiftCard(e,r){let t=await s.validateMunchiGiftCard(e,r);return P(t,h,p,a)}}},na=function(a,s,e){let r=ne(a);return{createMunchiGiftCard(t,n){return r.createMunchiGiftCard(t,n).then(o=>o(e,s))},getMunchiGiftCardData(t,n){return r.getMunchiGiftCardData(t,n).then(o=>o(e,s))},redeemMunchiGiftCard(t,n){return r.redeemMunchiGiftCard(t,n).then(o=>o(e,s))},validateMunchiGiftCard(t,n){return r.validateMunchiGiftCard(t,n).then(o=>o(e,s))}}},Ze=class extends V{createMunchiGiftCard(s,e){return ne(this.configuration).createMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}getMunchiGiftCardData(s,e){return ne(this.configuration).getMunchiGiftCardData(s,e).then(r=>r(this.axios,this.basePath))}redeemMunchiGiftCard(s,e){return ne(this.configuration).redeemMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}validateMunchiGiftCard(s,e){return ne(this.configuration).validateMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}},ps=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",s);let r="/api/v2/notification/add-venue-subscriptions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",s);let r="/api/v2/notification/remove-venue-subscriptions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},Ce=function(a){let s=ps(a);return{async addVenueSubscriptionsV2(e,r){let t=await s.addVenueSubscriptionsV2(e,r);return P(t,h,p,a)},async removeVenueSubscriptionsV2(e,r){let t=await s.removeVenueSubscriptionsV2(e,r);return P(t,h,p,a)}}},oa=function(a,s,e){let r=Ce(a);return{addVenueSubscriptionsV2(t,n){return r.addVenueSubscriptionsV2(t,n).then(o=>o(e,s))},removeVenueSubscriptionsV2(t,n){return r.removeVenueSubscriptionsV2(t,n).then(o=>o(e,s))}}},et=class extends V{addVenueSubscriptionsV2(s,e){return Ce(this.configuration).addVenueSubscriptionsV2(s,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return Ce(this.configuration).removeVenueSubscriptionsV2(s,e).then(r=>r(this.axios,this.basePath))}},ms=function(a){return{completeOrder:async(s,e,r,t={})=>{c("completeOrder","businessId",s),c("completeOrder","orderId",e),c("completeOrder","completeOrderDto",r);let n="/api/v1/businesses/{businessId}/orders/{orderId}/complete".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await C(u,a),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},Ut=function(a){let s=ms(a);return{async completeOrder(e,r,t,n){let o=await s.completeOrder(e,r,t,n);return P(o,h,p,a)}}},aa=function(a,s,e){let r=Ut(a);return{completeOrder(t,n,o,i){return r.completeOrder(t,n,o,i).then(l=>l(e,s))}}},tt=class extends V{completeOrder(s,e,r,t){return Ut(this.configuration).completeOrder(s,e,r,t).then(n=>n(this.axios,this.basePath))}},ys=function(a){return{findOneByExternalId:async(s,e={})=>{c("findOneByExternalId","externalId",s);let r="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},Et=function(a){let s=ys(a);return{async findOneByExternalId(e,r){let t=await s.findOneByExternalId(e,r);return P(t,h,p,a)}}},ia=function(a,s,e){let r=Et(a);return{findOneByExternalId(t,n){return r.findOneByExternalId(t,n).then(o=>o(e,s))}}},st=class extends V{findOneByExternalId(s,e){return Et(this.configuration).findOneByExternalId(s,e).then(r=>r(this.axios,this.basePath))}},gs=function(a){return{acceptOrder:async(s,e={})=>{c("acceptOrder","acceptOrderDto",s);let r="/api/v1/orders/accept",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},confirmPreOrder:async(s,e={})=>{c("confirmPreOrder","confirmPreorderDto",s);let r="/api/v1/orders/confirm/preOrder",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",s);let r="/api/v2/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},deliverOrder:async(s,e={})=>{c("deliverOrder","deliveredOrderDto",s);let r="/api/v1/orders/delivered",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},dispatchPosOrderV5:async(s,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",s);let r="/api/v5/orders/pos/dispatch",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getAllOrdersV2:async(s,e={})=>{c("getAllOrdersV2","businessIds",s);let r="/api/v2/orders",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessIds=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOrdersV2:async(s,e,r,t,n={})=>{c("getOrdersV2","status",s),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),r!==void 0&&(A.posBusinessId=r),t!==void 0&&(A.extraProvider=t),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},getOrdersV3:async(s,e,r,t,n={})=>{c("getOrdersV3","status",s),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),r!==void 0&&(A.posBusinessId=r),t!==void 0&&(A.extraProvider=t),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{c("getParkedPosOrderV2","businessId",s);let r="/api/v2/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPosOrderById:async(s,e={})=>{c("getPosOrderById","getPosOrderDto",s);let r="/api/v1/orders/pos",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},markOrderAsReady:async(s,e={})=>{c("markOrderAsReady","readyOrderDto",s);let r="/api/v1/orders/ready",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},parkPosOrderV5:async(s,e={})=>{c("parkPosOrderV5","parkPosOrderDto",s);let r="/api/v5/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},placePosOrderV4:async(s,e={})=>{c("placePosOrderV4","posOrderPayloadDto",s);let r="/api/v4/orders/pos/place",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},processPosOrderActions:async(s,e={})=>{c("processPosOrderActions","processOrderActionsDto",s);let r="/api/v4/orders/pos/actions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},rejectOrder:async(s,e={})=>{c("rejectOrder","rejectOrderDto",s);let r="/api/v1/orders/reject",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},syncPosOrder:async(s,e={})=>{c("syncPosOrder","syncPosOrderDto",s);let r="/api/v1/orders/pos/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},updatePosOrderV2:async(s,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",s);let r="/api/v2/orders/pos/update",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},M=function(a){let s=gs(a);return{async acceptOrder(e,r){let t=await s.acceptOrder(e,r);return P(t,h,p,a)},async confirmPreOrder(e,r){let t=await s.confirmPreOrder(e,r);return P(t,h,p,a)},async deletePosParkedOrderV2(e,r){let t=await s.deletePosParkedOrderV2(e,r);return P(t,h,p,a)},async deliverOrder(e,r){let t=await s.deliverOrder(e,r);return P(t,h,p,a)},async dispatchPosOrderV5(e,r){let t=await s.dispatchPosOrderV5(e,r);return P(t,h,p,a)},async getAllOrdersV2(e,r){let t=await s.getAllOrdersV2(e,r);return P(t,h,p,a)},async getOrdersV2(e,r,t,n,o){let i=await s.getOrdersV2(e,r,t,n,o);return P(i,h,p,a)},async getOrdersV3(e,r,t,n,o){let i=await s.getOrdersV3(e,r,t,n,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,r){let t=await s.getParkedPosOrderV2(e,r);return P(t,h,p,a)},async getPosOrderById(e,r){let t=await s.getPosOrderById(e,r);return P(t,h,p,a)},async markOrderAsReady(e,r){let t=await s.markOrderAsReady(e,r);return P(t,h,p,a)},async parkPosOrderV5(e,r){let t=await s.parkPosOrderV5(e,r);return P(t,h,p,a)},async placePosOrderV4(e,r){let t=await s.placePosOrderV4(e,r);return P(t,h,p,a)},async processPosOrderActions(e,r){let t=await s.processPosOrderActions(e,r);return P(t,h,p,a)},async rejectOrder(e,r){let t=await s.rejectOrder(e,r);return P(t,h,p,a)},async syncPosOrder(e,r){let t=await s.syncPosOrder(e,r);return P(t,h,p,a)},async updatePosOrderV2(e,r){let t=await s.updatePosOrderV2(e,r);return P(t,h,p,a)}}},la=function(a,s,e){let r=M(a);return{acceptOrder(t,n){return r.acceptOrder(t,n).then(o=>o(e,s))},confirmPreOrder(t,n){return r.confirmPreOrder(t,n).then(o=>o(e,s))},deletePosParkedOrderV2(t,n){return r.deletePosParkedOrderV2(t,n).then(o=>o(e,s))},deliverOrder(t,n){return r.deliverOrder(t,n).then(o=>o(e,s))},dispatchPosOrderV5(t,n){return r.dispatchPosOrderV5(t,n).then(o=>o(e,s))},getAllOrdersV2(t,n){return r.getAllOrdersV2(t,n).then(o=>o(e,s))},getOrdersV2(t,n,o,i,l){return r.getOrdersV2(t,n,o,i,l).then(u=>u(e,s))},getOrdersV3(t,n,o,i,l){return r.getOrdersV3(t,n,o,i,l).then(u=>u(e,s))},getParkedPosOrderV2(t,n){return r.getParkedPosOrderV2(t,n).then(o=>o(e,s))},getPosOrderById(t,n){return r.getPosOrderById(t,n).then(o=>o(e,s))},markOrderAsReady(t,n){return r.markOrderAsReady(t,n).then(o=>o(e,s))},parkPosOrderV5(t,n){return r.parkPosOrderV5(t,n).then(o=>o(e,s))},placePosOrderV4(t,n){return r.placePosOrderV4(t,n).then(o=>o(e,s))},processPosOrderActions(t,n){return r.processPosOrderActions(t,n).then(o=>o(e,s))},rejectOrder(t,n){return r.rejectOrder(t,n).then(o=>o(e,s))},syncPosOrder(t,n){return r.syncPosOrder(t,n).then(o=>o(e,s))},updatePosOrderV2(t,n){return r.updatePosOrderV2(t,n).then(o=>o(e,s))}}},rt=class extends V{acceptOrder(s,e){return M(this.configuration).acceptOrder(s,e).then(r=>r(this.axios,this.basePath))}confirmPreOrder(s,e){return M(this.configuration).confirmPreOrder(s,e).then(r=>r(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return M(this.configuration).deletePosParkedOrderV2(s,e).then(r=>r(this.axios,this.basePath))}deliverOrder(s,e){return M(this.configuration).deliverOrder(s,e).then(r=>r(this.axios,this.basePath))}dispatchPosOrderV5(s,e){return M(this.configuration).dispatchPosOrderV5(s,e).then(r=>r(this.axios,this.basePath))}getAllOrdersV2(s,e){return M(this.configuration).getAllOrdersV2(s,e).then(r=>r(this.axios,this.basePath))}getOrdersV2(s,e,r,t,n){return M(this.configuration).getOrdersV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}getOrdersV3(s,e,r,t,n){return M(this.configuration).getOrdersV3(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return M(this.configuration).getParkedPosOrderV2(s,e).then(r=>r(this.axios,this.basePath))}getPosOrderById(s,e){return M(this.configuration).getPosOrderById(s,e).then(r=>r(this.axios,this.basePath))}markOrderAsReady(s,e){return M(this.configuration).markOrderAsReady(s,e).then(r=>r(this.axios,this.basePath))}parkPosOrderV5(s,e){return M(this.configuration).parkPosOrderV5(s,e).then(r=>r(this.axios,this.basePath))}placePosOrderV4(s,e){return M(this.configuration).placePosOrderV4(s,e).then(r=>r(this.axios,this.basePath))}processPosOrderActions(s,e){return M(this.configuration).processPosOrderActions(s,e).then(r=>r(this.axios,this.basePath))}rejectOrder(s,e){return M(this.configuration).rejectOrder(s,e).then(r=>r(this.axios,this.basePath))}syncPosOrder(s,e){return M(this.configuration).syncPosOrder(s,e).then(r=>r(this.axios,this.basePath))}updatePosOrderV2(s,e){return M(this.configuration).updatePosOrderV2(s,e).then(r=>r(this.axios,this.basePath))}},Ps=function(a){return{listPosPermissions:async(s={})=>{let e="/api/v1/pos-permissions",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await C(o,a),y(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}}}},Mt=function(a){let s=Ps(a);return{async listPosPermissions(e){let r=await s.listPosPermissions(e);return P(r,h,p,a)}}},ua=function(a,s,e){let r=Mt(a);return{listPosPermissions(t){return r.listPosPermissions(t).then(n=>n(e,s))}}},nt=class extends V{listPosPermissions(s){return Mt(this.configuration).listPosPermissions(s).then(e=>e(this.axios,this.basePath))}},hs=function(a){return{getPosSession:async(s,e={})=>{c("getPosSession","businessId",s);let r="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPosSessionV2:async(s,e={})=>{c("getPosSessionV2","businessId",s);let r="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}}}},De=function(a){let s=hs(a);return{async getPosSession(e,r){let t=await s.getPosSession(e,r);return P(t,h,p,a)},async getPosSessionV2(e,r){let t=await s.getPosSessionV2(e,r);return P(t,h,p,a)}}},ca=function(a,s,e){let r=De(a);return{getPosSession(t,n){return r.getPosSession(t,n).then(o=>o(e,s))},getPosSessionV2(t,n){return r.getPosSessionV2(t,n).then(o=>o(e,s))}}},ot=class extends V{getPosSession(s,e){return De(this.configuration).getPosSession(s,e).then(r=>r(this.axios,this.basePath))}getPosSessionV2(s,e){return De(this.configuration).getPosSessionV2(s,e).then(r=>r(this.axios,this.basePath))}},As=function(a){return{payTerminalInit:async(s,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",s);let r="/api/v1/pay-terminal/init",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalLockSet:async(s,e={})=>{c("payTerminalLockSet","setPayTerminalLockBodyDto",s);let r="/api/v1/pay-terminal/lock",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalLockStatus:async(s,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",s);let r="/api/v1/pay-terminal/lock/status",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalLockSync:async(s,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",s);let r="/api/v1/pay-terminal/lock/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalLockVerify:async(s,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",s);let r="/api/v1/pay-terminal/lock/verify",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalPair:async(s,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",s);let r="/api/v1/pay-terminal/pair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalPresence:async(s,e={})=>{c("payTerminalPresence","payTerminalSessionTokenBodyDto",s);let r="/api/v1/pay-terminal/presence",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalSessionToken:async(s,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",s);let r="/api/v1/pay-terminal/session-token",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},payTerminalUnpair:async(s,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",s);let r="/api/v1/pay-terminal/unpair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},G=function(a){let s=As(a);return{async payTerminalInit(e,r){let t=await s.payTerminalInit(e,r);return P(t,h,p,a)},async payTerminalLockSet(e,r){let t=await s.payTerminalLockSet(e,r);return P(t,h,p,a)},async payTerminalLockStatus(e,r){let t=await s.payTerminalLockStatus(e,r);return P(t,h,p,a)},async payTerminalLockSync(e,r){let t=await s.payTerminalLockSync(e,r);return P(t,h,p,a)},async payTerminalLockVerify(e,r){let t=await s.payTerminalLockVerify(e,r);return P(t,h,p,a)},async payTerminalPair(e,r){let t=await s.payTerminalPair(e,r);return P(t,h,p,a)},async payTerminalPresence(e,r){let t=await s.payTerminalPresence(e,r);return P(t,h,p,a)},async payTerminalSessionToken(e,r){let t=await s.payTerminalSessionToken(e,r);return P(t,h,p,a)},async payTerminalUnpair(e,r){let t=await s.payTerminalUnpair(e,r);return P(t,h,p,a)}}},da=function(a,s,e){let r=G(a);return{payTerminalInit(t,n){return r.payTerminalInit(t,n).then(o=>o(e,s))},payTerminalLockSet(t,n){return r.payTerminalLockSet(t,n).then(o=>o(e,s))},payTerminalLockStatus(t,n){return r.payTerminalLockStatus(t,n).then(o=>o(e,s))},payTerminalLockSync(t,n){return r.payTerminalLockSync(t,n).then(o=>o(e,s))},payTerminalLockVerify(t,n){return r.payTerminalLockVerify(t,n).then(o=>o(e,s))},payTerminalPair(t,n){return r.payTerminalPair(t,n).then(o=>o(e,s))},payTerminalPresence(t,n){return r.payTerminalPresence(t,n).then(o=>o(e,s))},payTerminalSessionToken(t,n){return r.payTerminalSessionToken(t,n).then(o=>o(e,s))},payTerminalUnpair(t,n){return r.payTerminalUnpair(t,n).then(o=>o(e,s))}}},at=class extends V{payTerminalInit(s,e){return G(this.configuration).payTerminalInit(s,e).then(r=>r(this.axios,this.basePath))}payTerminalLockSet(s,e){return G(this.configuration).payTerminalLockSet(s,e).then(r=>r(this.axios,this.basePath))}payTerminalLockStatus(s,e){return G(this.configuration).payTerminalLockStatus(s,e).then(r=>r(this.axios,this.basePath))}payTerminalLockSync(s,e){return G(this.configuration).payTerminalLockSync(s,e).then(r=>r(this.axios,this.basePath))}payTerminalLockVerify(s,e){return G(this.configuration).payTerminalLockVerify(s,e).then(r=>r(this.axios,this.basePath))}payTerminalPair(s,e){return G(this.configuration).payTerminalPair(s,e).then(r=>r(this.axios,this.basePath))}payTerminalPresence(s,e){return G(this.configuration).payTerminalPresence(s,e).then(r=>r(this.axios,this.basePath))}payTerminalSessionToken(s,e){return G(this.configuration).payTerminalSessionToken(s,e).then(r=>r(this.axios,this.basePath))}payTerminalUnpair(s,e){return G(this.configuration).payTerminalUnpair(s,e).then(r=>r(this.axios,this.basePath))}},bs=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",s);let r="/api/v3/payment/nets/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",s);let r="/api/v2/payment/viva/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{c("createNetsRefundTransaction","createRefundDto",s);let r="/api/v4/payment/nets/refund/transaction",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getPaymentReference:async(s,e={})=>{c("getPaymentReference","getPaymentReferenceDto",s);let r="/api/v1/payment/reference",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getPaymentStatus:async(s,e={})=>{c("getPaymentStatus","getPaymentStatusDto",s);let r="/api/v1/payment/status",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",s);let r="/api/v3/payment/nets/terminal/initiate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",s);let r="/api/v4/payment/viva/terminal/initiate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{c("processOnlineOrderRefund","orderResponseDto",s);let r="/api/v1/payment/online-orders/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{c("refundSingleVivaTransaction","createRefundDto",s);let r="/api/v4/payment/viva/refund/single",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},K=function(a){let s=bs(a);return{async cancelNetsTerminalTransaction(e,r){let t=await s.cancelNetsTerminalTransaction(e,r);return P(t,h,p,a)},async cancelVivaTransactionV2(e,r){let t=await s.cancelVivaTransactionV2(e,r);return P(t,h,p,a)},async createNetsRefundTransaction(e,r){let t=await s.createNetsRefundTransaction(e,r);return P(t,h,p,a)},async getPaymentReference(e,r){let t=await s.getPaymentReference(e,r);return P(t,h,p,a)},async getPaymentStatus(e,r){let t=await s.getPaymentStatus(e,r);return P(t,h,p,a)},async initiateNetsTerminalTransaction(e,r){let t=await s.initiateNetsTerminalTransaction(e,r);return P(t,h,p,a)},async initiateTerminalTransaction(e,r){let t=await s.initiateTerminalTransaction(e,r);return P(t,h,p,a)},async processOnlineOrderRefund(e,r){let t=await s.processOnlineOrderRefund(e,r);return P(t,h,p,a)},async refundSingleVivaTransaction(e,r){let t=await s.refundSingleVivaTransaction(e,r);return P(t,h,p,a)}}},pa=function(a,s,e){let r=K(a);return{cancelNetsTerminalTransaction(t,n){return r.cancelNetsTerminalTransaction(t,n).then(o=>o(e,s))},cancelVivaTransactionV2(t,n){return r.cancelVivaTransactionV2(t,n).then(o=>o(e,s))},createNetsRefundTransaction(t,n){return r.createNetsRefundTransaction(t,n).then(o=>o(e,s))},getPaymentReference(t,n){return r.getPaymentReference(t,n).then(o=>o(e,s))},getPaymentStatus(t,n){return r.getPaymentStatus(t,n).then(o=>o(e,s))},initiateNetsTerminalTransaction(t,n){return r.initiateNetsTerminalTransaction(t,n).then(o=>o(e,s))},initiateTerminalTransaction(t,n){return r.initiateTerminalTransaction(t,n).then(o=>o(e,s))},processOnlineOrderRefund(t,n){return r.processOnlineOrderRefund(t,n).then(o=>o(e,s))},refundSingleVivaTransaction(t,n){return r.refundSingleVivaTransaction(t,n).then(o=>o(e,s))}}},it=class extends V{cancelNetsTerminalTransaction(s,e){return K(this.configuration).cancelNetsTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return K(this.configuration).cancelVivaTransactionV2(s,e).then(r=>r(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return K(this.configuration).createNetsRefundTransaction(s,e).then(r=>r(this.axios,this.basePath))}getPaymentReference(s,e){return K(this.configuration).getPaymentReference(s,e).then(r=>r(this.axios,this.basePath))}getPaymentStatus(s,e){return K(this.configuration).getPaymentStatus(s,e).then(r=>r(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return K(this.configuration).initiateNetsTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return K(this.configuration).initiateTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return K(this.configuration).processOnlineOrderRefund(s,e).then(r=>r(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return K(this.configuration).refundSingleVivaTransaction(s,e).then(r=>r(this.axios,this.basePath))}},xs=function(a){return{createPaymentMethod:async(s,e,r,t={})=>{c("createPaymentMethod","businessId",s),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",r);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},deletePaymentMethodOption:async(s,e,r,t={})=>{c("deletePaymentMethodOption","businessId",s),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",r);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getCatalog:async(s,e,r,t={})=>{c("getCatalog","businessId",s),c("getCatalog","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.locale=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getGlobalCatalog:async(s,e={})=>{let r="/api/v1/payment-methods/catalog",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.locale=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPaymentMethods:async(s,e,r,t={})=>{c("getPaymentMethods","businessId",s),c("getPaymentMethods","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.locale=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getTypes:async(s={})=>{let e="/api/v1/payment-methods/types",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},reorder:async(s,e,r,t={})=>{c("reorder","businessId",s),c("reorder","channel",e),c("reorder","bulkRankDto",r);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},updatePaymentMethodOption:async(s,e,r,t,n={})=>{c("updatePaymentMethodOption","businessId",s),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",r),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}}}},H=function(a){let s=xs(a);return{async createPaymentMethod(e,r,t,n){let o=await s.createPaymentMethod(e,r,t,n);return P(o,h,p,a)},async deletePaymentMethodOption(e,r,t,n){let o=await s.deletePaymentMethodOption(e,r,t,n);return P(o,h,p,a)},async getCatalog(e,r,t,n){let o=await s.getCatalog(e,r,t,n);return P(o,h,p,a)},async getGlobalCatalog(e,r){let t=await s.getGlobalCatalog(e,r);return P(t,h,p,a)},async getPaymentMethods(e,r,t,n){let o=await s.getPaymentMethods(e,r,t,n);return P(o,h,p,a)},async getTypes(e){let r=await s.getTypes(e);return P(r,h,p,a)},async reorder(e,r,t,n){let o=await s.reorder(e,r,t,n);return P(o,h,p,a)},async updatePaymentMethodOption(e,r,t,n,o){let i=await s.updatePaymentMethodOption(e,r,t,n,o);return P(i,h,p,a)}}},ma=function(a,s,e){let r=H(a);return{createPaymentMethod(t,n,o,i){return r.createPaymentMethod(t,n,o,i).then(l=>l(e,s))},deletePaymentMethodOption(t,n,o,i){return r.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,s))},getCatalog(t,n,o,i){return r.getCatalog(t,n,o,i).then(l=>l(e,s))},getGlobalCatalog(t,n){return r.getGlobalCatalog(t,n).then(o=>o(e,s))},getPaymentMethods(t,n,o,i){return r.getPaymentMethods(t,n,o,i).then(l=>l(e,s))},getTypes(t){return r.getTypes(t).then(n=>n(e,s))},reorder(t,n,o,i){return r.reorder(t,n,o,i).then(l=>l(e,s))},updatePaymentMethodOption(t,n,o,i,l){return r.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,s))}}},lt=class extends V{createPaymentMethod(s,e,r,t){return H(this.configuration).createPaymentMethod(s,e,r,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(s,e,r,t){return H(this.configuration).deletePaymentMethodOption(s,e,r,t).then(n=>n(this.axios,this.basePath))}getCatalog(s,e,r,t){return H(this.configuration).getCatalog(s,e,r,t).then(n=>n(this.axios,this.basePath))}getGlobalCatalog(s,e){return H(this.configuration).getGlobalCatalog(s,e).then(r=>r(this.axios,this.basePath))}getPaymentMethods(s,e,r,t){return H(this.configuration).getPaymentMethods(s,e,r,t).then(n=>n(this.axios,this.basePath))}getTypes(s){return H(this.configuration).getTypes(s).then(e=>e(this.axios,this.basePath))}reorder(s,e,r,t){return H(this.configuration).reorder(s,e,r,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(s,e,r,t,n){return H(this.configuration).updatePaymentMethodOption(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}},fs=function(a){return{cancelSession:async(s,e={})=>{c("cancelSession","clientToken",s);let r="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOrderSettlementStatus:async(s,e,r,t={})=>{c("getOrderSettlementStatus","businessId",s),c("getOrderSettlementStatus","orderId",e);let n="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},getPaymentSession:async(s,e={})=>{c("getPaymentSession","clientToken",s);let r="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getPaymentSessionAnalytics:async(s,e,r,t,n={})=>{c("getPaymentSessionAnalytics","businessId",s),c("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};s!==void 0&&(A.businessId=s),e!==void 0&&(A.timeSpan=e),r!==void 0&&(A.start=r),t!==void 0&&(A.end=t),y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:g(i),options:u}},initiateNetsSession:async(s,e,r={})=>{c("initiateNetsSession","initiateNetsSessionDto",s);let t="/api/v1/payment-session/nets/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(s,i,a),{url:g(n),options:i}},initiateVivaA2aSession:async(s,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",s);let r="/api/v1/payment-session/viva/a2a",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},initiateVivaSession:async(s,e,r={})=>{c("initiateVivaSession","initiateVivaSessionDto",s);let t="/api/v1/payment-session/viva/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(s,i,a),{url:g(n),options:i}},initiateWorldlineSession:async(s,e,r={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",s);let t="/api/v1/payment-session/worldline/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(s,i,a),{url:g(n),options:i}},paymentSessionGetChargeStatus:async(s,e={})=>{c("paymentSessionGetChargeStatus","chargeId",s);let r="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},paymentSessionRegisterChargeMapping:async(s,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",s);let r="/api/v1/payment-session/charge-status/register",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},pollVivaSession:async(s,e={})=>{c("pollVivaSession","pollVivaSessionDto",s);let r="/api/v1/payment-session/poll",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},pollWorldlineSession:async(s,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",s);let r="/api/v1/payment-session/worldline/poll",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},recordManualPayment:async(s,e={})=>{c("recordManualPayment","createManualSessionDto",s);let r="/api/v1/payment-session/manual",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},refundNetsSession:async(s,e={})=>{c("refundNetsSession","reverseSessionDto",s);let r="/api/v1/payment-session/nets/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},refundVivaSession:async(s,e={})=>{c("refundVivaSession","reverseSessionDto",s);let r="/api/v1/payment-session/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},refundWorldlineSession:async(s,e={})=>{c("refundWorldlineSession","reverseSessionDto",s);let r="/api/v1/payment-session/worldline/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},retryWorldlineReversal:async(s,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",s);let r="/api/v1/payment-session/worldline/reversal-retry",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},revertNetsSession:async(s,e={})=>{c("revertNetsSession","reverseSessionDto",s);let r="/api/v1/payment-session/nets/revert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},revertVivaSession:async(s,e={})=>{c("revertVivaSession","reverseSessionDto",s);let r="/api/v1/payment-session/revert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},revertWorldlineSession:async(s,e={})=>{c("revertWorldlineSession","reverseSessionDto",s);let r="/api/v1/payment-session/worldline/revert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},voidManualPayment:async(s,e={})=>{c("voidManualPayment","voidManualSessionDto",s);let r="/api/v1/payment-session/void",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},E=function(a){let s=fs(a);return{async cancelSession(e,r){let t=await s.cancelSession(e,r);return P(t,h,p,a)},async getOrderSettlementStatus(e,r,t,n){let o=await s.getOrderSettlementStatus(e,r,t,n);return P(o,h,p,a)},async getPaymentSession(e,r){let t=await s.getPaymentSession(e,r);return P(t,h,p,a)},async getPaymentSessionAnalytics(e,r,t,n,o){let i=await s.getPaymentSessionAnalytics(e,r,t,n,o);return P(i,h,p,a)},async initiateNetsSession(e,r,t){let n=await s.initiateNetsSession(e,r,t);return P(n,h,p,a)},async initiateVivaA2aSession(e,r){let t=await s.initiateVivaA2aSession(e,r);return P(t,h,p,a)},async initiateVivaSession(e,r,t){let n=await s.initiateVivaSession(e,r,t);return P(n,h,p,a)},async initiateWorldlineSession(e,r,t){let n=await s.initiateWorldlineSession(e,r,t);return P(n,h,p,a)},async paymentSessionGetChargeStatus(e,r){let t=await s.paymentSessionGetChargeStatus(e,r);return P(t,h,p,a)},async paymentSessionRegisterChargeMapping(e,r){let t=await s.paymentSessionRegisterChargeMapping(e,r);return P(t,h,p,a)},async pollVivaSession(e,r){let t=await s.pollVivaSession(e,r);return P(t,h,p,a)},async pollWorldlineSession(e,r){let t=await s.pollWorldlineSession(e,r);return P(t,h,p,a)},async recordManualPayment(e,r){let t=await s.recordManualPayment(e,r);return P(t,h,p,a)},async refundNetsSession(e,r){let t=await s.refundNetsSession(e,r);return P(t,h,p,a)},async refundVivaSession(e,r){let t=await s.refundVivaSession(e,r);return P(t,h,p,a)},async refundWorldlineSession(e,r){let t=await s.refundWorldlineSession(e,r);return P(t,h,p,a)},async retryWorldlineReversal(e,r){let t=await s.retryWorldlineReversal(e,r);return P(t,h,p,a)},async revertNetsSession(e,r){let t=await s.revertNetsSession(e,r);return P(t,h,p,a)},async revertVivaSession(e,r){let t=await s.revertVivaSession(e,r);return P(t,h,p,a)},async revertWorldlineSession(e,r){let t=await s.revertWorldlineSession(e,r);return P(t,h,p,a)},async voidManualPayment(e,r){let t=await s.voidManualPayment(e,r);return P(t,h,p,a)}}},ya=function(a,s,e){let r=E(a);return{cancelSession(t,n){return r.cancelSession(t,n).then(o=>o(e,s))},getOrderSettlementStatus(t,n,o,i){return r.getOrderSettlementStatus(t,n,o,i).then(l=>l(e,s))},getPaymentSession(t,n){return r.getPaymentSession(t,n).then(o=>o(e,s))},getPaymentSessionAnalytics(t,n,o,i,l){return r.getPaymentSessionAnalytics(t,n,o,i,l).then(u=>u(e,s))},initiateNetsSession(t,n,o){return r.initiateNetsSession(t,n,o).then(i=>i(e,s))},initiateVivaA2aSession(t,n){return r.initiateVivaA2aSession(t,n).then(o=>o(e,s))},initiateVivaSession(t,n,o){return r.initiateVivaSession(t,n,o).then(i=>i(e,s))},initiateWorldlineSession(t,n,o){return r.initiateWorldlineSession(t,n,o).then(i=>i(e,s))},paymentSessionGetChargeStatus(t,n){return r.paymentSessionGetChargeStatus(t,n).then(o=>o(e,s))},paymentSessionRegisterChargeMapping(t,n){return r.paymentSessionRegisterChargeMapping(t,n).then(o=>o(e,s))},pollVivaSession(t,n){return r.pollVivaSession(t,n).then(o=>o(e,s))},pollWorldlineSession(t,n){return r.pollWorldlineSession(t,n).then(o=>o(e,s))},recordManualPayment(t,n){return r.recordManualPayment(t,n).then(o=>o(e,s))},refundNetsSession(t,n){return r.refundNetsSession(t,n).then(o=>o(e,s))},refundVivaSession(t,n){return r.refundVivaSession(t,n).then(o=>o(e,s))},refundWorldlineSession(t,n){return r.refundWorldlineSession(t,n).then(o=>o(e,s))},retryWorldlineReversal(t,n){return r.retryWorldlineReversal(t,n).then(o=>o(e,s))},revertNetsSession(t,n){return r.revertNetsSession(t,n).then(o=>o(e,s))},revertVivaSession(t,n){return r.revertVivaSession(t,n).then(o=>o(e,s))},revertWorldlineSession(t,n){return r.revertWorldlineSession(t,n).then(o=>o(e,s))},voidManualPayment(t,n){return r.voidManualPayment(t,n).then(o=>o(e,s))}}},ut=class extends V{cancelSession(s,e){return E(this.configuration).cancelSession(s,e).then(r=>r(this.axios,this.basePath))}getOrderSettlementStatus(s,e,r,t){return E(this.configuration).getOrderSettlementStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}getPaymentSession(s,e){return E(this.configuration).getPaymentSession(s,e).then(r=>r(this.axios,this.basePath))}getPaymentSessionAnalytics(s,e,r,t,n){return E(this.configuration).getPaymentSessionAnalytics(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}initiateNetsSession(s,e,r){return E(this.configuration).initiateNetsSession(s,e,r).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(s,e){return E(this.configuration).initiateVivaA2aSession(s,e).then(r=>r(this.axios,this.basePath))}initiateVivaSession(s,e,r){return E(this.configuration).initiateVivaSession(s,e,r).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(s,e,r){return E(this.configuration).initiateWorldlineSession(s,e,r).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(s,e){return E(this.configuration).paymentSessionGetChargeStatus(s,e).then(r=>r(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(s,e){return E(this.configuration).paymentSessionRegisterChargeMapping(s,e).then(r=>r(this.axios,this.basePath))}pollVivaSession(s,e){return E(this.configuration).pollVivaSession(s,e).then(r=>r(this.axios,this.basePath))}pollWorldlineSession(s,e){return E(this.configuration).pollWorldlineSession(s,e).then(r=>r(this.axios,this.basePath))}recordManualPayment(s,e){return E(this.configuration).recordManualPayment(s,e).then(r=>r(this.axios,this.basePath))}refundNetsSession(s,e){return E(this.configuration).refundNetsSession(s,e).then(r=>r(this.axios,this.basePath))}refundVivaSession(s,e){return E(this.configuration).refundVivaSession(s,e).then(r=>r(this.axios,this.basePath))}refundWorldlineSession(s,e){return E(this.configuration).refundWorldlineSession(s,e).then(r=>r(this.axios,this.basePath))}retryWorldlineReversal(s,e){return E(this.configuration).retryWorldlineReversal(s,e).then(r=>r(this.axios,this.basePath))}revertNetsSession(s,e){return E(this.configuration).revertNetsSession(s,e).then(r=>r(this.axios,this.basePath))}revertVivaSession(s,e){return E(this.configuration).revertVivaSession(s,e).then(r=>r(this.axios,this.basePath))}revertWorldlineSession(s,e){return E(this.configuration).revertWorldlineSession(s,e).then(r=>r(this.axios,this.basePath))}voidManualPayment(s,e){return E(this.configuration).voidManualPayment(s,e).then(r=>r(this.axios,this.basePath))}},Rs=function(a){return{deleteCategoryPolicy:async(s,e,r={})=>{c("deleteCategoryPolicy","businessId",s),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.categoryId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},deletePrinter:async(s,e,r={})=>{c("deletePrinter","id",s),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},deletePrinterByAddress:async(s,e,r={})=>{c("deletePrinterByAddress","businessId",s),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.address=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},deleteProductPolicy:async(s,e,r={})=>{c("deleteProductPolicy","businessId",s),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.productId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},listCategoryPolicies:async(s,e={})=>{c("listCategoryPolicies","businessId",s);let r="/api/v1/printer/policies/category",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listPrinters:async(s,e={})=>{c("listPrinters","businessId",s);let r="/api/v1/printer",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listProductPolicies:async(s,e={})=>{c("listProductPolicies","businessId",s);let r="/api/v1/printer/policies/product",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},upsertCategoryPolicy:async(s,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",s);let r="/api/v1/printer/policies/category",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},upsertPrinter:async(s,e={})=>{c("upsertPrinter","upsertPrinterDto",s);let r="/api/v1/printer",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},upsertProductPolicy:async(s,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",s);let r="/api/v1/printer/policies/product",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},j=function(a){let s=Rs(a);return{async deleteCategoryPolicy(e,r,t){let n=await s.deleteCategoryPolicy(e,r,t);return P(n,h,p,a)},async deletePrinter(e,r,t){let n=await s.deletePrinter(e,r,t);return P(n,h,p,a)},async deletePrinterByAddress(e,r,t){let n=await s.deletePrinterByAddress(e,r,t);return P(n,h,p,a)},async deleteProductPolicy(e,r,t){let n=await s.deleteProductPolicy(e,r,t);return P(n,h,p,a)},async listCategoryPolicies(e,r){let t=await s.listCategoryPolicies(e,r);return P(t,h,p,a)},async listPrinters(e,r){let t=await s.listPrinters(e,r);return P(t,h,p,a)},async listProductPolicies(e,r){let t=await s.listProductPolicies(e,r);return P(t,h,p,a)},async upsertCategoryPolicy(e,r){let t=await s.upsertCategoryPolicy(e,r);return P(t,h,p,a)},async upsertPrinter(e,r){let t=await s.upsertPrinter(e,r);return P(t,h,p,a)},async upsertProductPolicy(e,r){let t=await s.upsertProductPolicy(e,r);return P(t,h,p,a)}}},ga=function(a,s,e){let r=j(a);return{deleteCategoryPolicy(t,n,o){return r.deleteCategoryPolicy(t,n,o).then(i=>i(e,s))},deletePrinter(t,n,o){return r.deletePrinter(t,n,o).then(i=>i(e,s))},deletePrinterByAddress(t,n,o){return r.deletePrinterByAddress(t,n,o).then(i=>i(e,s))},deleteProductPolicy(t,n,o){return r.deleteProductPolicy(t,n,o).then(i=>i(e,s))},listCategoryPolicies(t,n){return r.listCategoryPolicies(t,n).then(o=>o(e,s))},listPrinters(t,n){return r.listPrinters(t,n).then(o=>o(e,s))},listProductPolicies(t,n){return r.listProductPolicies(t,n).then(o=>o(e,s))},upsertCategoryPolicy(t,n){return r.upsertCategoryPolicy(t,n).then(o=>o(e,s))},upsertPrinter(t,n){return r.upsertPrinter(t,n).then(o=>o(e,s))},upsertProductPolicy(t,n){return r.upsertProductPolicy(t,n).then(o=>o(e,s))}}},ct=class extends V{deleteCategoryPolicy(s,e,r){return j(this.configuration).deleteCategoryPolicy(s,e,r).then(t=>t(this.axios,this.basePath))}deletePrinter(s,e,r){return j(this.configuration).deletePrinter(s,e,r).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(s,e,r){return j(this.configuration).deletePrinterByAddress(s,e,r).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(s,e,r){return j(this.configuration).deleteProductPolicy(s,e,r).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(s,e){return j(this.configuration).listCategoryPolicies(s,e).then(r=>r(this.axios,this.basePath))}listPrinters(s,e){return j(this.configuration).listPrinters(s,e).then(r=>r(this.axios,this.basePath))}listProductPolicies(s,e){return j(this.configuration).listProductPolicies(s,e).then(r=>r(this.axios,this.basePath))}upsertCategoryPolicy(s,e){return j(this.configuration).upsertCategoryPolicy(s,e).then(r=>r(this.axios,this.basePath))}upsertPrinter(s,e){return j(this.configuration).upsertPrinter(s,e).then(r=>r(this.axios,this.basePath))}upsertProductPolicy(s,e){return j(this.configuration).upsertProductPolicy(s,e).then(r=>r(this.axios,this.basePath))}},Cs=function(a){return{generateProductSkuV2:async(s,e,r,t={})=>{c("generateProductSkuV2","businessId",s),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getChannelInventoryV2:async(s,e,r,t={})=>{c("getChannelInventoryV2","businessId",s),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},updateChannelInventoryV2:async(s,e,r,t,n={})=>{c("updateChannelInventoryV2","businessId",s),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",r),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},updateProductSkuV2:async(s,e,r,t,n={})=>{c("updateProductSkuV2","businessId",s),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",r),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}}}},oe=function(a){let s=Cs(a);return{async generateProductSkuV2(e,r,t,n){let o=await s.generateProductSkuV2(e,r,t,n);return P(o,h,p,a)},async getChannelInventoryV2(e,r,t,n){let o=await s.getChannelInventoryV2(e,r,t,n);return P(o,h,p,a)},async updateChannelInventoryV2(e,r,t,n,o){let i=await s.updateChannelInventoryV2(e,r,t,n,o);return P(i,h,p,a)},async updateProductSkuV2(e,r,t,n,o){let i=await s.updateProductSkuV2(e,r,t,n,o);return P(i,h,p,a)}}},Pa=function(a,s,e){let r=oe(a);return{generateProductSkuV2(t,n,o,i){return r.generateProductSkuV2(t,n,o,i).then(l=>l(e,s))},getChannelInventoryV2(t,n,o,i){return r.getChannelInventoryV2(t,n,o,i).then(l=>l(e,s))},updateChannelInventoryV2(t,n,o,i,l){return r.updateChannelInventoryV2(t,n,o,i,l).then(u=>u(e,s))},updateProductSkuV2(t,n,o,i,l){return r.updateProductSkuV2(t,n,o,i,l).then(u=>u(e,s))}}},dt=class extends V{generateProductSkuV2(s,e,r,t){return oe(this.configuration).generateProductSkuV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}getChannelInventoryV2(s,e,r,t){return oe(this.configuration).getChannelInventoryV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(s,e,r,t,n){return oe(this.configuration).updateChannelInventoryV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(s,e,r,t,n){return oe(this.configuration).updateProductSkuV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}},Ds=function(a){return{createOnboardingSession:async(s,e,r={})=>{c("createOnboardingSession","channel",s),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},disconnectOnboarding:async(s,e,r={})=>{c("disconnectOnboarding","channel",s),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getMenuIntegrations:async(s,e={})=>{c("getMenuIntegrations","businessId",s);let r="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getOnboardingStatus:async(s,e,r={})=>{c("getOnboardingStatus","channel",s),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getSupportedChannels:async(s,e={})=>{c("getSupportedChannels","businessId",s);let r="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listOnboardingStores:async(s,e,r={})=>{c("listOnboardingStores","channel",s),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(s))).replace("{state}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};y(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},provisionOnboardingStore:async(s,e,r,t={})=>{c("provisionOnboardingStore","channel",s),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",r);let n="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(s))).replace("{state}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},registerCredential:async(s,e={})=>{c("registerCredential","body",s);let r="/api/v1/provider/credentials",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},registerProvider:async(s,e={})=>{c("registerProvider","body",s);let r="/api/v1/provider",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},updateProviderSettings:async(s,e,r={})=>{c("updateProviderSettings","businessId",s),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}}}},N=function(a){let s=Ds(a);return{async createOnboardingSession(e,r,t){let n=await s.createOnboardingSession(e,r,t);return P(n,h,p,a)},async disconnectOnboarding(e,r,t){let n=await s.disconnectOnboarding(e,r,t);return P(n,h,p,a)},async getMenuIntegrations(e,r){let t=await s.getMenuIntegrations(e,r);return P(t,h,p,a)},async getOnboardingStatus(e,r,t){let n=await s.getOnboardingStatus(e,r,t);return P(n,h,p,a)},async getSupportedChannels(e,r){let t=await s.getSupportedChannels(e,r);return P(t,h,p,a)},async listOnboardingStores(e,r,t){let n=await s.listOnboardingStores(e,r,t);return P(n,h,p,a)},async provisionOnboardingStore(e,r,t,n){let o=await s.provisionOnboardingStore(e,r,t,n);return P(o,h,p,a)},async registerCredential(e,r){let t=await s.registerCredential(e,r);return P(t,h,p,a)},async registerProvider(e,r){let t=await s.registerProvider(e,r);return P(t,h,p,a)},async updateProviderSettings(e,r,t){let n=await s.updateProviderSettings(e,r,t);return P(n,h,p,a)}}},ha=function(a,s,e){let r=N(a);return{createOnboardingSession(t,n,o){return r.createOnboardingSession(t,n,o).then(i=>i(e,s))},disconnectOnboarding(t,n,o){return r.disconnectOnboarding(t,n,o).then(i=>i(e,s))},getMenuIntegrations(t,n){return r.getMenuIntegrations(t,n).then(o=>o(e,s))},getOnboardingStatus(t,n,o){return r.getOnboardingStatus(t,n,o).then(i=>i(e,s))},getSupportedChannels(t,n){return r.getSupportedChannels(t,n).then(o=>o(e,s))},listOnboardingStores(t,n,o){return r.listOnboardingStores(t,n,o).then(i=>i(e,s))},provisionOnboardingStore(t,n,o,i){return r.provisionOnboardingStore(t,n,o,i).then(l=>l(e,s))},registerCredential(t,n){return r.registerCredential(t,n).then(o=>o(e,s))},registerProvider(t,n){return r.registerProvider(t,n).then(o=>o(e,s))},updateProviderSettings(t,n,o){return r.updateProviderSettings(t,n,o).then(i=>i(e,s))}}},pt=class extends V{createOnboardingSession(s,e,r){return N(this.configuration).createOnboardingSession(s,e,r).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(s,e,r){return N(this.configuration).disconnectOnboarding(s,e,r).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(s,e){return N(this.configuration).getMenuIntegrations(s,e).then(r=>r(this.axios,this.basePath))}getOnboardingStatus(s,e,r){return N(this.configuration).getOnboardingStatus(s,e,r).then(t=>t(this.axios,this.basePath))}getSupportedChannels(s,e){return N(this.configuration).getSupportedChannels(s,e).then(r=>r(this.axios,this.basePath))}listOnboardingStores(s,e,r){return N(this.configuration).listOnboardingStores(s,e,r).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(s,e,r,t){return N(this.configuration).provisionOnboardingStore(s,e,r,t).then(n=>n(this.axios,this.basePath))}registerCredential(s,e){return N(this.configuration).registerCredential(s,e).then(r=>r(this.axios,this.basePath))}registerProvider(s,e){return N(this.configuration).registerProvider(s,e).then(r=>r(this.axios,this.basePath))}updateProviderSettings(s,e,r){return N(this.configuration).updateProviderSettings(s,e,r).then(t=>t(this.axios,this.basePath))}},Os=function(a){return{receiptFooterGetConfig:async(s,e,r={})=>{c("receiptFooterGetConfig","businessId",s),c("receiptFooterGetConfig","xAppX",e);let t="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await C(l,a),e!=null&&(l["x-app-x"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},receiptFooterUpsertConfig:async(s,e,r,t={})=>{c("receiptFooterUpsertConfig","businessId",s),c("receiptFooterUpsertConfig","xAppX",e),c("receiptFooterUpsertConfig","upsertReceiptFooterDto",r);let n="/api/v1/receipt-footer/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await C(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},Oe=function(a){let s=Os(a);return{async receiptFooterGetConfig(e,r,t){let n=await s.receiptFooterGetConfig(e,r,t);return P(n,h,p,a)},async receiptFooterUpsertConfig(e,r,t,n){let o=await s.receiptFooterUpsertConfig(e,r,t,n);return P(o,h,p,a)}}},Aa=function(a,s,e){let r=Oe(a);return{receiptFooterGetConfig(t,n,o){return r.receiptFooterGetConfig(t,n,o).then(i=>i(e,s))},receiptFooterUpsertConfig(t,n,o,i){return r.receiptFooterUpsertConfig(t,n,o,i).then(l=>l(e,s))}}},mt=class extends V{receiptFooterGetConfig(s,e,r){return Oe(this.configuration).receiptFooterGetConfig(s,e,r).then(t=>t(this.axios,this.basePath))}receiptFooterUpsertConfig(s,e,r,t){return Oe(this.configuration).receiptFooterUpsertConfig(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Ss=function(a){return{cancelPlan:async(s,e,r,t={})=>{c("cancelPlan","businessId",s),c("cancelPlan","orderId",e),c("cancelPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},cancelPlanV2:async(s,e,r,t={})=>{c("cancelPlanV2","businessId",s),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},createRefundPlan:async(s,e,r,t={})=>{c("createRefundPlan","businessId",s),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},createRefundPlanV2:async(s,e,r,t={})=>{c("createRefundPlanV2","businessId",s),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},getRefundPlan:async(s,e,r,t={})=>{c("getRefundPlan","businessId",s),c("getRefundPlan","orderId",e),c("getRefundPlan","status",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.status=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},getRefundPlanV2:async(s,e,r,t={})=>{c("getRefundPlanV2","businessId",s),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.status=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},recordRefundPlan:async(s,e,r,t,n={})=>{c("recordRefundPlan","businessId",s),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",r),c("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},recordRefundPlanV2:async(s,e,r,t,n={})=>{c("recordRefundPlanV2","businessId",s),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",r),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},refundOnlineOrder:async(s,e,r,t={})=>{c("refundOnlineOrder","businessId",s),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};r!==void 0&&(d.provider=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},refundOnlineOrderV2:async(s,e,r,t={})=>{c("refundOnlineOrderV2","businessId",s),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};r!==void 0&&(d.provider=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},resolveRefundChoice:async(s,e,r,t,n={})=>{c("resolveRefundChoice","businessId",s),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",r),c("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},resolveRefundChoiceV2:async(s,e,r,t,n={})=>{c("resolveRefundChoiceV2","businessId",s),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",r),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",y(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:g(i),options:u}},startProcessPlan:async(s,e,r,t={})=>{c("startProcessPlan","businessId",s),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},startProcessPlanV2:async(s,e,r,t={})=>{c("startProcessPlanV2","businessId",s),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};y(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}}}},w=function(a){let s=Ss(a);return{async cancelPlan(e,r,t,n){let o=await s.cancelPlan(e,r,t,n);return P(o,h,p,a)},async cancelPlanV2(e,r,t,n){let o=await s.cancelPlanV2(e,r,t,n);return P(o,h,p,a)},async createRefundPlan(e,r,t,n){let o=await s.createRefundPlan(e,r,t,n);return P(o,h,p,a)},async createRefundPlanV2(e,r,t,n){let o=await s.createRefundPlanV2(e,r,t,n);return P(o,h,p,a)},async getRefundPlan(e,r,t,n){let o=await s.getRefundPlan(e,r,t,n);return P(o,h,p,a)},async getRefundPlanV2(e,r,t,n){let o=await s.getRefundPlanV2(e,r,t,n);return P(o,h,p,a)},async recordRefundPlan(e,r,t,n,o){let i=await s.recordRefundPlan(e,r,t,n,o);return P(i,h,p,a)},async recordRefundPlanV2(e,r,t,n,o){let i=await s.recordRefundPlanV2(e,r,t,n,o);return P(i,h,p,a)},async refundOnlineOrder(e,r,t,n){let o=await s.refundOnlineOrder(e,r,t,n);return P(o,h,p,a)},async refundOnlineOrderV2(e,r,t,n){let o=await s.refundOnlineOrderV2(e,r,t,n);return P(o,h,p,a)},async resolveRefundChoice(e,r,t,n,o){let i=await s.resolveRefundChoice(e,r,t,n,o);return P(i,h,p,a)},async resolveRefundChoiceV2(e,r,t,n,o){let i=await s.resolveRefundChoiceV2(e,r,t,n,o);return P(i,h,p,a)},async startProcessPlan(e,r,t,n){let o=await s.startProcessPlan(e,r,t,n);return P(o,h,p,a)},async startProcessPlanV2(e,r,t,n){let o=await s.startProcessPlanV2(e,r,t,n);return P(o,h,p,a)}}},ba=function(a,s,e){let r=w(a);return{cancelPlan(t,n,o,i){return r.cancelPlan(t,n,o,i).then(l=>l(e,s))},cancelPlanV2(t,n,o,i){return r.cancelPlanV2(t,n,o,i).then(l=>l(e,s))},createRefundPlan(t,n,o,i){return r.createRefundPlan(t,n,o,i).then(l=>l(e,s))},createRefundPlanV2(t,n,o,i){return r.createRefundPlanV2(t,n,o,i).then(l=>l(e,s))},getRefundPlan(t,n,o,i){return r.getRefundPlan(t,n,o,i).then(l=>l(e,s))},getRefundPlanV2(t,n,o,i){return r.getRefundPlanV2(t,n,o,i).then(l=>l(e,s))},recordRefundPlan(t,n,o,i,l){return r.recordRefundPlan(t,n,o,i,l).then(u=>u(e,s))},recordRefundPlanV2(t,n,o,i,l){return r.recordRefundPlanV2(t,n,o,i,l).then(u=>u(e,s))},refundOnlineOrder(t,n,o,i){return r.refundOnlineOrder(t,n,o,i).then(l=>l(e,s))},refundOnlineOrderV2(t,n,o,i){return r.refundOnlineOrderV2(t,n,o,i).then(l=>l(e,s))},resolveRefundChoice(t,n,o,i,l){return r.resolveRefundChoice(t,n,o,i,l).then(u=>u(e,s))},resolveRefundChoiceV2(t,n,o,i,l){return r.resolveRefundChoiceV2(t,n,o,i,l).then(u=>u(e,s))},startProcessPlan(t,n,o,i){return r.startProcessPlan(t,n,o,i).then(l=>l(e,s))},startProcessPlanV2(t,n,o,i){return r.startProcessPlanV2(t,n,o,i).then(l=>l(e,s))}}},yt=class extends V{cancelPlan(s,e,r,t){return w(this.configuration).cancelPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}cancelPlanV2(s,e,r,t){return w(this.configuration).cancelPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}createRefundPlan(s,e,r,t){return w(this.configuration).createRefundPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}createRefundPlanV2(s,e,r,t){return w(this.configuration).createRefundPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}getRefundPlan(s,e,r,t){return w(this.configuration).getRefundPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}getRefundPlanV2(s,e,r,t){return w(this.configuration).getRefundPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}recordRefundPlan(s,e,r,t,n){return w(this.configuration).recordRefundPlan(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(s,e,r,t,n){return w(this.configuration).recordRefundPlanV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,r,t){return w(this.configuration).refundOnlineOrder(s,e,r,t).then(n=>n(this.axios,this.basePath))}refundOnlineOrderV2(s,e,r,t){return w(this.configuration).refundOnlineOrderV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(s,e,r,t,n){return w(this.configuration).resolveRefundChoice(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(s,e,r,t,n){return w(this.configuration).resolveRefundChoiceV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,r,t){return w(this.configuration).startProcessPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}startProcessPlanV2(s,e,r,t){return w(this.configuration).startProcessPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Vs=function(a){return{getEndOfDayReportV5:async(s,e,r,t,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",s);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},f={};e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),t!==void 0&&(f.end=t),s&&(f.businessIds=s),n!==void 0&&(f.timezone=n),o!==void 0&&(f.provider=o),y(u,f);let R=d&&d.headers?d.headers:{};return A.headers={...x,...R,...i.headers},{url:g(u),options:A}},getPOSEndOfDayReportV4:async(s,e,r,t,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",s);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};e!==void 0&&(x.timeSpan=e),r!==void 0&&(x.start=r),t!==void 0&&(x.end=t),s&&(x.businessIds=s),n!==void 0&&(x.timezone=n),y(l,x);let f=u&&u.headers?u.headers:{};return d.headers={...A,...f,...o.headers},{url:g(l),options:d}},sendReportEmailV4:async(s,e,r,t,n,o,i={})=>{c("sendReportEmailV4","businessIds",s),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",r);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},x={},f={};t!==void 0&&(f.timeSpan=t),n!==void 0&&(f.start=n),o!==void 0&&(f.end=o),s&&(f.businessIds=s),e!==void 0&&(f.timezone=e),x["Content-Type"]="application/json",y(u,f);let R=d&&d.headers?d.headers:{};return A.headers={...x,...R,...i.headers},A.data=b(r,A,a),{url:g(u),options:A}},sendReportEmailV5:async(s,e,r,t,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",s),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",r);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},f={},R={};t!==void 0&&(R.timeSpan=t),n!==void 0&&(R.start=n),o!==void 0&&(R.end=o),s&&(R.businessIds=s),e!==void 0&&(R.timezone=e),i!==void 0&&(R.provider=i),f["Content-Type"]="application/json",y(d,R);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},x.data=b(r,x,a),{url:g(d),options:x}}}},ae=function(a){let s=Vs(a);return{async getEndOfDayReportV5(e,r,t,n,o,i,l){let u=await s.getEndOfDayReportV5(e,r,t,n,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,r,t,n,o,i){let l=await s.getPOSEndOfDayReportV4(e,r,t,n,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,r,t,n,o,i,l){let u=await s.sendReportEmailV4(e,r,t,n,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,r,t,n,o,i,l,u){let d=await s.sendReportEmailV5(e,r,t,n,o,i,l,u);return P(d,h,p,a)}}},xa=function(a,s,e){let r=ae(a);return{getEndOfDayReportV5(t,n,o,i,l,u,d){return r.getEndOfDayReportV5(t,n,o,i,l,u,d).then(A=>A(e,s))},getPOSEndOfDayReportV4(t,n,o,i,l,u){return r.getPOSEndOfDayReportV4(t,n,o,i,l,u).then(d=>d(e,s))},sendReportEmailV4(t,n,o,i,l,u,d){return r.sendReportEmailV4(t,n,o,i,l,u,d).then(A=>A(e,s))},sendReportEmailV5(t,n,o,i,l,u,d,A){return r.sendReportEmailV5(t,n,o,i,l,u,d,A).then(x=>x(e,s))}}},gt=class extends V{getEndOfDayReportV5(s,e,r,t,n,o,i){return ae(this.configuration).getEndOfDayReportV5(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(s,e,r,t,n,o){return ae(this.configuration).getPOSEndOfDayReportV4(s,e,r,t,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(s,e,r,t,n,o,i){return ae(this.configuration).sendReportEmailV4(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(s,e,r,t,n,o,i,l){return ae(this.configuration).sendReportEmailV5(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},Is=function(a){return{getEndOfDayReportForTill:async(s,e,r,t,n,o,i={})=>{c("getEndOfDayReportForTill","businessIds",s);let l="/api/v6/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},f={};await C(x,a),e!==void 0&&(f.timeSpan=e),r!==void 0&&(f.start=r),t!==void 0&&(f.end=t),s&&(f.businessIds=s),n!==void 0&&(f.timezone=n),o!==void 0&&(f.provider=o),y(u,f);let R=d&&d.headers?d.headers:{};return A.headers={...x,...R,...i.headers},{url:g(u),options:A}},sendEndOfDayReportForTill:async(s,e,r,t,n,o,i,l={})=>{c("sendEndOfDayReportForTill","businessIds",s),c("sendEndOfDayReportForTill","sendReportEmailDto",e);let u="/api/v6/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},f={},R={};await C(f,a),r!==void 0&&(R.timeSpan=r),t!==void 0&&(R.start=t),n!==void 0&&(R.end=n),s&&(R.businessIds=s),o!==void 0&&(R.timezone=o),i!==void 0&&(R.provider=i),f["Content-Type"]="application/json",y(d,R);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},x.data=b(e,x,a),{url:g(d),options:x}}}},Se=function(a){let s=Is(a);return{async getEndOfDayReportForTill(e,r,t,n,o,i,l){let u=await s.getEndOfDayReportForTill(e,r,t,n,o,i,l);return P(u,h,p,a)},async sendEndOfDayReportForTill(e,r,t,n,o,i,l,u){let d=await s.sendEndOfDayReportForTill(e,r,t,n,o,i,l,u);return P(d,h,p,a)}}},fa=function(a,s,e){let r=Se(a);return{getEndOfDayReportForTill(t,n,o,i,l,u,d){return r.getEndOfDayReportForTill(t,n,o,i,l,u,d).then(A=>A(e,s))},sendEndOfDayReportForTill(t,n,o,i,l,u,d,A){return r.sendEndOfDayReportForTill(t,n,o,i,l,u,d,A).then(x=>x(e,s))}}},Pt=class extends V{getEndOfDayReportForTill(s,e,r,t,n,o,i){return Se(this.configuration).getEndOfDayReportForTill(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendEndOfDayReportForTill(s,e,r,t,n,o,i,l){return Se(this.configuration).sendEndOfDayReportForTill(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},vs=function(a){return{createReservation:async(s,e={})=>{c("createReservation","createReservationDto",s);let r="/api/v1/reservations",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getReservationAvailability:async(s,e,r,t,n,o={})=>{c("getReservationAvailability","businessId",s),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",r);let i="/api/v1/reservations/availability",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};await C(A,a),s!==void 0&&(x.businessId=s),e!==void 0&&(x.date=e),r!==void 0&&(x.partySize=r),t!==void 0&&(x.sectionId=t),n!==void 0&&(x.excludeReservationId=n),y(l,x);let f=u&&u.headers?u.headers:{};return d.headers={...A,...f,...o.headers},{url:g(l),options:d}},getReservationPolicy:async(s,e={})=>{c("getReservationPolicy","businessId",s);let r="/api/v1/reservations/policy",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await C(i,a),s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},linkReservationIntegration:async(s,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",s);let r="/api/v1/reservations/link",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},listReservations:async(s,e,r,t={})=>{c("listReservations","businessId",s);let n="/api/v1/reservations",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await C(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.date=e),r!==void 0&&(d.status=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}},reservationInboundWebhook:async(s,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",s);let r="/api/v1/reservations/webhook/inbound",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},unlinkReservationIntegration:async(s,e={})=>{c("unlinkReservationIntegration","businessId",s);let r="/api/v1/reservations/link",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await C(i,a),s!==void 0&&(l.businessId=s),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},updateReservation:async(s,e,r,t={})=>{c("updateReservation","id",s),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",r);let n="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}},updateReservationPolicy:async(s,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",s);let r="/api/v1/reservations/policy",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await C(i,a),i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},updateReservationStatus:async(s,e,r,t={})=>{c("updateReservationStatus","id",s),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",r);let n="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await C(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:g(o),options:l}}}},W=function(a){let s=vs(a);return{async createReservation(e,r){let t=await s.createReservation(e,r);return P(t,h,p,a)},async getReservationAvailability(e,r,t,n,o,i){let l=await s.getReservationAvailability(e,r,t,n,o,i);return P(l,h,p,a)},async getReservationPolicy(e,r){let t=await s.getReservationPolicy(e,r);return P(t,h,p,a)},async linkReservationIntegration(e,r){let t=await s.linkReservationIntegration(e,r);return P(t,h,p,a)},async listReservations(e,r,t,n){let o=await s.listReservations(e,r,t,n);return P(o,h,p,a)},async reservationInboundWebhook(e,r){let t=await s.reservationInboundWebhook(e,r);return P(t,h,p,a)},async unlinkReservationIntegration(e,r){let t=await s.unlinkReservationIntegration(e,r);return P(t,h,p,a)},async updateReservation(e,r,t,n){let o=await s.updateReservation(e,r,t,n);return P(o,h,p,a)},async updateReservationPolicy(e,r){let t=await s.updateReservationPolicy(e,r);return P(t,h,p,a)},async updateReservationStatus(e,r,t,n){let o=await s.updateReservationStatus(e,r,t,n);return P(o,h,p,a)}}},Ra=function(a,s,e){let r=W(a);return{createReservation(t,n){return r.createReservation(t,n).then(o=>o(e,s))},getReservationAvailability(t,n,o,i,l,u){return r.getReservationAvailability(t,n,o,i,l,u).then(d=>d(e,s))},getReservationPolicy(t,n){return r.getReservationPolicy(t,n).then(o=>o(e,s))},linkReservationIntegration(t,n){return r.linkReservationIntegration(t,n).then(o=>o(e,s))},listReservations(t,n,o,i){return r.listReservations(t,n,o,i).then(l=>l(e,s))},reservationInboundWebhook(t,n){return r.reservationInboundWebhook(t,n).then(o=>o(e,s))},unlinkReservationIntegration(t,n){return r.unlinkReservationIntegration(t,n).then(o=>o(e,s))},updateReservation(t,n,o,i){return r.updateReservation(t,n,o,i).then(l=>l(e,s))},updateReservationPolicy(t,n){return r.updateReservationPolicy(t,n).then(o=>o(e,s))},updateReservationStatus(t,n,o,i){return r.updateReservationStatus(t,n,o,i).then(l=>l(e,s))}}},ht=class extends V{createReservation(s,e){return W(this.configuration).createReservation(s,e).then(r=>r(this.axios,this.basePath))}getReservationAvailability(s,e,r,t,n,o){return W(this.configuration).getReservationAvailability(s,e,r,t,n,o).then(i=>i(this.axios,this.basePath))}getReservationPolicy(s,e){return W(this.configuration).getReservationPolicy(s,e).then(r=>r(this.axios,this.basePath))}linkReservationIntegration(s,e){return W(this.configuration).linkReservationIntegration(s,e).then(r=>r(this.axios,this.basePath))}listReservations(s,e,r,t){return W(this.configuration).listReservations(s,e,r,t).then(n=>n(this.axios,this.basePath))}reservationInboundWebhook(s,e){return W(this.configuration).reservationInboundWebhook(s,e).then(r=>r(this.axios,this.basePath))}unlinkReservationIntegration(s,e){return W(this.configuration).unlinkReservationIntegration(s,e).then(r=>r(this.axios,this.basePath))}updateReservation(s,e,r,t){return W(this.configuration).updateReservation(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateReservationPolicy(s,e){return W(this.configuration).updateReservationPolicy(s,e).then(r=>r(this.axios,this.basePath))}updateReservationStatus(s,e,r,t){return W(this.configuration).updateReservationStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Ts=function(a){return{clockIn:async(s,e,r={})=>{c("clockIn","businessId",s),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},clockOut:async(s,e,r={})=>{c("clockOut","businessId",s),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getTodayShift:async(s,e,r={})=>{c("getTodayShift","businessId",s),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.employeeId=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},lockTill:async(s,e={})=>{c("lockTill","businessId",s);let r="/api/v2/businesses/{businessId}/shifts/lock".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await C(i,a),y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},unlock:async(s,e,r={})=>{c("unlock","businessId",s),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},unlockTillWithPin:async(s,e,r={})=>{c("unlockTillWithPin","businessId",s),c("unlockTillWithPin","xPosPin",e);let t="/api/v2/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await C(l,a),e!=null&&(l["X-Pos-Pin"]=String(e)),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}}}},J=function(a){let s=Ts(a);return{async clockIn(e,r,t){let n=await s.clockIn(e,r,t);return P(n,h,p,a)},async clockOut(e,r,t){let n=await s.clockOut(e,r,t);return P(n,h,p,a)},async getTodayShift(e,r,t){let n=await s.getTodayShift(e,r,t);return P(n,h,p,a)},async lockTill(e,r){let t=await s.lockTill(e,r);return P(t,h,p,a)},async unlock(e,r,t){let n=await s.unlock(e,r,t);return P(n,h,p,a)},async unlockTillWithPin(e,r,t){let n=await s.unlockTillWithPin(e,r,t);return P(n,h,p,a)}}},Ca=function(a,s,e){let r=J(a);return{clockIn(t,n,o){return r.clockIn(t,n,o).then(i=>i(e,s))},clockOut(t,n,o){return r.clockOut(t,n,o).then(i=>i(e,s))},getTodayShift(t,n,o){return r.getTodayShift(t,n,o).then(i=>i(e,s))},lockTill(t,n){return r.lockTill(t,n).then(o=>o(e,s))},unlock(t,n,o){return r.unlock(t,n,o).then(i=>i(e,s))},unlockTillWithPin(t,n,o){return r.unlockTillWithPin(t,n,o).then(i=>i(e,s))}}},At=class extends V{clockIn(s,e,r){return J(this.configuration).clockIn(s,e,r).then(t=>t(this.axios,this.basePath))}clockOut(s,e,r){return J(this.configuration).clockOut(s,e,r).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,r){return J(this.configuration).getTodayShift(s,e,r).then(t=>t(this.axios,this.basePath))}lockTill(s,e){return J(this.configuration).lockTill(s,e).then(r=>r(this.axios,this.basePath))}unlock(s,e,r){return J(this.configuration).unlock(s,e,r).then(t=>t(this.axios,this.basePath))}unlockTillWithPin(s,e,r){return J(this.configuration).unlockTillWithPin(s,e,r).then(t=>t(this.axios,this.basePath))}},qs=function(a){return{deactivateStation:async(s={})=>{let e="/api/v1/station/deactivate",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},getStation:async(s={})=>{let e="/api/v1/station",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},syncStation:async(s,e={})=>{c("syncStation","syncStationDto",s);let r="/api/v1/station/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},me=function(a){let s=qs(a);return{async deactivateStation(e){let r=await s.deactivateStation(e);return P(r,h,p,a)},async getStation(e){let r=await s.getStation(e);return P(r,h,p,a)},async syncStation(e,r){let t=await s.syncStation(e,r);return P(t,h,p,a)}}},Da=function(a,s,e){let r=me(a);return{deactivateStation(t){return r.deactivateStation(t).then(n=>n(e,s))},getStation(t){return r.getStation(t).then(n=>n(e,s))},syncStation(t,n){return r.syncStation(t,n).then(o=>o(e,s))}}},bt=class extends V{deactivateStation(s){return me(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return me(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return me(this.configuration).syncStation(s,e).then(r=>r(this.axios,this.basePath))}},Us=function(a){return{connectTerminal:async(s,e={})=>{c("connectTerminal","connectTerminalDto",s);let r="/api/v1/terminal/connect",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},disconnectTerminal:async(s={})=>{let e="/api/v1/terminal/disconnect",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},discoverTerminal:async(s,e={})=>{c("discoverTerminal","discoverTerminalDto",s);let r="/api/v1/terminal/discover",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getTerminalStatus:async(s,e,r,t={})=>{c("getTerminalStatus","businessId",s),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",r);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.provider=e),r!==void 0&&(d.terminalId=r),y(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:g(o),options:l}}}},ie=function(a){let s=Us(a);return{async connectTerminal(e,r){let t=await s.connectTerminal(e,r);return P(t,h,p,a)},async disconnectTerminal(e){let r=await s.disconnectTerminal(e);return P(r,h,p,a)},async discoverTerminal(e,r){let t=await s.discoverTerminal(e,r);return P(t,h,p,a)},async getTerminalStatus(e,r,t,n){let o=await s.getTerminalStatus(e,r,t,n);return P(o,h,p,a)}}},Oa=function(a,s,e){let r=ie(a);return{connectTerminal(t,n){return r.connectTerminal(t,n).then(o=>o(e,s))},disconnectTerminal(t){return r.disconnectTerminal(t).then(n=>n(e,s))},discoverTerminal(t,n){return r.discoverTerminal(t,n).then(o=>o(e,s))},getTerminalStatus(t,n,o,i){return r.getTerminalStatus(t,n,o,i).then(l=>l(e,s))}}},xt=class extends V{connectTerminal(s,e){return ie(this.configuration).connectTerminal(s,e).then(r=>r(this.axios,this.basePath))}disconnectTerminal(s){return ie(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return ie(this.configuration).discoverTerminal(s,e).then(r=>r(this.axios,this.basePath))}getTerminalStatus(s,e,r,t){return ie(this.configuration).getTerminalStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Es=function(a){return{getUserBusinessV1:async(s={})=>{let e="/api/v1/user/business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await C(o,a),y(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await C(o,a),y(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},getUserInfoV1:async(s={})=>{let e="/api/v1/user",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await C(o,a),y(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}}}},ye=function(a){let s=Es(a);return{async getUserBusinessV1(e){let r=await s.getUserBusinessV1(e);return P(r,h,p,a)},async getUserBusinessV2(e){let r=await s.getUserBusinessV2(e);return P(r,h,p,a)},async getUserInfoV1(e){let r=await s.getUserInfoV1(e);return P(r,h,p,a)}}},Sa=function(a,s,e){let r=ye(a);return{getUserBusinessV1(t){return r.getUserBusinessV1(t).then(n=>n(e,s))},getUserBusinessV2(t){return r.getUserBusinessV2(t).then(n=>n(e,s))},getUserInfoV1(t){return r.getUserInfoV1(t).then(n=>n(e,s))}}},ft=class extends V{getUserBusinessV1(s){return ye(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return ye(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return ye(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},Ms=function(a){return{upsert:async(s,e={})=>{c("upsert","body",s);let r="/api/v1/vendure/seller/upsert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},Bt=function(a){let s=Ms(a);return{async upsert(e,r){let t=await s.upsert(e,r);return P(t,h,p,a)}}},Va=function(a,s,e){let r=Bt(a);return{upsert(t,n){return r.upsert(t,n).then(o=>o(e,s))}}},Rt=class extends V{upsert(s,e){return Bt(this.configuration).upsert(s,e).then(r=>r(this.axios,this.basePath))}},Bs=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",s);let r="/api/v1/viva/a2a/create-payment",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},getVivaSession:async(s,e={})=>{c("getVivaSession","id",s);let r="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},listVivaSessions:async(s,e,r,t,n,o,i,l={})=>{c("listVivaSessions","businessId",s);let u="/api/v1/viva/sessions",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},f={},R={};s!==void 0&&(R.businessId=s),e!==void 0&&(R.page=e),r!==void 0&&(R.rowPerPage=r),t!==void 0&&(R.terminalId=t),n!==void 0&&(R.timeSpan=n),o!==void 0&&(R.start=o),i!==void 0&&(R.end=i),y(d,R);let O=A&&A.headers?A.headers:{};return x.headers={...f,...O,...l.headers},{url:g(d),options:x}},refundVivaPayment:async(s,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",s);let r="/api/v1/viva/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},le=function(a){let s=Bs(a);return{async createVivaAppToAppPayment(e,r){let t=await s.createVivaAppToAppPayment(e,r);return P(t,h,p,a)},async getVivaSession(e,r){let t=await s.getVivaSession(e,r);return P(t,h,p,a)},async listVivaSessions(e,r,t,n,o,i,l,u){let d=await s.listVivaSessions(e,r,t,n,o,i,l,u);return P(d,h,p,a)},async refundVivaPayment(e,r){let t=await s.refundVivaPayment(e,r);return P(t,h,p,a)}}},Ia=function(a,s,e){let r=le(a);return{createVivaAppToAppPayment(t,n){return r.createVivaAppToAppPayment(t,n).then(o=>o(e,s))},getVivaSession(t,n){return r.getVivaSession(t,n).then(o=>o(e,s))},listVivaSessions(t,n,o,i,l,u,d,A){return r.listVivaSessions(t,n,o,i,l,u,d,A).then(x=>x(e,s))},refundVivaPayment(t,n){return r.refundVivaPayment(t,n).then(o=>o(e,s))}}},Ct=class extends V{createVivaAppToAppPayment(s,e){return le(this.configuration).createVivaAppToAppPayment(s,e).then(r=>r(this.axios,this.basePath))}getVivaSession(s,e){return le(this.configuration).getVivaSession(s,e).then(r=>r(this.axios,this.basePath))}listVivaSessions(s,e,r,t,n,o,i,l){return le(this.configuration).listVivaSessions(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(s,e){return le(this.configuration).refundVivaPayment(s,e).then(r=>r(this.axios,this.basePath))}},ks=function(a){return{handleAssignmentWebhook:async(s={})=>{let e="/api/webhook/add-employee-assignments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleBusinessWebhook:async(s={})=>{let e="/api/webhook/add-business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleFoodoraEvent:async(s,e={})=>{c("handleFoodoraEvent","orderUpdateDto",s);let r="/api/webhook/order/event",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},handleLoadEmployee:async(s={})=>{let e="/api/webhook/load-employee",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleNetsEvents:async(s={})=>{let e="/api/webhook/nets",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleNetsEventsV2:async(s={})=>{let e="/api/webhook/v2/nets",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleNetsSessionEvents:async(s={})=>{let e="/api/webhook/nets/payments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleNetsSessionEventsForClientToken:async(s,e={})=>{c("handleNetsSessionEventsForClientToken","clientToken",s);let r="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handlePreorderReminder:async(s,e={})=>{c("handlePreorderReminder","preOrderReminderDto",s);let r="/api/webhook/preorder-reminder",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},handleRoleWebhook:async(s={})=>{let e="/api/webhook/add-roles",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleShiftWebhook:async(s={})=>{let e="/api/webhook/add-employee-shifts",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleVivaEvents:async(s,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",s);let r="/api/webhook/viva/verification",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},handleVivaSessionEvents:async(s,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",s);let r="/api/webhook/viva/payments",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},handleWebhook:async(s={})=>{let e="/api/webhook/ship-day",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleWoltDriveEvent:async(s={})=>{let e="/api/webhook/wolt-drive/event",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleWoltDriveEventByCountry:async(s,e={})=>{c("handleWoltDriveEventByCountry","country",s);let r="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleWorldlineEvents:async(s={})=>{let e="/api/webhook/worldline/events",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},handleWorldlineSessionEvents:async(s={})=>{let e="/api/webhook/worldline/payments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},processDispatchTask:async(s,e,r={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",s),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};s!=null&&(l["x-cloudtasks-taskretrycount"]=String(s)),l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},processPosOrderActionsQueue:async(s,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",s);let r="/api/webhook/pos/order-actions/process",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},updateWoltProduct:async(s={})=>{let e="/api/webhook/wolt/product/edit",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},verifyVivaSessionWebhook:async(s={})=>{let e="/api/webhook/viva/payments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}},verifyVivaWebhook:async(s={})=>{let e="/api/webhook/viva/verification",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}}}},U=function(a){let s=ks(a);return{async handleAssignmentWebhook(e){let r=await s.handleAssignmentWebhook(e);return P(r,h,p,a)},async handleBusinessWebhook(e){let r=await s.handleBusinessWebhook(e);return P(r,h,p,a)},async handleFoodoraEvent(e,r){let t=await s.handleFoodoraEvent(e,r);return P(t,h,p,a)},async handleLoadEmployee(e){let r=await s.handleLoadEmployee(e);return P(r,h,p,a)},async handleNetsEvents(e){let r=await s.handleNetsEvents(e);return P(r,h,p,a)},async handleNetsEventsV2(e){let r=await s.handleNetsEventsV2(e);return P(r,h,p,a)},async handleNetsSessionEvents(e){let r=await s.handleNetsSessionEvents(e);return P(r,h,p,a)},async handleNetsSessionEventsForClientToken(e,r){let t=await s.handleNetsSessionEventsForClientToken(e,r);return P(t,h,p,a)},async handlePreorderReminder(e,r){let t=await s.handlePreorderReminder(e,r);return P(t,h,p,a)},async handleRoleWebhook(e){let r=await s.handleRoleWebhook(e);return P(r,h,p,a)},async handleShiftWebhook(e){let r=await s.handleShiftWebhook(e);return P(r,h,p,a)},async handleVivaEvents(e,r){let t=await s.handleVivaEvents(e,r);return P(t,h,p,a)},async handleVivaSessionEvents(e,r){let t=await s.handleVivaSessionEvents(e,r);return P(t,h,p,a)},async handleWebhook(e){let r=await s.handleWebhook(e);return P(r,h,p,a)},async handleWoltDriveEvent(e){let r=await s.handleWoltDriveEvent(e);return P(r,h,p,a)},async handleWoltDriveEventByCountry(e,r){let t=await s.handleWoltDriveEventByCountry(e,r);return P(t,h,p,a)},async handleWorldlineEvents(e){let r=await s.handleWorldlineEvents(e);return P(r,h,p,a)},async handleWorldlineSessionEvents(e){let r=await s.handleWorldlineSessionEvents(e);return P(r,h,p,a)},async processDispatchTask(e,r,t){let n=await s.processDispatchTask(e,r,t);return P(n,h,p,a)},async processPosOrderActionsQueue(e,r){let t=await s.processPosOrderActionsQueue(e,r);return P(t,h,p,a)},async updateWoltProduct(e){let r=await s.updateWoltProduct(e);return P(r,h,p,a)},async verifyVivaSessionWebhook(e){let r=await s.verifyVivaSessionWebhook(e);return P(r,h,p,a)},async verifyVivaWebhook(e){let r=await s.verifyVivaWebhook(e);return P(r,h,p,a)}}},va=function(a,s,e){let r=U(a);return{handleAssignmentWebhook(t){return r.handleAssignmentWebhook(t).then(n=>n(e,s))},handleBusinessWebhook(t){return r.handleBusinessWebhook(t).then(n=>n(e,s))},handleFoodoraEvent(t,n){return r.handleFoodoraEvent(t,n).then(o=>o(e,s))},handleLoadEmployee(t){return r.handleLoadEmployee(t).then(n=>n(e,s))},handleNetsEvents(t){return r.handleNetsEvents(t).then(n=>n(e,s))},handleNetsEventsV2(t){return r.handleNetsEventsV2(t).then(n=>n(e,s))},handleNetsSessionEvents(t){return r.handleNetsSessionEvents(t).then(n=>n(e,s))},handleNetsSessionEventsForClientToken(t,n){return r.handleNetsSessionEventsForClientToken(t,n).then(o=>o(e,s))},handlePreorderReminder(t,n){return r.handlePreorderReminder(t,n).then(o=>o(e,s))},handleRoleWebhook(t){return r.handleRoleWebhook(t).then(n=>n(e,s))},handleShiftWebhook(t){return r.handleShiftWebhook(t).then(n=>n(e,s))},handleVivaEvents(t,n){return r.handleVivaEvents(t,n).then(o=>o(e,s))},handleVivaSessionEvents(t,n){return r.handleVivaSessionEvents(t,n).then(o=>o(e,s))},handleWebhook(t){return r.handleWebhook(t).then(n=>n(e,s))},handleWoltDriveEvent(t){return r.handleWoltDriveEvent(t).then(n=>n(e,s))},handleWoltDriveEventByCountry(t,n){return r.handleWoltDriveEventByCountry(t,n).then(o=>o(e,s))},handleWorldlineEvents(t){return r.handleWorldlineEvents(t).then(n=>n(e,s))},handleWorldlineSessionEvents(t){return r.handleWorldlineSessionEvents(t).then(n=>n(e,s))},processDispatchTask(t,n,o){return r.processDispatchTask(t,n,o).then(i=>i(e,s))},processPosOrderActionsQueue(t,n){return r.processPosOrderActionsQueue(t,n).then(o=>o(e,s))},updateWoltProduct(t){return r.updateWoltProduct(t).then(n=>n(e,s))},verifyVivaSessionWebhook(t){return r.verifyVivaSessionWebhook(t).then(n=>n(e,s))},verifyVivaWebhook(t){return r.verifyVivaWebhook(t).then(n=>n(e,s))}}},Dt=class extends V{handleAssignmentWebhook(s){return U(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return U(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return U(this.configuration).handleFoodoraEvent(s,e).then(r=>r(this.axios,this.basePath))}handleLoadEmployee(s){return U(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return U(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return U(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(s){return U(this.configuration).handleNetsSessionEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(s,e){return U(this.configuration).handleNetsSessionEventsForClientToken(s,e).then(r=>r(this.axios,this.basePath))}handlePreorderReminder(s,e){return U(this.configuration).handlePreorderReminder(s,e).then(r=>r(this.axios,this.basePath))}handleRoleWebhook(s){return U(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return U(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return U(this.configuration).handleVivaEvents(s,e).then(r=>r(this.axios,this.basePath))}handleVivaSessionEvents(s,e){return U(this.configuration).handleVivaSessionEvents(s,e).then(r=>r(this.axios,this.basePath))}handleWebhook(s){return U(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return U(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return U(this.configuration).handleWoltDriveEventByCountry(s,e).then(r=>r(this.axios,this.basePath))}handleWorldlineEvents(s){return U(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(s){return U(this.configuration).handleWorldlineSessionEvents(s).then(e=>e(this.axios,this.basePath))}processDispatchTask(s,e,r){return U(this.configuration).processDispatchTask(s,e,r).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(s,e){return U(this.configuration).processPosOrderActionsQueue(s,e).then(r=>r(this.axios,this.basePath))}updateWoltProduct(s){return U(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(s){return U(this.configuration).verifyVivaSessionWebhook(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return U(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},ws=function(a){return{cancelPayment:async(s,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",s);let r="/api/v1/worldline/payment/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},createPayment:async(s,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",s);let r="/api/v1/worldline/payment",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}},createRefund:async(s,e={})=>{c("createRefund","createWorldlineRefundDto",s);let r="/api/v1/worldline/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",y(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:g(t),options:o}}}},ge=function(a){let s=ws(a);return{async cancelPayment(e,r){let t=await s.cancelPayment(e,r);return P(t,h,p,a)},async createPayment(e,r){let t=await s.createPayment(e,r);return P(t,h,p,a)},async createRefund(e,r){let t=await s.createRefund(e,r);return P(t,h,p,a)}}},Ta=function(a,s,e){let r=ge(a);return{cancelPayment(t,n){return r.cancelPayment(t,n).then(o=>o(e,s))},createPayment(t,n){return r.createPayment(t,n).then(o=>o(e,s))},createRefund(t,n){return r.createRefund(t,n).then(o=>o(e,s))}}},Ot=class extends V{cancelPayment(s,e){return ge(this.configuration).cancelPayment(s,e).then(r=>r(this.axios,this.basePath))}createPayment(s,e){return ge(this.configuration).createPayment(s,e).then(r=>r(this.axios,this.basePath))}createRefund(s,e){return ge(this.configuration).createRefund(s,e).then(r=>r(this.axios,this.basePath))}},Ls=function(a){return{createPaymentRequest:async(s,e,r={})=>{c("createPaymentRequest","terminalId",s),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},createRefundRequest:async(s,e,r={})=>{c("createRefundRequest","terminalId",s),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:g(n),options:i}},getPaymentResult:async(s,e={})=>{c("getPaymentResult","operationId",s);let r="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},getTerminalAuthContext:async(s,e,r={})=>{c("getTerminalAuthContext","terminalId",s),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getTerminalContext:async(s,e,r={})=>{c("getTerminalContext","terminalId",s),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),y(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:g(n),options:i}},getTerminalState:async(s,e={})=>{c("getTerminalState","terminalId",s);let r="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};y(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:g(t),options:o}},handleCallback:async(s={})=>{let e="/api/v2/worldline/internal/callback",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};y(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:g(r),options:n}}}},Q=function(a){let s=Ls(a);return{async createPaymentRequest(e,r,t){let n=await s.createPaymentRequest(e,r,t);return P(n,h,p,a)},async createRefundRequest(e,r,t){let n=await s.createRefundRequest(e,r,t);return P(n,h,p,a)},async getPaymentResult(e,r){let t=await s.getPaymentResult(e,r);return P(t,h,p,a)},async getTerminalAuthContext(e,r,t){let n=await s.getTerminalAuthContext(e,r,t);return P(n,h,p,a)},async getTerminalContext(e,r,t){let n=await s.getTerminalContext(e,r,t);return P(n,h,p,a)},async getTerminalState(e,r){let t=await s.getTerminalState(e,r);return P(t,h,p,a)},async handleCallback(e){let r=await s.handleCallback(e);return P(r,h,p,a)}}},qa=function(a,s,e){let r=Q(a);return{createPaymentRequest(t,n,o){return r.createPaymentRequest(t,n,o).then(i=>i(e,s))},createRefundRequest(t,n,o){return r.createRefundRequest(t,n,o).then(i=>i(e,s))},getPaymentResult(t,n){return r.getPaymentResult(t,n).then(o=>o(e,s))},getTerminalAuthContext(t,n,o){return r.getTerminalAuthContext(t,n,o).then(i=>i(e,s))},getTerminalContext(t,n,o){return r.getTerminalContext(t,n,o).then(i=>i(e,s))},getTerminalState(t,n){return r.getTerminalState(t,n).then(o=>o(e,s))},handleCallback(t){return r.handleCallback(t).then(n=>n(e,s))}}},St=class extends V{createPaymentRequest(s,e,r){return Q(this.configuration).createPaymentRequest(s,e,r).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,r){return Q(this.configuration).createRefundRequest(s,e,r).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return Q(this.configuration).getPaymentResult(s,e).then(r=>r(this.axios,this.basePath))}getTerminalAuthContext(s,e,r){return Q(this.configuration).getTerminalAuthContext(s,e,r).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,r){return Q(this.configuration).getTerminalContext(s,e,r).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return Q(this.configuration).getTerminalState(s,e).then(r=>r(this.axios,this.basePath))}handleCallback(s){return Q(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var kt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(s={}){this.apiKey=s.apiKey,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.baseOptions=s.baseOptions,this.formDataCtor=s.formDataCtor}isJsonMime(s){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return s!==null&&(e.test(s)||s.toLowerCase()==="application/json-patch+json")}};var Fs={[ue.Eur]:2,[ue.Aed]:2,[ue.Usd]:2,[ue.Gbp]:2,BHD:3,JPY:0},La={getMultiplier(a){let s=Fs[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};import Pe from"lodash";var Ve=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),_s=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},js=(a,s)=>({...a,colorCode:a.colorCode??s}),Ns=(a,s)=>Pe.compact(a.map(e=>s.get(e))),wt=(a,s)=>a.flatMap(e=>{let r=s[e];return r?[e,...wt(r.childIds,s)]:[]}),Lt=(a,s)=>a.flatMap(e=>{let r=s[e];return r?.enabled?[e,...Lt(r.childIds,s)]:[]}),ja=a=>{let s=new Map,e={},r={},t=Ve(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return s.set(d,js(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),A=(f,R)=>{let O=String(f.id),I=o(f.products,u),S=Ve(_s(f)).map(T=>A(T,O));return r[O]={id:O,name:f.name,rank:f.rank??0,enabled:!!f.enabled,parentCategoryId:l,parentSubcategoryId:R,productIds:I,childIds:S},O},x=Ve(i.subcategories??[]).map(f=>A(f,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:r,categoryIdsOrder:n}},Na=(a,s,e,r)=>{let t=s[a];if(!t)return[];let n=Lt(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return Ns(o,r)},Wa=(a,s,e)=>{let r=s[a];if(!r)return[];let t=wt(r.subcategoryIds,e);return Pe.compact(t.map(n=>e[n]))};var Ws="1.9.136";export{sr as ABLYEVENT,Ie as AblyApi,_t as AblyApiAxiosParamCreator,Eo as AblyApiFactory,Ae as AblyApiFp,rr as ActionEnum,ve as ActionPasscodesApi,jt as ActionPasscodesApiAxiosParamCreator,Mo as ActionPasscodesApiFactory,Z as ActionPasscodesApiFp,or as ActionsEnum,Te as AuthApi,Nt as AuthApiAxiosParamCreator,Bo as AuthApiFactory,ee as AuthApiFp,ir as AutonomousVehicleType,qe as BusinessApi,Wt as BusinessApiAxiosParamCreator,ko as BusinessApiFactory,q as BusinessApiFp,lr as BusinessBackgroundType,cr as BusinessEventAction,dr as BusinessEventType,pr as BusinessPaymentIntegrationType,Ue as BusinessProviderPolicyApi,Gt as BusinessProviderPolicyApiAxiosParamCreator,wo as BusinessProviderPolicyApiFactory,Vt as BusinessProviderPolicyApiFp,Ee as BusinessScheduleApi,Kt as BusinessScheduleApiAxiosParamCreator,Lo as BusinessScheduleApiFactory,It as BusinessScheduleApiFp,mr as BusinessStatusEnum,yr as CashLogReason,gr as CashLogType,Me as CashManagementApi,Ht as CashManagementApiAxiosParamCreator,Fo as CashManagementApiFactory,$ as CashManagementApiFp,Be as CashManagementV6Api,Qt as CashManagementV6ApiAxiosParamCreator,_o as CashManagementV6ApiFactory,vt as CashManagementV6ApiFp,Pr as CashSessionDtoEnum,hr as CashSessionStatus,Ar as CdsSessionRole,br as ChannelEnum,ke as ChannelMenuApi,$t as ChannelMenuApiAxiosParamCreator,jo as ChannelMenuApiFactory,de as ChannelMenuApiFp,xr as ChargeStatusEnum,fr as CheckoutModelEnum,Cr as ConditionType,we as ConfigManagementApi,zt as ConfigManagementApiAxiosParamCreator,No as ConfigManagementApiFactory,L as ConfigManagementApiFp,kt as Configuration,Dr as ConsumptionType,Le as CoursesApi,Yt as CoursesApiAxiosParamCreator,Wo as CoursesApiFactory,be as CoursesApiFp,ue as CurrencyCode,La as CurrencyRegistry,Or as DayOfWeek,Fe as DeliveryIntentApi,Jt as DeliveryIntentApiAxiosParamCreator,Go as DeliveryIntentApiFactory,xe as DeliveryIntentApiFp,Sr as DeliveryIntentStatus,Vr as DeliveryStatus,Ir as DeliveryType,vr as DeviceType,Tr as DiscountScope,qr as DiscountScopeType,Ur as DiscountSourceType,Er as DiscountType,so as DiscountTypeEnum,_e as DisplayApi,Xt as DisplayApiAxiosParamCreator,Ko as DisplayApiFactory,te as DisplayApiFp,je as EmployeesApi,Zt as EmployeesApiAxiosParamCreator,Ho as EmployeesApiFactory,Tt as EmployeesApiFp,Mr as EntityType,nr as EntityTypeEnum,ar as EventTypeEnum,To as EventTypeIdEnum,Br as FeeType,Ne as FloorPlanApi,es as FloorPlanApiAxiosParamCreator,Qo as FloorPlanApiFactory,F as FloorPlanApiFp,We as GiftcardApi,ts as GiftcardApiAxiosParamCreator,$o as GiftcardApiFactory,fe as GiftcardApiFp,Ge as HistoryApi,ss as HistoryApiAxiosParamCreator,zo as HistoryApiFactory,se as HistoryApiFp,Ke as HistoryV6Api,rs as HistoryV6ApiAxiosParamCreator,Yo as HistoryV6ApiFactory,Re as HistoryV6ApiFp,kr as IntegrationType,He as InvoiceCompaniesApi,ns as InvoiceCompaniesApiAxiosParamCreator,Jo as InvoiceCompaniesApiFactory,z as InvoiceCompaniesApiFp,Qe as KDSApi,os as KDSApiAxiosParamCreator,Xo as KDSApiFactory,re as KDSApiFp,wr as KDSEVENTNAME,Lr as KioskEventType,Fr as KioskLayout,$e as KiosksApi,as as KiosksApiAxiosParamCreator,Zo as KiosksApiFactory,X as KiosksApiFp,_r as KitchenItemStatus,jr as KitchenStatus,Nr as LocatorType,Wr as LoyaltyActionKey,Gr as LoyaltyCatalogType,Kr as LoyaltyChannel,ze as LoyaltyCommerceApi,is as LoyaltyCommerceApiAxiosParamCreator,ea as LoyaltyCommerceApiFactory,qt as LoyaltyCommerceApiFp,Ye as LoyaltyIntegerationsApi,ls as LoyaltyIntegerationsApiAxiosParamCreator,ta as LoyaltyIntegerationsApiFactory,k as LoyaltyIntegerationsApiFp,Hr as LoyaltyRedemptionStatus,Qr as LoyaltyRestoreRequestStatus,$r as LoyaltyRewardType,zr as LoyaltyRuleActionType,Yr as LoyaltyRuleApplicationMode,Jr as LoyaltyRuleConditionType,Xr as LoyaltyRuleFulfillmentMode,Zr as LoyaltyRuleSelection,en as LoyaltyRuleStackingMode,tn as LoyaltyRuleTargetType,Ws as MUNCHI_CORE_VERSION,Je as MenuApi,us as MenuApiAxiosParamCreator,sa as MenuApiFactory,Y as MenuApiFp,ur as MenuTypeEnum,Xe as MerchantsApi,cs as MerchantsApiAxiosParamCreator,ra as MerchantsApiFactory,pe as MerchantsApiFp,Ze as MunchiGiftCardApi,ds as MunchiGiftCardApiAxiosParamCreator,na as MunchiGiftCardApiFactory,ne as MunchiGiftCardApiFp,Oo as NameEnum,sn as NetsRevertMethod,et as NotificationApi,ps as NotificationApiAxiosParamCreator,oa as NotificationApiFactory,Ce as NotificationApiFp,rn as OperatingMode,Co as OperatingModeEnum,Rr as OrderCollectionEnum,tt as OrderCompletionApi,ms as OrderCompletionApiAxiosParamCreator,aa as OrderCompletionApiFactory,Ut as OrderCompletionApiFp,nn as OrderFormat,st as OrderInternalApi,ys as OrderInternalApiAxiosParamCreator,ia as OrderInternalApiFactory,Et as OrderInternalApiFp,on as OrderMode,an as OrderRefundStatus,ln as OrderSource,un as OrderStatus,cn as OrderStatusEnum,dn as OrderType,pn as OrderTypePOS,rt as OrdersApi,gs as OrdersApiAxiosParamCreator,la as OrdersApiFactory,M as OrdersApiFp,nt as POSPermissionsApi,Ps as POSPermissionsApiAxiosParamCreator,ua as POSPermissionsApiFactory,Mt as POSPermissionsApiFp,ot as POSSessionApi,hs as POSSessionApiAxiosParamCreator,ca as POSSessionApiFactory,De as POSSessionApiFp,at as PayTerminalApi,As as PayTerminalApiAxiosParamCreator,da as PayTerminalApiFactory,G as PayTerminalApiFp,mn as PayTerminalSessionRole,it as PaymentApi,bs as PaymentApiAxiosParamCreator,pa as PaymentApiFactory,K as PaymentApiFp,yn as PaymentApp,gn as PaymentCheckoutFlow,Pn as PaymentEventType,hn as PaymentFailureCode,An as PaymentMethod,lt as PaymentMethodsApi,xs as PaymentMethodsApiAxiosParamCreator,ma as PaymentMethodsApiFactory,H as PaymentMethodsApiFp,bn as PaymentOutcomeStatus,xn as PaymentProvider,fn as PaymentProviderEnum,Rn as PaymentReportingBucket,ut as PaymentSessionApi,fs as PaymentSessionApiAxiosParamCreator,ya as PaymentSessionApiFactory,E as PaymentSessionApiFp,Cn as PaymentSessionPurpose,Dn as PaymentSessionStatus,On as PaymentStatus,Sn as PaymentTypeEnum,Vn as PosDiscountTargetType,In as PosDiscountType,vn as PosPaymentStatus,Tn as PosPaymentType,qn as PosPermission,Un as PosPermissionGroup,En as PosPermissionKind,Mn as PreorderStatus,Bn as PriceType,kn as PrinterConnectionType,wn as PrinterModelType,Ln as PrinterTypeEnum,ct as PrintersApi,Rs as PrintersApiAxiosParamCreator,ga as PrintersApiFactory,j as PrintersApiFp,dt as ProductApi,Cs as ProductApiAxiosParamCreator,Pa as ProductApiFactory,oe as ProductApiFp,Fn as ProductAvailability,_n as ProductDetailLayout,Do as ProductDetailLayoutEnum,jn as PromotionDiscountType,pt as ProviderApi,Ds as ProviderApiAxiosParamCreator,ha as ProviderApiFactory,N as ProviderApiFp,Nn as ProviderEnum,Wn as PubSubAction,Gn as PubSubTarget,mt as ReceiptFooterApi,Os as ReceiptFooterApiAxiosParamCreator,Aa as ReceiptFooterApiFactory,Oe as ReceiptFooterApiFp,Kn as ReceiptFooterDocumentType,Hn as RecordManualStatus,Qn as RefundFailureReasonKey,$n as RefundMode,zn as RefundOverallStatus,Yn as RefundStatusEnum,Jn as RefundStepStatus,yt as RefundsApi,Ss as RefundsApiAxiosParamCreator,ba as RefundsApiFactory,w as RefundsApiFp,gt as ReportApi,Vs as ReportApiAxiosParamCreator,xa as ReportApiFactory,ae as ReportApiFp,Xn as ReportLanguage,Pt as ReportV6Api,Is as ReportV6ApiAxiosParamCreator,fa as ReportV6ApiFactory,Se as ReportV6ApiFp,Zn as ReservationSource,eo as ReservationStatus,ht as ReservationsApi,vs as ReservationsApiAxiosParamCreator,Ra as ReservationsApiFactory,W as ReservationsApiFp,no as SYNCKEY,oo as ScheduleType,ro as ScopeEnum,Ro as SelectedPaymentProviderEnum,At as ShiftTrackingApi,Ts as ShiftTrackingApiAxiosParamCreator,Ca as ShiftTrackingApiFactory,J as ShiftTrackingApiFp,ao as SimplePaymentStatus,io as SourceType,lo as StaffActivityActionType,uo as StationType,bt as StationsApi,qs as StationsApiAxiosParamCreator,Da as StationsApiFactory,me as StationsApiFp,co as Status,po as SystemProfileType,mo as TableGroupType,yo as TableShape,go as TableStatus,xt as TerminalApi,Us as TerminalApiAxiosParamCreator,Oa as TerminalApiFactory,ie as TerminalApiFp,Po as TerminalConnectionType,ho as TimeSpan,Ao as TransactionEventType,bo as TransactionType,xo as Type,fo as UpsellMode,ft as UserApi,Es as UserApiAxiosParamCreator,Sa as UserApiFactory,ye as UserApiFp,Rt as VendureSellerApi,Ms as VendureSellerApiAxiosParamCreator,Va as VendureSellerApiFactory,Bt as VendureSellerApiFp,Ct as VivaApi,Bs as VivaApiAxiosParamCreator,Ia as VivaApiFactory,le as VivaApiFp,So as VivaAppToAppPaymentMethod,Vo as VivaCurrencyCode,Io as VivaErrorId,vo as VivaEventId,qo as WalletItemStatus,to as WalletStatusEnum,Dt as WebhookApi,ks as WebhookApiAxiosParamCreator,va as WebhookApiFactory,U as WebhookApiFp,Ot as WorldlineApi,ws as WorldlineApiAxiosParamCreator,Ta as WorldlineApiFactory,ge as WorldlineApiFp,St as WorldlineInternalApi,Ls as WorldlineInternalApiAxiosParamCreator,qa as WorldlineInternalApiFactory,Q as WorldlineInternalApiFp,Uo as WorldlineRevertMethod,ja as buildPosCategoryIndex,Lt as collectEnabledSubcategoryIdsDepthFirst,wt as collectSubcategoryIdsDepthFirst,Na as getCategoryProductsIncludingSubcategories,Wa as getSubcategoriesForCategory,Ns as mapProductIdsToProducts};
|