@munchi_oy/core 1.9.125 → 1.9.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import h from"axios";import Ot from"axios";var p="http://localhost".replace(/\/+$/,"");var S=class{constructor(n,e=p,s=Ot){this.basePath=e;this.axios=s;n&&(this.configuration=n,this.basePath=n.basePath||this.basePath)}configuration},ue=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,n,e){if(e==null)throw new ue(n,`Required parameter ${n} was null or undefined when calling ${a}.`)};var f=async function(a,n){if(n&&n.accessToken){let e=typeof n.accessToken=="function"?await n.accessToken():await n.accessToken;a.Authorization="Bearer "+e}};function he(a,n,e=""){n!=null&&(typeof n=="object"?Array.isArray(n)?n.forEach(s=>he(a,s,e)):Object.keys(n).forEach(s=>he(a,n[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,n):a.set(e,n))}var g=function(a,...n){let e=new URLSearchParams(a.search);he(e,n),a.search=e.toString()},b=function(a,n,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,n,e,s){return(t=n,r=e)=>{let o={...a.options,url:(s?.basePath||r)+a.url};return t.request(o)}};var Ms={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed"},ks={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ws={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ls={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Fs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},_s={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Ns={Image:"image",Video:"video",Animation:"animation"},js={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ws={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Gs={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Ks={GiftCard:"GiftCard"},Hs={Online:"ONLINE",Offline:"OFFLINE"},Qs={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"},$s={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ys={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},zs={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Js={Pos:"pos",Display:"display"},Xs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Zs={Pending:"pending",Success:"success",Failure:"failure"},en={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},tn={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},sn={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},le={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"},nn={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},rn={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},on={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},an={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},ln={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},un={Item:"ITEM",Cart:"CART"},cn={Business:"BUSINESS",Owner:"OWNER"},dn={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},pn={Percentage:"PERCENTAGE",Fixed:"FIXED"},mn={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},gn={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},yn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Pn={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},hn={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},An={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},bn={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},xn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},fn={Table:"table",Indicator:"indicator"},Rn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Cn={Reversal:"REVERSAL",Refund:"REFUND"},Dn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},On={Open:"OPEN",Instant:"INSTANT"},Sn={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Vn={None:"NONE",Partial:"PARTIAL",Full:"FULL"},In={Platform:"PLATFORM",Pos:"POS"},vn={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Tn={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"},qn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Un={DineIn:"dine_in",PickUp:"pick_up"},En={Pos:"pos",Terminal:"terminal"},Bn={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},Mn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},kn={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},wn={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"},Ln={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"},Fn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},_n={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Nn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},jn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},Wn={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"},Kn={Paid:"paid",Pending:"pending"},Hn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Qn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},$n={Percentage:"percentage",Fixed:"fixed"},Yn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},zn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Jn={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",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"},Xn={Waiting:"waiting",Confirm:"confirm"},Zn={Preset:"PRESET",Open:"OPEN"},er={Bluetooth:"bluetooth",Network:"network"},tr={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},sr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},nr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},rr={Modal:"MODAL",Screen:"SCREEN"},or={Percentage:"PERCENTAGE",Fixed:"FIXED"},ar={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},ir={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},lr={Kds:"KDS"},ur={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},cr={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},dr={Full:"FULL",Item:"ITEM"},pr={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},mr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},gr={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},yr={Fi:"fi",En:"en"},Pr={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},hr={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},Ar={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},br={Percentage:"PERCENTAGE",Fixed:"FIXED"},xr={Item:"ITEM",Cart:"CART"},fr={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"},Rr={Physical:"PHYSICAL"},Cr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Dr={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Or={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"},Sr={Kiosk:"KIOSK",Pos:"POS"},Vr={Active:"ACTIVE",Inactive:"INACTIVE"},Ir={NoStation:"NO_STATION"},vr={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Tr={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},qr={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Ur={Network:"NETWORK"},Er={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Br={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Mr={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},kr={Instant:"instant",Preorder:"preorder"},wr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Lr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Fr={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},_r={Modal:"MODAL",Screen:"SCREEN"},Nr={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"},jr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Wr={_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"},Gr={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},Kr={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},Hr={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Qr={Claimed:"Claimed",Redeemed:"Redeemed"},$r={Reversal:"REVERSAL",Refund:"REFUND"},St=function(a){return{refreshConfig:async(n={})=>{let e="/api/v1/ably/refresh-config",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},requestSettings:async(n={})=>{let e="/api/v1/ably/request-settings",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},Ae=function(a){let n=St(a);return{async refreshConfig(e){let s=await n.refreshConfig(e);return P(s,h,p,a)},async requestSettings(e){let s=await n.requestSettings(e);return P(s,h,p,a)}}},Yr=function(a,n,e){let s=Ae(a);return{refreshConfig(t){return s.refreshConfig(t).then(r=>r(e,n))},requestSettings(t){return s.requestSettings(t).then(r=>r(e,n))}}},Oe=class extends S{refreshConfig(n){return Ae(this.configuration).refreshConfig(n).then(e=>e(this.axios,this.basePath))}requestSettings(n){return Ae(this.configuration).requestSettings(n).then(e=>e(this.axios,this.basePath))}},Vt=function(a){return{createActionPasscode:async(n,e={})=>{c("createActionPasscode","createActionPasscodeDto",n);let s="/api/v1/action-passcodes",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deleteActionPasscode:async(n,e={})=>{c("deleteActionPasscode","id",n);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(n,e,s={})=>{c("updateActionPasscode","id",n),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},ce=function(a){let n=Vt(a);return{async createActionPasscode(e,s){let t=await n.createActionPasscode(e,s);return P(t,h,p,a)},async deleteActionPasscode(e,s){let t=await n.deleteActionPasscode(e,s);return P(t,h,p,a)},async updateActionPasscode(e,s,t){let r=await n.updateActionPasscode(e,s,t);return P(r,h,p,a)}}},zr=function(a,n,e){let s=ce(a);return{createActionPasscode(t,r){return s.createActionPasscode(t,r).then(o=>o(e,n))},deleteActionPasscode(t,r){return s.deleteActionPasscode(t,r).then(o=>o(e,n))},updateActionPasscode(t,r,o){return s.updateActionPasscode(t,r,o).then(i=>i(e,n))}}},Se=class extends S{createActionPasscode(n,e){return ce(this.configuration).createActionPasscode(n,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(n,e){return ce(this.configuration).deleteActionPasscode(n,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(n,e,s){return ce(this.configuration).updateActionPasscode(n,e,s).then(t=>t(this.axios,this.basePath))}},It=function(a){return{firebaseAuth:async(n={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},login:async(n,e={})=>{c("login","credentialDto",n);let s="/api/v1/auth/login",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},logout:async(n={})=>{let e="/api/v1/auth/logout",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},refreshToken:async(n,e={})=>{c("refreshToken","refreshTokenDto",n);let s="/api/v1/auth/refresh",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},X=function(a){let n=It(a);return{async firebaseAuth(e){let s=await n.firebaseAuth(e);return P(s,h,p,a)},async login(e,s){let t=await n.login(e,s);return P(t,h,p,a)},async logout(e){let s=await n.logout(e);return P(s,h,p,a)},async refreshToken(e,s){let t=await n.refreshToken(e,s);return P(t,h,p,a)}}},Jr=function(a,n,e){let s=X(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(r=>r(e,n))},login(t,r){return s.login(t,r).then(o=>o(e,n))},logout(t){return s.logout(t).then(r=>r(e,n))},refreshToken(t,r){return s.refreshToken(t,r).then(o=>o(e,n))}}},Ve=class extends S{firebaseAuth(n){return X(this.configuration).firebaseAuth(n).then(e=>e(this.axios,this.basePath))}login(n,e){return X(this.configuration).login(n,e).then(s=>s(this.axios,this.basePath))}logout(n){return X(this.configuration).logout(n).then(e=>e(this.axios,this.basePath))}refreshToken(n,e){return X(this.configuration).refreshToken(n,e).then(s=>s(this.axios,this.basePath))}},vt=function(a){return{createBusinessPermission:async(n,e,s={})=>{c("createBusinessPermission","businessId",n),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(n,e,s={})=>{c("deleteBusinessPermission","permissionId",n),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getAdvancedDiscounts:async(n,e={})=>{c("getAdvancedDiscounts","businessId",n);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessCategoriesByMenuId:async(n,e,s={})=>{c("getBusinessCategoriesByMenuId","businessId",n),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",n),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",n),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(n,e,s={})=>{c("getBusinessChannelConfig","businessId",n);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(n,e,s={})=>{c("getBusinessChannelConfigV2","businessId",n);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfig:async(n,e,s={})=>{c("getBusinessConfig","businessId",n);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfigById:async(n,e,s={})=>{c("getBusinessConfigById","businessId",n);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(n,e,s={})=>{c("getBusinessConfigByIdV2","businessId",n);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfiguration:async(n,e,s={})=>{c("getBusinessConfiguration","businessId",n);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByType:async(n,e,s={})=>{c("getBusinessMenuByType","businessId",n),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByTypeV2:async(n,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",n),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByTypeV3:async(n,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",n),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByTypeV4:async(n,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",n),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessProviderStatus:async(n,e={})=>{c("getBusinessProviderStatus","businessId",n);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(n,e,s={})=>{c("getBusinessProviderStatusExternal","businessId",n);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessTax:async(n={})=>{let e="/api/v1/business/tax",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getProvidersSupportedIntegrations:async(n,e={})=>{c("getProvidersSupportedIntegrations","businessIds",n);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n&&(l.businessIds=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(n,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",n),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(n))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(n,e={})=>{c("getUnifiedDiscounts","businessId",n);let s="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(n,e,s={})=>{c("setBusinessStatus","businessId",n),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(n,e,s={})=>{c("setBusinessStatusSchedule","businessId",n),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(n,e,s,t={})=>{c("updateBusinessPermission","permissionId",n),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",s);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await f(u,a),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},validateBusiness:async(n,e={})=>{c("validateBusiness","businessId",n);let s="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let n=vt(a);return{async createBusinessPermission(e,s,t){let r=await n.createBusinessPermission(e,s,t);return P(r,h,p,a)},async deleteBusinessPermission(e,s,t){let r=await n.deleteBusinessPermission(e,s,t);return P(r,h,p,a)},async getAdvancedDiscounts(e,s){let t=await n.getAdvancedDiscounts(e,s);return P(t,h,p,a)},async getBusinessCategoriesByMenuId(e,s,t){let r=await n.getBusinessCategoriesByMenuId(e,s,t);return P(r,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV2(e,s,t);return P(r,h,p,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV3(e,s,t);return P(r,h,p,a)},async getBusinessChannelConfig(e,s,t){let r=await n.getBusinessChannelConfig(e,s,t);return P(r,h,p,a)},async getBusinessChannelConfigV2(e,s,t){let r=await n.getBusinessChannelConfigV2(e,s,t);return P(r,h,p,a)},async getBusinessConfig(e,s,t){let r=await n.getBusinessConfig(e,s,t);return P(r,h,p,a)},async getBusinessConfigById(e,s,t){let r=await n.getBusinessConfigById(e,s,t);return P(r,h,p,a)},async getBusinessConfigByIdV2(e,s,t){let r=await n.getBusinessConfigByIdV2(e,s,t);return P(r,h,p,a)},async getBusinessConfiguration(e,s,t){let r=await n.getBusinessConfiguration(e,s,t);return P(r,h,p,a)},async getBusinessMenuByType(e,s,t){let r=await n.getBusinessMenuByType(e,s,t);return P(r,h,p,a)},async getBusinessMenuByTypeV2(e,s,t){let r=await n.getBusinessMenuByTypeV2(e,s,t);return P(r,h,p,a)},async getBusinessMenuByTypeV3(e,s,t){let r=await n.getBusinessMenuByTypeV3(e,s,t);return P(r,h,p,a)},async getBusinessMenuByTypeV4(e,s,t){let r=await n.getBusinessMenuByTypeV4(e,s,t);return P(r,h,p,a)},async getBusinessProviderStatus(e,s){let t=await n.getBusinessProviderStatus(e,s);return P(t,h,p,a)},async getBusinessProviderStatusExternal(e,s,t){let r=await n.getBusinessProviderStatusExternal(e,s,t);return P(r,h,p,a)},async getBusinessTax(e){let s=await n.getBusinessTax(e);return P(s,h,p,a)},async getProvidersSupportedIntegrations(e,s){let t=await n.getProvidersSupportedIntegrations(e,s);return P(t,h,p,a)},async getSingleBusinessProviderStatus(e,s,t,r){let o=await n.getSingleBusinessProviderStatus(e,s,t,r);return P(o,h,p,a)},async getUnifiedDiscounts(e,s){let t=await n.getUnifiedDiscounts(e,s);return P(t,h,p,a)},async setBusinessStatus(e,s,t){let r=await n.setBusinessStatus(e,s,t);return P(r,h,p,a)},async setBusinessStatusSchedule(e,s,t){let r=await n.setBusinessStatusSchedule(e,s,t);return P(r,h,p,a)},async updateBusinessPermission(e,s,t,r){let o=await n.updateBusinessPermission(e,s,t,r);return P(o,h,p,a)},async validateBusiness(e,s){let t=await n.validateBusiness(e,s);return P(t,h,p,a)}}},Xr=function(a,n,e){let s=T(a);return{createBusinessPermission(t,r,o){return s.createBusinessPermission(t,r,o).then(i=>i(e,n))},deleteBusinessPermission(t,r,o){return s.deleteBusinessPermission(t,r,o).then(i=>i(e,n))},getAdvancedDiscounts(t,r){return s.getAdvancedDiscounts(t,r).then(o=>o(e,n))},getBusinessCategoriesByMenuId(t,r,o){return s.getBusinessCategoriesByMenuId(t,r,o).then(i=>i(e,n))},getBusinessCategoriesByMenuIdV2(t,r,o){return s.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,n))},getBusinessCategoriesByMenuIdV3(t,r,o){return s.getBusinessCategoriesByMenuIdV3(t,r,o).then(i=>i(e,n))},getBusinessChannelConfig(t,r,o){return s.getBusinessChannelConfig(t,r,o).then(i=>i(e,n))},getBusinessChannelConfigV2(t,r,o){return s.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,n))},getBusinessConfig(t,r,o){return s.getBusinessConfig(t,r,o).then(i=>i(e,n))},getBusinessConfigById(t,r,o){return s.getBusinessConfigById(t,r,o).then(i=>i(e,n))},getBusinessConfigByIdV2(t,r,o){return s.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,n))},getBusinessConfiguration(t,r,o){return s.getBusinessConfiguration(t,r,o).then(i=>i(e,n))},getBusinessMenuByType(t,r,o){return s.getBusinessMenuByType(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV2(t,r,o){return s.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV3(t,r,o){return s.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV4(t,r,o){return s.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,n))},getBusinessProviderStatus(t,r){return s.getBusinessProviderStatus(t,r).then(o=>o(e,n))},getBusinessProviderStatusExternal(t,r,o){return s.getBusinessProviderStatusExternal(t,r,o).then(i=>i(e,n))},getBusinessTax(t){return s.getBusinessTax(t).then(r=>r(e,n))},getProvidersSupportedIntegrations(t,r){return s.getProvidersSupportedIntegrations(t,r).then(o=>o(e,n))},getSingleBusinessProviderStatus(t,r,o,i){return s.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,n))},getUnifiedDiscounts(t,r){return s.getUnifiedDiscounts(t,r).then(o=>o(e,n))},setBusinessStatus(t,r,o){return s.setBusinessStatus(t,r,o).then(i=>i(e,n))},setBusinessStatusSchedule(t,r,o){return s.setBusinessStatusSchedule(t,r,o).then(i=>i(e,n))},updateBusinessPermission(t,r,o,i){return s.updateBusinessPermission(t,r,o,i).then(l=>l(e,n))},validateBusiness(t,r){return s.validateBusiness(t,r).then(o=>o(e,n))}}},Ie=class extends S{createBusinessPermission(n,e,s){return T(this.configuration).createBusinessPermission(n,e,s).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(n,e,s){return T(this.configuration).deleteBusinessPermission(n,e,s).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(n,e){return T(this.configuration).getAdvancedDiscounts(n,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuId(n,e,s){return T(this.configuration).getBusinessCategoriesByMenuId(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(n,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(n,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(n,e,s){return T(this.configuration).getBusinessChannelConfig(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(n,e,s){return T(this.configuration).getBusinessChannelConfigV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(n,e,s){return T(this.configuration).getBusinessConfig(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(n,e,s){return T(this.configuration).getBusinessConfigById(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(n,e,s){return T(this.configuration).getBusinessConfigByIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(n,e,s){return T(this.configuration).getBusinessConfiguration(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(n,e,s){return T(this.configuration).getBusinessMenuByType(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(n,e,s){return T(this.configuration).getBusinessMenuByTypeV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(n,e,s){return T(this.configuration).getBusinessMenuByTypeV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(n,e,s){return T(this.configuration).getBusinessMenuByTypeV4(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(n,e){return T(this.configuration).getBusinessProviderStatus(n,e).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatusExternal(n,e,s){return T(this.configuration).getBusinessProviderStatusExternal(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessTax(n){return T(this.configuration).getBusinessTax(n).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(n,e){return T(this.configuration).getProvidersSupportedIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(n,e,s,t){return T(this.configuration).getSingleBusinessProviderStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(n,e){return T(this.configuration).getUnifiedDiscounts(n,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(n,e,s){return T(this.configuration).setBusinessStatus(n,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(n,e,s){return T(this.configuration).setBusinessStatusSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(n,e,s,t){return T(this.configuration).updateBusinessPermission(n,e,s,t).then(r=>r(this.axios,this.basePath))}validateBusiness(n,e){return T(this.configuration).validateBusiness(n,e).then(s=>s(this.axios,this.basePath))}},Tt=function(a){return{updatePosGlobalSettings:async(n,e,s={})=>{c("updatePosGlobalSettings","businessId",n),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},ht=function(a){let n=Tt(a);return{async updatePosGlobalSettings(e,s,t){let r=await n.updatePosGlobalSettings(e,s,t);return P(r,h,p,a)}}},Zr=function(a,n,e){let s=ht(a);return{updatePosGlobalSettings(t,r,o){return s.updatePosGlobalSettings(t,r,o).then(i=>i(e,n))}}},ve=class extends S{updatePosGlobalSettings(n,e,s){return ht(this.configuration).updatePosGlobalSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},qt=function(a){return{upsertSchedule:async(n,e,s={})=>{c("upsertSchedule","businessId",n),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},At=function(a){let n=qt(a);return{async upsertSchedule(e,s,t){let r=await n.upsertSchedule(e,s,t);return P(r,h,p,a)}}},eo=function(a,n,e){let s=At(a);return{upsertSchedule(t,r,o){return s.upsertSchedule(t,r,o).then(i=>i(e,n))}}},Te=class extends S{upsertSchedule(n,e,s){return At(this.configuration).upsertSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},Ut=function(a){return{create:async(n,e,s={})=>{c("create","businessId",n),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getCashLogs:async(n,e,s,t,r,o,i,l={})=>{c("getCashLogs","businessId",n),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};s!==void 0&&(C.timeSpan=s),t!==void 0&&(C.start=t),r!==void 0&&(C.end=r),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(n,e={})=>{c("getCashSession","businessId",n);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(n,e,s={})=>{c("getSessionReport","businessId",n),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},recordCashLog:async(n,e,s={})=>{c("recordCashLog","businessId",n),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},sendSessionReport:async(n,e,s,t={})=>{c("sendSessionReport","businessId",n),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},$=function(a){let n=Ut(a);return{async create(e,s,t){let r=await n.create(e,s,t);return P(r,h,p,a)},async getCashLogs(e,s,t,r,o,i,l,u){let d=await n.getCashLogs(e,s,t,r,o,i,l,u);return P(d,h,p,a)},async getCashSession(e,s){let t=await n.getCashSession(e,s);return P(t,h,p,a)},async getSessionReport(e,s,t){let r=await n.getSessionReport(e,s,t);return P(r,h,p,a)},async recordCashLog(e,s,t){let r=await n.recordCashLog(e,s,t);return P(r,h,p,a)},async sendSessionReport(e,s,t,r){let o=await n.sendSessionReport(e,s,t,r);return P(o,h,p,a)}}},to=function(a,n,e){let s=$(a);return{create(t,r,o){return s.create(t,r,o).then(i=>i(e,n))},getCashLogs(t,r,o,i,l,u,d,A){return s.getCashLogs(t,r,o,i,l,u,d,A).then(x=>x(e,n))},getCashSession(t,r){return s.getCashSession(t,r).then(o=>o(e,n))},getSessionReport(t,r,o){return s.getSessionReport(t,r,o).then(i=>i(e,n))},recordCashLog(t,r,o){return s.recordCashLog(t,r,o).then(i=>i(e,n))},sendSessionReport(t,r,o,i){return s.sendSessionReport(t,r,o,i).then(l=>l(e,n))}}},qe=class extends S{create(n,e,s){return $(this.configuration).create(n,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(n,e,s,t,r,o,i,l){return $(this.configuration).getCashLogs(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(n,e){return $(this.configuration).getCashSession(n,e).then(s=>s(this.axios,this.basePath))}getSessionReport(n,e,s){return $(this.configuration).getSessionReport(n,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(n,e,s){return $(this.configuration).recordCashLog(n,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(n,e,s,t){return $(this.configuration).sendSessionReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Et=function(a){return{getChannelCatalog:async(n,e,s,t={})=>{c("getChannelCatalog","businessId",n),c("getChannelCatalog","channelType",e);let r="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,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),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenu:async(n,e,s,t={})=>{c("getChannelMenu","businessId",n),c("getChannelMenu","channelType",e);let r="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,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),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenuTimes:async(n,e,s={})=>{c("getChannelMenuTimes","businessId",n),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}}}},de=function(a){let n=Et(a);return{async getChannelCatalog(e,s,t,r){let o=await n.getChannelCatalog(e,s,t,r);return P(o,h,p,a)},async getChannelMenu(e,s,t,r){let o=await n.getChannelMenu(e,s,t,r);return P(o,h,p,a)},async getChannelMenuTimes(e,s,t){let r=await n.getChannelMenuTimes(e,s,t);return P(r,h,p,a)}}},so=function(a,n,e){let s=de(a);return{getChannelCatalog(t,r,o,i){return s.getChannelCatalog(t,r,o,i).then(l=>l(e,n))},getChannelMenu(t,r,o,i){return s.getChannelMenu(t,r,o,i).then(l=>l(e,n))},getChannelMenuTimes(t,r,o){return s.getChannelMenuTimes(t,r,o).then(i=>i(e,n))}}},Ue=class extends S{getChannelCatalog(n,e,s,t){return de(this.configuration).getChannelCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(n,e,s,t){return de(this.configuration).getChannelMenu(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(n,e,s){return de(this.configuration).getChannelMenuTimes(n,e,s).then(t=>t(this.axios,this.basePath))}},Bt=function(a){return{configConfigureMunchiGiftCard:async(n,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",n),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configGetProviders:async(n,e,s={})=>{c("configGetProviders","businessId",n),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!=null&&(l["x-app-x"]=String(e)),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},configManualSync:async(n,e,s={})=>{c("configManualSync","businessId",n),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(n,e,s,t={})=>{c("configRemovePaymentOption","businessId",n),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await f(u,a),s!=null&&(u["x-app-x"]=String(s)),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(n,e,s={})=>{c("configUpsertBusiness","businessId",n),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(n,e,s,t={})=>{c("configUpsertChannelConfig","businessId",n),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(n,e,s,t={})=>{c("configUpsertGiftCard","businessId",n),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(n,e,s={})=>{c("configUpsertLoyalty","businessId",n),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},configUpsertNets:async(n,e,s,t={})=>{c("configUpsertNets","businessId",n),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(n,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",n),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertProviders:async(n,e,s,t={})=>{c("configUpsertProviders","businessId",n),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let r="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertStripe:async(n,e,s,t={})=>{c("configUpsertStripe","businessId",n),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertViva:async(n,e,s,t={})=>{c("configUpsertViva","businessId",n),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},k=function(a){let n=Bt(a);return{async configConfigureMunchiGiftCard(e,s,t,r){let o=await n.configConfigureMunchiGiftCard(e,s,t,r);return P(o,h,p,a)},async configGetProviders(e,s,t){let r=await n.configGetProviders(e,s,t);return P(r,h,p,a)},async configManualSync(e,s,t){let r=await n.configManualSync(e,s,t);return P(r,h,p,a)},async configRemovePaymentOption(e,s,t,r){let o=await n.configRemovePaymentOption(e,s,t,r);return P(o,h,p,a)},async configUpsertBusiness(e,s,t){let r=await n.configUpsertBusiness(e,s,t);return P(r,h,p,a)},async configUpsertChannelConfig(e,s,t,r){let o=await n.configUpsertChannelConfig(e,s,t,r);return P(o,h,p,a)},async configUpsertGiftCard(e,s,t,r){let o=await n.configUpsertGiftCard(e,s,t,r);return P(o,h,p,a)},async configUpsertLoyalty(e,s,t){let r=await n.configUpsertLoyalty(e,s,t);return P(r,h,p,a)},async configUpsertNets(e,s,t,r){let o=await n.configUpsertNets(e,s,t,r);return P(o,h,p,a)},async configUpsertPaymentOptions(e,s,t,r){let o=await n.configUpsertPaymentOptions(e,s,t,r);return P(o,h,p,a)},async configUpsertProviders(e,s,t,r){let o=await n.configUpsertProviders(e,s,t,r);return P(o,h,p,a)},async configUpsertStripe(e,s,t,r){let o=await n.configUpsertStripe(e,s,t,r);return P(o,h,p,a)},async configUpsertViva(e,s,t,r){let o=await n.configUpsertViva(e,s,t,r);return P(o,h,p,a)}}},no=function(a,n,e){let s=k(a);return{configConfigureMunchiGiftCard(t,r,o,i){return s.configConfigureMunchiGiftCard(t,r,o,i).then(l=>l(e,n))},configGetProviders(t,r,o){return s.configGetProviders(t,r,o).then(i=>i(e,n))},configManualSync(t,r,o){return s.configManualSync(t,r,o).then(i=>i(e,n))},configRemovePaymentOption(t,r,o,i){return s.configRemovePaymentOption(t,r,o,i).then(l=>l(e,n))},configUpsertBusiness(t,r,o){return s.configUpsertBusiness(t,r,o).then(i=>i(e,n))},configUpsertChannelConfig(t,r,o,i){return s.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,n))},configUpsertGiftCard(t,r,o,i){return s.configUpsertGiftCard(t,r,o,i).then(l=>l(e,n))},configUpsertLoyalty(t,r,o){return s.configUpsertLoyalty(t,r,o).then(i=>i(e,n))},configUpsertNets(t,r,o,i){return s.configUpsertNets(t,r,o,i).then(l=>l(e,n))},configUpsertPaymentOptions(t,r,o,i){return s.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,n))},configUpsertProviders(t,r,o,i){return s.configUpsertProviders(t,r,o,i).then(l=>l(e,n))},configUpsertStripe(t,r,o,i){return s.configUpsertStripe(t,r,o,i).then(l=>l(e,n))},configUpsertViva(t,r,o,i){return s.configUpsertViva(t,r,o,i).then(l=>l(e,n))}}},Ee=class extends S{configConfigureMunchiGiftCard(n,e,s,t){return k(this.configuration).configConfigureMunchiGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configGetProviders(n,e,s){return k(this.configuration).configGetProviders(n,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(n,e,s){return k(this.configuration).configManualSync(n,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(n,e,s,t){return k(this.configuration).configRemovePaymentOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(n,e,s){return k(this.configuration).configUpsertBusiness(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(n,e,s,t){return k(this.configuration).configUpsertChannelConfig(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(n,e,s,t){return k(this.configuration).configUpsertGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(n,e,s){return k(this.configuration).configUpsertLoyalty(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(n,e,s,t){return k(this.configuration).configUpsertNets(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(n,e,s,t){return k(this.configuration).configUpsertPaymentOptions(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertProviders(n,e,s,t){return k(this.configuration).configUpsertProviders(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(n,e,s,t){return k(this.configuration).configUpsertStripe(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(n,e,s,t){return k(this.configuration).configUpsertViva(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{getCourseConfig:async(n,e={})=>{c("getCourseConfig","businessId",n);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getCourses:async(n,e={})=>{c("getCourses","businessId",n);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},be=function(a){let n=Mt(a);return{async getCourseConfig(e,s){let t=await n.getCourseConfig(e,s);return P(t,h,p,a)},async getCourses(e,s){let t=await n.getCourses(e,s);return P(t,h,p,a)}}},ro=function(a,n,e){let s=be(a);return{getCourseConfig(t,r){return s.getCourseConfig(t,r).then(o=>o(e,n))},getCourses(t,r){return s.getCourses(t,r).then(o=>o(e,n))}}},Be=class extends S{getCourseConfig(n,e){return be(this.configuration).getCourseConfig(n,e).then(s=>s(this.axios,this.basePath))}getCourses(n,e){return be(this.configuration).getCourses(n,e).then(s=>s(this.axios,this.basePath))}},kt=function(a){return{findIntent:async(n,e={})=>{c("findIntent","intentId",n);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateIntent:async(n,e,s={})=>{c("updateIntent","intentId",n),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},xe=function(a){let n=kt(a);return{async findIntent(e,s){let t=await n.findIntent(e,s);return P(t,h,p,a)},async updateIntent(e,s,t){let r=await n.updateIntent(e,s,t);return P(r,h,p,a)}}},oo=function(a,n,e){let s=xe(a);return{findIntent(t,r){return s.findIntent(t,r).then(o=>o(e,n))},updateIntent(t,r,o){return s.updateIntent(t,r,o).then(i=>i(e,n))}}},Me=class extends S{findIntent(n,e){return xe(this.configuration).findIntent(n,e).then(s=>s(this.axios,this.basePath))}updateIntent(n,e,s){return xe(this.configuration).updateIntent(n,e,s).then(t=>t(this.axios,this.basePath))}},wt=function(a){return{init:async(n,e={})=>{let s="/api/v1/display/init",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},pair:async(n,e={})=>{c("pair","pairDisplayBodyDto",n);let s="/api/v1/display/pair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},sessionToken:async(n,e={})=>{c("sessionToken","requestSessionTokenBodyDto",n);let s="/api/v1/display/session-token",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},unpair:async(n,e={})=>{c("unpair","unpairDisplayBodyDto",n);let s="/api/v1/display/unpair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},Z=function(a){let n=wt(a);return{async init(e,s){let t=await n.init(e,s);return P(t,h,p,a)},async pair(e,s){let t=await n.pair(e,s);return P(t,h,p,a)},async sessionToken(e,s){let t=await n.sessionToken(e,s);return P(t,h,p,a)},async unpair(e,s){let t=await n.unpair(e,s);return P(t,h,p,a)}}},ao=function(a,n,e){let s=Z(a);return{init(t,r){return s.init(t,r).then(o=>o(e,n))},pair(t,r){return s.pair(t,r).then(o=>o(e,n))},sessionToken(t,r){return s.sessionToken(t,r).then(o=>o(e,n))},unpair(t,r){return s.unpair(t,r).then(o=>o(e,n))}}},ke=class extends S{init(n,e){return Z(this.configuration).init(n,e).then(s=>s(this.axios,this.basePath))}pair(n,e){return Z(this.configuration).pair(n,e).then(s=>s(this.axios,this.basePath))}sessionToken(n,e){return Z(this.configuration).sessionToken(n,e).then(s=>s(this.axios,this.basePath))}unpair(n,e){return Z(this.configuration).unpair(n,e).then(s=>s(this.axios,this.basePath))}},Lt=function(a){return{createAssignment:async(n,e,s={})=>{c("createAssignment","businessId",n),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},bt=function(a){let n=Lt(a);return{async createAssignment(e,s,t){let r=await n.createAssignment(e,s,t);return P(r,h,p,a)}}},io=function(a,n,e){let s=bt(a);return{createAssignment(t,r,o){return s.createAssignment(t,r,o).then(i=>i(e,n))}}},we=class extends S{createAssignment(n,e,s){return bt(this.configuration).createAssignment(n,e,s).then(t=>t(this.axios,this.basePath))}},Ft=function(a){return{createDiningTable:async(n,e={})=>{c("createDiningTable","createDiningTableDto",n);let s="/api/v1/floor-plan/tables",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createFloorSection:async(n,e={})=>{c("createFloorSection","createFloorSectionDto",n);let s="/api/v1/floor-plan/sections",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deleteDiningTable:async(n,e,s={})=>{c("deleteDiningTable","id",n),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deleteFloorSection:async(n,e,s={})=>{c("deleteFloorSection","id",n),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},dissolveTableGroup:async(n,e,s={})=>{c("dissolveTableGroup","id",n),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getFloorPlan:async(n,e={})=>{c("getFloorPlan","businessId",n);let s="/api/v1/floor-plan",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},joinTables:async(n,e,s={})=>{c("joinTables","businessId",n),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},removeTableFromGroup:async(n,e,s={})=>{c("removeTableFromGroup","id",n),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},transferTable:async(n,e,s,t={})=>{c("transferTable","id",n),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let r="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateDiningTable:async(n,e,s,t={})=>{c("updateDiningTable","id",n),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let r="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateFloorSection:async(n,e,s,t={})=>{c("updateFloorSection","id",n),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let r="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateTablePosition:async(n,e,s,t={})=>{c("updateTablePosition","id",n),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let r="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateTableStatus:async(n,e,s,t={})=>{c("updateTableStatus","id",n),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let r="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},w=function(a){let n=Ft(a);return{async createDiningTable(e,s){let t=await n.createDiningTable(e,s);return P(t,h,p,a)},async createFloorSection(e,s){let t=await n.createFloorSection(e,s);return P(t,h,p,a)},async deleteDiningTable(e,s,t){let r=await n.deleteDiningTable(e,s,t);return P(r,h,p,a)},async deleteFloorSection(e,s,t){let r=await n.deleteFloorSection(e,s,t);return P(r,h,p,a)},async dissolveTableGroup(e,s,t){let r=await n.dissolveTableGroup(e,s,t);return P(r,h,p,a)},async getFloorPlan(e,s){let t=await n.getFloorPlan(e,s);return P(t,h,p,a)},async joinTables(e,s,t){let r=await n.joinTables(e,s,t);return P(r,h,p,a)},async removeTableFromGroup(e,s,t){let r=await n.removeTableFromGroup(e,s,t);return P(r,h,p,a)},async transferTable(e,s,t,r){let o=await n.transferTable(e,s,t,r);return P(o,h,p,a)},async updateDiningTable(e,s,t,r){let o=await n.updateDiningTable(e,s,t,r);return P(o,h,p,a)},async updateFloorSection(e,s,t,r){let o=await n.updateFloorSection(e,s,t,r);return P(o,h,p,a)},async updateTablePosition(e,s,t,r){let o=await n.updateTablePosition(e,s,t,r);return P(o,h,p,a)},async updateTableStatus(e,s,t,r){let o=await n.updateTableStatus(e,s,t,r);return P(o,h,p,a)}}},lo=function(a,n,e){let s=w(a);return{createDiningTable(t,r){return s.createDiningTable(t,r).then(o=>o(e,n))},createFloorSection(t,r){return s.createFloorSection(t,r).then(o=>o(e,n))},deleteDiningTable(t,r,o){return s.deleteDiningTable(t,r,o).then(i=>i(e,n))},deleteFloorSection(t,r,o){return s.deleteFloorSection(t,r,o).then(i=>i(e,n))},dissolveTableGroup(t,r,o){return s.dissolveTableGroup(t,r,o).then(i=>i(e,n))},getFloorPlan(t,r){return s.getFloorPlan(t,r).then(o=>o(e,n))},joinTables(t,r,o){return s.joinTables(t,r,o).then(i=>i(e,n))},removeTableFromGroup(t,r,o){return s.removeTableFromGroup(t,r,o).then(i=>i(e,n))},transferTable(t,r,o,i){return s.transferTable(t,r,o,i).then(l=>l(e,n))},updateDiningTable(t,r,o,i){return s.updateDiningTable(t,r,o,i).then(l=>l(e,n))},updateFloorSection(t,r,o,i){return s.updateFloorSection(t,r,o,i).then(l=>l(e,n))},updateTablePosition(t,r,o,i){return s.updateTablePosition(t,r,o,i).then(l=>l(e,n))},updateTableStatus(t,r,o,i){return s.updateTableStatus(t,r,o,i).then(l=>l(e,n))}}},Le=class extends S{createDiningTable(n,e){return w(this.configuration).createDiningTable(n,e).then(s=>s(this.axios,this.basePath))}createFloorSection(n,e){return w(this.configuration).createFloorSection(n,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(n,e,s){return w(this.configuration).deleteDiningTable(n,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(n,e,s){return w(this.configuration).deleteFloorSection(n,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(n,e,s){return w(this.configuration).dissolveTableGroup(n,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(n,e){return w(this.configuration).getFloorPlan(n,e).then(s=>s(this.axios,this.basePath))}joinTables(n,e,s){return w(this.configuration).joinTables(n,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(n,e,s){return w(this.configuration).removeTableFromGroup(n,e,s).then(t=>t(this.axios,this.basePath))}transferTable(n,e,s,t){return w(this.configuration).transferTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateDiningTable(n,e,s,t){return w(this.configuration).updateDiningTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateFloorSection(n,e,s,t){return w(this.configuration).updateFloorSection(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTablePosition(n,e,s,t){return w(this.configuration).updateTablePosition(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTableStatus(n,e,s,t){return w(this.configuration).updateTableStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},_t=function(a){return{redeemGiftCard:async(n,e={})=>{c("redeemGiftCard","redeemGiftCardDto",n);let s="/api/v1/giftcard/redeem",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},validateGiftCard:async(n,e={})=>{c("validateGiftCard","validateGiftCardDto",n);let s="/api/v1/giftcard/validate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},fe=function(a){let n=_t(a);return{async redeemGiftCard(e,s){let t=await n.redeemGiftCard(e,s);return P(t,h,p,a)},async validateGiftCard(e,s){let t=await n.validateGiftCard(e,s);return P(t,h,p,a)}}},uo=function(a,n,e){let s=fe(a);return{redeemGiftCard(t,r){return s.redeemGiftCard(t,r).then(o=>o(e,n))},validateGiftCard(t,r){return s.validateGiftCard(t,r).then(o=>o(e,n))}}},Fe=class extends S{redeemGiftCard(n,e){return fe(this.configuration).redeemGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(n,e){return fe(this.configuration).validateGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Nt=function(a){return{getInternalOrderHistoryOnline:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",n);let I="/api/v1/history/internal/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}},getOrderHistoryOnline:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",n);let I="/api/v1/history/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}},getOrderHistoryPOSV5:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",n);let I="/api/v5/history/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}},getOrderHistoryPOSV5Internal:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",n);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}}}},ee=function(a){let n=Nt(a);return{async getInternalOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getInternalOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)}}},co=function(a,n,e){let s=ee(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))},getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))},getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))}}},_e=class extends S{getInternalOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getInternalOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}},jt=function(a){return{createInvoiceCompany:async(n,e,s={})=>{c("createInvoiceCompany","businessId",n),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(n,e,s={})=>{c("deleteInvoiceCompany","id",n),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getInvoiceCompanies:async(n,e={})=>{c("getInvoiceCompanies","businessId",n);let s="/api/v1/invoice-companies",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(n,e,s={})=>{c("getInvoiceCompanyById","id",n),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(n,e,s={})=>{c("searchInvoiceCompanies","businessId",n);let t="/api/v1/invoice-companies/search",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.search=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},updateInvoiceCompany:async(n,e,s,t={})=>{c("updateInvoiceCompany","id",n),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,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",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},Y=function(a){let n=jt(a);return{async createInvoiceCompany(e,s,t){let r=await n.createInvoiceCompany(e,s,t);return P(r,h,p,a)},async deleteInvoiceCompany(e,s,t){let r=await n.deleteInvoiceCompany(e,s,t);return P(r,h,p,a)},async getInvoiceCompanies(e,s){let t=await n.getInvoiceCompanies(e,s);return P(t,h,p,a)},async getInvoiceCompanyById(e,s,t){let r=await n.getInvoiceCompanyById(e,s,t);return P(r,h,p,a)},async searchInvoiceCompanies(e,s,t){let r=await n.searchInvoiceCompanies(e,s,t);return P(r,h,p,a)},async updateInvoiceCompany(e,s,t,r){let o=await n.updateInvoiceCompany(e,s,t,r);return P(o,h,p,a)}}},po=function(a,n,e){let s=Y(a);return{createInvoiceCompany(t,r,o){return s.createInvoiceCompany(t,r,o).then(i=>i(e,n))},deleteInvoiceCompany(t,r,o){return s.deleteInvoiceCompany(t,r,o).then(i=>i(e,n))},getInvoiceCompanies(t,r){return s.getInvoiceCompanies(t,r).then(o=>o(e,n))},getInvoiceCompanyById(t,r,o){return s.getInvoiceCompanyById(t,r,o).then(i=>i(e,n))},searchInvoiceCompanies(t,r,o){return s.searchInvoiceCompanies(t,r,o).then(i=>i(e,n))},updateInvoiceCompany(t,r,o,i){return s.updateInvoiceCompany(t,r,o,i).then(l=>l(e,n))}}},Ne=class extends S{createInvoiceCompany(n,e,s){return Y(this.configuration).createInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(n,e,s){return Y(this.configuration).deleteInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(n,e){return Y(this.configuration).getInvoiceCompanies(n,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(n,e,s){return Y(this.configuration).getInvoiceCompanyById(n,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(n,e,s){return Y(this.configuration).searchInvoiceCompanies(n,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(n,e,s,t){return Y(this.configuration).updateInvoiceCompany(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Wt=function(a){return{kdsGetOrders:async(n,e,s,t,r,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",n),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(n))),C=new URL(R,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...x},v={},V={};await f(v,a),e!==void 0&&(V.businessIds=e),s!==void 0&&(V.profileId=s),t!==void 0&&(V.page=t),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),A&&(V.consumptionType=A),g(C,V);let U=O&&O.headers?O.headers:{};return I.headers={...v,...U,...x.headers},{url:y(C),options:I}},kdsGetProfiles:async(n,e={})=>{c("kdsGetProfiles","businessId",n);let s="/api/v1/kds/profiles",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(n,e={})=>{c("kdsMarkOrderReady","id",n);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(n,e={})=>{c("kdsRevertOrder","id",n);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},te=function(a){let n=Wt(a);return{async kdsGetOrders(e,s,t,r,o,i,l,u,d,A,x,R){let C=await n.kdsGetOrders(e,s,t,r,o,i,l,u,d,A,x,R);return P(C,h,p,a)},async kdsGetProfiles(e,s){let t=await n.kdsGetProfiles(e,s);return P(t,h,p,a)},async kdsMarkOrderReady(e,s){let t=await n.kdsMarkOrderReady(e,s);return P(t,h,p,a)},async kdsRevertOrder(e,s){let t=await n.kdsRevertOrder(e,s);return P(t,h,p,a)}}},mo=function(a,n,e){let s=te(a);return{kdsGetOrders(t,r,o,i,l,u,d,A,x,R,C,O){return s.kdsGetOrders(t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(e,n))},kdsGetProfiles(t,r){return s.kdsGetProfiles(t,r).then(o=>o(e,n))},kdsMarkOrderReady(t,r){return s.kdsMarkOrderReady(t,r).then(o=>o(e,n))},kdsRevertOrder(t,r){return s.kdsRevertOrder(t,r).then(o=>o(e,n))}}},je=class extends S{kdsGetOrders(n,e,s,t,r,o,i,l,u,d,A,x){return te(this.configuration).kdsGetOrders(n,e,s,t,r,o,i,l,u,d,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(n,e){return te(this.configuration).kdsGetProfiles(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(n,e){return te(this.configuration).kdsMarkOrderReady(n,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(n,e){return te(this.configuration).kdsRevertOrder(n,e).then(s=>s(this.axios,this.basePath))}},Gt=function(a){return{getKioskOrder:async(n,e,s={})=>{c("getKioskOrder","orderId",n),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getOrderStatus:async(n,e,s={})=>{c("getOrderStatus","orderId",n),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},recoverOrder:async(n,e,s={})=>{c("recoverOrder","orderId",n),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},syncKioskOrder:async(n,e={})=>{c("syncKioskOrder","syncKioskOrderDto",n);let s="/api/v1/kiosk/orders/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},validate:async(n,e,s={})=>{c("validate","terminalId",n),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};n!==void 0&&(u.terminalId=n),e!==void 0&&(u.provider=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}}}},J=function(a){let n=Gt(a);return{async getKioskOrder(e,s,t){let r=await n.getKioskOrder(e,s,t);return P(r,h,p,a)},async getOrderStatus(e,s,t){let r=await n.getOrderStatus(e,s,t);return P(r,h,p,a)},async recoverOrder(e,s,t){let r=await n.recoverOrder(e,s,t);return P(r,h,p,a)},async syncKioskOrder(e,s){let t=await n.syncKioskOrder(e,s);return P(t,h,p,a)},async validate(e,s,t){let r=await n.validate(e,s,t);return P(r,h,p,a)}}},go=function(a,n,e){let s=J(a);return{getKioskOrder(t,r,o){return s.getKioskOrder(t,r,o).then(i=>i(e,n))},getOrderStatus(t,r,o){return s.getOrderStatus(t,r,o).then(i=>i(e,n))},recoverOrder(t,r,o){return s.recoverOrder(t,r,o).then(i=>i(e,n))},syncKioskOrder(t,r){return s.syncKioskOrder(t,r).then(o=>o(e,n))},validate(t,r,o){return s.validate(t,r,o).then(i=>i(e,n))}}},We=class extends S{getKioskOrder(n,e,s){return J(this.configuration).getKioskOrder(n,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(n,e,s){return J(this.configuration).getOrderStatus(n,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(n,e,s){return J(this.configuration).recoverOrder(n,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(n,e){return J(this.configuration).syncKioskOrder(n,e).then(s=>s(this.axios,this.basePath))}validate(n,e,s){return J(this.configuration).validate(n,e,s).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{activateKioskOffer:async(n,e={})=>{c("activateKioskOffer","activateKioskOfferDto",n);let s="/api/v1/loyalty/users/activate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},claimKioskOffer:async(n,e={})=>{c("claimKioskOffer","claimKioskOfferDto",n);let s="/api/v1/loyalty/users/claim",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createLoyaltyUser:async(n,e,s={})=>{c("createLoyaltyUser","businessId",n),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getAdminTransactions:async(n,e,s,t={})=>{c("getAdminTransactions","businessId",n);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(n,e={})=>{c("getLoyaltyInfo","businessId",n);let s="/api/v1/loyalty/info",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(n,e,s={})=>{c("getUserById","businessId",n),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getUserPerks:async(n,e,s={})=>{c("getUserPerks","businessId",n),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getUserWallet:async(n,e,s={})=>{c("getUserWallet","businessId",n),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},resolvePerks:async(n,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",n);let s="/api/v1/loyalty/resolve",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},searchUser:async(n,e,s,t,r={})=>{c("searchUser","businessId",n);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};await f(d,a),e!==void 0&&(A.phone=e),s!==void 0&&(A.country_code=s),t!==void 0&&(A.email=t),n!==void 0&&(A.businessId=n),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(n,e,s={})=>{c("updatePoints","businessId",n),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},validateWallet:async(n,e,s,t={})=>{c("validateWallet","businessId",n),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let r="/api/v1/loyalty/wallets/validate",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},L=function(a){let n=Kt(a);return{async activateKioskOffer(e,s){let t=await n.activateKioskOffer(e,s);return P(t,h,p,a)},async claimKioskOffer(e,s){let t=await n.claimKioskOffer(e,s);return P(t,h,p,a)},async createLoyaltyUser(e,s,t){let r=await n.createLoyaltyUser(e,s,t);return P(r,h,p,a)},async getAdminTransactions(e,s,t,r){let o=await n.getAdminTransactions(e,s,t,r);return P(o,h,p,a)},async getLoyaltyInfo(e,s){let t=await n.getLoyaltyInfo(e,s);return P(t,h,p,a)},async getUserById(e,s,t){let r=await n.getUserById(e,s,t);return P(r,h,p,a)},async getUserPerks(e,s,t){let r=await n.getUserPerks(e,s,t);return P(r,h,p,a)},async getUserWallet(e,s,t){let r=await n.getUserWallet(e,s,t);return P(r,h,p,a)},async resolvePerks(e,s){let t=await n.resolvePerks(e,s);return P(t,h,p,a)},async searchUser(e,s,t,r,o){let i=await n.searchUser(e,s,t,r,o);return P(i,h,p,a)},async updatePoints(e,s,t){let r=await n.updatePoints(e,s,t);return P(r,h,p,a)},async validateWallet(e,s,t,r){let o=await n.validateWallet(e,s,t,r);return P(o,h,p,a)}}},yo=function(a,n,e){let s=L(a);return{activateKioskOffer(t,r){return s.activateKioskOffer(t,r).then(o=>o(e,n))},claimKioskOffer(t,r){return s.claimKioskOffer(t,r).then(o=>o(e,n))},createLoyaltyUser(t,r,o){return s.createLoyaltyUser(t,r,o).then(i=>i(e,n))},getAdminTransactions(t,r,o,i){return s.getAdminTransactions(t,r,o,i).then(l=>l(e,n))},getLoyaltyInfo(t,r){return s.getLoyaltyInfo(t,r).then(o=>o(e,n))},getUserById(t,r,o){return s.getUserById(t,r,o).then(i=>i(e,n))},getUserPerks(t,r,o){return s.getUserPerks(t,r,o).then(i=>i(e,n))},getUserWallet(t,r,o){return s.getUserWallet(t,r,o).then(i=>i(e,n))},resolvePerks(t,r){return s.resolvePerks(t,r).then(o=>o(e,n))},searchUser(t,r,o,i,l){return s.searchUser(t,r,o,i,l).then(u=>u(e,n))},updatePoints(t,r,o){return s.updatePoints(t,r,o).then(i=>i(e,n))},validateWallet(t,r,o,i){return s.validateWallet(t,r,o,i).then(l=>l(e,n))}}},Ge=class extends S{activateKioskOffer(n,e){return L(this.configuration).activateKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(n,e){return L(this.configuration).claimKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(n,e,s){return L(this.configuration).createLoyaltyUser(n,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(n,e,s,t){return L(this.configuration).getAdminTransactions(n,e,s,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(n,e){return L(this.configuration).getLoyaltyInfo(n,e).then(s=>s(this.axios,this.basePath))}getUserById(n,e,s){return L(this.configuration).getUserById(n,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(n,e,s){return L(this.configuration).getUserPerks(n,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(n,e,s){return L(this.configuration).getUserWallet(n,e,s).then(t=>t(this.axios,this.basePath))}resolvePerks(n,e){return L(this.configuration).resolvePerks(n,e).then(s=>s(this.axios,this.basePath))}searchUser(n,e,s,t,r){return L(this.configuration).searchUser(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(n,e,s){return L(this.configuration).updatePoints(n,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(n,e,s,t){return L(this.configuration).validateWallet(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Ht=function(a){return{editBusinessProduct:async(n,e,s={})=>{c("editBusinessProduct","businessId",n),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(n,e,s={})=>{c("editBusinessProductV2","businessId",n),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(n,e={})=>{c("getBusinessExtras","businessId",n);let s="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(n,e,s={})=>{c("getProductsByCategoriesV2","businessId",n);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getProductsByCategoriesV3:async(n,e,s={})=>{c("getProductsByCategoriesV3","businessId",n);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},resetProductEod:async(n,e={})=>{c("resetProductEod","resetEodDto",n);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},z=function(a){let n=Ht(a);return{async editBusinessProduct(e,s,t){let r=await n.editBusinessProduct(e,s,t);return P(r,h,p,a)},async editBusinessProductV2(e,s,t){let r=await n.editBusinessProductV2(e,s,t);return P(r,h,p,a)},async getBusinessExtras(e,s){let t=await n.getBusinessExtras(e,s);return P(t,h,p,a)},async getProductsByCategoriesV2(e,s,t){let r=await n.getProductsByCategoriesV2(e,s,t);return P(r,h,p,a)},async getProductsByCategoriesV3(e,s,t){let r=await n.getProductsByCategoriesV3(e,s,t);return P(r,h,p,a)},async resetProductEod(e,s){let t=await n.resetProductEod(e,s);return P(t,h,p,a)}}},Po=function(a,n,e){let s=z(a);return{editBusinessProduct(t,r,o){return s.editBusinessProduct(t,r,o).then(i=>i(e,n))},editBusinessProductV2(t,r,o){return s.editBusinessProductV2(t,r,o).then(i=>i(e,n))},getBusinessExtras(t,r){return s.getBusinessExtras(t,r).then(o=>o(e,n))},getProductsByCategoriesV2(t,r,o){return s.getProductsByCategoriesV2(t,r,o).then(i=>i(e,n))},getProductsByCategoriesV3(t,r,o){return s.getProductsByCategoriesV3(t,r,o).then(i=>i(e,n))},resetProductEod(t,r){return s.resetProductEod(t,r).then(o=>o(e,n))}}},Ke=class extends S{editBusinessProduct(n,e,s){return z(this.configuration).editBusinessProduct(n,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(n,e,s){return z(this.configuration).editBusinessProductV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(n,e){return z(this.configuration).getBusinessExtras(n,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(n,e,s){return z(this.configuration).getProductsByCategoriesV2(n,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(n,e,s){return z(this.configuration).getProductsByCategoriesV3(n,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(n,e){return z(this.configuration).resetProductEod(n,e).then(s=>s(this.axios,this.basePath))}},Qt=function(a){return{addBusinessesToMerchant:async(n,e,s={})=>{c("addBusinessesToMerchant","merchantId",n),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},createMerchant:async(n,e={})=>{c("createMerchant","createMerchantDto",n);let s="/api/v1/merchants",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(n,e,s={})=>{c("removeBusinessFromMerchant","merchantId",n),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}}}},pe=function(a){let n=Qt(a);return{async addBusinessesToMerchant(e,s,t){let r=await n.addBusinessesToMerchant(e,s,t);return P(r,h,p,a)},async createMerchant(e,s){let t=await n.createMerchant(e,s);return P(t,h,p,a)},async removeBusinessFromMerchant(e,s,t){let r=await n.removeBusinessFromMerchant(e,s,t);return P(r,h,p,a)}}},ho=function(a,n,e){let s=pe(a);return{addBusinessesToMerchant(t,r,o){return s.addBusinessesToMerchant(t,r,o).then(i=>i(e,n))},createMerchant(t,r){return s.createMerchant(t,r).then(o=>o(e,n))},removeBusinessFromMerchant(t,r,o){return s.removeBusinessFromMerchant(t,r,o).then(i=>i(e,n))}}},He=class extends S{addBusinessesToMerchant(n,e,s){return pe(this.configuration).addBusinessesToMerchant(n,e,s).then(t=>t(this.axios,this.basePath))}createMerchant(n,e){return pe(this.configuration).createMerchant(n,e).then(s=>s(this.axios,this.basePath))}removeBusinessFromMerchant(n,e,s){return pe(this.configuration).removeBusinessFromMerchant(n,e,s).then(t=>t(this.axios,this.basePath))}},$t=function(a){return{createMunchiGiftCard:async(n,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",n);let s="/api/v1/munchi-giftcard/create",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(n,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",n);let s="/api/v1/munchi-giftcard/data",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(n,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",n);let s="/api/v1/munchi-giftcard/redeem",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(n,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",n);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},se=function(a){let n=$t(a);return{async createMunchiGiftCard(e,s){let t=await n.createMunchiGiftCard(e,s);return P(t,h,p,a)},async getMunchiGiftCardData(e,s){let t=await n.getMunchiGiftCardData(e,s);return P(t,h,p,a)},async redeemMunchiGiftCard(e,s){let t=await n.redeemMunchiGiftCard(e,s);return P(t,h,p,a)},async validateMunchiGiftCard(e,s){let t=await n.validateMunchiGiftCard(e,s);return P(t,h,p,a)}}},Ao=function(a,n,e){let s=se(a);return{createMunchiGiftCard(t,r){return s.createMunchiGiftCard(t,r).then(o=>o(e,n))},getMunchiGiftCardData(t,r){return s.getMunchiGiftCardData(t,r).then(o=>o(e,n))},redeemMunchiGiftCard(t,r){return s.redeemMunchiGiftCard(t,r).then(o=>o(e,n))},validateMunchiGiftCard(t,r){return s.validateMunchiGiftCard(t,r).then(o=>o(e,n))}}},Qe=class extends S{createMunchiGiftCard(n,e){return se(this.configuration).createMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(n,e){return se(this.configuration).getMunchiGiftCardData(n,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(n,e){return se(this.configuration).redeemMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(n,e){return se(this.configuration).validateMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Yt=function(a){return{addVenueSubscriptionsV2:async(n,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(n,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},Re=function(a){let n=Yt(a);return{async addVenueSubscriptionsV2(e,s){let t=await n.addVenueSubscriptionsV2(e,s);return P(t,h,p,a)},async removeVenueSubscriptionsV2(e,s){let t=await n.removeVenueSubscriptionsV2(e,s);return P(t,h,p,a)}}},bo=function(a,n,e){let s=Re(a);return{addVenueSubscriptionsV2(t,r){return s.addVenueSubscriptionsV2(t,r).then(o=>o(e,n))},removeVenueSubscriptionsV2(t,r){return s.removeVenueSubscriptionsV2(t,r).then(o=>o(e,n))}}},$e=class extends S{addVenueSubscriptionsV2(n,e){return Re(this.configuration).addVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(n,e){return Re(this.configuration).removeVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}},zt=function(a){return{findOneByExternalId:async(n,e={})=>{c("findOneByExternalId","externalId",n);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},xt=function(a){let n=zt(a);return{async findOneByExternalId(e,s){let t=await n.findOneByExternalId(e,s);return P(t,h,p,a)}}},xo=function(a,n,e){let s=xt(a);return{findOneByExternalId(t,r){return s.findOneByExternalId(t,r).then(o=>o(e,n))}}},Ye=class extends S{findOneByExternalId(n,e){return xt(this.configuration).findOneByExternalId(n,e).then(s=>s(this.axios,this.basePath))}},Jt=function(a){return{acceptOrder:async(n,e={})=>{c("acceptOrder","acceptOrderDto",n);let s="/api/v1/orders/accept",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},confirmPreOrder:async(n,e={})=>{c("confirmPreOrder","confirmPreorderDto",n);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(n,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",n);let s="/api/v2/orders/pos/park",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deliverOrder:async(n,e={})=>{c("deliverOrder","deliveredOrderDto",n);let s="/api/v1/orders/delivered",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},dispatchPosOrderV5:async(n,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",n);let s="/api/v5/orders/pos/dispatch",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getAllOrdersV2:async(n,e={})=>{c("getAllOrdersV2","businessIds",n);let s="/api/v2/orders",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessIds=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(n,e,s,t,r={})=>{c("getOrdersV2","status",n),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getOrdersV3:async(n,e,s,t,r={})=>{c("getOrdersV3","status",n),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(n,e={})=>{c("getParkedPosOrderV2","businessId",n);let s="/api/v2/orders/pos/park",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosOrderById:async(n,e={})=>{c("getPosOrderById","getPosOrderDto",n);let s="/api/v1/orders/pos",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},markOrderAsReady:async(n,e={})=>{c("markOrderAsReady","readyOrderDto",n);let s="/api/v1/orders/ready",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},parkPosOrderV5:async(n,e={})=>{c("parkPosOrderV5","parkPosOrderDto",n);let s="/api/v5/orders/pos/park",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},placePosOrderV4:async(n,e={})=>{c("placePosOrderV4","posOrderPayloadDto",n);let s="/api/v4/orders/pos/place",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},processPosOrderActions:async(n,e={})=>{c("processPosOrderActions","processOrderActionsDto",n);let s="/api/v4/orders/pos/actions",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},rejectOrder:async(n,e={})=>{c("rejectOrder","rejectOrderDto",n);let s="/api/v1/orders/reject",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},syncPosOrder:async(n,e={})=>{c("syncPosOrder","syncPosOrderDto",n);let s="/api/v1/orders/pos/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updatePosOrderV2:async(n,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",n);let s="/api/v2/orders/pos/update",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},B=function(a){let n=Jt(a);return{async acceptOrder(e,s){let t=await n.acceptOrder(e,s);return P(t,h,p,a)},async confirmPreOrder(e,s){let t=await n.confirmPreOrder(e,s);return P(t,h,p,a)},async deletePosParkedOrderV2(e,s){let t=await n.deletePosParkedOrderV2(e,s);return P(t,h,p,a)},async deliverOrder(e,s){let t=await n.deliverOrder(e,s);return P(t,h,p,a)},async dispatchPosOrderV5(e,s){let t=await n.dispatchPosOrderV5(e,s);return P(t,h,p,a)},async getAllOrdersV2(e,s){let t=await n.getAllOrdersV2(e,s);return P(t,h,p,a)},async getOrdersV2(e,s,t,r,o){let i=await n.getOrdersV2(e,s,t,r,o);return P(i,h,p,a)},async getOrdersV3(e,s,t,r,o){let i=await n.getOrdersV3(e,s,t,r,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,s){let t=await n.getParkedPosOrderV2(e,s);return P(t,h,p,a)},async getPosOrderById(e,s){let t=await n.getPosOrderById(e,s);return P(t,h,p,a)},async markOrderAsReady(e,s){let t=await n.markOrderAsReady(e,s);return P(t,h,p,a)},async parkPosOrderV5(e,s){let t=await n.parkPosOrderV5(e,s);return P(t,h,p,a)},async placePosOrderV4(e,s){let t=await n.placePosOrderV4(e,s);return P(t,h,p,a)},async processPosOrderActions(e,s){let t=await n.processPosOrderActions(e,s);return P(t,h,p,a)},async rejectOrder(e,s){let t=await n.rejectOrder(e,s);return P(t,h,p,a)},async syncPosOrder(e,s){let t=await n.syncPosOrder(e,s);return P(t,h,p,a)},async updatePosOrderV2(e,s){let t=await n.updatePosOrderV2(e,s);return P(t,h,p,a)}}},fo=function(a,n,e){let s=B(a);return{acceptOrder(t,r){return s.acceptOrder(t,r).then(o=>o(e,n))},confirmPreOrder(t,r){return s.confirmPreOrder(t,r).then(o=>o(e,n))},deletePosParkedOrderV2(t,r){return s.deletePosParkedOrderV2(t,r).then(o=>o(e,n))},deliverOrder(t,r){return s.deliverOrder(t,r).then(o=>o(e,n))},dispatchPosOrderV5(t,r){return s.dispatchPosOrderV5(t,r).then(o=>o(e,n))},getAllOrdersV2(t,r){return s.getAllOrdersV2(t,r).then(o=>o(e,n))},getOrdersV2(t,r,o,i,l){return s.getOrdersV2(t,r,o,i,l).then(u=>u(e,n))},getOrdersV3(t,r,o,i,l){return s.getOrdersV3(t,r,o,i,l).then(u=>u(e,n))},getParkedPosOrderV2(t,r){return s.getParkedPosOrderV2(t,r).then(o=>o(e,n))},getPosOrderById(t,r){return s.getPosOrderById(t,r).then(o=>o(e,n))},markOrderAsReady(t,r){return s.markOrderAsReady(t,r).then(o=>o(e,n))},parkPosOrderV5(t,r){return s.parkPosOrderV5(t,r).then(o=>o(e,n))},placePosOrderV4(t,r){return s.placePosOrderV4(t,r).then(o=>o(e,n))},processPosOrderActions(t,r){return s.processPosOrderActions(t,r).then(o=>o(e,n))},rejectOrder(t,r){return s.rejectOrder(t,r).then(o=>o(e,n))},syncPosOrder(t,r){return s.syncPosOrder(t,r).then(o=>o(e,n))},updatePosOrderV2(t,r){return s.updatePosOrderV2(t,r).then(o=>o(e,n))}}},ze=class extends S{acceptOrder(n,e){return B(this.configuration).acceptOrder(n,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(n,e){return B(this.configuration).confirmPreOrder(n,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(n,e){return B(this.configuration).deletePosParkedOrderV2(n,e).then(s=>s(this.axios,this.basePath))}deliverOrder(n,e){return B(this.configuration).deliverOrder(n,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(n,e){return B(this.configuration).dispatchPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}getAllOrdersV2(n,e){return B(this.configuration).getAllOrdersV2(n,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(n,e,s,t,r){return B(this.configuration).getOrdersV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getOrdersV3(n,e,s,t,r){return B(this.configuration).getOrdersV3(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(n,e){return B(this.configuration).getParkedPosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(n,e){return B(this.configuration).getPosOrderById(n,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(n,e){return B(this.configuration).markOrderAsReady(n,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(n,e){return B(this.configuration).parkPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}placePosOrderV4(n,e){return B(this.configuration).placePosOrderV4(n,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(n,e){return B(this.configuration).processPosOrderActions(n,e).then(s=>s(this.axios,this.basePath))}rejectOrder(n,e){return B(this.configuration).rejectOrder(n,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(n,e){return B(this.configuration).syncPosOrder(n,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(n,e){return B(this.configuration).updatePosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{getPosSession:async(n,e={})=>{c("getPosSession","businessId",n);let s="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(n,e={})=>{c("getPosSessionV2","businessId",n);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Ce=function(a){let n=Xt(a);return{async getPosSession(e,s){let t=await n.getPosSession(e,s);return P(t,h,p,a)},async getPosSessionV2(e,s){let t=await n.getPosSessionV2(e,s);return P(t,h,p,a)}}},Ro=function(a,n,e){let s=Ce(a);return{getPosSession(t,r){return s.getPosSession(t,r).then(o=>o(e,n))},getPosSessionV2(t,r){return s.getPosSessionV2(t,r).then(o=>o(e,n))}}},Je=class extends S{getPosSession(n,e){return Ce(this.configuration).getPosSession(n,e).then(s=>s(this.axios,this.basePath))}getPosSessionV2(n,e){return Ce(this.configuration).getPosSessionV2(n,e).then(s=>s(this.axios,this.basePath))}},Zt=function(a){return{payTerminalInit:async(n,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",n);let s="/api/v1/pay-terminal/init",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockSet:async(n,e={})=>{c("payTerminalLockSet","setPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockStatus:async(n,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",n);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockSync:async(n,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockVerify:async(n,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalPair:async(n,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/pair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalSessionToken:async(n,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",n);let s="/api/v1/pay-terminal/session-token",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalUnpair:async(n,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/unpair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},G=function(a){let n=Zt(a);return{async payTerminalInit(e,s){let t=await n.payTerminalInit(e,s);return P(t,h,p,a)},async payTerminalLockSet(e,s){let t=await n.payTerminalLockSet(e,s);return P(t,h,p,a)},async payTerminalLockStatus(e,s){let t=await n.payTerminalLockStatus(e,s);return P(t,h,p,a)},async payTerminalLockSync(e,s){let t=await n.payTerminalLockSync(e,s);return P(t,h,p,a)},async payTerminalLockVerify(e,s){let t=await n.payTerminalLockVerify(e,s);return P(t,h,p,a)},async payTerminalPair(e,s){let t=await n.payTerminalPair(e,s);return P(t,h,p,a)},async payTerminalSessionToken(e,s){let t=await n.payTerminalSessionToken(e,s);return P(t,h,p,a)},async payTerminalUnpair(e,s){let t=await n.payTerminalUnpair(e,s);return P(t,h,p,a)}}},Co=function(a,n,e){let s=G(a);return{payTerminalInit(t,r){return s.payTerminalInit(t,r).then(o=>o(e,n))},payTerminalLockSet(t,r){return s.payTerminalLockSet(t,r).then(o=>o(e,n))},payTerminalLockStatus(t,r){return s.payTerminalLockStatus(t,r).then(o=>o(e,n))},payTerminalLockSync(t,r){return s.payTerminalLockSync(t,r).then(o=>o(e,n))},payTerminalLockVerify(t,r){return s.payTerminalLockVerify(t,r).then(o=>o(e,n))},payTerminalPair(t,r){return s.payTerminalPair(t,r).then(o=>o(e,n))},payTerminalSessionToken(t,r){return s.payTerminalSessionToken(t,r).then(o=>o(e,n))},payTerminalUnpair(t,r){return s.payTerminalUnpair(t,r).then(o=>o(e,n))}}},Xe=class extends S{payTerminalInit(n,e){return G(this.configuration).payTerminalInit(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSet(n,e){return G(this.configuration).payTerminalLockSet(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(n,e){return G(this.configuration).payTerminalLockStatus(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(n,e){return G(this.configuration).payTerminalLockSync(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(n,e){return G(this.configuration).payTerminalLockVerify(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(n,e){return G(this.configuration).payTerminalPair(n,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(n,e){return G(this.configuration).payTerminalSessionToken(n,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(n,e){return G(this.configuration).payTerminalUnpair(n,e).then(s=>s(this.axios,this.basePath))}},es=function(a){return{cancelNetsTerminalTransaction:async(n,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",n);let s="/api/v3/payment/nets/cancel",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(n,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",n);let s="/api/v2/payment/viva/cancel",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(n,e={})=>{c("createNetsRefundTransaction","createRefundDto",n);let s="/api/v4/payment/nets/refund/transaction",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getPaymentReference:async(n,e={})=>{c("getPaymentReference","getPaymentReferenceDto",n);let s="/api/v1/payment/reference",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getPaymentStatus:async(n,e={})=>{c("getPaymentStatus","getPaymentStatusDto",n);let s="/api/v1/payment/status",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(n,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",n);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(n,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",n);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(n,e={})=>{c("processOnlineOrderRefund","orderResponseDto",n);let s="/api/v1/payment/online-orders/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(n,e={})=>{c("refundSingleVivaTransaction","createRefundDto",n);let s="/api/v4/payment/viva/refund/single",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},j=function(a){let n=es(a);return{async cancelNetsTerminalTransaction(e,s){let t=await n.cancelNetsTerminalTransaction(e,s);return P(t,h,p,a)},async cancelVivaTransactionV2(e,s){let t=await n.cancelVivaTransactionV2(e,s);return P(t,h,p,a)},async createNetsRefundTransaction(e,s){let t=await n.createNetsRefundTransaction(e,s);return P(t,h,p,a)},async getPaymentReference(e,s){let t=await n.getPaymentReference(e,s);return P(t,h,p,a)},async getPaymentStatus(e,s){let t=await n.getPaymentStatus(e,s);return P(t,h,p,a)},async initiateNetsTerminalTransaction(e,s){let t=await n.initiateNetsTerminalTransaction(e,s);return P(t,h,p,a)},async initiateTerminalTransaction(e,s){let t=await n.initiateTerminalTransaction(e,s);return P(t,h,p,a)},async processOnlineOrderRefund(e,s){let t=await n.processOnlineOrderRefund(e,s);return P(t,h,p,a)},async refundSingleVivaTransaction(e,s){let t=await n.refundSingleVivaTransaction(e,s);return P(t,h,p,a)}}},Do=function(a,n,e){let s=j(a);return{cancelNetsTerminalTransaction(t,r){return s.cancelNetsTerminalTransaction(t,r).then(o=>o(e,n))},cancelVivaTransactionV2(t,r){return s.cancelVivaTransactionV2(t,r).then(o=>o(e,n))},createNetsRefundTransaction(t,r){return s.createNetsRefundTransaction(t,r).then(o=>o(e,n))},getPaymentReference(t,r){return s.getPaymentReference(t,r).then(o=>o(e,n))},getPaymentStatus(t,r){return s.getPaymentStatus(t,r).then(o=>o(e,n))},initiateNetsTerminalTransaction(t,r){return s.initiateNetsTerminalTransaction(t,r).then(o=>o(e,n))},initiateTerminalTransaction(t,r){return s.initiateTerminalTransaction(t,r).then(o=>o(e,n))},processOnlineOrderRefund(t,r){return s.processOnlineOrderRefund(t,r).then(o=>o(e,n))},refundSingleVivaTransaction(t,r){return s.refundSingleVivaTransaction(t,r).then(o=>o(e,n))}}},Ze=class extends S{cancelNetsTerminalTransaction(n,e){return j(this.configuration).cancelNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(n,e){return j(this.configuration).cancelVivaTransactionV2(n,e).then(s=>s(this.axios,this.basePath))}createNetsRefundTransaction(n,e){return j(this.configuration).createNetsRefundTransaction(n,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(n,e){return j(this.configuration).getPaymentReference(n,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(n,e){return j(this.configuration).getPaymentStatus(n,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(n,e){return j(this.configuration).initiateNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(n,e){return j(this.configuration).initiateTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(n,e){return j(this.configuration).processOnlineOrderRefund(n,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(n,e){return j(this.configuration).refundSingleVivaTransaction(n,e).then(s=>s(this.axios,this.basePath))}},ts=function(a){return{createPaymentMethod:async(n,e,s,t={})=>{c("createPaymentMethod","businessId",n),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},deletePaymentMethodOption:async(n,e,s,t={})=>{c("deletePaymentMethodOption","businessId",n),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getCatalog:async(n,e,s,t={})=>{c("getCatalog","businessId",n),c("getCatalog","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getGlobalCatalog:async(n,e={})=>{let s="/api/v1/payment-methods/catalog",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.locale=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentMethods:async(n,e,s,t={})=>{c("getPaymentMethods","businessId",n),c("getPaymentMethods","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getTypes:async(n={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},reorder:async(n,e,s,t={})=>{c("reorder","businessId",n),c("reorder","channel",e),c("reorder","bulkRankDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updatePaymentMethodOption:async(n,e,s,t,r={})=>{c("updatePaymentMethodOption","businessId",n),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",s),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},K=function(a){let n=ts(a);return{async createPaymentMethod(e,s,t,r){let o=await n.createPaymentMethod(e,s,t,r);return P(o,h,p,a)},async deletePaymentMethodOption(e,s,t,r){let o=await n.deletePaymentMethodOption(e,s,t,r);return P(o,h,p,a)},async getCatalog(e,s,t,r){let o=await n.getCatalog(e,s,t,r);return P(o,h,p,a)},async getGlobalCatalog(e,s){let t=await n.getGlobalCatalog(e,s);return P(t,h,p,a)},async getPaymentMethods(e,s,t,r){let o=await n.getPaymentMethods(e,s,t,r);return P(o,h,p,a)},async getTypes(e){let s=await n.getTypes(e);return P(s,h,p,a)},async reorder(e,s,t,r){let o=await n.reorder(e,s,t,r);return P(o,h,p,a)},async updatePaymentMethodOption(e,s,t,r,o){let i=await n.updatePaymentMethodOption(e,s,t,r,o);return P(i,h,p,a)}}},Oo=function(a,n,e){let s=K(a);return{createPaymentMethod(t,r,o,i){return s.createPaymentMethod(t,r,o,i).then(l=>l(e,n))},deletePaymentMethodOption(t,r,o,i){return s.deletePaymentMethodOption(t,r,o,i).then(l=>l(e,n))},getCatalog(t,r,o,i){return s.getCatalog(t,r,o,i).then(l=>l(e,n))},getGlobalCatalog(t,r){return s.getGlobalCatalog(t,r).then(o=>o(e,n))},getPaymentMethods(t,r,o,i){return s.getPaymentMethods(t,r,o,i).then(l=>l(e,n))},getTypes(t){return s.getTypes(t).then(r=>r(e,n))},reorder(t,r,o,i){return s.reorder(t,r,o,i).then(l=>l(e,n))},updatePaymentMethodOption(t,r,o,i,l){return s.updatePaymentMethodOption(t,r,o,i,l).then(u=>u(e,n))}}},et=class extends S{createPaymentMethod(n,e,s,t){return K(this.configuration).createPaymentMethod(n,e,s,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(n,e,s,t){return K(this.configuration).deletePaymentMethodOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}getCatalog(n,e,s,t){return K(this.configuration).getCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getGlobalCatalog(n,e){return K(this.configuration).getGlobalCatalog(n,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(n,e,s,t){return K(this.configuration).getPaymentMethods(n,e,s,t).then(r=>r(this.axios,this.basePath))}getTypes(n){return K(this.configuration).getTypes(n).then(e=>e(this.axios,this.basePath))}reorder(n,e,s,t){return K(this.configuration).reorder(n,e,s,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(n,e,s,t,r){return K(this.configuration).updatePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},ss=function(a){return{cancelSession:async(n,e={})=>{c("cancelSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrderSettlementStatus:async(n,e,s,t={})=>{c("getOrderSettlementStatus","businessId",n),c("getOrderSettlementStatus","orderId",e);let r="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},getPaymentSession:async(n,e={})=>{c("getPaymentSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentSessionAnalytics:async(n,e,s,t,r={})=>{c("getPaymentSessionAnalytics","businessId",n),c("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};n!==void 0&&(A.businessId=n),e!==void 0&&(A.timeSpan=e),s!==void 0&&(A.start=s),t!==void 0&&(A.end=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},initiateNetsSession:async(n,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",n);let t="/api/v1/payment-session/nets/initiate",r=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",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:y(r),options:i}},initiateVivaA2aSession:async(n,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",n);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},initiateVivaSession:async(n,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",n);let t="/api/v1/payment-session/viva/initiate",r=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",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:y(r),options:i}},initiateWorldlineSession:async(n,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",n);let t="/api/v1/payment-session/worldline/initiate",r=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",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:y(r),options:i}},paymentSessionGetChargeStatus:async(n,e={})=>{c("paymentSessionGetChargeStatus","chargeId",n);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},paymentSessionRegisterChargeMapping:async(n,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",n);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},pollVivaSession:async(n,e={})=>{c("pollVivaSession","pollVivaSessionDto",n);let s="/api/v1/payment-session/poll",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},pollWorldlineSession:async(n,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",n);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},recordManualPayment:async(n,e={})=>{c("recordManualPayment","createManualSessionDto",n);let s="/api/v1/payment-session/manual",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundNetsSession:async(n,e={})=>{c("refundNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundVivaSession:async(n,e={})=>{c("refundVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundWorldlineSession:async(n,e={})=>{c("refundWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},retryWorldlineReversal:async(n,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",n);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},revertNetsSession:async(n,e={})=>{c("revertNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/revert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},revertVivaSession:async(n,e={})=>{c("revertVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/revert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},revertWorldlineSession:async(n,e={})=>{c("revertWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},voidManualPayment:async(n,e={})=>{c("voidManualPayment","voidManualSessionDto",n);let s="/api/v1/payment-session/void",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},E=function(a){let n=ss(a);return{async cancelSession(e,s){let t=await n.cancelSession(e,s);return P(t,h,p,a)},async getOrderSettlementStatus(e,s,t,r){let o=await n.getOrderSettlementStatus(e,s,t,r);return P(o,h,p,a)},async getPaymentSession(e,s){let t=await n.getPaymentSession(e,s);return P(t,h,p,a)},async getPaymentSessionAnalytics(e,s,t,r,o){let i=await n.getPaymentSessionAnalytics(e,s,t,r,o);return P(i,h,p,a)},async initiateNetsSession(e,s,t){let r=await n.initiateNetsSession(e,s,t);return P(r,h,p,a)},async initiateVivaA2aSession(e,s){let t=await n.initiateVivaA2aSession(e,s);return P(t,h,p,a)},async initiateVivaSession(e,s,t){let r=await n.initiateVivaSession(e,s,t);return P(r,h,p,a)},async initiateWorldlineSession(e,s,t){let r=await n.initiateWorldlineSession(e,s,t);return P(r,h,p,a)},async paymentSessionGetChargeStatus(e,s){let t=await n.paymentSessionGetChargeStatus(e,s);return P(t,h,p,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await n.paymentSessionRegisterChargeMapping(e,s);return P(t,h,p,a)},async pollVivaSession(e,s){let t=await n.pollVivaSession(e,s);return P(t,h,p,a)},async pollWorldlineSession(e,s){let t=await n.pollWorldlineSession(e,s);return P(t,h,p,a)},async recordManualPayment(e,s){let t=await n.recordManualPayment(e,s);return P(t,h,p,a)},async refundNetsSession(e,s){let t=await n.refundNetsSession(e,s);return P(t,h,p,a)},async refundVivaSession(e,s){let t=await n.refundVivaSession(e,s);return P(t,h,p,a)},async refundWorldlineSession(e,s){let t=await n.refundWorldlineSession(e,s);return P(t,h,p,a)},async retryWorldlineReversal(e,s){let t=await n.retryWorldlineReversal(e,s);return P(t,h,p,a)},async revertNetsSession(e,s){let t=await n.revertNetsSession(e,s);return P(t,h,p,a)},async revertVivaSession(e,s){let t=await n.revertVivaSession(e,s);return P(t,h,p,a)},async revertWorldlineSession(e,s){let t=await n.revertWorldlineSession(e,s);return P(t,h,p,a)},async voidManualPayment(e,s){let t=await n.voidManualPayment(e,s);return P(t,h,p,a)}}},So=function(a,n,e){let s=E(a);return{cancelSession(t,r){return s.cancelSession(t,r).then(o=>o(e,n))},getOrderSettlementStatus(t,r,o,i){return s.getOrderSettlementStatus(t,r,o,i).then(l=>l(e,n))},getPaymentSession(t,r){return s.getPaymentSession(t,r).then(o=>o(e,n))},getPaymentSessionAnalytics(t,r,o,i,l){return s.getPaymentSessionAnalytics(t,r,o,i,l).then(u=>u(e,n))},initiateNetsSession(t,r,o){return s.initiateNetsSession(t,r,o).then(i=>i(e,n))},initiateVivaA2aSession(t,r){return s.initiateVivaA2aSession(t,r).then(o=>o(e,n))},initiateVivaSession(t,r,o){return s.initiateVivaSession(t,r,o).then(i=>i(e,n))},initiateWorldlineSession(t,r,o){return s.initiateWorldlineSession(t,r,o).then(i=>i(e,n))},paymentSessionGetChargeStatus(t,r){return s.paymentSessionGetChargeStatus(t,r).then(o=>o(e,n))},paymentSessionRegisterChargeMapping(t,r){return s.paymentSessionRegisterChargeMapping(t,r).then(o=>o(e,n))},pollVivaSession(t,r){return s.pollVivaSession(t,r).then(o=>o(e,n))},pollWorldlineSession(t,r){return s.pollWorldlineSession(t,r).then(o=>o(e,n))},recordManualPayment(t,r){return s.recordManualPayment(t,r).then(o=>o(e,n))},refundNetsSession(t,r){return s.refundNetsSession(t,r).then(o=>o(e,n))},refundVivaSession(t,r){return s.refundVivaSession(t,r).then(o=>o(e,n))},refundWorldlineSession(t,r){return s.refundWorldlineSession(t,r).then(o=>o(e,n))},retryWorldlineReversal(t,r){return s.retryWorldlineReversal(t,r).then(o=>o(e,n))},revertNetsSession(t,r){return s.revertNetsSession(t,r).then(o=>o(e,n))},revertVivaSession(t,r){return s.revertVivaSession(t,r).then(o=>o(e,n))},revertWorldlineSession(t,r){return s.revertWorldlineSession(t,r).then(o=>o(e,n))},voidManualPayment(t,r){return s.voidManualPayment(t,r).then(o=>o(e,n))}}},tt=class extends S{cancelSession(n,e){return E(this.configuration).cancelSession(n,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(n,e,s,t){return E(this.configuration).getOrderSettlementStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentSession(n,e){return E(this.configuration).getPaymentSession(n,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(n,e,s,t,r){return E(this.configuration).getPaymentSessionAnalytics(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}initiateNetsSession(n,e,s){return E(this.configuration).initiateNetsSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(n,e){return E(this.configuration).initiateVivaA2aSession(n,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(n,e,s){return E(this.configuration).initiateVivaSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(n,e,s){return E(this.configuration).initiateWorldlineSession(n,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(n,e){return E(this.configuration).paymentSessionGetChargeStatus(n,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(n,e){return E(this.configuration).paymentSessionRegisterChargeMapping(n,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(n,e){return E(this.configuration).pollVivaSession(n,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(n,e){return E(this.configuration).pollWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(n,e){return E(this.configuration).recordManualPayment(n,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(n,e){return E(this.configuration).refundNetsSession(n,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(n,e){return E(this.configuration).refundVivaSession(n,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(n,e){return E(this.configuration).refundWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(n,e){return E(this.configuration).retryWorldlineReversal(n,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(n,e){return E(this.configuration).revertNetsSession(n,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(n,e){return E(this.configuration).revertVivaSession(n,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(n,e){return E(this.configuration).revertWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(n,e){return E(this.configuration).voidManualPayment(n,e).then(s=>s(this.axios,this.basePath))}},ns=function(a){return{deleteCategoryPolicy:async(n,e,s={})=>{c("deleteCategoryPolicy","businessId",n),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.categoryId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deletePrinter:async(n,e,s={})=>{c("deletePrinter","id",n),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deletePrinterByAddress:async(n,e,s={})=>{c("deletePrinterByAddress","businessId",n),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.address=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deleteProductPolicy:async(n,e,s={})=>{c("deleteProductPolicy","businessId",n),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.productId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},listCategoryPolicies:async(n,e={})=>{c("listCategoryPolicies","businessId",n);let s="/api/v1/printer/policies/category",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listPrinters:async(n,e={})=>{c("listPrinters","businessId",n);let s="/api/v1/printer",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listProductPolicies:async(n,e={})=>{c("listProductPolicies","businessId",n);let s="/api/v1/printer/policies/product",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},upsertCategoryPolicy:async(n,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",n);let s="/api/v1/printer/policies/category",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},upsertPrinter:async(n,e={})=>{c("upsertPrinter","upsertPrinterDto",n);let s="/api/v1/printer",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},upsertProductPolicy:async(n,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",n);let s="/api/v1/printer/policies/product",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},F=function(a){let n=ns(a);return{async deleteCategoryPolicy(e,s,t){let r=await n.deleteCategoryPolicy(e,s,t);return P(r,h,p,a)},async deletePrinter(e,s,t){let r=await n.deletePrinter(e,s,t);return P(r,h,p,a)},async deletePrinterByAddress(e,s,t){let r=await n.deletePrinterByAddress(e,s,t);return P(r,h,p,a)},async deleteProductPolicy(e,s,t){let r=await n.deleteProductPolicy(e,s,t);return P(r,h,p,a)},async listCategoryPolicies(e,s){let t=await n.listCategoryPolicies(e,s);return P(t,h,p,a)},async listPrinters(e,s){let t=await n.listPrinters(e,s);return P(t,h,p,a)},async listProductPolicies(e,s){let t=await n.listProductPolicies(e,s);return P(t,h,p,a)},async upsertCategoryPolicy(e,s){let t=await n.upsertCategoryPolicy(e,s);return P(t,h,p,a)},async upsertPrinter(e,s){let t=await n.upsertPrinter(e,s);return P(t,h,p,a)},async upsertProductPolicy(e,s){let t=await n.upsertProductPolicy(e,s);return P(t,h,p,a)}}},Vo=function(a,n,e){let s=F(a);return{deleteCategoryPolicy(t,r,o){return s.deleteCategoryPolicy(t,r,o).then(i=>i(e,n))},deletePrinter(t,r,o){return s.deletePrinter(t,r,o).then(i=>i(e,n))},deletePrinterByAddress(t,r,o){return s.deletePrinterByAddress(t,r,o).then(i=>i(e,n))},deleteProductPolicy(t,r,o){return s.deleteProductPolicy(t,r,o).then(i=>i(e,n))},listCategoryPolicies(t,r){return s.listCategoryPolicies(t,r).then(o=>o(e,n))},listPrinters(t,r){return s.listPrinters(t,r).then(o=>o(e,n))},listProductPolicies(t,r){return s.listProductPolicies(t,r).then(o=>o(e,n))},upsertCategoryPolicy(t,r){return s.upsertCategoryPolicy(t,r).then(o=>o(e,n))},upsertPrinter(t,r){return s.upsertPrinter(t,r).then(o=>o(e,n))},upsertProductPolicy(t,r){return s.upsertProductPolicy(t,r).then(o=>o(e,n))}}},st=class extends S{deleteCategoryPolicy(n,e,s){return F(this.configuration).deleteCategoryPolicy(n,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(n,e,s){return F(this.configuration).deletePrinter(n,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(n,e,s){return F(this.configuration).deletePrinterByAddress(n,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(n,e,s){return F(this.configuration).deleteProductPolicy(n,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(n,e){return F(this.configuration).listCategoryPolicies(n,e).then(s=>s(this.axios,this.basePath))}listPrinters(n,e){return F(this.configuration).listPrinters(n,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(n,e){return F(this.configuration).listProductPolicies(n,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(n,e){return F(this.configuration).upsertCategoryPolicy(n,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(n,e){return F(this.configuration).upsertPrinter(n,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(n,e){return F(this.configuration).upsertProductPolicy(n,e).then(s=>s(this.axios,this.basePath))}},rs=function(a){return{generateProductSkuV2:async(n,e,s,t={})=>{c("generateProductSkuV2","businessId",n),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelInventoryV2:async(n,e,s,t={})=>{c("getChannelInventoryV2","businessId",n),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(n,e,s,t,r={})=>{c("updateChannelInventoryV2","businessId",n),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",s),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},updateProductSkuV2:async(n,e,s,t,r={})=>{c("updateProductSkuV2","businessId",n),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",s),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},ne=function(a){let n=rs(a);return{async generateProductSkuV2(e,s,t,r){let o=await n.generateProductSkuV2(e,s,t,r);return P(o,h,p,a)},async getChannelInventoryV2(e,s,t,r){let o=await n.getChannelInventoryV2(e,s,t,r);return P(o,h,p,a)},async updateChannelInventoryV2(e,s,t,r,o){let i=await n.updateChannelInventoryV2(e,s,t,r,o);return P(i,h,p,a)},async updateProductSkuV2(e,s,t,r,o){let i=await n.updateProductSkuV2(e,s,t,r,o);return P(i,h,p,a)}}},Io=function(a,n,e){let s=ne(a);return{generateProductSkuV2(t,r,o,i){return s.generateProductSkuV2(t,r,o,i).then(l=>l(e,n))},getChannelInventoryV2(t,r,o,i){return s.getChannelInventoryV2(t,r,o,i).then(l=>l(e,n))},updateChannelInventoryV2(t,r,o,i,l){return s.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,n))},updateProductSkuV2(t,r,o,i,l){return s.updateProductSkuV2(t,r,o,i,l).then(u=>u(e,n))}}},nt=class extends S{generateProductSkuV2(n,e,s,t){return ne(this.configuration).generateProductSkuV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelInventoryV2(n,e,s,t){return ne(this.configuration).getChannelInventoryV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(n,e,s,t,r){return ne(this.configuration).updateChannelInventoryV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(n,e,s,t,r){return ne(this.configuration).updateProductSkuV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},os=function(a){return{createOnboardingSession:async(n,e,s={})=>{c("createOnboardingSession","channel",n),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},disconnectOnboarding:async(n,e,s={})=>{c("disconnectOnboarding","channel",n),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getMenuIntegrations:async(n,e={})=>{c("getMenuIntegrations","businessId",n);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOnboardingStatus:async(n,e,s={})=>{c("getOnboardingStatus","channel",n),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getSupportedChannels:async(n,e={})=>{c("getSupportedChannels","businessId",n);let s="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listOnboardingStores:async(n,e,s={})=>{c("listOnboardingStores","channel",n),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},provisionOnboardingStore:async(n,e,s,t={})=>{c("provisionOnboardingStore","channel",n),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",s);let r="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},registerCredential:async(n,e={})=>{c("registerCredential","body",n);let s="/api/v1/provider/credentials",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},registerProvider:async(n,e={})=>{c("registerProvider","body",n);let s="/api/v1/provider",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updateProviderSettings:async(n,e,s={})=>{c("updateProviderSettings","businessId",n),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},_=function(a){let n=os(a);return{async createOnboardingSession(e,s,t){let r=await n.createOnboardingSession(e,s,t);return P(r,h,p,a)},async disconnectOnboarding(e,s,t){let r=await n.disconnectOnboarding(e,s,t);return P(r,h,p,a)},async getMenuIntegrations(e,s){let t=await n.getMenuIntegrations(e,s);return P(t,h,p,a)},async getOnboardingStatus(e,s,t){let r=await n.getOnboardingStatus(e,s,t);return P(r,h,p,a)},async getSupportedChannels(e,s){let t=await n.getSupportedChannels(e,s);return P(t,h,p,a)},async listOnboardingStores(e,s,t){let r=await n.listOnboardingStores(e,s,t);return P(r,h,p,a)},async provisionOnboardingStore(e,s,t,r){let o=await n.provisionOnboardingStore(e,s,t,r);return P(o,h,p,a)},async registerCredential(e,s){let t=await n.registerCredential(e,s);return P(t,h,p,a)},async registerProvider(e,s){let t=await n.registerProvider(e,s);return P(t,h,p,a)},async updateProviderSettings(e,s,t){let r=await n.updateProviderSettings(e,s,t);return P(r,h,p,a)}}},vo=function(a,n,e){let s=_(a);return{createOnboardingSession(t,r,o){return s.createOnboardingSession(t,r,o).then(i=>i(e,n))},disconnectOnboarding(t,r,o){return s.disconnectOnboarding(t,r,o).then(i=>i(e,n))},getMenuIntegrations(t,r){return s.getMenuIntegrations(t,r).then(o=>o(e,n))},getOnboardingStatus(t,r,o){return s.getOnboardingStatus(t,r,o).then(i=>i(e,n))},getSupportedChannels(t,r){return s.getSupportedChannels(t,r).then(o=>o(e,n))},listOnboardingStores(t,r,o){return s.listOnboardingStores(t,r,o).then(i=>i(e,n))},provisionOnboardingStore(t,r,o,i){return s.provisionOnboardingStore(t,r,o,i).then(l=>l(e,n))},registerCredential(t,r){return s.registerCredential(t,r).then(o=>o(e,n))},registerProvider(t,r){return s.registerProvider(t,r).then(o=>o(e,n))},updateProviderSettings(t,r,o){return s.updateProviderSettings(t,r,o).then(i=>i(e,n))}}},rt=class extends S{createOnboardingSession(n,e,s){return _(this.configuration).createOnboardingSession(n,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(n,e,s){return _(this.configuration).disconnectOnboarding(n,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(n,e){return _(this.configuration).getMenuIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(n,e,s){return _(this.configuration).getOnboardingStatus(n,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(n,e){return _(this.configuration).getSupportedChannels(n,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(n,e,s){return _(this.configuration).listOnboardingStores(n,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(n,e,s,t){return _(this.configuration).provisionOnboardingStore(n,e,s,t).then(r=>r(this.axios,this.basePath))}registerCredential(n,e){return _(this.configuration).registerCredential(n,e).then(s=>s(this.axios,this.basePath))}registerProvider(n,e){return _(this.configuration).registerProvider(n,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(n,e,s){return _(this.configuration).updateProviderSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},as=function(a){return{cancelPlan:async(n,e,s,t={})=>{c("cancelPlan","businessId",n),c("cancelPlan","orderId",e),c("cancelPlan","refundId",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},cancelPlanV2:async(n,e,s,t={})=>{c("cancelPlanV2","businessId",n),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},createRefundPlan:async(n,e,s,t={})=>{c("createRefundPlan","businessId",n),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},createRefundPlanV2:async(n,e,s,t={})=>{c("createRefundPlanV2","businessId",n),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},getRefundPlan:async(n,e,s,t={})=>{c("getRefundPlan","businessId",n),c("getRefundPlan","orderId",e),c("getRefundPlan","status",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getRefundPlanV2:async(n,e,s,t={})=>{c("getRefundPlanV2","businessId",n),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(n,e,s,t,r={})=>{c("recordRefundPlan","businessId",n),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(n))).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,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},recordRefundPlanV2:async(n,e,s,t,r={})=>{c("recordRefundPlanV2","businessId",n),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",s),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(n,e,s,t={})=>{c("refundOnlineOrder","businessId",n),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},refundOnlineOrderV2:async(n,e,s,t={})=>{c("refundOnlineOrderV2","businessId",n),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(n,e,s,t,r={})=>{c("resolveRefundChoice","businessId",n),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(n))).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,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},resolveRefundChoiceV2:async(n,e,s,t,r={})=>{c("resolveRefundChoiceV2","businessId",n),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",s),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},startProcessPlan:async(n,e,s,t={})=>{c("startProcessPlan","businessId",n),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},startProcessPlanV2:async(n,e,s,t={})=>{c("startProcessPlanV2","businessId",n),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},M=function(a){let n=as(a);return{async cancelPlan(e,s,t,r){let o=await n.cancelPlan(e,s,t,r);return P(o,h,p,a)},async cancelPlanV2(e,s,t,r){let o=await n.cancelPlanV2(e,s,t,r);return P(o,h,p,a)},async createRefundPlan(e,s,t,r){let o=await n.createRefundPlan(e,s,t,r);return P(o,h,p,a)},async createRefundPlanV2(e,s,t,r){let o=await n.createRefundPlanV2(e,s,t,r);return P(o,h,p,a)},async getRefundPlan(e,s,t,r){let o=await n.getRefundPlan(e,s,t,r);return P(o,h,p,a)},async getRefundPlanV2(e,s,t,r){let o=await n.getRefundPlanV2(e,s,t,r);return P(o,h,p,a)},async recordRefundPlan(e,s,t,r,o){let i=await n.recordRefundPlan(e,s,t,r,o);return P(i,h,p,a)},async recordRefundPlanV2(e,s,t,r,o){let i=await n.recordRefundPlanV2(e,s,t,r,o);return P(i,h,p,a)},async refundOnlineOrder(e,s,t,r){let o=await n.refundOnlineOrder(e,s,t,r);return P(o,h,p,a)},async refundOnlineOrderV2(e,s,t,r){let o=await n.refundOnlineOrderV2(e,s,t,r);return P(o,h,p,a)},async resolveRefundChoice(e,s,t,r,o){let i=await n.resolveRefundChoice(e,s,t,r,o);return P(i,h,p,a)},async resolveRefundChoiceV2(e,s,t,r,o){let i=await n.resolveRefundChoiceV2(e,s,t,r,o);return P(i,h,p,a)},async startProcessPlan(e,s,t,r){let o=await n.startProcessPlan(e,s,t,r);return P(o,h,p,a)},async startProcessPlanV2(e,s,t,r){let o=await n.startProcessPlanV2(e,s,t,r);return P(o,h,p,a)}}},To=function(a,n,e){let s=M(a);return{cancelPlan(t,r,o,i){return s.cancelPlan(t,r,o,i).then(l=>l(e,n))},cancelPlanV2(t,r,o,i){return s.cancelPlanV2(t,r,o,i).then(l=>l(e,n))},createRefundPlan(t,r,o,i){return s.createRefundPlan(t,r,o,i).then(l=>l(e,n))},createRefundPlanV2(t,r,o,i){return s.createRefundPlanV2(t,r,o,i).then(l=>l(e,n))},getRefundPlan(t,r,o,i){return s.getRefundPlan(t,r,o,i).then(l=>l(e,n))},getRefundPlanV2(t,r,o,i){return s.getRefundPlanV2(t,r,o,i).then(l=>l(e,n))},recordRefundPlan(t,r,o,i,l){return s.recordRefundPlan(t,r,o,i,l).then(u=>u(e,n))},recordRefundPlanV2(t,r,o,i,l){return s.recordRefundPlanV2(t,r,o,i,l).then(u=>u(e,n))},refundOnlineOrder(t,r,o,i){return s.refundOnlineOrder(t,r,o,i).then(l=>l(e,n))},refundOnlineOrderV2(t,r,o,i){return s.refundOnlineOrderV2(t,r,o,i).then(l=>l(e,n))},resolveRefundChoice(t,r,o,i,l){return s.resolveRefundChoice(t,r,o,i,l).then(u=>u(e,n))},resolveRefundChoiceV2(t,r,o,i,l){return s.resolveRefundChoiceV2(t,r,o,i,l).then(u=>u(e,n))},startProcessPlan(t,r,o,i){return s.startProcessPlan(t,r,o,i).then(l=>l(e,n))},startProcessPlanV2(t,r,o,i){return s.startProcessPlanV2(t,r,o,i).then(l=>l(e,n))}}},ot=class extends S{cancelPlan(n,e,s,t){return M(this.configuration).cancelPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}cancelPlanV2(n,e,s,t){return M(this.configuration).cancelPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(n,e,s,t){return M(this.configuration).createRefundPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlanV2(n,e,s,t){return M(this.configuration).createRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(n,e,s,t){return M(this.configuration).getRefundPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlanV2(n,e,s,t){return M(this.configuration).getRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(n,e,s,t,r){return M(this.configuration).recordRefundPlan(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(n,e,s,t,r){return M(this.configuration).recordRefundPlanV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(n,e,s,t){return M(this.configuration).refundOnlineOrder(n,e,s,t).then(r=>r(this.axios,this.basePath))}refundOnlineOrderV2(n,e,s,t){return M(this.configuration).refundOnlineOrderV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(n,e,s,t,r){return M(this.configuration).resolveRefundChoice(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(n,e,s,t,r){return M(this.configuration).resolveRefundChoiceV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(n,e,s,t){return M(this.configuration).startProcessPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}startProcessPlanV2(n,e,s,t){return M(this.configuration).startProcessPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}},is=function(a){return{getEndOfDayReportV5:async(n,e,s,t,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",n);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),s!==void 0&&(R.start=s),t!==void 0&&(R.end=t),n&&(R.businessIds=n),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(n,e,s,t,r,o={})=>{c("getPOSEndOfDayReportV4","businessIds",n);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),n&&(x.businessIds=n),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(n,e,s,t,r,o,i={})=>{c("sendReportEmailV4","businessIds",n),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={},R={};t!==void 0&&(R.timeSpan=t),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),n&&(R.businessIds=n),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},A.data=b(s,A,a),{url:y(u),options:A}},sendReportEmailV5:async(n,e,s,t,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",n),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},R={},C={};t!==void 0&&(C.timeSpan=t),r!==void 0&&(C.start=r),o!==void 0&&(C.end=o),n&&(C.businessIds=n),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),R["Content-Type"]="application/json",g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},x.data=b(s,x,a),{url:y(d),options:x}}}},re=function(a){let n=is(a);return{async getEndOfDayReportV5(e,s,t,r,o,i,l){let u=await n.getEndOfDayReportV5(e,s,t,r,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,s,t,r,o,i){let l=await n.getPOSEndOfDayReportV4(e,s,t,r,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,s,t,r,o,i,l){let u=await n.sendReportEmailV4(e,s,t,r,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,s,t,r,o,i,l,u){let d=await n.sendReportEmailV5(e,s,t,r,o,i,l,u);return P(d,h,p,a)}}},qo=function(a,n,e){let s=re(a);return{getEndOfDayReportV5(t,r,o,i,l,u,d){return s.getEndOfDayReportV5(t,r,o,i,l,u,d).then(A=>A(e,n))},getPOSEndOfDayReportV4(t,r,o,i,l,u){return s.getPOSEndOfDayReportV4(t,r,o,i,l,u).then(d=>d(e,n))},sendReportEmailV4(t,r,o,i,l,u,d){return s.sendReportEmailV4(t,r,o,i,l,u,d).then(A=>A(e,n))},sendReportEmailV5(t,r,o,i,l,u,d,A){return s.sendReportEmailV5(t,r,o,i,l,u,d,A).then(x=>x(e,n))}}},at=class extends S{getEndOfDayReportV5(n,e,s,t,r,o,i){return re(this.configuration).getEndOfDayReportV5(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(n,e,s,t,r,o){return re(this.configuration).getPOSEndOfDayReportV4(n,e,s,t,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(n,e,s,t,r,o,i){return re(this.configuration).sendReportEmailV4(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(n,e,s,t,r,o,i,l){return re(this.configuration).sendReportEmailV5(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},ls=function(a){return{createReservation:async(n,e={})=>{c("createReservation","createReservationDto",n);let s="/api/v1/reservations",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getReservationAvailability:async(n,e,s,t,r,o={})=>{c("getReservationAvailability","businessId",n),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 f(A,a),n!==void 0&&(x.businessId=n),e!==void 0&&(x.date=e),s!==void 0&&(x.partySize=s),t!==void 0&&(x.sectionId=t),r!==void 0&&(x.excludeReservationId=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},getReservationPolicy:async(n,e={})=>{c("getReservationPolicy","businessId",n);let s="/api/v1/reservations/policy",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},linkReservationIntegration:async(n,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",n);let s="/api/v1/reservations/link",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},listReservations:async(n,e,s,t={})=>{c("listReservations","businessId",n);let r="/api/v1/reservations",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},reservationInboundWebhook:async(n,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",n);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},unlinkReservationIntegration:async(n,e={})=>{c("unlinkReservationIntegration","businessId",n);let s="/api/v1/reservations/link",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateReservation:async(n,e,s,t={})=>{c("updateReservation","id",n),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let r="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateReservationPolicy:async(n,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",n);let s="/api/v1/reservations/policy",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updateReservationStatus:async(n,e,s,t={})=>{c("updateReservationStatus","id",n),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let r="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},N=function(a){let n=ls(a);return{async createReservation(e,s){let t=await n.createReservation(e,s);return P(t,h,p,a)},async getReservationAvailability(e,s,t,r,o,i){let l=await n.getReservationAvailability(e,s,t,r,o,i);return P(l,h,p,a)},async getReservationPolicy(e,s){let t=await n.getReservationPolicy(e,s);return P(t,h,p,a)},async linkReservationIntegration(e,s){let t=await n.linkReservationIntegration(e,s);return P(t,h,p,a)},async listReservations(e,s,t,r){let o=await n.listReservations(e,s,t,r);return P(o,h,p,a)},async reservationInboundWebhook(e,s){let t=await n.reservationInboundWebhook(e,s);return P(t,h,p,a)},async unlinkReservationIntegration(e,s){let t=await n.unlinkReservationIntegration(e,s);return P(t,h,p,a)},async updateReservation(e,s,t,r){let o=await n.updateReservation(e,s,t,r);return P(o,h,p,a)},async updateReservationPolicy(e,s){let t=await n.updateReservationPolicy(e,s);return P(t,h,p,a)},async updateReservationStatus(e,s,t,r){let o=await n.updateReservationStatus(e,s,t,r);return P(o,h,p,a)}}},Uo=function(a,n,e){let s=N(a);return{createReservation(t,r){return s.createReservation(t,r).then(o=>o(e,n))},getReservationAvailability(t,r,o,i,l,u){return s.getReservationAvailability(t,r,o,i,l,u).then(d=>d(e,n))},getReservationPolicy(t,r){return s.getReservationPolicy(t,r).then(o=>o(e,n))},linkReservationIntegration(t,r){return s.linkReservationIntegration(t,r).then(o=>o(e,n))},listReservations(t,r,o,i){return s.listReservations(t,r,o,i).then(l=>l(e,n))},reservationInboundWebhook(t,r){return s.reservationInboundWebhook(t,r).then(o=>o(e,n))},unlinkReservationIntegration(t,r){return s.unlinkReservationIntegration(t,r).then(o=>o(e,n))},updateReservation(t,r,o,i){return s.updateReservation(t,r,o,i).then(l=>l(e,n))},updateReservationPolicy(t,r){return s.updateReservationPolicy(t,r).then(o=>o(e,n))},updateReservationStatus(t,r,o,i){return s.updateReservationStatus(t,r,o,i).then(l=>l(e,n))}}},it=class extends S{createReservation(n,e){return N(this.configuration).createReservation(n,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(n,e,s,t,r,o){return N(this.configuration).getReservationAvailability(n,e,s,t,r,o).then(i=>i(this.axios,this.basePath))}getReservationPolicy(n,e){return N(this.configuration).getReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(n,e){return N(this.configuration).linkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}listReservations(n,e,s,t){return N(this.configuration).listReservations(n,e,s,t).then(r=>r(this.axios,this.basePath))}reservationInboundWebhook(n,e){return N(this.configuration).reservationInboundWebhook(n,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(n,e){return N(this.configuration).unlinkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}updateReservation(n,e,s,t){return N(this.configuration).updateReservation(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateReservationPolicy(n,e){return N(this.configuration).updateReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(n,e,s,t){return N(this.configuration).updateReservationStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},us=function(a){return{clockIn:async(n,e,s={})=>{c("clockIn","businessId",n),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},clockOut:async(n,e,s={})=>{c("clockOut","businessId",n),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getTodayShift:async(n,e,s={})=>{c("getTodayShift","businessId",n),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},unlock:async(n,e,s={})=>{c("unlock","businessId",n),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},oe=function(a){let n=us(a);return{async clockIn(e,s,t){let r=await n.clockIn(e,s,t);return P(r,h,p,a)},async clockOut(e,s,t){let r=await n.clockOut(e,s,t);return P(r,h,p,a)},async getTodayShift(e,s,t){let r=await n.getTodayShift(e,s,t);return P(r,h,p,a)},async unlock(e,s,t){let r=await n.unlock(e,s,t);return P(r,h,p,a)}}},Eo=function(a,n,e){let s=oe(a);return{clockIn(t,r,o){return s.clockIn(t,r,o).then(i=>i(e,n))},clockOut(t,r,o){return s.clockOut(t,r,o).then(i=>i(e,n))},getTodayShift(t,r,o){return s.getTodayShift(t,r,o).then(i=>i(e,n))},unlock(t,r,o){return s.unlock(t,r,o).then(i=>i(e,n))}}},lt=class extends S{clockIn(n,e,s){return oe(this.configuration).clockIn(n,e,s).then(t=>t(this.axios,this.basePath))}clockOut(n,e,s){return oe(this.configuration).clockOut(n,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(n,e,s){return oe(this.configuration).getTodayShift(n,e,s).then(t=>t(this.axios,this.basePath))}unlock(n,e,s){return oe(this.configuration).unlock(n,e,s).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{deactivateStation:async(n={})=>{let e="/api/v1/station/deactivate",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getStation:async(n={})=>{let e="/api/v1/station",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},syncStation:async(n,e={})=>{c("syncStation","syncStationDto",n);let s="/api/v1/station/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},me=function(a){let n=cs(a);return{async deactivateStation(e){let s=await n.deactivateStation(e);return P(s,h,p,a)},async getStation(e){let s=await n.getStation(e);return P(s,h,p,a)},async syncStation(e,s){let t=await n.syncStation(e,s);return P(t,h,p,a)}}},Bo=function(a,n,e){let s=me(a);return{deactivateStation(t){return s.deactivateStation(t).then(r=>r(e,n))},getStation(t){return s.getStation(t).then(r=>r(e,n))},syncStation(t,r){return s.syncStation(t,r).then(o=>o(e,n))}}},ut=class extends S{deactivateStation(n){return me(this.configuration).deactivateStation(n).then(e=>e(this.axios,this.basePath))}getStation(n){return me(this.configuration).getStation(n).then(e=>e(this.axios,this.basePath))}syncStation(n,e){return me(this.configuration).syncStation(n,e).then(s=>s(this.axios,this.basePath))}},ds=function(a){return{connectTerminal:async(n,e={})=>{c("connectTerminal","connectTerminalDto",n);let s="/api/v1/terminal/connect",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},disconnectTerminal:async(n={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},discoverTerminal:async(n,e={})=>{c("discoverTerminal","discoverTerminalDto",n);let s="/api/v1/terminal/discover",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getTerminalStatus:async(n,e,s,t={})=>{c("getTerminalStatus","businessId",n),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",s);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,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),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},ae=function(a){let n=ds(a);return{async connectTerminal(e,s){let t=await n.connectTerminal(e,s);return P(t,h,p,a)},async disconnectTerminal(e){let s=await n.disconnectTerminal(e);return P(s,h,p,a)},async discoverTerminal(e,s){let t=await n.discoverTerminal(e,s);return P(t,h,p,a)},async getTerminalStatus(e,s,t,r){let o=await n.getTerminalStatus(e,s,t,r);return P(o,h,p,a)}}},Mo=function(a,n,e){let s=ae(a);return{connectTerminal(t,r){return s.connectTerminal(t,r).then(o=>o(e,n))},disconnectTerminal(t){return s.disconnectTerminal(t).then(r=>r(e,n))},discoverTerminal(t,r){return s.discoverTerminal(t,r).then(o=>o(e,n))},getTerminalStatus(t,r,o,i){return s.getTerminalStatus(t,r,o,i).then(l=>l(e,n))}}},ct=class extends S{connectTerminal(n,e){return ae(this.configuration).connectTerminal(n,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(n){return ae(this.configuration).disconnectTerminal(n).then(e=>e(this.axios,this.basePath))}discoverTerminal(n,e){return ae(this.configuration).discoverTerminal(n,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(n,e,s,t){return ae(this.configuration).getTerminalStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},ps=function(a){return{getUserBusinessV1:async(n={})=>{let e="/api/v1/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getUserBusinessV2:async(n={})=>{let e="/api/v2/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getUserInfoV1:async(n={})=>{let e="/api/v1/user",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},ge=function(a){let n=ps(a);return{async getUserBusinessV1(e){let s=await n.getUserBusinessV1(e);return P(s,h,p,a)},async getUserBusinessV2(e){let s=await n.getUserBusinessV2(e);return P(s,h,p,a)},async getUserInfoV1(e){let s=await n.getUserInfoV1(e);return P(s,h,p,a)}}},ko=function(a,n,e){let s=ge(a);return{getUserBusinessV1(t){return s.getUserBusinessV1(t).then(r=>r(e,n))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(r=>r(e,n))},getUserInfoV1(t){return s.getUserInfoV1(t).then(r=>r(e,n))}}},dt=class extends S{getUserBusinessV1(n){return ge(this.configuration).getUserBusinessV1(n).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(n){return ge(this.configuration).getUserBusinessV2(n).then(e=>e(this.axios,this.basePath))}getUserInfoV1(n){return ge(this.configuration).getUserInfoV1(n).then(e=>e(this.axios,this.basePath))}},ms=function(a){return{upsert:async(n,e={})=>{c("upsert","body",n);let s="/api/v1/vendure/seller/upsert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},ft=function(a){let n=ms(a);return{async upsert(e,s){let t=await n.upsert(e,s);return P(t,h,p,a)}}},wo=function(a,n,e){let s=ft(a);return{upsert(t,r){return s.upsert(t,r).then(o=>o(e,n))}}},pt=class extends S{upsert(n,e){return ft(this.configuration).upsert(n,e).then(s=>s(this.axios,this.basePath))}},gs=function(a){return{createVivaAppToAppPayment:async(n,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",n);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getVivaSession:async(n,e={})=>{c("getVivaSession","id",n);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listVivaSessions:async(n,e,s,t,r,o,i,l={})=>{c("listVivaSessions","businessId",n);let u="/api/v1/viva/sessions",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};n!==void 0&&(C.businessId=n),e!==void 0&&(C.page=e),s!==void 0&&(C.rowPerPage=s),t!==void 0&&(C.terminalId=t),r!==void 0&&(C.timeSpan=r),o!==void 0&&(C.start=o),i!==void 0&&(C.end=i),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},refundVivaPayment:async(n,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",n);let s="/api/v1/viva/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},ie=function(a){let n=gs(a);return{async createVivaAppToAppPayment(e,s){let t=await n.createVivaAppToAppPayment(e,s);return P(t,h,p,a)},async getVivaSession(e,s){let t=await n.getVivaSession(e,s);return P(t,h,p,a)},async listVivaSessions(e,s,t,r,o,i,l,u){let d=await n.listVivaSessions(e,s,t,r,o,i,l,u);return P(d,h,p,a)},async refundVivaPayment(e,s){let t=await n.refundVivaPayment(e,s);return P(t,h,p,a)}}},Lo=function(a,n,e){let s=ie(a);return{createVivaAppToAppPayment(t,r){return s.createVivaAppToAppPayment(t,r).then(o=>o(e,n))},getVivaSession(t,r){return s.getVivaSession(t,r).then(o=>o(e,n))},listVivaSessions(t,r,o,i,l,u,d,A){return s.listVivaSessions(t,r,o,i,l,u,d,A).then(x=>x(e,n))},refundVivaPayment(t,r){return s.refundVivaPayment(t,r).then(o=>o(e,n))}}},mt=class extends S{createVivaAppToAppPayment(n,e){return ie(this.configuration).createVivaAppToAppPayment(n,e).then(s=>s(this.axios,this.basePath))}getVivaSession(n,e){return ie(this.configuration).getVivaSession(n,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(n,e,s,t,r,o,i,l){return ie(this.configuration).listVivaSessions(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(n,e){return ie(this.configuration).refundVivaPayment(n,e).then(s=>s(this.axios,this.basePath))}},ys=function(a){return{handleAssignmentWebhook:async(n={})=>{let e="/api/webhook/add-employee-assignments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleBusinessWebhook:async(n={})=>{let e="/api/webhook/add-business",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleFoodoraEvent:async(n,e={})=>{c("handleFoodoraEvent","orderUpdateDto",n);let s="/api/webhook/order/event",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleLoadEmployee:async(n={})=>{let e="/api/webhook/load-employee",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsEvents:async(n={})=>{let e="/api/webhook/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsEventsV2:async(n={})=>{let e="/api/webhook/v2/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsSessionEvents:async(n={})=>{let e="/api/webhook/nets/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsSessionEventsForClientToken:async(n,e={})=>{c("handleNetsSessionEventsForClientToken","clientToken",n);let s="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handlePreorderReminder:async(n,e={})=>{c("handlePreorderReminder","preOrderReminderDto",n);let s="/api/webhook/preorder-reminder",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleRoleWebhook:async(n={})=>{let e="/api/webhook/add-roles",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleShiftWebhook:async(n={})=>{let e="/api/webhook/add-employee-shifts",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleVivaEvents:async(n,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/verification",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleVivaSessionEvents:async(n,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/payments",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleWebhook:async(n={})=>{let e="/api/webhook/ship-day",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleWoltDriveEvent:async(n={})=>{let e="/api/webhook/wolt-drive/event",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleWoltDriveEventByCountry:async(n,e={})=>{c("handleWoltDriveEventByCountry","country",n);let s="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(n={})=>{let e="/api/webhook/worldline/events",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleWorldlineSessionEvents:async(n={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},processDispatchTask:async(n,e,s={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",n),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};n!=null&&(l["x-cloudtasks-taskretrycount"]=String(n)),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},processPosOrderActionsQueue:async(n,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",n);let s="/api/webhook/pos/order-actions/process",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updateWoltProduct:async(n={})=>{let e="/api/webhook/wolt/product/edit",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},verifyVivaSessionWebhook:async(n={})=>{let e="/api/webhook/viva/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},verifyVivaWebhook:async(n={})=>{let e="/api/webhook/viva/verification",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},q=function(a){let n=ys(a);return{async handleAssignmentWebhook(e){let s=await n.handleAssignmentWebhook(e);return P(s,h,p,a)},async handleBusinessWebhook(e){let s=await n.handleBusinessWebhook(e);return P(s,h,p,a)},async handleFoodoraEvent(e,s){let t=await n.handleFoodoraEvent(e,s);return P(t,h,p,a)},async handleLoadEmployee(e){let s=await n.handleLoadEmployee(e);return P(s,h,p,a)},async handleNetsEvents(e){let s=await n.handleNetsEvents(e);return P(s,h,p,a)},async handleNetsEventsV2(e){let s=await n.handleNetsEventsV2(e);return P(s,h,p,a)},async handleNetsSessionEvents(e){let s=await n.handleNetsSessionEvents(e);return P(s,h,p,a)},async handleNetsSessionEventsForClientToken(e,s){let t=await n.handleNetsSessionEventsForClientToken(e,s);return P(t,h,p,a)},async handlePreorderReminder(e,s){let t=await n.handlePreorderReminder(e,s);return P(t,h,p,a)},async handleRoleWebhook(e){let s=await n.handleRoleWebhook(e);return P(s,h,p,a)},async handleShiftWebhook(e){let s=await n.handleShiftWebhook(e);return P(s,h,p,a)},async handleVivaEvents(e,s){let t=await n.handleVivaEvents(e,s);return P(t,h,p,a)},async handleVivaSessionEvents(e,s){let t=await n.handleVivaSessionEvents(e,s);return P(t,h,p,a)},async handleWebhook(e){let s=await n.handleWebhook(e);return P(s,h,p,a)},async handleWoltDriveEvent(e){let s=await n.handleWoltDriveEvent(e);return P(s,h,p,a)},async handleWoltDriveEventByCountry(e,s){let t=await n.handleWoltDriveEventByCountry(e,s);return P(t,h,p,a)},async handleWorldlineEvents(e){let s=await n.handleWorldlineEvents(e);return P(s,h,p,a)},async handleWorldlineSessionEvents(e){let s=await n.handleWorldlineSessionEvents(e);return P(s,h,p,a)},async processDispatchTask(e,s,t){let r=await n.processDispatchTask(e,s,t);return P(r,h,p,a)},async processPosOrderActionsQueue(e,s){let t=await n.processPosOrderActionsQueue(e,s);return P(t,h,p,a)},async updateWoltProduct(e){let s=await n.updateWoltProduct(e);return P(s,h,p,a)},async verifyVivaSessionWebhook(e){let s=await n.verifyVivaSessionWebhook(e);return P(s,h,p,a)},async verifyVivaWebhook(e){let s=await n.verifyVivaWebhook(e);return P(s,h,p,a)}}},Fo=function(a,n,e){let s=q(a);return{handleAssignmentWebhook(t){return s.handleAssignmentWebhook(t).then(r=>r(e,n))},handleBusinessWebhook(t){return s.handleBusinessWebhook(t).then(r=>r(e,n))},handleFoodoraEvent(t,r){return s.handleFoodoraEvent(t,r).then(o=>o(e,n))},handleLoadEmployee(t){return s.handleLoadEmployee(t).then(r=>r(e,n))},handleNetsEvents(t){return s.handleNetsEvents(t).then(r=>r(e,n))},handleNetsEventsV2(t){return s.handleNetsEventsV2(t).then(r=>r(e,n))},handleNetsSessionEvents(t){return s.handleNetsSessionEvents(t).then(r=>r(e,n))},handleNetsSessionEventsForClientToken(t,r){return s.handleNetsSessionEventsForClientToken(t,r).then(o=>o(e,n))},handlePreorderReminder(t,r){return s.handlePreorderReminder(t,r).then(o=>o(e,n))},handleRoleWebhook(t){return s.handleRoleWebhook(t).then(r=>r(e,n))},handleShiftWebhook(t){return s.handleShiftWebhook(t).then(r=>r(e,n))},handleVivaEvents(t,r){return s.handleVivaEvents(t,r).then(o=>o(e,n))},handleVivaSessionEvents(t,r){return s.handleVivaSessionEvents(t,r).then(o=>o(e,n))},handleWebhook(t){return s.handleWebhook(t).then(r=>r(e,n))},handleWoltDriveEvent(t){return s.handleWoltDriveEvent(t).then(r=>r(e,n))},handleWoltDriveEventByCountry(t,r){return s.handleWoltDriveEventByCountry(t,r).then(o=>o(e,n))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(r=>r(e,n))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(r=>r(e,n))},processDispatchTask(t,r,o){return s.processDispatchTask(t,r,o).then(i=>i(e,n))},processPosOrderActionsQueue(t,r){return s.processPosOrderActionsQueue(t,r).then(o=>o(e,n))},updateWoltProduct(t){return s.updateWoltProduct(t).then(r=>r(e,n))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(r=>r(e,n))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(r=>r(e,n))}}},gt=class extends S{handleAssignmentWebhook(n){return q(this.configuration).handleAssignmentWebhook(n).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(n){return q(this.configuration).handleBusinessWebhook(n).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(n,e){return q(this.configuration).handleFoodoraEvent(n,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(n){return q(this.configuration).handleLoadEmployee(n).then(e=>e(this.axios,this.basePath))}handleNetsEvents(n){return q(this.configuration).handleNetsEvents(n).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(n){return q(this.configuration).handleNetsEventsV2(n).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(n){return q(this.configuration).handleNetsSessionEvents(n).then(e=>e(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(n,e){return q(this.configuration).handleNetsSessionEventsForClientToken(n,e).then(s=>s(this.axios,this.basePath))}handlePreorderReminder(n,e){return q(this.configuration).handlePreorderReminder(n,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(n){return q(this.configuration).handleRoleWebhook(n).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(n){return q(this.configuration).handleShiftWebhook(n).then(e=>e(this.axios,this.basePath))}handleVivaEvents(n,e){return q(this.configuration).handleVivaEvents(n,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(n,e){return q(this.configuration).handleVivaSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleWebhook(n){return q(this.configuration).handleWebhook(n).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(n){return q(this.configuration).handleWoltDriveEvent(n).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(n,e){return q(this.configuration).handleWoltDriveEventByCountry(n,e).then(s=>s(this.axios,this.basePath))}handleWorldlineEvents(n){return q(this.configuration).handleWorldlineEvents(n).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(n){return q(this.configuration).handleWorldlineSessionEvents(n).then(e=>e(this.axios,this.basePath))}processDispatchTask(n,e,s){return q(this.configuration).processDispatchTask(n,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(n,e){return q(this.configuration).processPosOrderActionsQueue(n,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(n){return q(this.configuration).updateWoltProduct(n).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(n){return q(this.configuration).verifyVivaSessionWebhook(n).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(n){return q(this.configuration).verifyVivaWebhook(n).then(e=>e(this.axios,this.basePath))}},Ps=function(a){return{cancelPayment:async(n,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",n);let s="/api/v1/worldline/payment/cancel",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createPayment:async(n,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",n);let s="/api/v1/worldline/payment",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createRefund:async(n,e={})=>{c("createRefund","createWorldlineRefundDto",n);let s="/api/v1/worldline/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},ye=function(a){let n=Ps(a);return{async cancelPayment(e,s){let t=await n.cancelPayment(e,s);return P(t,h,p,a)},async createPayment(e,s){let t=await n.createPayment(e,s);return P(t,h,p,a)},async createRefund(e,s){let t=await n.createRefund(e,s);return P(t,h,p,a)}}},_o=function(a,n,e){let s=ye(a);return{cancelPayment(t,r){return s.cancelPayment(t,r).then(o=>o(e,n))},createPayment(t,r){return s.createPayment(t,r).then(o=>o(e,n))},createRefund(t,r){return s.createRefund(t,r).then(o=>o(e,n))}}},yt=class extends S{cancelPayment(n,e){return ye(this.configuration).cancelPayment(n,e).then(s=>s(this.axios,this.basePath))}createPayment(n,e){return ye(this.configuration).createPayment(n,e).then(s=>s(this.axios,this.basePath))}createRefund(n,e){return ye(this.configuration).createRefund(n,e).then(s=>s(this.axios,this.basePath))}},hs=function(a){return{createPaymentRequest:async(n,e,s={})=>{c("createPaymentRequest","terminalId",n),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},createRefundRequest:async(n,e,s={})=>{c("createRefundRequest","terminalId",n),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getPaymentResult:async(n,e={})=>{c("getPaymentResult","operationId",n);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(n,e,s={})=>{c("getTerminalAuthContext","terminalId",n),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getTerminalContext:async(n,e,s={})=>{c("getTerminalContext","terminalId",n),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getTerminalState:async(n,e={})=>{c("getTerminalState","terminalId",n);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(n={})=>{let e="/api/v2/worldline/internal/callback",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},H=function(a){let n=hs(a);return{async createPaymentRequest(e,s,t){let r=await n.createPaymentRequest(e,s,t);return P(r,h,p,a)},async createRefundRequest(e,s,t){let r=await n.createRefundRequest(e,s,t);return P(r,h,p,a)},async getPaymentResult(e,s){let t=await n.getPaymentResult(e,s);return P(t,h,p,a)},async getTerminalAuthContext(e,s,t){let r=await n.getTerminalAuthContext(e,s,t);return P(r,h,p,a)},async getTerminalContext(e,s,t){let r=await n.getTerminalContext(e,s,t);return P(r,h,p,a)},async getTerminalState(e,s){let t=await n.getTerminalState(e,s);return P(t,h,p,a)},async handleCallback(e){let s=await n.handleCallback(e);return P(s,h,p,a)}}},No=function(a,n,e){let s=H(a);return{createPaymentRequest(t,r,o){return s.createPaymentRequest(t,r,o).then(i=>i(e,n))},createRefundRequest(t,r,o){return s.createRefundRequest(t,r,o).then(i=>i(e,n))},getPaymentResult(t,r){return s.getPaymentResult(t,r).then(o=>o(e,n))},getTerminalAuthContext(t,r,o){return s.getTerminalAuthContext(t,r,o).then(i=>i(e,n))},getTerminalContext(t,r,o){return s.getTerminalContext(t,r,o).then(i=>i(e,n))},getTerminalState(t,r){return s.getTerminalState(t,r).then(o=>o(e,n))},handleCallback(t){return s.handleCallback(t).then(r=>r(e,n))}}},Pt=class extends S{createPaymentRequest(n,e,s){return H(this.configuration).createPaymentRequest(n,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(n,e,s){return H(this.configuration).createRefundRequest(n,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(n,e){return H(this.configuration).getPaymentResult(n,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(n,e,s){return H(this.configuration).getTerminalAuthContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(n,e,s){return H(this.configuration).getTerminalContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(n,e){return H(this.configuration).getTerminalState(n,e).then(s=>s(this.axios,this.basePath))}handleCallback(n){return H(this.configuration).handleCallback(n).then(e=>e(this.axios,this.basePath))}};var Rt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(n={}){this.apiKey=n.apiKey,this.username=n.username,this.password=n.password,this.accessToken=n.accessToken,this.basePath=n.basePath,this.baseOptions=n.baseOptions,this.formDataCtor=n.formDataCtor}isJsonMime(n){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return n!==null&&(e.test(n)||n.toLowerCase()==="application/json-patch+json")}};var As={[le.Eur]:2,[le.Aed]:2,[le.Usd]:2,[le.Gbp]:2,BHD:3,JPY:0},$o={getMultiplier(a){let n=As[a.toUpperCase()];return typeof n!="number"?100:Math.round(10**n)}};import Pe from"lodash";var De=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),bs=a=>{let n=a.subcategories;return Array.isArray(n)?n:[]},xs=(a,n)=>({...a,colorCode:a.colorCode??n}),fs=(a,n)=>Pe.compact(a.map(e=>n.get(e))),Ct=(a,n)=>a.flatMap(e=>{let s=n[e];return s?[e,...Ct(s.childIds,n)]:[]}),Dt=(a,n)=>a.flatMap(e=>{let s=n[e];return s?.enabled?[e,...Dt(s.childIds,n)]:[]}),Jo=a=>{let n=new Map,e={},s={},t=De(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return n.set(d,xs(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=(R,C)=>{let O=String(R.id),I=o(R.products,u),V=De(bs(R)).map(U=>A(U,O));return s[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:V},O},x=De(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:n,categoriesById:e,subcategoriesById:s,categoryIdsOrder:r}},Xo=(a,n,e,s)=>{let t=n[a];if(!t)return[];let r=Dt(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return fs(o,s)},Zo=(a,n,e)=>{let s=n[a];if(!s)return[];let t=Ct(s.subcategoryIds,e);return Pe.compact(t.map(r=>e[r]))};var Rs="1.9.125";export{Ms as ABLYEVENT,Oe as AblyApi,St as AblyApiAxiosParamCreator,Yr as AblyApiFactory,Ae as AblyApiFp,ks as ActionEnum,Se as ActionPasscodesApi,Vt as ActionPasscodesApiAxiosParamCreator,zr as ActionPasscodesApiFactory,ce as ActionPasscodesApiFp,Ls as ActionsEnum,Ve as AuthApi,It as AuthApiAxiosParamCreator,Jr as AuthApiFactory,X as AuthApiFp,_s as AutonomousVehicleType,Ie as BusinessApi,vt as BusinessApiAxiosParamCreator,Xr as BusinessApiFactory,T as BusinessApiFp,Ns as BusinessBackgroundType,Ws as BusinessEventAction,Gs as BusinessEventType,Ks as BusinessPaymentIntegrationType,ve as BusinessProviderPolicyApi,Tt as BusinessProviderPolicyApiAxiosParamCreator,Zr as BusinessProviderPolicyApiFactory,ht as BusinessProviderPolicyApiFp,Te as BusinessScheduleApi,qt as BusinessScheduleApiAxiosParamCreator,eo as BusinessScheduleApiFactory,At as BusinessScheduleApiFp,Hs as BusinessStatusEnum,Qs as CashLogReason,$s as CashLogType,qe as CashManagementApi,Ut as CashManagementApiAxiosParamCreator,to as CashManagementApiFactory,$ as CashManagementApiFp,Ys as CashSessionDtoEnum,zs as CashSessionStatus,Js as CdsSessionRole,Xs as ChannelEnum,Ue as ChannelMenuApi,Et as ChannelMenuApiAxiosParamCreator,so as ChannelMenuApiFactory,de as ChannelMenuApiFp,Zs as ChargeStatusEnum,en as CheckoutModelEnum,tn as ConditionType,Ee as ConfigManagementApi,Bt as ConfigManagementApiAxiosParamCreator,no as ConfigManagementApiFactory,k as ConfigManagementApiFp,Rt as Configuration,sn as ConsumptionType,Be as CoursesApi,Mt as CoursesApiAxiosParamCreator,ro as CoursesApiFactory,be as CoursesApiFp,le as CurrencyCode,$o as CurrencyRegistry,nn as DayOfWeek,Me as DeliveryIntentApi,kt as DeliveryIntentApiAxiosParamCreator,oo as DeliveryIntentApiFactory,xe as DeliveryIntentApiFp,rn as DeliveryIntentStatus,on as DeliveryStatus,an as DeliveryType,ln as DeviceType,un as DiscountScope,cn as DiscountScopeType,dn as DiscountSourceType,pn as DiscountType,br as DiscountTypeEnum,ke as DisplayApi,wt as DisplayApiAxiosParamCreator,ao as DisplayApiFactory,Z as DisplayApiFp,we as EmployeesApi,Lt as EmployeesApiAxiosParamCreator,io as EmployeesApiFactory,bt as EmployeesApiFp,mn as EntityType,ws as EntityTypeEnum,Fs as EventTypeEnum,Hr as EventTypeIdEnum,gn as FeeType,Le as FloorPlanApi,Ft as FloorPlanApiAxiosParamCreator,lo as FloorPlanApiFactory,w as FloorPlanApiFp,Fe as GiftcardApi,_t as GiftcardApiAxiosParamCreator,uo as GiftcardApiFactory,fe as GiftcardApiFp,_e as HistoryApi,Nt as HistoryApiAxiosParamCreator,co as HistoryApiFactory,ee as HistoryApiFp,yn as IntegrationType,Ne as InvoiceCompaniesApi,jt as InvoiceCompaniesApiAxiosParamCreator,po as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,je as KDSApi,Wt as KDSApiAxiosParamCreator,mo as KDSApiFactory,te as KDSApiFp,Pn as KDSEVENTNAME,hn as KioskEventType,An as KioskLayout,We as KiosksApi,Gt as KiosksApiAxiosParamCreator,go as KiosksApiFactory,J as KiosksApiFp,bn as KitchenItemStatus,xn as KitchenStatus,fn as LocatorType,Rn as LoyaltyActionKey,Ge as LoyaltyIntegerationsApi,Kt as LoyaltyIntegerationsApiAxiosParamCreator,yo as LoyaltyIntegerationsApiFactory,L as LoyaltyIntegerationsApiFp,Rs as MUNCHI_CORE_VERSION,Ke as MenuApi,Ht as MenuApiAxiosParamCreator,Po as MenuApiFactory,z as MenuApiFp,js as MenuTypeEnum,He as MerchantsApi,Qt as MerchantsApiAxiosParamCreator,ho as MerchantsApiFactory,pe as MerchantsApiFp,Qe as MunchiGiftCardApi,$t as MunchiGiftCardApiAxiosParamCreator,Ao as MunchiGiftCardApiFactory,se as MunchiGiftCardApiFp,Nr as NameEnum,Cn as NetsRevertMethod,$e as NotificationApi,Yt as NotificationApiAxiosParamCreator,bo as NotificationApiFactory,Re as NotificationApiFp,Dn as OperatingMode,Fr as OperatingModeEnum,On as OrderFormat,Ye as OrderInternalApi,zt as OrderInternalApiAxiosParamCreator,xo as OrderInternalApiFactory,xt as OrderInternalApiFp,Sn as OrderMode,Vn as OrderRefundStatus,In as OrderSource,vn as OrderStatus,Tn as OrderStatusEnum,qn as OrderType,Un as OrderTypePOS,ze as OrdersApi,Jt as OrdersApiAxiosParamCreator,fo as OrdersApiFactory,B as OrdersApiFp,Je as POSSessionApi,Xt as POSSessionApiAxiosParamCreator,Ro as POSSessionApiFactory,Ce as POSSessionApiFp,Xe as PayTerminalApi,Zt as PayTerminalApiAxiosParamCreator,Co as PayTerminalApiFactory,G as PayTerminalApiFp,En as PayTerminalSessionRole,Ze as PaymentApi,es as PaymentApiAxiosParamCreator,Do as PaymentApiFactory,j as PaymentApiFp,Bn as PaymentApp,Mn as PaymentCheckoutFlow,kn as PaymentEventType,wn as PaymentFailureCode,Ln as PaymentMethod,et as PaymentMethodsApi,ts as PaymentMethodsApiAxiosParamCreator,Oo as PaymentMethodsApiFactory,K as PaymentMethodsApiFp,Fn as PaymentOutcomeStatus,_n as PaymentProvider,Nn as PaymentProviderEnum,jn as PaymentReportingBucket,tt as PaymentSessionApi,ss as PaymentSessionApiAxiosParamCreator,So as PaymentSessionApiFactory,E as PaymentSessionApiFp,Wn as PaymentSessionPurpose,Gn as PaymentSessionStatus,Kn as PaymentStatus,Hn as PaymentTypeEnum,Qn as PosDiscountTargetType,$n as PosDiscountType,Yn as PosPaymentStatus,zn as PosPaymentType,Jn as PosPermission,Xn as PreorderStatus,Zn as PriceType,er as PrinterConnectionType,tr as PrinterModelType,sr as PrinterTypeEnum,st as PrintersApi,ns as PrintersApiAxiosParamCreator,Vo as PrintersApiFactory,F as PrintersApiFp,nt as ProductApi,rs as ProductApiAxiosParamCreator,Io as ProductApiFactory,ne as ProductApiFp,nr as ProductAvailability,rr as ProductDetailLayout,_r as ProductDetailLayoutEnum,or as PromotionDiscountType,rt as ProviderApi,os as ProviderApiAxiosParamCreator,vo as ProviderApiFactory,_ as ProviderApiFp,ar as ProviderEnum,ir as PubSubAction,lr as PubSubTarget,ur as RecordManualStatus,cr as RefundFailureReasonKey,dr as RefundMode,pr as RefundOverallStatus,mr as RefundStatusEnum,gr as RefundStepStatus,ot as RefundsApi,as as RefundsApiAxiosParamCreator,To as RefundsApiFactory,M as RefundsApiFp,at as ReportApi,is as ReportApiAxiosParamCreator,qo as ReportApiFactory,re as ReportApiFp,yr as ReportLanguage,Pr as ReservationSource,hr as ReservationStatus,it as ReservationsApi,ls as ReservationsApiAxiosParamCreator,Uo as ReservationsApiFactory,N as ReservationsApiFp,fr as SYNCKEY,Rr as ScheduleType,xr as ScopeEnum,Lr as SelectedPaymentProviderEnum,lt as ShiftTrackingApi,us as ShiftTrackingApiAxiosParamCreator,Eo as ShiftTrackingApiFactory,oe as ShiftTrackingApiFp,Cr as SimplePaymentStatus,Dr as SourceType,Or as StaffActivityActionType,Sr as StationType,ut as StationsApi,cs as StationsApiAxiosParamCreator,Bo as StationsApiFactory,me as StationsApiFp,Vr as Status,Ir as SystemProfileType,vr as TableGroupType,Tr as TableShape,qr as TableStatus,ct as TerminalApi,ds as TerminalApiAxiosParamCreator,Mo as TerminalApiFactory,ae as TerminalApiFp,Ur as TerminalConnectionType,Er as TimeSpan,Br as TransactionEventType,Mr as TransactionType,kr as Type,wr as UpsellMode,dt as UserApi,ps as UserApiAxiosParamCreator,ko as UserApiFactory,ge as UserApiFp,pt as VendureSellerApi,ms as VendureSellerApiAxiosParamCreator,wo as VendureSellerApiFactory,ft as VendureSellerApiFp,mt as VivaApi,gs as VivaApiAxiosParamCreator,Lo as VivaApiFactory,ie as VivaApiFp,jr as VivaAppToAppPaymentMethod,Wr as VivaCurrencyCode,Gr as VivaErrorId,Kr as VivaEventId,Qr as WalletItemStatus,Ar as WalletStatusEnum,gt as WebhookApi,ys as WebhookApiAxiosParamCreator,Fo as WebhookApiFactory,q as WebhookApiFp,yt as WorldlineApi,Ps as WorldlineApiAxiosParamCreator,_o as WorldlineApiFactory,ye as WorldlineApiFp,Pt as WorldlineInternalApi,hs as WorldlineInternalApiAxiosParamCreator,No as WorldlineInternalApiFactory,H as WorldlineInternalApiFp,$r as WorldlineRevertMethod,Jo as buildPosCategoryIndex,Dt as collectEnabledSubcategoryIdsDepthFirst,Ct as collectSubcategoryIdsDepthFirst,Xo as getCategoryProductsIncludingSubcategories,Zo as getSubcategoriesForCategory,fs as mapProductIdsToProducts};
1
+ import h from"axios";import Ot from"axios";var p="http://localhost".replace(/\/+$/,"");var S=class{constructor(n,e=p,s=Ot){this.basePath=e;this.axios=s;n&&(this.configuration=n,this.basePath=n.basePath||this.basePath)}configuration},ue=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,n,e){if(e==null)throw new ue(n,`Required parameter ${n} was null or undefined when calling ${a}.`)};var f=async function(a,n){if(n&&n.accessToken){let e=typeof n.accessToken=="function"?await n.accessToken():await n.accessToken;a.Authorization="Bearer "+e}};function he(a,n,e=""){n!=null&&(typeof n=="object"?Array.isArray(n)?n.forEach(s=>he(a,s,e)):Object.keys(n).forEach(s=>he(a,n[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,n):a.set(e,n))}var g=function(a,...n){let e=new URLSearchParams(a.search);he(e,n),a.search=e.toString()},b=function(a,n,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,n,e,s){return(t=n,r=e)=>{let o={...a.options,url:(s?.basePath||r)+a.url};return t.request(o)}};var Ms={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync",PosOrderCompleted:"pos.order.completed"},ks={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ws={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ls={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},Fs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},_s={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Ns={Image:"image",Video:"video",Animation:"animation"},js={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ws={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Gs={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Ks={GiftCard:"GiftCard"},Hs={Online:"ONLINE",Offline:"OFFLINE"},Qs={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"},$s={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ys={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},zs={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Js={Pos:"pos",Display:"display"},Xs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Zs={Pending:"pending",Success:"success",Failure:"failure"},en={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},tn={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},sn={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},le={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"},nn={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},rn={Pending:"pending",Dispatched:"dispatched",Failed:"failed"},on={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},an={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},ln={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},un={Item:"ITEM",Cart:"CART"},cn={Business:"BUSINESS",Owner:"OWNER"},dn={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},pn={Percentage:"PERCENTAGE",Fixed:"FIXED"},mn={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},gn={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},yn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Pn={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},hn={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},An={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},bn={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},xn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},fn={Table:"table",Indicator:"indicator"},Rn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Cn={Reversal:"REVERSAL",Refund:"REFUND"},Dn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},On={Open:"OPEN",Instant:"INSTANT"},Sn={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Vn={None:"NONE",Partial:"PARTIAL",Full:"FULL"},In={Platform:"PLATFORM",Pos:"POS"},vn={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Tn={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"},qn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Un={DineIn:"dine_in",PickUp:"pick_up"},En={Pos:"pos",Terminal:"terminal"},Bn={Pos:"munchi_pos",Handheld:"munchi_handheld",Pay:"munchi_pay"},Mn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},kn={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed",Outcome:"payment:outcome",OrderSettled:"payment:order-settled"},wn={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"},Ln={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"},Fn={Uncertain:"Uncertain",Success:"Success",Failed:"Failed"},_n={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Nn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},jn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},Wn={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"},Kn={Paid:"paid",Pending:"pending"},Hn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Qn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},$n={Percentage:"percentage",Fixed:"fixed"},Yn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},zn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Jn={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",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"},Xn={Waiting:"waiting",Confirm:"confirm"},Zn={Preset:"PRESET",Open:"OPEN"},er={Bluetooth:"bluetooth",Network:"network"},tr={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},sr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},nr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},rr={Modal:"MODAL",Screen:"SCREEN"},or={Percentage:"PERCENTAGE",Fixed:"FIXED"},ar={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},ir={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},lr={Kds:"KDS"},ur={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},cr={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},dr={Full:"FULL",Item:"ITEM"},pr={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},mr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},gr={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},yr={Fi:"fi",En:"en"},Pr={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},hr={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},Ar={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},br={Percentage:"PERCENTAGE",Fixed:"FIXED"},xr={Item:"ITEM",Cart:"CART"},fr={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"},Rr={Physical:"PHYSICAL"},Cr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Dr={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Or={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"},Sr={Kiosk:"KIOSK",Pos:"POS"},Vr={Active:"ACTIVE",Inactive:"INACTIVE"},Ir={NoStation:"NO_STATION"},vr={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Tr={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},qr={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Ur={Network:"NETWORK"},Er={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Br={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Mr={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},kr={Instant:"instant",Preorder:"preorder"},wr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Lr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Fr={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},_r={Modal:"MODAL",Screen:"SCREEN"},Nr={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"},jr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Wr={_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"},Gr={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},Kr={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},Hr={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Qr={Claimed:"Claimed",Redeemed:"Redeemed"},$r={Reversal:"REVERSAL",Refund:"REFUND"},St=function(a){return{refreshConfig:async(n={})=>{let e="/api/v1/ably/refresh-config",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},requestSettings:async(n={})=>{let e="/api/v1/ably/request-settings",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},Ae=function(a){let n=St(a);return{async refreshConfig(e){let s=await n.refreshConfig(e);return P(s,h,p,a)},async requestSettings(e){let s=await n.requestSettings(e);return P(s,h,p,a)}}},Yr=function(a,n,e){let s=Ae(a);return{refreshConfig(t){return s.refreshConfig(t).then(r=>r(e,n))},requestSettings(t){return s.requestSettings(t).then(r=>r(e,n))}}},Oe=class extends S{refreshConfig(n){return Ae(this.configuration).refreshConfig(n).then(e=>e(this.axios,this.basePath))}requestSettings(n){return Ae(this.configuration).requestSettings(n).then(e=>e(this.axios,this.basePath))}},Vt=function(a){return{createActionPasscode:async(n,e={})=>{c("createActionPasscode","createActionPasscodeDto",n);let s="/api/v1/action-passcodes",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deleteActionPasscode:async(n,e={})=>{c("deleteActionPasscode","id",n);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(n,e,s={})=>{c("updateActionPasscode","id",n),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},ce=function(a){let n=Vt(a);return{async createActionPasscode(e,s){let t=await n.createActionPasscode(e,s);return P(t,h,p,a)},async deleteActionPasscode(e,s){let t=await n.deleteActionPasscode(e,s);return P(t,h,p,a)},async updateActionPasscode(e,s,t){let r=await n.updateActionPasscode(e,s,t);return P(r,h,p,a)}}},zr=function(a,n,e){let s=ce(a);return{createActionPasscode(t,r){return s.createActionPasscode(t,r).then(o=>o(e,n))},deleteActionPasscode(t,r){return s.deleteActionPasscode(t,r).then(o=>o(e,n))},updateActionPasscode(t,r,o){return s.updateActionPasscode(t,r,o).then(i=>i(e,n))}}},Se=class extends S{createActionPasscode(n,e){return ce(this.configuration).createActionPasscode(n,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(n,e){return ce(this.configuration).deleteActionPasscode(n,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(n,e,s){return ce(this.configuration).updateActionPasscode(n,e,s).then(t=>t(this.axios,this.basePath))}},It=function(a){return{firebaseAuth:async(n={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},login:async(n,e={})=>{c("login","credentialDto",n);let s="/api/v1/auth/login",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},logout:async(n={})=>{let e="/api/v1/auth/logout",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},refreshToken:async(n,e={})=>{c("refreshToken","refreshTokenDto",n);let s="/api/v1/auth/refresh",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},X=function(a){let n=It(a);return{async firebaseAuth(e){let s=await n.firebaseAuth(e);return P(s,h,p,a)},async login(e,s){let t=await n.login(e,s);return P(t,h,p,a)},async logout(e){let s=await n.logout(e);return P(s,h,p,a)},async refreshToken(e,s){let t=await n.refreshToken(e,s);return P(t,h,p,a)}}},Jr=function(a,n,e){let s=X(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(r=>r(e,n))},login(t,r){return s.login(t,r).then(o=>o(e,n))},logout(t){return s.logout(t).then(r=>r(e,n))},refreshToken(t,r){return s.refreshToken(t,r).then(o=>o(e,n))}}},Ve=class extends S{firebaseAuth(n){return X(this.configuration).firebaseAuth(n).then(e=>e(this.axios,this.basePath))}login(n,e){return X(this.configuration).login(n,e).then(s=>s(this.axios,this.basePath))}logout(n){return X(this.configuration).logout(n).then(e=>e(this.axios,this.basePath))}refreshToken(n,e){return X(this.configuration).refreshToken(n,e).then(s=>s(this.axios,this.basePath))}},vt=function(a){return{createBusinessPermission:async(n,e,s={})=>{c("createBusinessPermission","businessId",n),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(n,e,s={})=>{c("deleteBusinessPermission","permissionId",n),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getAdvancedDiscounts:async(n,e={})=>{c("getAdvancedDiscounts","businessId",n);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessCategoriesByMenuId:async(n,e,s={})=>{c("getBusinessCategoriesByMenuId","businessId",n),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",n),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(n,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",n),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(n,e,s={})=>{c("getBusinessChannelConfig","businessId",n);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(n,e,s={})=>{c("getBusinessChannelConfigV2","businessId",n);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfig:async(n,e,s={})=>{c("getBusinessConfig","businessId",n);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfigById:async(n,e,s={})=>{c("getBusinessConfigById","businessId",n);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(n,e,s={})=>{c("getBusinessConfigByIdV2","businessId",n);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessConfiguration:async(n,e,s={})=>{c("getBusinessConfiguration","businessId",n);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByType:async(n,e,s={})=>{c("getBusinessMenuByType","businessId",n),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByTypeV2:async(n,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",n),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByTypeV3:async(n,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",n),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessMenuByTypeV4:async(n,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",n),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(n))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessProviderStatus:async(n,e={})=>{c("getBusinessProviderStatus","businessId",n);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(n,e,s={})=>{c("getBusinessProviderStatusExternal","businessId",n);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getBusinessTax:async(n={})=>{let e="/api/v1/business/tax",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getProvidersSupportedIntegrations:async(n,e={})=>{c("getProvidersSupportedIntegrations","businessIds",n);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n&&(l.businessIds=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(n,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",n),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(n))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(n,e={})=>{c("getUnifiedDiscounts","businessId",n);let s="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(n,e,s={})=>{c("setBusinessStatus","businessId",n),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(n,e,s={})=>{c("setBusinessStatusSchedule","businessId",n),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(n,e,s,t={})=>{c("updateBusinessPermission","permissionId",n),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",s);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await f(u,a),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},validateBusiness:async(n,e={})=>{c("validateBusiness","businessId",n);let s="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let n=vt(a);return{async createBusinessPermission(e,s,t){let r=await n.createBusinessPermission(e,s,t);return P(r,h,p,a)},async deleteBusinessPermission(e,s,t){let r=await n.deleteBusinessPermission(e,s,t);return P(r,h,p,a)},async getAdvancedDiscounts(e,s){let t=await n.getAdvancedDiscounts(e,s);return P(t,h,p,a)},async getBusinessCategoriesByMenuId(e,s,t){let r=await n.getBusinessCategoriesByMenuId(e,s,t);return P(r,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV2(e,s,t);return P(r,h,p,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let r=await n.getBusinessCategoriesByMenuIdV3(e,s,t);return P(r,h,p,a)},async getBusinessChannelConfig(e,s,t){let r=await n.getBusinessChannelConfig(e,s,t);return P(r,h,p,a)},async getBusinessChannelConfigV2(e,s,t){let r=await n.getBusinessChannelConfigV2(e,s,t);return P(r,h,p,a)},async getBusinessConfig(e,s,t){let r=await n.getBusinessConfig(e,s,t);return P(r,h,p,a)},async getBusinessConfigById(e,s,t){let r=await n.getBusinessConfigById(e,s,t);return P(r,h,p,a)},async getBusinessConfigByIdV2(e,s,t){let r=await n.getBusinessConfigByIdV2(e,s,t);return P(r,h,p,a)},async getBusinessConfiguration(e,s,t){let r=await n.getBusinessConfiguration(e,s,t);return P(r,h,p,a)},async getBusinessMenuByType(e,s,t){let r=await n.getBusinessMenuByType(e,s,t);return P(r,h,p,a)},async getBusinessMenuByTypeV2(e,s,t){let r=await n.getBusinessMenuByTypeV2(e,s,t);return P(r,h,p,a)},async getBusinessMenuByTypeV3(e,s,t){let r=await n.getBusinessMenuByTypeV3(e,s,t);return P(r,h,p,a)},async getBusinessMenuByTypeV4(e,s,t){let r=await n.getBusinessMenuByTypeV4(e,s,t);return P(r,h,p,a)},async getBusinessProviderStatus(e,s){let t=await n.getBusinessProviderStatus(e,s);return P(t,h,p,a)},async getBusinessProviderStatusExternal(e,s,t){let r=await n.getBusinessProviderStatusExternal(e,s,t);return P(r,h,p,a)},async getBusinessTax(e){let s=await n.getBusinessTax(e);return P(s,h,p,a)},async getProvidersSupportedIntegrations(e,s){let t=await n.getProvidersSupportedIntegrations(e,s);return P(t,h,p,a)},async getSingleBusinessProviderStatus(e,s,t,r){let o=await n.getSingleBusinessProviderStatus(e,s,t,r);return P(o,h,p,a)},async getUnifiedDiscounts(e,s){let t=await n.getUnifiedDiscounts(e,s);return P(t,h,p,a)},async setBusinessStatus(e,s,t){let r=await n.setBusinessStatus(e,s,t);return P(r,h,p,a)},async setBusinessStatusSchedule(e,s,t){let r=await n.setBusinessStatusSchedule(e,s,t);return P(r,h,p,a)},async updateBusinessPermission(e,s,t,r){let o=await n.updateBusinessPermission(e,s,t,r);return P(o,h,p,a)},async validateBusiness(e,s){let t=await n.validateBusiness(e,s);return P(t,h,p,a)}}},Xr=function(a,n,e){let s=T(a);return{createBusinessPermission(t,r,o){return s.createBusinessPermission(t,r,o).then(i=>i(e,n))},deleteBusinessPermission(t,r,o){return s.deleteBusinessPermission(t,r,o).then(i=>i(e,n))},getAdvancedDiscounts(t,r){return s.getAdvancedDiscounts(t,r).then(o=>o(e,n))},getBusinessCategoriesByMenuId(t,r,o){return s.getBusinessCategoriesByMenuId(t,r,o).then(i=>i(e,n))},getBusinessCategoriesByMenuIdV2(t,r,o){return s.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,n))},getBusinessCategoriesByMenuIdV3(t,r,o){return s.getBusinessCategoriesByMenuIdV3(t,r,o).then(i=>i(e,n))},getBusinessChannelConfig(t,r,o){return s.getBusinessChannelConfig(t,r,o).then(i=>i(e,n))},getBusinessChannelConfigV2(t,r,o){return s.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,n))},getBusinessConfig(t,r,o){return s.getBusinessConfig(t,r,o).then(i=>i(e,n))},getBusinessConfigById(t,r,o){return s.getBusinessConfigById(t,r,o).then(i=>i(e,n))},getBusinessConfigByIdV2(t,r,o){return s.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,n))},getBusinessConfiguration(t,r,o){return s.getBusinessConfiguration(t,r,o).then(i=>i(e,n))},getBusinessMenuByType(t,r,o){return s.getBusinessMenuByType(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV2(t,r,o){return s.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV3(t,r,o){return s.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,n))},getBusinessMenuByTypeV4(t,r,o){return s.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,n))},getBusinessProviderStatus(t,r){return s.getBusinessProviderStatus(t,r).then(o=>o(e,n))},getBusinessProviderStatusExternal(t,r,o){return s.getBusinessProviderStatusExternal(t,r,o).then(i=>i(e,n))},getBusinessTax(t){return s.getBusinessTax(t).then(r=>r(e,n))},getProvidersSupportedIntegrations(t,r){return s.getProvidersSupportedIntegrations(t,r).then(o=>o(e,n))},getSingleBusinessProviderStatus(t,r,o,i){return s.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,n))},getUnifiedDiscounts(t,r){return s.getUnifiedDiscounts(t,r).then(o=>o(e,n))},setBusinessStatus(t,r,o){return s.setBusinessStatus(t,r,o).then(i=>i(e,n))},setBusinessStatusSchedule(t,r,o){return s.setBusinessStatusSchedule(t,r,o).then(i=>i(e,n))},updateBusinessPermission(t,r,o,i){return s.updateBusinessPermission(t,r,o,i).then(l=>l(e,n))},validateBusiness(t,r){return s.validateBusiness(t,r).then(o=>o(e,n))}}},Ie=class extends S{createBusinessPermission(n,e,s){return T(this.configuration).createBusinessPermission(n,e,s).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(n,e,s){return T(this.configuration).deleteBusinessPermission(n,e,s).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(n,e){return T(this.configuration).getAdvancedDiscounts(n,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuId(n,e,s){return T(this.configuration).getBusinessCategoriesByMenuId(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(n,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(n,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(n,e,s){return T(this.configuration).getBusinessChannelConfig(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(n,e,s){return T(this.configuration).getBusinessChannelConfigV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(n,e,s){return T(this.configuration).getBusinessConfig(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(n,e,s){return T(this.configuration).getBusinessConfigById(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(n,e,s){return T(this.configuration).getBusinessConfigByIdV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(n,e,s){return T(this.configuration).getBusinessConfiguration(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(n,e,s){return T(this.configuration).getBusinessMenuByType(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(n,e,s){return T(this.configuration).getBusinessMenuByTypeV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(n,e,s){return T(this.configuration).getBusinessMenuByTypeV3(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(n,e,s){return T(this.configuration).getBusinessMenuByTypeV4(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(n,e){return T(this.configuration).getBusinessProviderStatus(n,e).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatusExternal(n,e,s){return T(this.configuration).getBusinessProviderStatusExternal(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessTax(n){return T(this.configuration).getBusinessTax(n).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(n,e){return T(this.configuration).getProvidersSupportedIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(n,e,s,t){return T(this.configuration).getSingleBusinessProviderStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(n,e){return T(this.configuration).getUnifiedDiscounts(n,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(n,e,s){return T(this.configuration).setBusinessStatus(n,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(n,e,s){return T(this.configuration).setBusinessStatusSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(n,e,s,t){return T(this.configuration).updateBusinessPermission(n,e,s,t).then(r=>r(this.axios,this.basePath))}validateBusiness(n,e){return T(this.configuration).validateBusiness(n,e).then(s=>s(this.axios,this.basePath))}},Tt=function(a){return{updatePosGlobalSettings:async(n,e,s={})=>{c("updatePosGlobalSettings","businessId",n),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},ht=function(a){let n=Tt(a);return{async updatePosGlobalSettings(e,s,t){let r=await n.updatePosGlobalSettings(e,s,t);return P(r,h,p,a)}}},Zr=function(a,n,e){let s=ht(a);return{updatePosGlobalSettings(t,r,o){return s.updatePosGlobalSettings(t,r,o).then(i=>i(e,n))}}},ve=class extends S{updatePosGlobalSettings(n,e,s){return ht(this.configuration).updatePosGlobalSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},qt=function(a){return{upsertSchedule:async(n,e,s={})=>{c("upsertSchedule","businessId",n),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},At=function(a){let n=qt(a);return{async upsertSchedule(e,s,t){let r=await n.upsertSchedule(e,s,t);return P(r,h,p,a)}}},eo=function(a,n,e){let s=At(a);return{upsertSchedule(t,r,o){return s.upsertSchedule(t,r,o).then(i=>i(e,n))}}},Te=class extends S{upsertSchedule(n,e,s){return At(this.configuration).upsertSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},Ut=function(a){return{create:async(n,e,s={})=>{c("create","businessId",n),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getCashLogs:async(n,e,s,t,r,o,i,l={})=>{c("getCashLogs","businessId",n),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(n))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};s!==void 0&&(C.timeSpan=s),t!==void 0&&(C.start=t),r!==void 0&&(C.end=r),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(n,e={})=>{c("getCashSession","businessId",n);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(n,e,s={})=>{c("getSessionReport","businessId",n),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},recordCashLog:async(n,e,s={})=>{c("recordCashLog","businessId",n),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},sendSessionReport:async(n,e,s,t={})=>{c("sendSessionReport","businessId",n),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(n))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},$=function(a){let n=Ut(a);return{async create(e,s,t){let r=await n.create(e,s,t);return P(r,h,p,a)},async getCashLogs(e,s,t,r,o,i,l,u){let d=await n.getCashLogs(e,s,t,r,o,i,l,u);return P(d,h,p,a)},async getCashSession(e,s){let t=await n.getCashSession(e,s);return P(t,h,p,a)},async getSessionReport(e,s,t){let r=await n.getSessionReport(e,s,t);return P(r,h,p,a)},async recordCashLog(e,s,t){let r=await n.recordCashLog(e,s,t);return P(r,h,p,a)},async sendSessionReport(e,s,t,r){let o=await n.sendSessionReport(e,s,t,r);return P(o,h,p,a)}}},to=function(a,n,e){let s=$(a);return{create(t,r,o){return s.create(t,r,o).then(i=>i(e,n))},getCashLogs(t,r,o,i,l,u,d,A){return s.getCashLogs(t,r,o,i,l,u,d,A).then(x=>x(e,n))},getCashSession(t,r){return s.getCashSession(t,r).then(o=>o(e,n))},getSessionReport(t,r,o){return s.getSessionReport(t,r,o).then(i=>i(e,n))},recordCashLog(t,r,o){return s.recordCashLog(t,r,o).then(i=>i(e,n))},sendSessionReport(t,r,o,i){return s.sendSessionReport(t,r,o,i).then(l=>l(e,n))}}},qe=class extends S{create(n,e,s){return $(this.configuration).create(n,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(n,e,s,t,r,o,i,l){return $(this.configuration).getCashLogs(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(n,e){return $(this.configuration).getCashSession(n,e).then(s=>s(this.axios,this.basePath))}getSessionReport(n,e,s){return $(this.configuration).getSessionReport(n,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(n,e,s){return $(this.configuration).recordCashLog(n,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(n,e,s,t){return $(this.configuration).sendSessionReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Et=function(a){return{getChannelCatalog:async(n,e,s,t={})=>{c("getChannelCatalog","businessId",n),c("getChannelCatalog","channelType",e);let r="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,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),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenu:async(n,e,s,t={})=>{c("getChannelMenu","businessId",n),c("getChannelMenu","channelType",e);let r="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,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),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenuTimes:async(n,e,s={})=>{c("getChannelMenuTimes","businessId",n),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}}}},de=function(a){let n=Et(a);return{async getChannelCatalog(e,s,t,r){let o=await n.getChannelCatalog(e,s,t,r);return P(o,h,p,a)},async getChannelMenu(e,s,t,r){let o=await n.getChannelMenu(e,s,t,r);return P(o,h,p,a)},async getChannelMenuTimes(e,s,t){let r=await n.getChannelMenuTimes(e,s,t);return P(r,h,p,a)}}},so=function(a,n,e){let s=de(a);return{getChannelCatalog(t,r,o,i){return s.getChannelCatalog(t,r,o,i).then(l=>l(e,n))},getChannelMenu(t,r,o,i){return s.getChannelMenu(t,r,o,i).then(l=>l(e,n))},getChannelMenuTimes(t,r,o){return s.getChannelMenuTimes(t,r,o).then(i=>i(e,n))}}},Ue=class extends S{getChannelCatalog(n,e,s,t){return de(this.configuration).getChannelCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(n,e,s,t){return de(this.configuration).getChannelMenu(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(n,e,s){return de(this.configuration).getChannelMenuTimes(n,e,s).then(t=>t(this.axios,this.basePath))}},Bt=function(a){return{configConfigureMunchiGiftCard:async(n,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",n),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configGetProviders:async(n,e,s={})=>{c("configGetProviders","businessId",n),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!=null&&(l["x-app-x"]=String(e)),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},configManualSync:async(n,e,s={})=>{c("configManualSync","businessId",n),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(n,e,s,t={})=>{c("configRemovePaymentOption","businessId",n),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await f(u,a),s!=null&&(u["x-app-x"]=String(s)),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(n,e,s={})=>{c("configUpsertBusiness","businessId",n),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(n,e,s,t={})=>{c("configUpsertChannelConfig","businessId",n),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(n,e,s,t={})=>{c("configUpsertGiftCard","businessId",n),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(n,e,s={})=>{c("configUpsertLoyalty","businessId",n),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},configUpsertNets:async(n,e,s,t={})=>{c("configUpsertNets","businessId",n),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(n,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",n),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertProviders:async(n,e,s,t={})=>{c("configUpsertProviders","businessId",n),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let r="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertStripe:async(n,e,s,t={})=>{c("configUpsertStripe","businessId",n),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},configUpsertViva:async(n,e,s,t={})=>{c("configUpsertViva","businessId",n),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},k=function(a){let n=Bt(a);return{async configConfigureMunchiGiftCard(e,s,t,r){let o=await n.configConfigureMunchiGiftCard(e,s,t,r);return P(o,h,p,a)},async configGetProviders(e,s,t){let r=await n.configGetProviders(e,s,t);return P(r,h,p,a)},async configManualSync(e,s,t){let r=await n.configManualSync(e,s,t);return P(r,h,p,a)},async configRemovePaymentOption(e,s,t,r){let o=await n.configRemovePaymentOption(e,s,t,r);return P(o,h,p,a)},async configUpsertBusiness(e,s,t){let r=await n.configUpsertBusiness(e,s,t);return P(r,h,p,a)},async configUpsertChannelConfig(e,s,t,r){let o=await n.configUpsertChannelConfig(e,s,t,r);return P(o,h,p,a)},async configUpsertGiftCard(e,s,t,r){let o=await n.configUpsertGiftCard(e,s,t,r);return P(o,h,p,a)},async configUpsertLoyalty(e,s,t){let r=await n.configUpsertLoyalty(e,s,t);return P(r,h,p,a)},async configUpsertNets(e,s,t,r){let o=await n.configUpsertNets(e,s,t,r);return P(o,h,p,a)},async configUpsertPaymentOptions(e,s,t,r){let o=await n.configUpsertPaymentOptions(e,s,t,r);return P(o,h,p,a)},async configUpsertProviders(e,s,t,r){let o=await n.configUpsertProviders(e,s,t,r);return P(o,h,p,a)},async configUpsertStripe(e,s,t,r){let o=await n.configUpsertStripe(e,s,t,r);return P(o,h,p,a)},async configUpsertViva(e,s,t,r){let o=await n.configUpsertViva(e,s,t,r);return P(o,h,p,a)}}},no=function(a,n,e){let s=k(a);return{configConfigureMunchiGiftCard(t,r,o,i){return s.configConfigureMunchiGiftCard(t,r,o,i).then(l=>l(e,n))},configGetProviders(t,r,o){return s.configGetProviders(t,r,o).then(i=>i(e,n))},configManualSync(t,r,o){return s.configManualSync(t,r,o).then(i=>i(e,n))},configRemovePaymentOption(t,r,o,i){return s.configRemovePaymentOption(t,r,o,i).then(l=>l(e,n))},configUpsertBusiness(t,r,o){return s.configUpsertBusiness(t,r,o).then(i=>i(e,n))},configUpsertChannelConfig(t,r,o,i){return s.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,n))},configUpsertGiftCard(t,r,o,i){return s.configUpsertGiftCard(t,r,o,i).then(l=>l(e,n))},configUpsertLoyalty(t,r,o){return s.configUpsertLoyalty(t,r,o).then(i=>i(e,n))},configUpsertNets(t,r,o,i){return s.configUpsertNets(t,r,o,i).then(l=>l(e,n))},configUpsertPaymentOptions(t,r,o,i){return s.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,n))},configUpsertProviders(t,r,o,i){return s.configUpsertProviders(t,r,o,i).then(l=>l(e,n))},configUpsertStripe(t,r,o,i){return s.configUpsertStripe(t,r,o,i).then(l=>l(e,n))},configUpsertViva(t,r,o,i){return s.configUpsertViva(t,r,o,i).then(l=>l(e,n))}}},Ee=class extends S{configConfigureMunchiGiftCard(n,e,s,t){return k(this.configuration).configConfigureMunchiGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configGetProviders(n,e,s){return k(this.configuration).configGetProviders(n,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(n,e,s){return k(this.configuration).configManualSync(n,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(n,e,s,t){return k(this.configuration).configRemovePaymentOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(n,e,s){return k(this.configuration).configUpsertBusiness(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(n,e,s,t){return k(this.configuration).configUpsertChannelConfig(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(n,e,s,t){return k(this.configuration).configUpsertGiftCard(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(n,e,s){return k(this.configuration).configUpsertLoyalty(n,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(n,e,s,t){return k(this.configuration).configUpsertNets(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(n,e,s,t){return k(this.configuration).configUpsertPaymentOptions(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertProviders(n,e,s,t){return k(this.configuration).configUpsertProviders(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(n,e,s,t){return k(this.configuration).configUpsertStripe(n,e,s,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(n,e,s,t){return k(this.configuration).configUpsertViva(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{getCourseConfig:async(n,e={})=>{c("getCourseConfig","businessId",n);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getCourses:async(n,e={})=>{c("getCourses","businessId",n);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},be=function(a){let n=Mt(a);return{async getCourseConfig(e,s){let t=await n.getCourseConfig(e,s);return P(t,h,p,a)},async getCourses(e,s){let t=await n.getCourses(e,s);return P(t,h,p,a)}}},ro=function(a,n,e){let s=be(a);return{getCourseConfig(t,r){return s.getCourseConfig(t,r).then(o=>o(e,n))},getCourses(t,r){return s.getCourses(t,r).then(o=>o(e,n))}}},Be=class extends S{getCourseConfig(n,e){return be(this.configuration).getCourseConfig(n,e).then(s=>s(this.axios,this.basePath))}getCourses(n,e){return be(this.configuration).getCourses(n,e).then(s=>s(this.axios,this.basePath))}},kt=function(a){return{findIntent:async(n,e={})=>{c("findIntent","intentId",n);let s="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateIntent:async(n,e,s={})=>{c("updateIntent","intentId",n),c("updateIntent","updateDeliveryIntentDto",e);let t="/api/webhook/delivery-intent/{intentId}".replace("{intentId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},xe=function(a){let n=kt(a);return{async findIntent(e,s){let t=await n.findIntent(e,s);return P(t,h,p,a)},async updateIntent(e,s,t){let r=await n.updateIntent(e,s,t);return P(r,h,p,a)}}},oo=function(a,n,e){let s=xe(a);return{findIntent(t,r){return s.findIntent(t,r).then(o=>o(e,n))},updateIntent(t,r,o){return s.updateIntent(t,r,o).then(i=>i(e,n))}}},Me=class extends S{findIntent(n,e){return xe(this.configuration).findIntent(n,e).then(s=>s(this.axios,this.basePath))}updateIntent(n,e,s){return xe(this.configuration).updateIntent(n,e,s).then(t=>t(this.axios,this.basePath))}},wt=function(a){return{init:async(n,e={})=>{let s="/api/v1/display/init",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},pair:async(n,e={})=>{c("pair","pairDisplayBodyDto",n);let s="/api/v1/display/pair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},sessionToken:async(n,e={})=>{c("sessionToken","requestSessionTokenBodyDto",n);let s="/api/v1/display/session-token",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},unpair:async(n,e={})=>{c("unpair","unpairDisplayBodyDto",n);let s="/api/v1/display/unpair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},Z=function(a){let n=wt(a);return{async init(e,s){let t=await n.init(e,s);return P(t,h,p,a)},async pair(e,s){let t=await n.pair(e,s);return P(t,h,p,a)},async sessionToken(e,s){let t=await n.sessionToken(e,s);return P(t,h,p,a)},async unpair(e,s){let t=await n.unpair(e,s);return P(t,h,p,a)}}},ao=function(a,n,e){let s=Z(a);return{init(t,r){return s.init(t,r).then(o=>o(e,n))},pair(t,r){return s.pair(t,r).then(o=>o(e,n))},sessionToken(t,r){return s.sessionToken(t,r).then(o=>o(e,n))},unpair(t,r){return s.unpair(t,r).then(o=>o(e,n))}}},ke=class extends S{init(n,e){return Z(this.configuration).init(n,e).then(s=>s(this.axios,this.basePath))}pair(n,e){return Z(this.configuration).pair(n,e).then(s=>s(this.axios,this.basePath))}sessionToken(n,e){return Z(this.configuration).sessionToken(n,e).then(s=>s(this.axios,this.basePath))}unpair(n,e){return Z(this.configuration).unpair(n,e).then(s=>s(this.axios,this.basePath))}},Lt=function(a){return{createAssignment:async(n,e,s={})=>{c("createAssignment","businessId",n),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},bt=function(a){let n=Lt(a);return{async createAssignment(e,s,t){let r=await n.createAssignment(e,s,t);return P(r,h,p,a)}}},io=function(a,n,e){let s=bt(a);return{createAssignment(t,r,o){return s.createAssignment(t,r,o).then(i=>i(e,n))}}},we=class extends S{createAssignment(n,e,s){return bt(this.configuration).createAssignment(n,e,s).then(t=>t(this.axios,this.basePath))}},Ft=function(a){return{createDiningTable:async(n,e={})=>{c("createDiningTable","createDiningTableDto",n);let s="/api/v1/floor-plan/tables",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createFloorSection:async(n,e={})=>{c("createFloorSection","createFloorSectionDto",n);let s="/api/v1/floor-plan/sections",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deleteDiningTable:async(n,e,s={})=>{c("deleteDiningTable","id",n),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deleteFloorSection:async(n,e,s={})=>{c("deleteFloorSection","id",n),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},dissolveTableGroup:async(n,e,s={})=>{c("dissolveTableGroup","id",n),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getFloorPlan:async(n,e={})=>{c("getFloorPlan","businessId",n);let s="/api/v1/floor-plan",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},joinTables:async(n,e,s={})=>{c("joinTables","businessId",n),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},removeTableFromGroup:async(n,e,s={})=>{c("removeTableFromGroup","id",n),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},transferTable:async(n,e,s,t={})=>{c("transferTable","id",n),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let r="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateDiningTable:async(n,e,s,t={})=>{c("updateDiningTable","id",n),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let r="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateFloorSection:async(n,e,s,t={})=>{c("updateFloorSection","id",n),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let r="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateTablePosition:async(n,e,s,t={})=>{c("updateTablePosition","id",n),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let r="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateTableStatus:async(n,e,s,t={})=>{c("updateTableStatus","id",n),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let r="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},w=function(a){let n=Ft(a);return{async createDiningTable(e,s){let t=await n.createDiningTable(e,s);return P(t,h,p,a)},async createFloorSection(e,s){let t=await n.createFloorSection(e,s);return P(t,h,p,a)},async deleteDiningTable(e,s,t){let r=await n.deleteDiningTable(e,s,t);return P(r,h,p,a)},async deleteFloorSection(e,s,t){let r=await n.deleteFloorSection(e,s,t);return P(r,h,p,a)},async dissolveTableGroup(e,s,t){let r=await n.dissolveTableGroup(e,s,t);return P(r,h,p,a)},async getFloorPlan(e,s){let t=await n.getFloorPlan(e,s);return P(t,h,p,a)},async joinTables(e,s,t){let r=await n.joinTables(e,s,t);return P(r,h,p,a)},async removeTableFromGroup(e,s,t){let r=await n.removeTableFromGroup(e,s,t);return P(r,h,p,a)},async transferTable(e,s,t,r){let o=await n.transferTable(e,s,t,r);return P(o,h,p,a)},async updateDiningTable(e,s,t,r){let o=await n.updateDiningTable(e,s,t,r);return P(o,h,p,a)},async updateFloorSection(e,s,t,r){let o=await n.updateFloorSection(e,s,t,r);return P(o,h,p,a)},async updateTablePosition(e,s,t,r){let o=await n.updateTablePosition(e,s,t,r);return P(o,h,p,a)},async updateTableStatus(e,s,t,r){let o=await n.updateTableStatus(e,s,t,r);return P(o,h,p,a)}}},lo=function(a,n,e){let s=w(a);return{createDiningTable(t,r){return s.createDiningTable(t,r).then(o=>o(e,n))},createFloorSection(t,r){return s.createFloorSection(t,r).then(o=>o(e,n))},deleteDiningTable(t,r,o){return s.deleteDiningTable(t,r,o).then(i=>i(e,n))},deleteFloorSection(t,r,o){return s.deleteFloorSection(t,r,o).then(i=>i(e,n))},dissolveTableGroup(t,r,o){return s.dissolveTableGroup(t,r,o).then(i=>i(e,n))},getFloorPlan(t,r){return s.getFloorPlan(t,r).then(o=>o(e,n))},joinTables(t,r,o){return s.joinTables(t,r,o).then(i=>i(e,n))},removeTableFromGroup(t,r,o){return s.removeTableFromGroup(t,r,o).then(i=>i(e,n))},transferTable(t,r,o,i){return s.transferTable(t,r,o,i).then(l=>l(e,n))},updateDiningTable(t,r,o,i){return s.updateDiningTable(t,r,o,i).then(l=>l(e,n))},updateFloorSection(t,r,o,i){return s.updateFloorSection(t,r,o,i).then(l=>l(e,n))},updateTablePosition(t,r,o,i){return s.updateTablePosition(t,r,o,i).then(l=>l(e,n))},updateTableStatus(t,r,o,i){return s.updateTableStatus(t,r,o,i).then(l=>l(e,n))}}},Le=class extends S{createDiningTable(n,e){return w(this.configuration).createDiningTable(n,e).then(s=>s(this.axios,this.basePath))}createFloorSection(n,e){return w(this.configuration).createFloorSection(n,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(n,e,s){return w(this.configuration).deleteDiningTable(n,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(n,e,s){return w(this.configuration).deleteFloorSection(n,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(n,e,s){return w(this.configuration).dissolveTableGroup(n,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(n,e){return w(this.configuration).getFloorPlan(n,e).then(s=>s(this.axios,this.basePath))}joinTables(n,e,s){return w(this.configuration).joinTables(n,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(n,e,s){return w(this.configuration).removeTableFromGroup(n,e,s).then(t=>t(this.axios,this.basePath))}transferTable(n,e,s,t){return w(this.configuration).transferTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateDiningTable(n,e,s,t){return w(this.configuration).updateDiningTable(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateFloorSection(n,e,s,t){return w(this.configuration).updateFloorSection(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTablePosition(n,e,s,t){return w(this.configuration).updateTablePosition(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateTableStatus(n,e,s,t){return w(this.configuration).updateTableStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},_t=function(a){return{redeemGiftCard:async(n,e={})=>{c("redeemGiftCard","redeemGiftCardDto",n);let s="/api/v1/giftcard/redeem",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},validateGiftCard:async(n,e={})=>{c("validateGiftCard","validateGiftCardDto",n);let s="/api/v1/giftcard/validate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},fe=function(a){let n=_t(a);return{async redeemGiftCard(e,s){let t=await n.redeemGiftCard(e,s);return P(t,h,p,a)},async validateGiftCard(e,s){let t=await n.validateGiftCard(e,s);return P(t,h,p,a)}}},uo=function(a,n,e){let s=fe(a);return{redeemGiftCard(t,r){return s.redeemGiftCard(t,r).then(o=>o(e,n))},validateGiftCard(t,r){return s.validateGiftCard(t,r).then(o=>o(e,n))}}},Fe=class extends S{redeemGiftCard(n,e){return fe(this.configuration).redeemGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(n,e){return fe(this.configuration).validateGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Nt=function(a){return{getInternalOrderHistoryOnline:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",n);let I="/api/v1/history/internal/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}},getOrderHistoryOnline:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",n);let I="/api/v1/history/orders",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}},getOrderHistoryPOSV5:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",n);let I="/api/v5/history/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}},getOrderHistoryPOSV5Internal:async(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",n);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),V;a&&(V=a.baseOptions);let U={method:"GET",...V,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),n&&(D.businessIds=n),r!==void 0&&(D.page=r),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),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Q=V&&V.headers?V.headers:{};return U.headers={...W,...Q,...O.headers},{url:y(v),options:U}}}},ee=function(a){let n=Nt(a);return{async getInternalOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getInternalOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getOrderHistoryOnline(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getOrderHistoryPOSV5(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await n.getOrderHistoryPOSV5Internal(e,s,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)}}},co=function(a,n,e){let s=ee(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))},getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))},getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V){return s.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,V).then(U=>U(e,n))}}},_e=class extends S{getInternalOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getInternalOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getOrderHistoryPOSV5(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return ee(this.configuration).getOrderHistoryPOSV5Internal(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}},jt=function(a){return{createInvoiceCompany:async(n,e,s={})=>{c("createInvoiceCompany","businessId",n),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(n,e,s={})=>{c("deleteInvoiceCompany","id",n),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getInvoiceCompanies:async(n,e={})=>{c("getInvoiceCompanies","businessId",n);let s="/api/v1/invoice-companies",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(n,e,s={})=>{c("getInvoiceCompanyById","id",n),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(n,e,s={})=>{c("searchInvoiceCompanies","businessId",n);let t="/api/v1/invoice-companies/search",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.search=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},updateInvoiceCompany:async(n,e,s,t={})=>{c("updateInvoiceCompany","id",n),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,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",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},Y=function(a){let n=jt(a);return{async createInvoiceCompany(e,s,t){let r=await n.createInvoiceCompany(e,s,t);return P(r,h,p,a)},async deleteInvoiceCompany(e,s,t){let r=await n.deleteInvoiceCompany(e,s,t);return P(r,h,p,a)},async getInvoiceCompanies(e,s){let t=await n.getInvoiceCompanies(e,s);return P(t,h,p,a)},async getInvoiceCompanyById(e,s,t){let r=await n.getInvoiceCompanyById(e,s,t);return P(r,h,p,a)},async searchInvoiceCompanies(e,s,t){let r=await n.searchInvoiceCompanies(e,s,t);return P(r,h,p,a)},async updateInvoiceCompany(e,s,t,r){let o=await n.updateInvoiceCompany(e,s,t,r);return P(o,h,p,a)}}},po=function(a,n,e){let s=Y(a);return{createInvoiceCompany(t,r,o){return s.createInvoiceCompany(t,r,o).then(i=>i(e,n))},deleteInvoiceCompany(t,r,o){return s.deleteInvoiceCompany(t,r,o).then(i=>i(e,n))},getInvoiceCompanies(t,r){return s.getInvoiceCompanies(t,r).then(o=>o(e,n))},getInvoiceCompanyById(t,r,o){return s.getInvoiceCompanyById(t,r,o).then(i=>i(e,n))},searchInvoiceCompanies(t,r,o){return s.searchInvoiceCompanies(t,r,o).then(i=>i(e,n))},updateInvoiceCompany(t,r,o,i){return s.updateInvoiceCompany(t,r,o,i).then(l=>l(e,n))}}},Ne=class extends S{createInvoiceCompany(n,e,s){return Y(this.configuration).createInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(n,e,s){return Y(this.configuration).deleteInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(n,e){return Y(this.configuration).getInvoiceCompanies(n,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(n,e,s){return Y(this.configuration).getInvoiceCompanyById(n,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(n,e,s){return Y(this.configuration).searchInvoiceCompanies(n,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(n,e,s,t){return Y(this.configuration).updateInvoiceCompany(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Wt=function(a){return{kdsGetOrders:async(n,e,s,t,r,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",n),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(n))),C=new URL(R,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...x},v={},V={};await f(v,a),e!==void 0&&(V.businessIds=e),s!==void 0&&(V.profileId=s),t!==void 0&&(V.page=t),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),A&&(V.consumptionType=A),g(C,V);let U=O&&O.headers?O.headers:{};return I.headers={...v,...U,...x.headers},{url:y(C),options:I}},kdsGetProfiles:async(n,e={})=>{c("kdsGetProfiles","businessId",n);let s="/api/v1/kds/profiles",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(n,e={})=>{c("kdsMarkOrderReady","id",n);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(n,e={})=>{c("kdsRevertOrder","id",n);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},te=function(a){let n=Wt(a);return{async kdsGetOrders(e,s,t,r,o,i,l,u,d,A,x,R){let C=await n.kdsGetOrders(e,s,t,r,o,i,l,u,d,A,x,R);return P(C,h,p,a)},async kdsGetProfiles(e,s){let t=await n.kdsGetProfiles(e,s);return P(t,h,p,a)},async kdsMarkOrderReady(e,s){let t=await n.kdsMarkOrderReady(e,s);return P(t,h,p,a)},async kdsRevertOrder(e,s){let t=await n.kdsRevertOrder(e,s);return P(t,h,p,a)}}},mo=function(a,n,e){let s=te(a);return{kdsGetOrders(t,r,o,i,l,u,d,A,x,R,C,O){return s.kdsGetOrders(t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(e,n))},kdsGetProfiles(t,r){return s.kdsGetProfiles(t,r).then(o=>o(e,n))},kdsMarkOrderReady(t,r){return s.kdsMarkOrderReady(t,r).then(o=>o(e,n))},kdsRevertOrder(t,r){return s.kdsRevertOrder(t,r).then(o=>o(e,n))}}},je=class extends S{kdsGetOrders(n,e,s,t,r,o,i,l,u,d,A,x){return te(this.configuration).kdsGetOrders(n,e,s,t,r,o,i,l,u,d,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(n,e){return te(this.configuration).kdsGetProfiles(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(n,e){return te(this.configuration).kdsMarkOrderReady(n,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(n,e){return te(this.configuration).kdsRevertOrder(n,e).then(s=>s(this.axios,this.basePath))}},Gt=function(a){return{getKioskOrder:async(n,e,s={})=>{c("getKioskOrder","orderId",n),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getOrderStatus:async(n,e,s={})=>{c("getOrderStatus","orderId",n),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},recoverOrder:async(n,e,s={})=>{c("recoverOrder","orderId",n),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},syncKioskOrder:async(n,e={})=>{c("syncKioskOrder","syncKioskOrderDto",n);let s="/api/v1/kiosk/orders/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},validate:async(n,e,s={})=>{c("validate","terminalId",n),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};n!==void 0&&(u.terminalId=n),e!==void 0&&(u.provider=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}}}},J=function(a){let n=Gt(a);return{async getKioskOrder(e,s,t){let r=await n.getKioskOrder(e,s,t);return P(r,h,p,a)},async getOrderStatus(e,s,t){let r=await n.getOrderStatus(e,s,t);return P(r,h,p,a)},async recoverOrder(e,s,t){let r=await n.recoverOrder(e,s,t);return P(r,h,p,a)},async syncKioskOrder(e,s){let t=await n.syncKioskOrder(e,s);return P(t,h,p,a)},async validate(e,s,t){let r=await n.validate(e,s,t);return P(r,h,p,a)}}},go=function(a,n,e){let s=J(a);return{getKioskOrder(t,r,o){return s.getKioskOrder(t,r,o).then(i=>i(e,n))},getOrderStatus(t,r,o){return s.getOrderStatus(t,r,o).then(i=>i(e,n))},recoverOrder(t,r,o){return s.recoverOrder(t,r,o).then(i=>i(e,n))},syncKioskOrder(t,r){return s.syncKioskOrder(t,r).then(o=>o(e,n))},validate(t,r,o){return s.validate(t,r,o).then(i=>i(e,n))}}},We=class extends S{getKioskOrder(n,e,s){return J(this.configuration).getKioskOrder(n,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(n,e,s){return J(this.configuration).getOrderStatus(n,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(n,e,s){return J(this.configuration).recoverOrder(n,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(n,e){return J(this.configuration).syncKioskOrder(n,e).then(s=>s(this.axios,this.basePath))}validate(n,e,s){return J(this.configuration).validate(n,e,s).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{activateKioskOffer:async(n,e={})=>{c("activateKioskOffer","activateKioskOfferDto",n);let s="/api/v1/loyalty/users/activate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},claimKioskOffer:async(n,e={})=>{c("claimKioskOffer","claimKioskOfferDto",n);let s="/api/v1/loyalty/users/claim",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createLoyaltyUser:async(n,e,s={})=>{c("createLoyaltyUser","businessId",n),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getAdminTransactions:async(n,e,s,t={})=>{c("getAdminTransactions","businessId",n);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.page=e),s!==void 0&&(d.limit=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(n,e={})=>{c("getLoyaltyInfo","businessId",n);let s="/api/v1/loyalty/info",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(n,e,s={})=>{c("getUserById","businessId",n),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getUserPerks:async(n,e,s={})=>{c("getUserPerks","businessId",n),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getUserWallet:async(n,e,s={})=>{c("getUserWallet","businessId",n),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},resolvePerks:async(n,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",n);let s="/api/v1/loyalty/resolve",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},searchUser:async(n,e,s,t,r={})=>{c("searchUser","businessId",n);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};await f(d,a),e!==void 0&&(A.phone=e),s!==void 0&&(A.country_code=s),t!==void 0&&(A.email=t),n!==void 0&&(A.businessId=n),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(n,e,s={})=>{c("updatePoints","businessId",n),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),n!==void 0&&(u.businessId=n),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},validateWallet:async(n,e,s,t={})=>{c("validateWallet","businessId",n),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let r="/api/v1/loyalty/wallets/validate",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.loyaltyId=e),s!==void 0&&(d.walletId=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},L=function(a){let n=Kt(a);return{async activateKioskOffer(e,s){let t=await n.activateKioskOffer(e,s);return P(t,h,p,a)},async claimKioskOffer(e,s){let t=await n.claimKioskOffer(e,s);return P(t,h,p,a)},async createLoyaltyUser(e,s,t){let r=await n.createLoyaltyUser(e,s,t);return P(r,h,p,a)},async getAdminTransactions(e,s,t,r){let o=await n.getAdminTransactions(e,s,t,r);return P(o,h,p,a)},async getLoyaltyInfo(e,s){let t=await n.getLoyaltyInfo(e,s);return P(t,h,p,a)},async getUserById(e,s,t){let r=await n.getUserById(e,s,t);return P(r,h,p,a)},async getUserPerks(e,s,t){let r=await n.getUserPerks(e,s,t);return P(r,h,p,a)},async getUserWallet(e,s,t){let r=await n.getUserWallet(e,s,t);return P(r,h,p,a)},async resolvePerks(e,s){let t=await n.resolvePerks(e,s);return P(t,h,p,a)},async searchUser(e,s,t,r,o){let i=await n.searchUser(e,s,t,r,o);return P(i,h,p,a)},async updatePoints(e,s,t){let r=await n.updatePoints(e,s,t);return P(r,h,p,a)},async validateWallet(e,s,t,r){let o=await n.validateWallet(e,s,t,r);return P(o,h,p,a)}}},yo=function(a,n,e){let s=L(a);return{activateKioskOffer(t,r){return s.activateKioskOffer(t,r).then(o=>o(e,n))},claimKioskOffer(t,r){return s.claimKioskOffer(t,r).then(o=>o(e,n))},createLoyaltyUser(t,r,o){return s.createLoyaltyUser(t,r,o).then(i=>i(e,n))},getAdminTransactions(t,r,o,i){return s.getAdminTransactions(t,r,o,i).then(l=>l(e,n))},getLoyaltyInfo(t,r){return s.getLoyaltyInfo(t,r).then(o=>o(e,n))},getUserById(t,r,o){return s.getUserById(t,r,o).then(i=>i(e,n))},getUserPerks(t,r,o){return s.getUserPerks(t,r,o).then(i=>i(e,n))},getUserWallet(t,r,o){return s.getUserWallet(t,r,o).then(i=>i(e,n))},resolvePerks(t,r){return s.resolvePerks(t,r).then(o=>o(e,n))},searchUser(t,r,o,i,l){return s.searchUser(t,r,o,i,l).then(u=>u(e,n))},updatePoints(t,r,o){return s.updatePoints(t,r,o).then(i=>i(e,n))},validateWallet(t,r,o,i){return s.validateWallet(t,r,o,i).then(l=>l(e,n))}}},Ge=class extends S{activateKioskOffer(n,e){return L(this.configuration).activateKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(n,e){return L(this.configuration).claimKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(n,e,s){return L(this.configuration).createLoyaltyUser(n,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(n,e,s,t){return L(this.configuration).getAdminTransactions(n,e,s,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(n,e){return L(this.configuration).getLoyaltyInfo(n,e).then(s=>s(this.axios,this.basePath))}getUserById(n,e,s){return L(this.configuration).getUserById(n,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(n,e,s){return L(this.configuration).getUserPerks(n,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(n,e,s){return L(this.configuration).getUserWallet(n,e,s).then(t=>t(this.axios,this.basePath))}resolvePerks(n,e){return L(this.configuration).resolvePerks(n,e).then(s=>s(this.axios,this.basePath))}searchUser(n,e,s,t,r){return L(this.configuration).searchUser(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(n,e,s){return L(this.configuration).updatePoints(n,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(n,e,s,t){return L(this.configuration).validateWallet(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Ht=function(a){return{editBusinessProduct:async(n,e,s={})=>{c("editBusinessProduct","businessId",n),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(n,e,s={})=>{c("editBusinessProductV2","businessId",n),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(n,e={})=>{c("getBusinessExtras","businessId",n);let s="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(n,e,s={})=>{c("getProductsByCategoriesV2","businessId",n);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getProductsByCategoriesV3:async(n,e,s={})=>{c("getProductsByCategoriesV3","businessId",n);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},resetProductEod:async(n,e={})=>{c("resetProductEod","resetEodDto",n);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},z=function(a){let n=Ht(a);return{async editBusinessProduct(e,s,t){let r=await n.editBusinessProduct(e,s,t);return P(r,h,p,a)},async editBusinessProductV2(e,s,t){let r=await n.editBusinessProductV2(e,s,t);return P(r,h,p,a)},async getBusinessExtras(e,s){let t=await n.getBusinessExtras(e,s);return P(t,h,p,a)},async getProductsByCategoriesV2(e,s,t){let r=await n.getProductsByCategoriesV2(e,s,t);return P(r,h,p,a)},async getProductsByCategoriesV3(e,s,t){let r=await n.getProductsByCategoriesV3(e,s,t);return P(r,h,p,a)},async resetProductEod(e,s){let t=await n.resetProductEod(e,s);return P(t,h,p,a)}}},Po=function(a,n,e){let s=z(a);return{editBusinessProduct(t,r,o){return s.editBusinessProduct(t,r,o).then(i=>i(e,n))},editBusinessProductV2(t,r,o){return s.editBusinessProductV2(t,r,o).then(i=>i(e,n))},getBusinessExtras(t,r){return s.getBusinessExtras(t,r).then(o=>o(e,n))},getProductsByCategoriesV2(t,r,o){return s.getProductsByCategoriesV2(t,r,o).then(i=>i(e,n))},getProductsByCategoriesV3(t,r,o){return s.getProductsByCategoriesV3(t,r,o).then(i=>i(e,n))},resetProductEod(t,r){return s.resetProductEod(t,r).then(o=>o(e,n))}}},Ke=class extends S{editBusinessProduct(n,e,s){return z(this.configuration).editBusinessProduct(n,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(n,e,s){return z(this.configuration).editBusinessProductV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(n,e){return z(this.configuration).getBusinessExtras(n,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(n,e,s){return z(this.configuration).getProductsByCategoriesV2(n,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(n,e,s){return z(this.configuration).getProductsByCategoriesV3(n,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(n,e){return z(this.configuration).resetProductEod(n,e).then(s=>s(this.axios,this.basePath))}},Qt=function(a){return{addBusinessesToMerchant:async(n,e,s={})=>{c("addBusinessesToMerchant","merchantId",n),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},createMerchant:async(n,e={})=>{c("createMerchant","createMerchantDto",n);let s="/api/v1/merchants",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(n,e,s={})=>{c("removeBusinessFromMerchant","merchantId",n),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}}}},pe=function(a){let n=Qt(a);return{async addBusinessesToMerchant(e,s,t){let r=await n.addBusinessesToMerchant(e,s,t);return P(r,h,p,a)},async createMerchant(e,s){let t=await n.createMerchant(e,s);return P(t,h,p,a)},async removeBusinessFromMerchant(e,s,t){let r=await n.removeBusinessFromMerchant(e,s,t);return P(r,h,p,a)}}},ho=function(a,n,e){let s=pe(a);return{addBusinessesToMerchant(t,r,o){return s.addBusinessesToMerchant(t,r,o).then(i=>i(e,n))},createMerchant(t,r){return s.createMerchant(t,r).then(o=>o(e,n))},removeBusinessFromMerchant(t,r,o){return s.removeBusinessFromMerchant(t,r,o).then(i=>i(e,n))}}},He=class extends S{addBusinessesToMerchant(n,e,s){return pe(this.configuration).addBusinessesToMerchant(n,e,s).then(t=>t(this.axios,this.basePath))}createMerchant(n,e){return pe(this.configuration).createMerchant(n,e).then(s=>s(this.axios,this.basePath))}removeBusinessFromMerchant(n,e,s){return pe(this.configuration).removeBusinessFromMerchant(n,e,s).then(t=>t(this.axios,this.basePath))}},$t=function(a){return{createMunchiGiftCard:async(n,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",n);let s="/api/v1/munchi-giftcard/create",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(n,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",n);let s="/api/v1/munchi-giftcard/data",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(n,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",n);let s="/api/v1/munchi-giftcard/redeem",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(n,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",n);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},se=function(a){let n=$t(a);return{async createMunchiGiftCard(e,s){let t=await n.createMunchiGiftCard(e,s);return P(t,h,p,a)},async getMunchiGiftCardData(e,s){let t=await n.getMunchiGiftCardData(e,s);return P(t,h,p,a)},async redeemMunchiGiftCard(e,s){let t=await n.redeemMunchiGiftCard(e,s);return P(t,h,p,a)},async validateMunchiGiftCard(e,s){let t=await n.validateMunchiGiftCard(e,s);return P(t,h,p,a)}}},Ao=function(a,n,e){let s=se(a);return{createMunchiGiftCard(t,r){return s.createMunchiGiftCard(t,r).then(o=>o(e,n))},getMunchiGiftCardData(t,r){return s.getMunchiGiftCardData(t,r).then(o=>o(e,n))},redeemMunchiGiftCard(t,r){return s.redeemMunchiGiftCard(t,r).then(o=>o(e,n))},validateMunchiGiftCard(t,r){return s.validateMunchiGiftCard(t,r).then(o=>o(e,n))}}},Qe=class extends S{createMunchiGiftCard(n,e){return se(this.configuration).createMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(n,e){return se(this.configuration).getMunchiGiftCardData(n,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(n,e){return se(this.configuration).redeemMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(n,e){return se(this.configuration).validateMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Yt=function(a){return{addVenueSubscriptionsV2:async(n,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(n,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",n);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},Re=function(a){let n=Yt(a);return{async addVenueSubscriptionsV2(e,s){let t=await n.addVenueSubscriptionsV2(e,s);return P(t,h,p,a)},async removeVenueSubscriptionsV2(e,s){let t=await n.removeVenueSubscriptionsV2(e,s);return P(t,h,p,a)}}},bo=function(a,n,e){let s=Re(a);return{addVenueSubscriptionsV2(t,r){return s.addVenueSubscriptionsV2(t,r).then(o=>o(e,n))},removeVenueSubscriptionsV2(t,r){return s.removeVenueSubscriptionsV2(t,r).then(o=>o(e,n))}}},$e=class extends S{addVenueSubscriptionsV2(n,e){return Re(this.configuration).addVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(n,e){return Re(this.configuration).removeVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}},zt=function(a){return{findOneByExternalId:async(n,e={})=>{c("findOneByExternalId","externalId",n);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},xt=function(a){let n=zt(a);return{async findOneByExternalId(e,s){let t=await n.findOneByExternalId(e,s);return P(t,h,p,a)}}},xo=function(a,n,e){let s=xt(a);return{findOneByExternalId(t,r){return s.findOneByExternalId(t,r).then(o=>o(e,n))}}},Ye=class extends S{findOneByExternalId(n,e){return xt(this.configuration).findOneByExternalId(n,e).then(s=>s(this.axios,this.basePath))}},Jt=function(a){return{acceptOrder:async(n,e={})=>{c("acceptOrder","acceptOrderDto",n);let s="/api/v1/orders/accept",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},confirmPreOrder:async(n,e={})=>{c("confirmPreOrder","confirmPreorderDto",n);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(n,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",n);let s="/api/v2/orders/pos/park",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},deliverOrder:async(n,e={})=>{c("deliverOrder","deliveredOrderDto",n);let s="/api/v1/orders/delivered",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},dispatchPosOrderV5:async(n,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",n);let s="/api/v5/orders/pos/dispatch",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getAllOrdersV2:async(n,e={})=>{c("getAllOrdersV2","businessIds",n);let s="/api/v2/orders",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessIds=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(n,e,s,t,r={})=>{c("getOrdersV2","status",n),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getOrdersV3:async(n,e,s,t,r={})=>{c("getOrdersV3","status",n),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(n,e={})=>{c("getParkedPosOrderV2","businessId",n);let s="/api/v2/orders/pos/park",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosOrderById:async(n,e={})=>{c("getPosOrderById","getPosOrderDto",n);let s="/api/v1/orders/pos",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},markOrderAsReady:async(n,e={})=>{c("markOrderAsReady","readyOrderDto",n);let s="/api/v1/orders/ready",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},parkPosOrderV5:async(n,e={})=>{c("parkPosOrderV5","parkPosOrderDto",n);let s="/api/v5/orders/pos/park",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},placePosOrderV4:async(n,e={})=>{c("placePosOrderV4","posOrderPayloadDto",n);let s="/api/v4/orders/pos/place",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},processPosOrderActions:async(n,e={})=>{c("processPosOrderActions","processOrderActionsDto",n);let s="/api/v4/orders/pos/actions",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},rejectOrder:async(n,e={})=>{c("rejectOrder","rejectOrderDto",n);let s="/api/v1/orders/reject",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},syncPosOrder:async(n,e={})=>{c("syncPosOrder","syncPosOrderDto",n);let s="/api/v1/orders/pos/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updatePosOrderV2:async(n,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",n);let s="/api/v2/orders/pos/update",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},B=function(a){let n=Jt(a);return{async acceptOrder(e,s){let t=await n.acceptOrder(e,s);return P(t,h,p,a)},async confirmPreOrder(e,s){let t=await n.confirmPreOrder(e,s);return P(t,h,p,a)},async deletePosParkedOrderV2(e,s){let t=await n.deletePosParkedOrderV2(e,s);return P(t,h,p,a)},async deliverOrder(e,s){let t=await n.deliverOrder(e,s);return P(t,h,p,a)},async dispatchPosOrderV5(e,s){let t=await n.dispatchPosOrderV5(e,s);return P(t,h,p,a)},async getAllOrdersV2(e,s){let t=await n.getAllOrdersV2(e,s);return P(t,h,p,a)},async getOrdersV2(e,s,t,r,o){let i=await n.getOrdersV2(e,s,t,r,o);return P(i,h,p,a)},async getOrdersV3(e,s,t,r,o){let i=await n.getOrdersV3(e,s,t,r,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,s){let t=await n.getParkedPosOrderV2(e,s);return P(t,h,p,a)},async getPosOrderById(e,s){let t=await n.getPosOrderById(e,s);return P(t,h,p,a)},async markOrderAsReady(e,s){let t=await n.markOrderAsReady(e,s);return P(t,h,p,a)},async parkPosOrderV5(e,s){let t=await n.parkPosOrderV5(e,s);return P(t,h,p,a)},async placePosOrderV4(e,s){let t=await n.placePosOrderV4(e,s);return P(t,h,p,a)},async processPosOrderActions(e,s){let t=await n.processPosOrderActions(e,s);return P(t,h,p,a)},async rejectOrder(e,s){let t=await n.rejectOrder(e,s);return P(t,h,p,a)},async syncPosOrder(e,s){let t=await n.syncPosOrder(e,s);return P(t,h,p,a)},async updatePosOrderV2(e,s){let t=await n.updatePosOrderV2(e,s);return P(t,h,p,a)}}},fo=function(a,n,e){let s=B(a);return{acceptOrder(t,r){return s.acceptOrder(t,r).then(o=>o(e,n))},confirmPreOrder(t,r){return s.confirmPreOrder(t,r).then(o=>o(e,n))},deletePosParkedOrderV2(t,r){return s.deletePosParkedOrderV2(t,r).then(o=>o(e,n))},deliverOrder(t,r){return s.deliverOrder(t,r).then(o=>o(e,n))},dispatchPosOrderV5(t,r){return s.dispatchPosOrderV5(t,r).then(o=>o(e,n))},getAllOrdersV2(t,r){return s.getAllOrdersV2(t,r).then(o=>o(e,n))},getOrdersV2(t,r,o,i,l){return s.getOrdersV2(t,r,o,i,l).then(u=>u(e,n))},getOrdersV3(t,r,o,i,l){return s.getOrdersV3(t,r,o,i,l).then(u=>u(e,n))},getParkedPosOrderV2(t,r){return s.getParkedPosOrderV2(t,r).then(o=>o(e,n))},getPosOrderById(t,r){return s.getPosOrderById(t,r).then(o=>o(e,n))},markOrderAsReady(t,r){return s.markOrderAsReady(t,r).then(o=>o(e,n))},parkPosOrderV5(t,r){return s.parkPosOrderV5(t,r).then(o=>o(e,n))},placePosOrderV4(t,r){return s.placePosOrderV4(t,r).then(o=>o(e,n))},processPosOrderActions(t,r){return s.processPosOrderActions(t,r).then(o=>o(e,n))},rejectOrder(t,r){return s.rejectOrder(t,r).then(o=>o(e,n))},syncPosOrder(t,r){return s.syncPosOrder(t,r).then(o=>o(e,n))},updatePosOrderV2(t,r){return s.updatePosOrderV2(t,r).then(o=>o(e,n))}}},ze=class extends S{acceptOrder(n,e){return B(this.configuration).acceptOrder(n,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(n,e){return B(this.configuration).confirmPreOrder(n,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(n,e){return B(this.configuration).deletePosParkedOrderV2(n,e).then(s=>s(this.axios,this.basePath))}deliverOrder(n,e){return B(this.configuration).deliverOrder(n,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(n,e){return B(this.configuration).dispatchPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}getAllOrdersV2(n,e){return B(this.configuration).getAllOrdersV2(n,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(n,e,s,t,r){return B(this.configuration).getOrdersV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getOrdersV3(n,e,s,t,r){return B(this.configuration).getOrdersV3(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(n,e){return B(this.configuration).getParkedPosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(n,e){return B(this.configuration).getPosOrderById(n,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(n,e){return B(this.configuration).markOrderAsReady(n,e).then(s=>s(this.axios,this.basePath))}parkPosOrderV5(n,e){return B(this.configuration).parkPosOrderV5(n,e).then(s=>s(this.axios,this.basePath))}placePosOrderV4(n,e){return B(this.configuration).placePosOrderV4(n,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(n,e){return B(this.configuration).processPosOrderActions(n,e).then(s=>s(this.axios,this.basePath))}rejectOrder(n,e){return B(this.configuration).rejectOrder(n,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(n,e){return B(this.configuration).syncPosOrder(n,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(n,e){return B(this.configuration).updatePosOrderV2(n,e).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{getPosSession:async(n,e={})=>{c("getPosSession","businessId",n);let s="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(n,e={})=>{c("getPosSessionV2","businessId",n);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Ce=function(a){let n=Xt(a);return{async getPosSession(e,s){let t=await n.getPosSession(e,s);return P(t,h,p,a)},async getPosSessionV2(e,s){let t=await n.getPosSessionV2(e,s);return P(t,h,p,a)}}},Ro=function(a,n,e){let s=Ce(a);return{getPosSession(t,r){return s.getPosSession(t,r).then(o=>o(e,n))},getPosSessionV2(t,r){return s.getPosSessionV2(t,r).then(o=>o(e,n))}}},Je=class extends S{getPosSession(n,e){return Ce(this.configuration).getPosSession(n,e).then(s=>s(this.axios,this.basePath))}getPosSessionV2(n,e){return Ce(this.configuration).getPosSessionV2(n,e).then(s=>s(this.axios,this.basePath))}},Zt=function(a){return{payTerminalInit:async(n,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",n);let s="/api/v1/pay-terminal/init",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockSet:async(n,e={})=>{c("payTerminalLockSet","setPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockStatus:async(n,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",n);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockSync:async(n,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalLockVerify:async(n,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",n);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalPair:async(n,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/pair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalSessionToken:async(n,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",n);let s="/api/v1/pay-terminal/session-token",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},payTerminalUnpair:async(n,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",n);let s="/api/v1/pay-terminal/unpair",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},G=function(a){let n=Zt(a);return{async payTerminalInit(e,s){let t=await n.payTerminalInit(e,s);return P(t,h,p,a)},async payTerminalLockSet(e,s){let t=await n.payTerminalLockSet(e,s);return P(t,h,p,a)},async payTerminalLockStatus(e,s){let t=await n.payTerminalLockStatus(e,s);return P(t,h,p,a)},async payTerminalLockSync(e,s){let t=await n.payTerminalLockSync(e,s);return P(t,h,p,a)},async payTerminalLockVerify(e,s){let t=await n.payTerminalLockVerify(e,s);return P(t,h,p,a)},async payTerminalPair(e,s){let t=await n.payTerminalPair(e,s);return P(t,h,p,a)},async payTerminalSessionToken(e,s){let t=await n.payTerminalSessionToken(e,s);return P(t,h,p,a)},async payTerminalUnpair(e,s){let t=await n.payTerminalUnpair(e,s);return P(t,h,p,a)}}},Co=function(a,n,e){let s=G(a);return{payTerminalInit(t,r){return s.payTerminalInit(t,r).then(o=>o(e,n))},payTerminalLockSet(t,r){return s.payTerminalLockSet(t,r).then(o=>o(e,n))},payTerminalLockStatus(t,r){return s.payTerminalLockStatus(t,r).then(o=>o(e,n))},payTerminalLockSync(t,r){return s.payTerminalLockSync(t,r).then(o=>o(e,n))},payTerminalLockVerify(t,r){return s.payTerminalLockVerify(t,r).then(o=>o(e,n))},payTerminalPair(t,r){return s.payTerminalPair(t,r).then(o=>o(e,n))},payTerminalSessionToken(t,r){return s.payTerminalSessionToken(t,r).then(o=>o(e,n))},payTerminalUnpair(t,r){return s.payTerminalUnpair(t,r).then(o=>o(e,n))}}},Xe=class extends S{payTerminalInit(n,e){return G(this.configuration).payTerminalInit(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSet(n,e){return G(this.configuration).payTerminalLockSet(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(n,e){return G(this.configuration).payTerminalLockStatus(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(n,e){return G(this.configuration).payTerminalLockSync(n,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(n,e){return G(this.configuration).payTerminalLockVerify(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(n,e){return G(this.configuration).payTerminalPair(n,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(n,e){return G(this.configuration).payTerminalSessionToken(n,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(n,e){return G(this.configuration).payTerminalUnpair(n,e).then(s=>s(this.axios,this.basePath))}},es=function(a){return{cancelNetsTerminalTransaction:async(n,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",n);let s="/api/v3/payment/nets/cancel",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(n,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",n);let s="/api/v2/payment/viva/cancel",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(n,e={})=>{c("createNetsRefundTransaction","createRefundDto",n);let s="/api/v4/payment/nets/refund/transaction",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getPaymentReference:async(n,e={})=>{c("getPaymentReference","getPaymentReferenceDto",n);let s="/api/v1/payment/reference",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getPaymentStatus:async(n,e={})=>{c("getPaymentStatus","getPaymentStatusDto",n);let s="/api/v1/payment/status",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(n,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",n);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(n,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",n);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(n,e={})=>{c("processOnlineOrderRefund","orderResponseDto",n);let s="/api/v1/payment/online-orders/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(n,e={})=>{c("refundSingleVivaTransaction","createRefundDto",n);let s="/api/v4/payment/viva/refund/single",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},j=function(a){let n=es(a);return{async cancelNetsTerminalTransaction(e,s){let t=await n.cancelNetsTerminalTransaction(e,s);return P(t,h,p,a)},async cancelVivaTransactionV2(e,s){let t=await n.cancelVivaTransactionV2(e,s);return P(t,h,p,a)},async createNetsRefundTransaction(e,s){let t=await n.createNetsRefundTransaction(e,s);return P(t,h,p,a)},async getPaymentReference(e,s){let t=await n.getPaymentReference(e,s);return P(t,h,p,a)},async getPaymentStatus(e,s){let t=await n.getPaymentStatus(e,s);return P(t,h,p,a)},async initiateNetsTerminalTransaction(e,s){let t=await n.initiateNetsTerminalTransaction(e,s);return P(t,h,p,a)},async initiateTerminalTransaction(e,s){let t=await n.initiateTerminalTransaction(e,s);return P(t,h,p,a)},async processOnlineOrderRefund(e,s){let t=await n.processOnlineOrderRefund(e,s);return P(t,h,p,a)},async refundSingleVivaTransaction(e,s){let t=await n.refundSingleVivaTransaction(e,s);return P(t,h,p,a)}}},Do=function(a,n,e){let s=j(a);return{cancelNetsTerminalTransaction(t,r){return s.cancelNetsTerminalTransaction(t,r).then(o=>o(e,n))},cancelVivaTransactionV2(t,r){return s.cancelVivaTransactionV2(t,r).then(o=>o(e,n))},createNetsRefundTransaction(t,r){return s.createNetsRefundTransaction(t,r).then(o=>o(e,n))},getPaymentReference(t,r){return s.getPaymentReference(t,r).then(o=>o(e,n))},getPaymentStatus(t,r){return s.getPaymentStatus(t,r).then(o=>o(e,n))},initiateNetsTerminalTransaction(t,r){return s.initiateNetsTerminalTransaction(t,r).then(o=>o(e,n))},initiateTerminalTransaction(t,r){return s.initiateTerminalTransaction(t,r).then(o=>o(e,n))},processOnlineOrderRefund(t,r){return s.processOnlineOrderRefund(t,r).then(o=>o(e,n))},refundSingleVivaTransaction(t,r){return s.refundSingleVivaTransaction(t,r).then(o=>o(e,n))}}},Ze=class extends S{cancelNetsTerminalTransaction(n,e){return j(this.configuration).cancelNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(n,e){return j(this.configuration).cancelVivaTransactionV2(n,e).then(s=>s(this.axios,this.basePath))}createNetsRefundTransaction(n,e){return j(this.configuration).createNetsRefundTransaction(n,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(n,e){return j(this.configuration).getPaymentReference(n,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(n,e){return j(this.configuration).getPaymentStatus(n,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(n,e){return j(this.configuration).initiateNetsTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(n,e){return j(this.configuration).initiateTerminalTransaction(n,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(n,e){return j(this.configuration).processOnlineOrderRefund(n,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(n,e){return j(this.configuration).refundSingleVivaTransaction(n,e).then(s=>s(this.axios,this.basePath))}},ts=function(a){return{createPaymentMethod:async(n,e,s,t={})=>{c("createPaymentMethod","businessId",n),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},deletePaymentMethodOption:async(n,e,s,t={})=>{c("deletePaymentMethodOption","businessId",n),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getCatalog:async(n,e,s,t={})=>{c("getCatalog","businessId",n),c("getCatalog","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getGlobalCatalog:async(n,e={})=>{let s="/api/v1/payment-methods/catalog",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.locale=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentMethods:async(n,e,s,t={})=>{c("getPaymentMethods","businessId",n),c("getPaymentMethods","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getTypes:async(n={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},reorder:async(n,e,s,t={})=>{c("reorder","businessId",n),c("reorder","channel",e),c("reorder","bulkRankDto",s);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updatePaymentMethodOption:async(n,e,s,t,r={})=>{c("updatePaymentMethodOption","businessId",n),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",s),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(n))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},K=function(a){let n=ts(a);return{async createPaymentMethod(e,s,t,r){let o=await n.createPaymentMethod(e,s,t,r);return P(o,h,p,a)},async deletePaymentMethodOption(e,s,t,r){let o=await n.deletePaymentMethodOption(e,s,t,r);return P(o,h,p,a)},async getCatalog(e,s,t,r){let o=await n.getCatalog(e,s,t,r);return P(o,h,p,a)},async getGlobalCatalog(e,s){let t=await n.getGlobalCatalog(e,s);return P(t,h,p,a)},async getPaymentMethods(e,s,t,r){let o=await n.getPaymentMethods(e,s,t,r);return P(o,h,p,a)},async getTypes(e){let s=await n.getTypes(e);return P(s,h,p,a)},async reorder(e,s,t,r){let o=await n.reorder(e,s,t,r);return P(o,h,p,a)},async updatePaymentMethodOption(e,s,t,r,o){let i=await n.updatePaymentMethodOption(e,s,t,r,o);return P(i,h,p,a)}}},Oo=function(a,n,e){let s=K(a);return{createPaymentMethod(t,r,o,i){return s.createPaymentMethod(t,r,o,i).then(l=>l(e,n))},deletePaymentMethodOption(t,r,o,i){return s.deletePaymentMethodOption(t,r,o,i).then(l=>l(e,n))},getCatalog(t,r,o,i){return s.getCatalog(t,r,o,i).then(l=>l(e,n))},getGlobalCatalog(t,r){return s.getGlobalCatalog(t,r).then(o=>o(e,n))},getPaymentMethods(t,r,o,i){return s.getPaymentMethods(t,r,o,i).then(l=>l(e,n))},getTypes(t){return s.getTypes(t).then(r=>r(e,n))},reorder(t,r,o,i){return s.reorder(t,r,o,i).then(l=>l(e,n))},updatePaymentMethodOption(t,r,o,i,l){return s.updatePaymentMethodOption(t,r,o,i,l).then(u=>u(e,n))}}},et=class extends S{createPaymentMethod(n,e,s,t){return K(this.configuration).createPaymentMethod(n,e,s,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(n,e,s,t){return K(this.configuration).deletePaymentMethodOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}getCatalog(n,e,s,t){return K(this.configuration).getCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getGlobalCatalog(n,e){return K(this.configuration).getGlobalCatalog(n,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(n,e,s,t){return K(this.configuration).getPaymentMethods(n,e,s,t).then(r=>r(this.axios,this.basePath))}getTypes(n){return K(this.configuration).getTypes(n).then(e=>e(this.axios,this.basePath))}reorder(n,e,s,t){return K(this.configuration).reorder(n,e,s,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(n,e,s,t,r){return K(this.configuration).updatePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},ss=function(a){return{cancelSession:async(n,e={})=>{c("cancelSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrderSettlementStatus:async(n,e,s,t={})=>{c("getOrderSettlementStatus","businessId",n),c("getOrderSettlementStatus","orderId",e);let r="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},getPaymentSession:async(n,e={})=>{c("getPaymentSession","clientToken",n);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentSessionAnalytics:async(n,e,s,t,r={})=>{c("getPaymentSessionAnalytics","businessId",n),c("getPaymentSessionAnalytics","timeSpan",e);let o="/api/v1/payment-session/analytics",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};n!==void 0&&(A.businessId=n),e!==void 0&&(A.timeSpan=e),s!==void 0&&(A.start=s),t!==void 0&&(A.end=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},initiateNetsSession:async(n,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",n);let t="/api/v1/payment-session/nets/initiate",r=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",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:y(r),options:i}},initiateVivaA2aSession:async(n,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",n);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},initiateVivaSession:async(n,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",n);let t="/api/v1/payment-session/viva/initiate",r=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",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:y(r),options:i}},initiateWorldlineSession:async(n,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",n);let t="/api/v1/payment-session/worldline/initiate",r=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",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(n,i,a),{url:y(r),options:i}},paymentSessionGetChargeStatus:async(n,e={})=>{c("paymentSessionGetChargeStatus","chargeId",n);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},paymentSessionRegisterChargeMapping:async(n,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",n);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},pollVivaSession:async(n,e={})=>{c("pollVivaSession","pollVivaSessionDto",n);let s="/api/v1/payment-session/poll",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},pollWorldlineSession:async(n,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",n);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},recordManualPayment:async(n,e={})=>{c("recordManualPayment","createManualSessionDto",n);let s="/api/v1/payment-session/manual",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundNetsSession:async(n,e={})=>{c("refundNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundVivaSession:async(n,e={})=>{c("refundVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},refundWorldlineSession:async(n,e={})=>{c("refundWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},retryWorldlineReversal:async(n,e={})=>{c("retryWorldlineReversal","retryWorldlineReversalDto",n);let s="/api/v1/payment-session/worldline/reversal-retry",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},revertNetsSession:async(n,e={})=>{c("revertNetsSession","reverseSessionDto",n);let s="/api/v1/payment-session/nets/revert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},revertVivaSession:async(n,e={})=>{c("revertVivaSession","reverseSessionDto",n);let s="/api/v1/payment-session/revert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},revertWorldlineSession:async(n,e={})=>{c("revertWorldlineSession","reverseSessionDto",n);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},voidManualPayment:async(n,e={})=>{c("voidManualPayment","voidManualSessionDto",n);let s="/api/v1/payment-session/void",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},E=function(a){let n=ss(a);return{async cancelSession(e,s){let t=await n.cancelSession(e,s);return P(t,h,p,a)},async getOrderSettlementStatus(e,s,t,r){let o=await n.getOrderSettlementStatus(e,s,t,r);return P(o,h,p,a)},async getPaymentSession(e,s){let t=await n.getPaymentSession(e,s);return P(t,h,p,a)},async getPaymentSessionAnalytics(e,s,t,r,o){let i=await n.getPaymentSessionAnalytics(e,s,t,r,o);return P(i,h,p,a)},async initiateNetsSession(e,s,t){let r=await n.initiateNetsSession(e,s,t);return P(r,h,p,a)},async initiateVivaA2aSession(e,s){let t=await n.initiateVivaA2aSession(e,s);return P(t,h,p,a)},async initiateVivaSession(e,s,t){let r=await n.initiateVivaSession(e,s,t);return P(r,h,p,a)},async initiateWorldlineSession(e,s,t){let r=await n.initiateWorldlineSession(e,s,t);return P(r,h,p,a)},async paymentSessionGetChargeStatus(e,s){let t=await n.paymentSessionGetChargeStatus(e,s);return P(t,h,p,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await n.paymentSessionRegisterChargeMapping(e,s);return P(t,h,p,a)},async pollVivaSession(e,s){let t=await n.pollVivaSession(e,s);return P(t,h,p,a)},async pollWorldlineSession(e,s){let t=await n.pollWorldlineSession(e,s);return P(t,h,p,a)},async recordManualPayment(e,s){let t=await n.recordManualPayment(e,s);return P(t,h,p,a)},async refundNetsSession(e,s){let t=await n.refundNetsSession(e,s);return P(t,h,p,a)},async refundVivaSession(e,s){let t=await n.refundVivaSession(e,s);return P(t,h,p,a)},async refundWorldlineSession(e,s){let t=await n.refundWorldlineSession(e,s);return P(t,h,p,a)},async retryWorldlineReversal(e,s){let t=await n.retryWorldlineReversal(e,s);return P(t,h,p,a)},async revertNetsSession(e,s){let t=await n.revertNetsSession(e,s);return P(t,h,p,a)},async revertVivaSession(e,s){let t=await n.revertVivaSession(e,s);return P(t,h,p,a)},async revertWorldlineSession(e,s){let t=await n.revertWorldlineSession(e,s);return P(t,h,p,a)},async voidManualPayment(e,s){let t=await n.voidManualPayment(e,s);return P(t,h,p,a)}}},So=function(a,n,e){let s=E(a);return{cancelSession(t,r){return s.cancelSession(t,r).then(o=>o(e,n))},getOrderSettlementStatus(t,r,o,i){return s.getOrderSettlementStatus(t,r,o,i).then(l=>l(e,n))},getPaymentSession(t,r){return s.getPaymentSession(t,r).then(o=>o(e,n))},getPaymentSessionAnalytics(t,r,o,i,l){return s.getPaymentSessionAnalytics(t,r,o,i,l).then(u=>u(e,n))},initiateNetsSession(t,r,o){return s.initiateNetsSession(t,r,o).then(i=>i(e,n))},initiateVivaA2aSession(t,r){return s.initiateVivaA2aSession(t,r).then(o=>o(e,n))},initiateVivaSession(t,r,o){return s.initiateVivaSession(t,r,o).then(i=>i(e,n))},initiateWorldlineSession(t,r,o){return s.initiateWorldlineSession(t,r,o).then(i=>i(e,n))},paymentSessionGetChargeStatus(t,r){return s.paymentSessionGetChargeStatus(t,r).then(o=>o(e,n))},paymentSessionRegisterChargeMapping(t,r){return s.paymentSessionRegisterChargeMapping(t,r).then(o=>o(e,n))},pollVivaSession(t,r){return s.pollVivaSession(t,r).then(o=>o(e,n))},pollWorldlineSession(t,r){return s.pollWorldlineSession(t,r).then(o=>o(e,n))},recordManualPayment(t,r){return s.recordManualPayment(t,r).then(o=>o(e,n))},refundNetsSession(t,r){return s.refundNetsSession(t,r).then(o=>o(e,n))},refundVivaSession(t,r){return s.refundVivaSession(t,r).then(o=>o(e,n))},refundWorldlineSession(t,r){return s.refundWorldlineSession(t,r).then(o=>o(e,n))},retryWorldlineReversal(t,r){return s.retryWorldlineReversal(t,r).then(o=>o(e,n))},revertNetsSession(t,r){return s.revertNetsSession(t,r).then(o=>o(e,n))},revertVivaSession(t,r){return s.revertVivaSession(t,r).then(o=>o(e,n))},revertWorldlineSession(t,r){return s.revertWorldlineSession(t,r).then(o=>o(e,n))},voidManualPayment(t,r){return s.voidManualPayment(t,r).then(o=>o(e,n))}}},tt=class extends S{cancelSession(n,e){return E(this.configuration).cancelSession(n,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(n,e,s,t){return E(this.configuration).getOrderSettlementStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}getPaymentSession(n,e){return E(this.configuration).getPaymentSession(n,e).then(s=>s(this.axios,this.basePath))}getPaymentSessionAnalytics(n,e,s,t,r){return E(this.configuration).getPaymentSessionAnalytics(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}initiateNetsSession(n,e,s){return E(this.configuration).initiateNetsSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(n,e){return E(this.configuration).initiateVivaA2aSession(n,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(n,e,s){return E(this.configuration).initiateVivaSession(n,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(n,e,s){return E(this.configuration).initiateWorldlineSession(n,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(n,e){return E(this.configuration).paymentSessionGetChargeStatus(n,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(n,e){return E(this.configuration).paymentSessionRegisterChargeMapping(n,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(n,e){return E(this.configuration).pollVivaSession(n,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(n,e){return E(this.configuration).pollWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(n,e){return E(this.configuration).recordManualPayment(n,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(n,e){return E(this.configuration).refundNetsSession(n,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(n,e){return E(this.configuration).refundVivaSession(n,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(n,e){return E(this.configuration).refundWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}retryWorldlineReversal(n,e){return E(this.configuration).retryWorldlineReversal(n,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(n,e){return E(this.configuration).revertNetsSession(n,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(n,e){return E(this.configuration).revertVivaSession(n,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(n,e){return E(this.configuration).revertWorldlineSession(n,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(n,e){return E(this.configuration).voidManualPayment(n,e).then(s=>s(this.axios,this.basePath))}},ns=function(a){return{deleteCategoryPolicy:async(n,e,s={})=>{c("deleteCategoryPolicy","businessId",n),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.categoryId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deletePrinter:async(n,e,s={})=>{c("deletePrinter","id",n),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deletePrinterByAddress:async(n,e,s={})=>{c("deletePrinterByAddress","businessId",n),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.address=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},deleteProductPolicy:async(n,e,s={})=>{c("deleteProductPolicy","businessId",n),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};n!==void 0&&(u.businessId=n),e!==void 0&&(u.productId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},listCategoryPolicies:async(n,e={})=>{c("listCategoryPolicies","businessId",n);let s="/api/v1/printer/policies/category",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listPrinters:async(n,e={})=>{c("listPrinters","businessId",n);let s="/api/v1/printer",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listProductPolicies:async(n,e={})=>{c("listProductPolicies","businessId",n);let s="/api/v1/printer/policies/product",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},upsertCategoryPolicy:async(n,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",n);let s="/api/v1/printer/policies/category",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},upsertPrinter:async(n,e={})=>{c("upsertPrinter","upsertPrinterDto",n);let s="/api/v1/printer",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},upsertProductPolicy:async(n,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",n);let s="/api/v1/printer/policies/product",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},F=function(a){let n=ns(a);return{async deleteCategoryPolicy(e,s,t){let r=await n.deleteCategoryPolicy(e,s,t);return P(r,h,p,a)},async deletePrinter(e,s,t){let r=await n.deletePrinter(e,s,t);return P(r,h,p,a)},async deletePrinterByAddress(e,s,t){let r=await n.deletePrinterByAddress(e,s,t);return P(r,h,p,a)},async deleteProductPolicy(e,s,t){let r=await n.deleteProductPolicy(e,s,t);return P(r,h,p,a)},async listCategoryPolicies(e,s){let t=await n.listCategoryPolicies(e,s);return P(t,h,p,a)},async listPrinters(e,s){let t=await n.listPrinters(e,s);return P(t,h,p,a)},async listProductPolicies(e,s){let t=await n.listProductPolicies(e,s);return P(t,h,p,a)},async upsertCategoryPolicy(e,s){let t=await n.upsertCategoryPolicy(e,s);return P(t,h,p,a)},async upsertPrinter(e,s){let t=await n.upsertPrinter(e,s);return P(t,h,p,a)},async upsertProductPolicy(e,s){let t=await n.upsertProductPolicy(e,s);return P(t,h,p,a)}}},Vo=function(a,n,e){let s=F(a);return{deleteCategoryPolicy(t,r,o){return s.deleteCategoryPolicy(t,r,o).then(i=>i(e,n))},deletePrinter(t,r,o){return s.deletePrinter(t,r,o).then(i=>i(e,n))},deletePrinterByAddress(t,r,o){return s.deletePrinterByAddress(t,r,o).then(i=>i(e,n))},deleteProductPolicy(t,r,o){return s.deleteProductPolicy(t,r,o).then(i=>i(e,n))},listCategoryPolicies(t,r){return s.listCategoryPolicies(t,r).then(o=>o(e,n))},listPrinters(t,r){return s.listPrinters(t,r).then(o=>o(e,n))},listProductPolicies(t,r){return s.listProductPolicies(t,r).then(o=>o(e,n))},upsertCategoryPolicy(t,r){return s.upsertCategoryPolicy(t,r).then(o=>o(e,n))},upsertPrinter(t,r){return s.upsertPrinter(t,r).then(o=>o(e,n))},upsertProductPolicy(t,r){return s.upsertProductPolicy(t,r).then(o=>o(e,n))}}},st=class extends S{deleteCategoryPolicy(n,e,s){return F(this.configuration).deleteCategoryPolicy(n,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(n,e,s){return F(this.configuration).deletePrinter(n,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(n,e,s){return F(this.configuration).deletePrinterByAddress(n,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(n,e,s){return F(this.configuration).deleteProductPolicy(n,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(n,e){return F(this.configuration).listCategoryPolicies(n,e).then(s=>s(this.axios,this.basePath))}listPrinters(n,e){return F(this.configuration).listPrinters(n,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(n,e){return F(this.configuration).listProductPolicies(n,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(n,e){return F(this.configuration).upsertCategoryPolicy(n,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(n,e){return F(this.configuration).upsertPrinter(n,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(n,e){return F(this.configuration).upsertProductPolicy(n,e).then(s=>s(this.axios,this.basePath))}},rs=function(a){return{generateProductSkuV2:async(n,e,s,t={})=>{c("generateProductSkuV2","businessId",n),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelInventoryV2:async(n,e,s,t={})=>{c("getChannelInventoryV2","businessId",n),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(n,e,s,t,r={})=>{c("updateChannelInventoryV2","businessId",n),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",s),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},updateProductSkuV2:async(n,e,s,t,r={})=>{c("updateProductSkuV2","businessId",n),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",s),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(n))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},ne=function(a){let n=rs(a);return{async generateProductSkuV2(e,s,t,r){let o=await n.generateProductSkuV2(e,s,t,r);return P(o,h,p,a)},async getChannelInventoryV2(e,s,t,r){let o=await n.getChannelInventoryV2(e,s,t,r);return P(o,h,p,a)},async updateChannelInventoryV2(e,s,t,r,o){let i=await n.updateChannelInventoryV2(e,s,t,r,o);return P(i,h,p,a)},async updateProductSkuV2(e,s,t,r,o){let i=await n.updateProductSkuV2(e,s,t,r,o);return P(i,h,p,a)}}},Io=function(a,n,e){let s=ne(a);return{generateProductSkuV2(t,r,o,i){return s.generateProductSkuV2(t,r,o,i).then(l=>l(e,n))},getChannelInventoryV2(t,r,o,i){return s.getChannelInventoryV2(t,r,o,i).then(l=>l(e,n))},updateChannelInventoryV2(t,r,o,i,l){return s.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,n))},updateProductSkuV2(t,r,o,i,l){return s.updateProductSkuV2(t,r,o,i,l).then(u=>u(e,n))}}},nt=class extends S{generateProductSkuV2(n,e,s,t){return ne(this.configuration).generateProductSkuV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelInventoryV2(n,e,s,t){return ne(this.configuration).getChannelInventoryV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(n,e,s,t,r){return ne(this.configuration).updateChannelInventoryV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(n,e,s,t,r){return ne(this.configuration).updateProductSkuV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},os=function(a){return{createOnboardingSession:async(n,e,s={})=>{c("createOnboardingSession","channel",n),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},disconnectOnboarding:async(n,e,s={})=>{c("disconnectOnboarding","channel",n),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getMenuIntegrations:async(n,e={})=>{c("getMenuIntegrations","businessId",n);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOnboardingStatus:async(n,e,s={})=>{c("getOnboardingStatus","channel",n),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(n))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getSupportedChannels:async(n,e={})=>{c("getSupportedChannels","businessId",n);let s="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listOnboardingStores:async(n,e,s={})=>{c("listOnboardingStores","channel",n),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},provisionOnboardingStore:async(n,e,s,t={})=>{c("provisionOnboardingStore","channel",n),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",s);let r="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(n))).replace("{state}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},registerCredential:async(n,e={})=>{c("registerCredential","body",n);let s="/api/v1/provider/credentials",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},registerProvider:async(n,e={})=>{c("registerProvider","body",n);let s="/api/v1/provider",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updateProviderSettings:async(n,e,s={})=>{c("updateProviderSettings","businessId",n),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},_=function(a){let n=os(a);return{async createOnboardingSession(e,s,t){let r=await n.createOnboardingSession(e,s,t);return P(r,h,p,a)},async disconnectOnboarding(e,s,t){let r=await n.disconnectOnboarding(e,s,t);return P(r,h,p,a)},async getMenuIntegrations(e,s){let t=await n.getMenuIntegrations(e,s);return P(t,h,p,a)},async getOnboardingStatus(e,s,t){let r=await n.getOnboardingStatus(e,s,t);return P(r,h,p,a)},async getSupportedChannels(e,s){let t=await n.getSupportedChannels(e,s);return P(t,h,p,a)},async listOnboardingStores(e,s,t){let r=await n.listOnboardingStores(e,s,t);return P(r,h,p,a)},async provisionOnboardingStore(e,s,t,r){let o=await n.provisionOnboardingStore(e,s,t,r);return P(o,h,p,a)},async registerCredential(e,s){let t=await n.registerCredential(e,s);return P(t,h,p,a)},async registerProvider(e,s){let t=await n.registerProvider(e,s);return P(t,h,p,a)},async updateProviderSettings(e,s,t){let r=await n.updateProviderSettings(e,s,t);return P(r,h,p,a)}}},vo=function(a,n,e){let s=_(a);return{createOnboardingSession(t,r,o){return s.createOnboardingSession(t,r,o).then(i=>i(e,n))},disconnectOnboarding(t,r,o){return s.disconnectOnboarding(t,r,o).then(i=>i(e,n))},getMenuIntegrations(t,r){return s.getMenuIntegrations(t,r).then(o=>o(e,n))},getOnboardingStatus(t,r,o){return s.getOnboardingStatus(t,r,o).then(i=>i(e,n))},getSupportedChannels(t,r){return s.getSupportedChannels(t,r).then(o=>o(e,n))},listOnboardingStores(t,r,o){return s.listOnboardingStores(t,r,o).then(i=>i(e,n))},provisionOnboardingStore(t,r,o,i){return s.provisionOnboardingStore(t,r,o,i).then(l=>l(e,n))},registerCredential(t,r){return s.registerCredential(t,r).then(o=>o(e,n))},registerProvider(t,r){return s.registerProvider(t,r).then(o=>o(e,n))},updateProviderSettings(t,r,o){return s.updateProviderSettings(t,r,o).then(i=>i(e,n))}}},rt=class extends S{createOnboardingSession(n,e,s){return _(this.configuration).createOnboardingSession(n,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(n,e,s){return _(this.configuration).disconnectOnboarding(n,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(n,e){return _(this.configuration).getMenuIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(n,e,s){return _(this.configuration).getOnboardingStatus(n,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(n,e){return _(this.configuration).getSupportedChannels(n,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(n,e,s){return _(this.configuration).listOnboardingStores(n,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(n,e,s,t){return _(this.configuration).provisionOnboardingStore(n,e,s,t).then(r=>r(this.axios,this.basePath))}registerCredential(n,e){return _(this.configuration).registerCredential(n,e).then(s=>s(this.axios,this.basePath))}registerProvider(n,e){return _(this.configuration).registerProvider(n,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(n,e,s){return _(this.configuration).updateProviderSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},as=function(a){return{cancelPlan:async(n,e,s,t={})=>{c("cancelPlan","businessId",n),c("cancelPlan","orderId",e),c("cancelPlan","refundId",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},cancelPlanV2:async(n,e,s,t={})=>{c("cancelPlanV2","businessId",n),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},createRefundPlan:async(n,e,s,t={})=>{c("createRefundPlan","businessId",n),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},createRefundPlanV2:async(n,e,s,t={})=>{c("createRefundPlanV2","businessId",n),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},getRefundPlan:async(n,e,s,t={})=>{c("getRefundPlan","businessId",n),c("getRefundPlan","orderId",e),c("getRefundPlan","status",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getRefundPlanV2:async(n,e,s,t={})=>{c("getRefundPlanV2","businessId",n),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(n,e,s,t,r={})=>{c("recordRefundPlan","businessId",n),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(n))).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,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},recordRefundPlanV2:async(n,e,s,t,r={})=>{c("recordRefundPlanV2","businessId",n),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",s),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(n,e,s,t={})=>{c("refundOnlineOrder","businessId",n),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},refundOnlineOrderV2:async(n,e,s,t={})=>{c("refundOnlineOrderV2","businessId",n),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(n,e,s,t,r={})=>{c("resolveRefundChoice","businessId",n),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(n))).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,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},resolveRefundChoiceV2:async(n,e,s,t,r={})=>{c("resolveRefundChoiceV2","businessId",n),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",s),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},startProcessPlan:async(n,e,s,t={})=>{c("startProcessPlan","businessId",n),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",s);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},startProcessPlanV2:async(n,e,s,t={})=>{c("startProcessPlanV2","businessId",n),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(n))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},M=function(a){let n=as(a);return{async cancelPlan(e,s,t,r){let o=await n.cancelPlan(e,s,t,r);return P(o,h,p,a)},async cancelPlanV2(e,s,t,r){let o=await n.cancelPlanV2(e,s,t,r);return P(o,h,p,a)},async createRefundPlan(e,s,t,r){let o=await n.createRefundPlan(e,s,t,r);return P(o,h,p,a)},async createRefundPlanV2(e,s,t,r){let o=await n.createRefundPlanV2(e,s,t,r);return P(o,h,p,a)},async getRefundPlan(e,s,t,r){let o=await n.getRefundPlan(e,s,t,r);return P(o,h,p,a)},async getRefundPlanV2(e,s,t,r){let o=await n.getRefundPlanV2(e,s,t,r);return P(o,h,p,a)},async recordRefundPlan(e,s,t,r,o){let i=await n.recordRefundPlan(e,s,t,r,o);return P(i,h,p,a)},async recordRefundPlanV2(e,s,t,r,o){let i=await n.recordRefundPlanV2(e,s,t,r,o);return P(i,h,p,a)},async refundOnlineOrder(e,s,t,r){let o=await n.refundOnlineOrder(e,s,t,r);return P(o,h,p,a)},async refundOnlineOrderV2(e,s,t,r){let o=await n.refundOnlineOrderV2(e,s,t,r);return P(o,h,p,a)},async resolveRefundChoice(e,s,t,r,o){let i=await n.resolveRefundChoice(e,s,t,r,o);return P(i,h,p,a)},async resolveRefundChoiceV2(e,s,t,r,o){let i=await n.resolveRefundChoiceV2(e,s,t,r,o);return P(i,h,p,a)},async startProcessPlan(e,s,t,r){let o=await n.startProcessPlan(e,s,t,r);return P(o,h,p,a)},async startProcessPlanV2(e,s,t,r){let o=await n.startProcessPlanV2(e,s,t,r);return P(o,h,p,a)}}},To=function(a,n,e){let s=M(a);return{cancelPlan(t,r,o,i){return s.cancelPlan(t,r,o,i).then(l=>l(e,n))},cancelPlanV2(t,r,o,i){return s.cancelPlanV2(t,r,o,i).then(l=>l(e,n))},createRefundPlan(t,r,o,i){return s.createRefundPlan(t,r,o,i).then(l=>l(e,n))},createRefundPlanV2(t,r,o,i){return s.createRefundPlanV2(t,r,o,i).then(l=>l(e,n))},getRefundPlan(t,r,o,i){return s.getRefundPlan(t,r,o,i).then(l=>l(e,n))},getRefundPlanV2(t,r,o,i){return s.getRefundPlanV2(t,r,o,i).then(l=>l(e,n))},recordRefundPlan(t,r,o,i,l){return s.recordRefundPlan(t,r,o,i,l).then(u=>u(e,n))},recordRefundPlanV2(t,r,o,i,l){return s.recordRefundPlanV2(t,r,o,i,l).then(u=>u(e,n))},refundOnlineOrder(t,r,o,i){return s.refundOnlineOrder(t,r,o,i).then(l=>l(e,n))},refundOnlineOrderV2(t,r,o,i){return s.refundOnlineOrderV2(t,r,o,i).then(l=>l(e,n))},resolveRefundChoice(t,r,o,i,l){return s.resolveRefundChoice(t,r,o,i,l).then(u=>u(e,n))},resolveRefundChoiceV2(t,r,o,i,l){return s.resolveRefundChoiceV2(t,r,o,i,l).then(u=>u(e,n))},startProcessPlan(t,r,o,i){return s.startProcessPlan(t,r,o,i).then(l=>l(e,n))},startProcessPlanV2(t,r,o,i){return s.startProcessPlanV2(t,r,o,i).then(l=>l(e,n))}}},ot=class extends S{cancelPlan(n,e,s,t){return M(this.configuration).cancelPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}cancelPlanV2(n,e,s,t){return M(this.configuration).cancelPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(n,e,s,t){return M(this.configuration).createRefundPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}createRefundPlanV2(n,e,s,t){return M(this.configuration).createRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(n,e,s,t){return M(this.configuration).getRefundPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}getRefundPlanV2(n,e,s,t){return M(this.configuration).getRefundPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(n,e,s,t,r){return M(this.configuration).recordRefundPlan(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(n,e,s,t,r){return M(this.configuration).recordRefundPlanV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(n,e,s,t){return M(this.configuration).refundOnlineOrder(n,e,s,t).then(r=>r(this.axios,this.basePath))}refundOnlineOrderV2(n,e,s,t){return M(this.configuration).refundOnlineOrderV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(n,e,s,t,r){return M(this.configuration).resolveRefundChoice(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(n,e,s,t,r){return M(this.configuration).resolveRefundChoiceV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(n,e,s,t){return M(this.configuration).startProcessPlan(n,e,s,t).then(r=>r(this.axios,this.basePath))}startProcessPlanV2(n,e,s,t){return M(this.configuration).startProcessPlanV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}},is=function(a){return{getEndOfDayReportV5:async(n,e,s,t,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",n);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),s!==void 0&&(R.start=s),t!==void 0&&(R.end=t),n&&(R.businessIds=n),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(n,e,s,t,r,o={})=>{c("getPOSEndOfDayReportV4","businessIds",n);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),n&&(x.businessIds=n),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(n,e,s,t,r,o,i={})=>{c("sendReportEmailV4","businessIds",n),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={},R={};t!==void 0&&(R.timeSpan=t),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),n&&(R.businessIds=n),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},A.data=b(s,A,a),{url:y(u),options:A}},sendReportEmailV5:async(n,e,s,t,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",n),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},R={},C={};t!==void 0&&(C.timeSpan=t),r!==void 0&&(C.start=r),o!==void 0&&(C.end=o),n&&(C.businessIds=n),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),R["Content-Type"]="application/json",g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},x.data=b(s,x,a),{url:y(d),options:x}}}},re=function(a){let n=is(a);return{async getEndOfDayReportV5(e,s,t,r,o,i,l){let u=await n.getEndOfDayReportV5(e,s,t,r,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,s,t,r,o,i){let l=await n.getPOSEndOfDayReportV4(e,s,t,r,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,s,t,r,o,i,l){let u=await n.sendReportEmailV4(e,s,t,r,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,s,t,r,o,i,l,u){let d=await n.sendReportEmailV5(e,s,t,r,o,i,l,u);return P(d,h,p,a)}}},qo=function(a,n,e){let s=re(a);return{getEndOfDayReportV5(t,r,o,i,l,u,d){return s.getEndOfDayReportV5(t,r,o,i,l,u,d).then(A=>A(e,n))},getPOSEndOfDayReportV4(t,r,o,i,l,u){return s.getPOSEndOfDayReportV4(t,r,o,i,l,u).then(d=>d(e,n))},sendReportEmailV4(t,r,o,i,l,u,d){return s.sendReportEmailV4(t,r,o,i,l,u,d).then(A=>A(e,n))},sendReportEmailV5(t,r,o,i,l,u,d,A){return s.sendReportEmailV5(t,r,o,i,l,u,d,A).then(x=>x(e,n))}}},at=class extends S{getEndOfDayReportV5(n,e,s,t,r,o,i){return re(this.configuration).getEndOfDayReportV5(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(n,e,s,t,r,o){return re(this.configuration).getPOSEndOfDayReportV4(n,e,s,t,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(n,e,s,t,r,o,i){return re(this.configuration).sendReportEmailV4(n,e,s,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(n,e,s,t,r,o,i,l){return re(this.configuration).sendReportEmailV5(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},ls=function(a){return{createReservation:async(n,e={})=>{c("createReservation","createReservationDto",n);let s="/api/v1/reservations",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getReservationAvailability:async(n,e,s,t,r,o={})=>{c("getReservationAvailability","businessId",n),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 f(A,a),n!==void 0&&(x.businessId=n),e!==void 0&&(x.date=e),s!==void 0&&(x.partySize=s),t!==void 0&&(x.sectionId=t),r!==void 0&&(x.excludeReservationId=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},getReservationPolicy:async(n,e={})=>{c("getReservationPolicy","businessId",n);let s="/api/v1/reservations/policy",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},linkReservationIntegration:async(n,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",n);let s="/api/v1/reservations/link",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},listReservations:async(n,e,s,t={})=>{c("listReservations","businessId",n);let r="/api/v1/reservations",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),n!==void 0&&(d.businessId=n),e!==void 0&&(d.date=e),s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},reservationInboundWebhook:async(n,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",n);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},unlinkReservationIntegration:async(n,e={})=>{c("unlinkReservationIntegration","businessId",n);let s="/api/v1/reservations/link",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await f(i,a),n!==void 0&&(l.businessId=n),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateReservation:async(n,e,s,t={})=>{c("updateReservation","id",n),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let r="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}},updateReservationPolicy:async(n,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",n);let s="/api/v1/reservations/policy",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updateReservationStatus:async(n,e,s,t={})=>{c("updateReservationStatus","id",n),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let r="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(s,l,a),{url:y(o),options:l}}}},N=function(a){let n=ls(a);return{async createReservation(e,s){let t=await n.createReservation(e,s);return P(t,h,p,a)},async getReservationAvailability(e,s,t,r,o,i){let l=await n.getReservationAvailability(e,s,t,r,o,i);return P(l,h,p,a)},async getReservationPolicy(e,s){let t=await n.getReservationPolicy(e,s);return P(t,h,p,a)},async linkReservationIntegration(e,s){let t=await n.linkReservationIntegration(e,s);return P(t,h,p,a)},async listReservations(e,s,t,r){let o=await n.listReservations(e,s,t,r);return P(o,h,p,a)},async reservationInboundWebhook(e,s){let t=await n.reservationInboundWebhook(e,s);return P(t,h,p,a)},async unlinkReservationIntegration(e,s){let t=await n.unlinkReservationIntegration(e,s);return P(t,h,p,a)},async updateReservation(e,s,t,r){let o=await n.updateReservation(e,s,t,r);return P(o,h,p,a)},async updateReservationPolicy(e,s){let t=await n.updateReservationPolicy(e,s);return P(t,h,p,a)},async updateReservationStatus(e,s,t,r){let o=await n.updateReservationStatus(e,s,t,r);return P(o,h,p,a)}}},Uo=function(a,n,e){let s=N(a);return{createReservation(t,r){return s.createReservation(t,r).then(o=>o(e,n))},getReservationAvailability(t,r,o,i,l,u){return s.getReservationAvailability(t,r,o,i,l,u).then(d=>d(e,n))},getReservationPolicy(t,r){return s.getReservationPolicy(t,r).then(o=>o(e,n))},linkReservationIntegration(t,r){return s.linkReservationIntegration(t,r).then(o=>o(e,n))},listReservations(t,r,o,i){return s.listReservations(t,r,o,i).then(l=>l(e,n))},reservationInboundWebhook(t,r){return s.reservationInboundWebhook(t,r).then(o=>o(e,n))},unlinkReservationIntegration(t,r){return s.unlinkReservationIntegration(t,r).then(o=>o(e,n))},updateReservation(t,r,o,i){return s.updateReservation(t,r,o,i).then(l=>l(e,n))},updateReservationPolicy(t,r){return s.updateReservationPolicy(t,r).then(o=>o(e,n))},updateReservationStatus(t,r,o,i){return s.updateReservationStatus(t,r,o,i).then(l=>l(e,n))}}},it=class extends S{createReservation(n,e){return N(this.configuration).createReservation(n,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(n,e,s,t,r,o){return N(this.configuration).getReservationAvailability(n,e,s,t,r,o).then(i=>i(this.axios,this.basePath))}getReservationPolicy(n,e){return N(this.configuration).getReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(n,e){return N(this.configuration).linkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}listReservations(n,e,s,t){return N(this.configuration).listReservations(n,e,s,t).then(r=>r(this.axios,this.basePath))}reservationInboundWebhook(n,e){return N(this.configuration).reservationInboundWebhook(n,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(n,e){return N(this.configuration).unlinkReservationIntegration(n,e).then(s=>s(this.axios,this.basePath))}updateReservation(n,e,s,t){return N(this.configuration).updateReservation(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateReservationPolicy(n,e){return N(this.configuration).updateReservationPolicy(n,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(n,e,s,t){return N(this.configuration).updateReservationStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},us=function(a){return{clockIn:async(n,e,s={})=>{c("clockIn","businessId",n),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},clockOut:async(n,e,s={})=>{c("clockOut","businessId",n),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getTodayShift:async(n,e,s={})=>{c("getTodayShift","businessId",n),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},unlock:async(n,e,s={})=>{c("unlock","businessId",n),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},oe=function(a){let n=us(a);return{async clockIn(e,s,t){let r=await n.clockIn(e,s,t);return P(r,h,p,a)},async clockOut(e,s,t){let r=await n.clockOut(e,s,t);return P(r,h,p,a)},async getTodayShift(e,s,t){let r=await n.getTodayShift(e,s,t);return P(r,h,p,a)},async unlock(e,s,t){let r=await n.unlock(e,s,t);return P(r,h,p,a)}}},Eo=function(a,n,e){let s=oe(a);return{clockIn(t,r,o){return s.clockIn(t,r,o).then(i=>i(e,n))},clockOut(t,r,o){return s.clockOut(t,r,o).then(i=>i(e,n))},getTodayShift(t,r,o){return s.getTodayShift(t,r,o).then(i=>i(e,n))},unlock(t,r,o){return s.unlock(t,r,o).then(i=>i(e,n))}}},lt=class extends S{clockIn(n,e,s){return oe(this.configuration).clockIn(n,e,s).then(t=>t(this.axios,this.basePath))}clockOut(n,e,s){return oe(this.configuration).clockOut(n,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(n,e,s){return oe(this.configuration).getTodayShift(n,e,s).then(t=>t(this.axios,this.basePath))}unlock(n,e,s){return oe(this.configuration).unlock(n,e,s).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{deactivateStation:async(n={})=>{let e="/api/v1/station/deactivate",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getStation:async(n={})=>{let e="/api/v1/station",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},syncStation:async(n,e={})=>{c("syncStation","syncStationDto",n);let s="/api/v1/station/sync",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},me=function(a){let n=cs(a);return{async deactivateStation(e){let s=await n.deactivateStation(e);return P(s,h,p,a)},async getStation(e){let s=await n.getStation(e);return P(s,h,p,a)},async syncStation(e,s){let t=await n.syncStation(e,s);return P(t,h,p,a)}}},Bo=function(a,n,e){let s=me(a);return{deactivateStation(t){return s.deactivateStation(t).then(r=>r(e,n))},getStation(t){return s.getStation(t).then(r=>r(e,n))},syncStation(t,r){return s.syncStation(t,r).then(o=>o(e,n))}}},ut=class extends S{deactivateStation(n){return me(this.configuration).deactivateStation(n).then(e=>e(this.axios,this.basePath))}getStation(n){return me(this.configuration).getStation(n).then(e=>e(this.axios,this.basePath))}syncStation(n,e){return me(this.configuration).syncStation(n,e).then(s=>s(this.axios,this.basePath))}},ds=function(a){return{connectTerminal:async(n,e={})=>{c("connectTerminal","connectTerminalDto",n);let s="/api/v1/terminal/connect",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},disconnectTerminal:async(n={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},discoverTerminal:async(n,e={})=>{c("discoverTerminal","discoverTerminalDto",n);let s="/api/v1/terminal/discover",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getTerminalStatus:async(n,e,s,t={})=>{c("getTerminalStatus","businessId",n),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",s);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(n))),o=new URL(r,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),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},ae=function(a){let n=ds(a);return{async connectTerminal(e,s){let t=await n.connectTerminal(e,s);return P(t,h,p,a)},async disconnectTerminal(e){let s=await n.disconnectTerminal(e);return P(s,h,p,a)},async discoverTerminal(e,s){let t=await n.discoverTerminal(e,s);return P(t,h,p,a)},async getTerminalStatus(e,s,t,r){let o=await n.getTerminalStatus(e,s,t,r);return P(o,h,p,a)}}},Mo=function(a,n,e){let s=ae(a);return{connectTerminal(t,r){return s.connectTerminal(t,r).then(o=>o(e,n))},disconnectTerminal(t){return s.disconnectTerminal(t).then(r=>r(e,n))},discoverTerminal(t,r){return s.discoverTerminal(t,r).then(o=>o(e,n))},getTerminalStatus(t,r,o,i){return s.getTerminalStatus(t,r,o,i).then(l=>l(e,n))}}},ct=class extends S{connectTerminal(n,e){return ae(this.configuration).connectTerminal(n,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(n){return ae(this.configuration).disconnectTerminal(n).then(e=>e(this.axios,this.basePath))}discoverTerminal(n,e){return ae(this.configuration).discoverTerminal(n,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(n,e,s,t){return ae(this.configuration).getTerminalStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},ps=function(a){return{getUserBusinessV1:async(n={})=>{let e="/api/v1/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getUserBusinessV2:async(n={})=>{let e="/api/v2/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},getUserInfoV1:async(n={})=>{let e="/api/v1/user",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},ge=function(a){let n=ps(a);return{async getUserBusinessV1(e){let s=await n.getUserBusinessV1(e);return P(s,h,p,a)},async getUserBusinessV2(e){let s=await n.getUserBusinessV2(e);return P(s,h,p,a)},async getUserInfoV1(e){let s=await n.getUserInfoV1(e);return P(s,h,p,a)}}},ko=function(a,n,e){let s=ge(a);return{getUserBusinessV1(t){return s.getUserBusinessV1(t).then(r=>r(e,n))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(r=>r(e,n))},getUserInfoV1(t){return s.getUserInfoV1(t).then(r=>r(e,n))}}},dt=class extends S{getUserBusinessV1(n){return ge(this.configuration).getUserBusinessV1(n).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(n){return ge(this.configuration).getUserBusinessV2(n).then(e=>e(this.axios,this.basePath))}getUserInfoV1(n){return ge(this.configuration).getUserInfoV1(n).then(e=>e(this.axios,this.basePath))}},ms=function(a){return{upsert:async(n,e={})=>{c("upsert","body",n);let s="/api/v1/vendure/seller/upsert",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},ft=function(a){let n=ms(a);return{async upsert(e,s){let t=await n.upsert(e,s);return P(t,h,p,a)}}},wo=function(a,n,e){let s=ft(a);return{upsert(t,r){return s.upsert(t,r).then(o=>o(e,n))}}},pt=class extends S{upsert(n,e){return ft(this.configuration).upsert(n,e).then(s=>s(this.axios,this.basePath))}},gs=function(a){return{createVivaAppToAppPayment:async(n,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",n);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},getVivaSession:async(n,e={})=>{c("getVivaSession","id",n);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listVivaSessions:async(n,e,s,t,r,o,i,l={})=>{c("listVivaSessions","businessId",n);let u="/api/v1/viva/sessions",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};n!==void 0&&(C.businessId=n),e!==void 0&&(C.page=e),s!==void 0&&(C.rowPerPage=s),t!==void 0&&(C.terminalId=t),r!==void 0&&(C.timeSpan=r),o!==void 0&&(C.start=o),i!==void 0&&(C.end=i),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},refundVivaPayment:async(n,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",n);let s="/api/v1/viva/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},ie=function(a){let n=gs(a);return{async createVivaAppToAppPayment(e,s){let t=await n.createVivaAppToAppPayment(e,s);return P(t,h,p,a)},async getVivaSession(e,s){let t=await n.getVivaSession(e,s);return P(t,h,p,a)},async listVivaSessions(e,s,t,r,o,i,l,u){let d=await n.listVivaSessions(e,s,t,r,o,i,l,u);return P(d,h,p,a)},async refundVivaPayment(e,s){let t=await n.refundVivaPayment(e,s);return P(t,h,p,a)}}},Lo=function(a,n,e){let s=ie(a);return{createVivaAppToAppPayment(t,r){return s.createVivaAppToAppPayment(t,r).then(o=>o(e,n))},getVivaSession(t,r){return s.getVivaSession(t,r).then(o=>o(e,n))},listVivaSessions(t,r,o,i,l,u,d,A){return s.listVivaSessions(t,r,o,i,l,u,d,A).then(x=>x(e,n))},refundVivaPayment(t,r){return s.refundVivaPayment(t,r).then(o=>o(e,n))}}},mt=class extends S{createVivaAppToAppPayment(n,e){return ie(this.configuration).createVivaAppToAppPayment(n,e).then(s=>s(this.axios,this.basePath))}getVivaSession(n,e){return ie(this.configuration).getVivaSession(n,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(n,e,s,t,r,o,i,l){return ie(this.configuration).listVivaSessions(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(n,e){return ie(this.configuration).refundVivaPayment(n,e).then(s=>s(this.axios,this.basePath))}},ys=function(a){return{handleAssignmentWebhook:async(n={})=>{let e="/api/webhook/add-employee-assignments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleBusinessWebhook:async(n={})=>{let e="/api/webhook/add-business",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleFoodoraEvent:async(n,e={})=>{c("handleFoodoraEvent","orderUpdateDto",n);let s="/api/webhook/order/event",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleLoadEmployee:async(n={})=>{let e="/api/webhook/load-employee",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsEvents:async(n={})=>{let e="/api/webhook/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsEventsV2:async(n={})=>{let e="/api/webhook/v2/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsSessionEvents:async(n={})=>{let e="/api/webhook/nets/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleNetsSessionEventsForClientToken:async(n,e={})=>{c("handleNetsSessionEventsForClientToken","clientToken",n);let s="/api/webhook/nets/payments/{clientToken}".replace("{clientToken}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handlePreorderReminder:async(n,e={})=>{c("handlePreorderReminder","preOrderReminderDto",n);let s="/api/webhook/preorder-reminder",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleRoleWebhook:async(n={})=>{let e="/api/webhook/add-roles",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleShiftWebhook:async(n={})=>{let e="/api/webhook/add-employee-shifts",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleVivaEvents:async(n,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/verification",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleVivaSessionEvents:async(n,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",n);let s="/api/webhook/viva/payments",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},handleWebhook:async(n={})=>{let e="/api/webhook/ship-day",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleWoltDriveEvent:async(n={})=>{let e="/api/webhook/wolt-drive/event",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleWoltDriveEventByCountry:async(n,e={})=>{c("handleWoltDriveEventByCountry","country",n);let s="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(n={})=>{let e="/api/webhook/worldline/events",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},handleWorldlineSessionEvents:async(n={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},processDispatchTask:async(n,e,s={})=>{c("processDispatchTask","xCloudtasksTaskretrycount",n),c("processDispatchTask","processDispatchTaskDto",e);let t="/api/webhook/pos/order-dispatch/process",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};n!=null&&(l["x-cloudtasks-taskretrycount"]=String(n)),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},processPosOrderActionsQueue:async(n,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",n);let s="/api/webhook/pos/order-actions/process",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},updateWoltProduct:async(n={})=>{let e="/api/webhook/wolt/product/edit",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},verifyVivaSessionWebhook:async(n={})=>{let e="/api/webhook/viva/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}},verifyVivaWebhook:async(n={})=>{let e="/api/webhook/viva/verification",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},q=function(a){let n=ys(a);return{async handleAssignmentWebhook(e){let s=await n.handleAssignmentWebhook(e);return P(s,h,p,a)},async handleBusinessWebhook(e){let s=await n.handleBusinessWebhook(e);return P(s,h,p,a)},async handleFoodoraEvent(e,s){let t=await n.handleFoodoraEvent(e,s);return P(t,h,p,a)},async handleLoadEmployee(e){let s=await n.handleLoadEmployee(e);return P(s,h,p,a)},async handleNetsEvents(e){let s=await n.handleNetsEvents(e);return P(s,h,p,a)},async handleNetsEventsV2(e){let s=await n.handleNetsEventsV2(e);return P(s,h,p,a)},async handleNetsSessionEvents(e){let s=await n.handleNetsSessionEvents(e);return P(s,h,p,a)},async handleNetsSessionEventsForClientToken(e,s){let t=await n.handleNetsSessionEventsForClientToken(e,s);return P(t,h,p,a)},async handlePreorderReminder(e,s){let t=await n.handlePreorderReminder(e,s);return P(t,h,p,a)},async handleRoleWebhook(e){let s=await n.handleRoleWebhook(e);return P(s,h,p,a)},async handleShiftWebhook(e){let s=await n.handleShiftWebhook(e);return P(s,h,p,a)},async handleVivaEvents(e,s){let t=await n.handleVivaEvents(e,s);return P(t,h,p,a)},async handleVivaSessionEvents(e,s){let t=await n.handleVivaSessionEvents(e,s);return P(t,h,p,a)},async handleWebhook(e){let s=await n.handleWebhook(e);return P(s,h,p,a)},async handleWoltDriveEvent(e){let s=await n.handleWoltDriveEvent(e);return P(s,h,p,a)},async handleWoltDriveEventByCountry(e,s){let t=await n.handleWoltDriveEventByCountry(e,s);return P(t,h,p,a)},async handleWorldlineEvents(e){let s=await n.handleWorldlineEvents(e);return P(s,h,p,a)},async handleWorldlineSessionEvents(e){let s=await n.handleWorldlineSessionEvents(e);return P(s,h,p,a)},async processDispatchTask(e,s,t){let r=await n.processDispatchTask(e,s,t);return P(r,h,p,a)},async processPosOrderActionsQueue(e,s){let t=await n.processPosOrderActionsQueue(e,s);return P(t,h,p,a)},async updateWoltProduct(e){let s=await n.updateWoltProduct(e);return P(s,h,p,a)},async verifyVivaSessionWebhook(e){let s=await n.verifyVivaSessionWebhook(e);return P(s,h,p,a)},async verifyVivaWebhook(e){let s=await n.verifyVivaWebhook(e);return P(s,h,p,a)}}},Fo=function(a,n,e){let s=q(a);return{handleAssignmentWebhook(t){return s.handleAssignmentWebhook(t).then(r=>r(e,n))},handleBusinessWebhook(t){return s.handleBusinessWebhook(t).then(r=>r(e,n))},handleFoodoraEvent(t,r){return s.handleFoodoraEvent(t,r).then(o=>o(e,n))},handleLoadEmployee(t){return s.handleLoadEmployee(t).then(r=>r(e,n))},handleNetsEvents(t){return s.handleNetsEvents(t).then(r=>r(e,n))},handleNetsEventsV2(t){return s.handleNetsEventsV2(t).then(r=>r(e,n))},handleNetsSessionEvents(t){return s.handleNetsSessionEvents(t).then(r=>r(e,n))},handleNetsSessionEventsForClientToken(t,r){return s.handleNetsSessionEventsForClientToken(t,r).then(o=>o(e,n))},handlePreorderReminder(t,r){return s.handlePreorderReminder(t,r).then(o=>o(e,n))},handleRoleWebhook(t){return s.handleRoleWebhook(t).then(r=>r(e,n))},handleShiftWebhook(t){return s.handleShiftWebhook(t).then(r=>r(e,n))},handleVivaEvents(t,r){return s.handleVivaEvents(t,r).then(o=>o(e,n))},handleVivaSessionEvents(t,r){return s.handleVivaSessionEvents(t,r).then(o=>o(e,n))},handleWebhook(t){return s.handleWebhook(t).then(r=>r(e,n))},handleWoltDriveEvent(t){return s.handleWoltDriveEvent(t).then(r=>r(e,n))},handleWoltDriveEventByCountry(t,r){return s.handleWoltDriveEventByCountry(t,r).then(o=>o(e,n))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(r=>r(e,n))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(r=>r(e,n))},processDispatchTask(t,r,o){return s.processDispatchTask(t,r,o).then(i=>i(e,n))},processPosOrderActionsQueue(t,r){return s.processPosOrderActionsQueue(t,r).then(o=>o(e,n))},updateWoltProduct(t){return s.updateWoltProduct(t).then(r=>r(e,n))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(r=>r(e,n))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(r=>r(e,n))}}},gt=class extends S{handleAssignmentWebhook(n){return q(this.configuration).handleAssignmentWebhook(n).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(n){return q(this.configuration).handleBusinessWebhook(n).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(n,e){return q(this.configuration).handleFoodoraEvent(n,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(n){return q(this.configuration).handleLoadEmployee(n).then(e=>e(this.axios,this.basePath))}handleNetsEvents(n){return q(this.configuration).handleNetsEvents(n).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(n){return q(this.configuration).handleNetsEventsV2(n).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(n){return q(this.configuration).handleNetsSessionEvents(n).then(e=>e(this.axios,this.basePath))}handleNetsSessionEventsForClientToken(n,e){return q(this.configuration).handleNetsSessionEventsForClientToken(n,e).then(s=>s(this.axios,this.basePath))}handlePreorderReminder(n,e){return q(this.configuration).handlePreorderReminder(n,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(n){return q(this.configuration).handleRoleWebhook(n).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(n){return q(this.configuration).handleShiftWebhook(n).then(e=>e(this.axios,this.basePath))}handleVivaEvents(n,e){return q(this.configuration).handleVivaEvents(n,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(n,e){return q(this.configuration).handleVivaSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleWebhook(n){return q(this.configuration).handleWebhook(n).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(n){return q(this.configuration).handleWoltDriveEvent(n).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(n,e){return q(this.configuration).handleWoltDriveEventByCountry(n,e).then(s=>s(this.axios,this.basePath))}handleWorldlineEvents(n){return q(this.configuration).handleWorldlineEvents(n).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(n){return q(this.configuration).handleWorldlineSessionEvents(n).then(e=>e(this.axios,this.basePath))}processDispatchTask(n,e,s){return q(this.configuration).processDispatchTask(n,e,s).then(t=>t(this.axios,this.basePath))}processPosOrderActionsQueue(n,e){return q(this.configuration).processPosOrderActionsQueue(n,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(n){return q(this.configuration).updateWoltProduct(n).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(n){return q(this.configuration).verifyVivaSessionWebhook(n).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(n){return q(this.configuration).verifyVivaWebhook(n).then(e=>e(this.axios,this.basePath))}},Ps=function(a){return{cancelPayment:async(n,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",n);let s="/api/v1/worldline/payment/cancel",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createPayment:async(n,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",n);let s="/api/v1/worldline/payment",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}},createRefund:async(n,e={})=>{c("createRefund","createWorldlineRefundDto",n);let s="/api/v1/worldline/refund",t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(n,o,a),{url:y(t),options:o}}}},ye=function(a){let n=Ps(a);return{async cancelPayment(e,s){let t=await n.cancelPayment(e,s);return P(t,h,p,a)},async createPayment(e,s){let t=await n.createPayment(e,s);return P(t,h,p,a)},async createRefund(e,s){let t=await n.createRefund(e,s);return P(t,h,p,a)}}},_o=function(a,n,e){let s=ye(a);return{cancelPayment(t,r){return s.cancelPayment(t,r).then(o=>o(e,n))},createPayment(t,r){return s.createPayment(t,r).then(o=>o(e,n))},createRefund(t,r){return s.createRefund(t,r).then(o=>o(e,n))}}},yt=class extends S{cancelPayment(n,e){return ye(this.configuration).cancelPayment(n,e).then(s=>s(this.axios,this.basePath))}createPayment(n,e){return ye(this.configuration).createPayment(n,e).then(s=>s(this.axios,this.basePath))}createRefund(n,e){return ye(this.configuration).createRefund(n,e).then(s=>s(this.axios,this.basePath))}},hs=function(a){return{createPaymentRequest:async(n,e,s={})=>{c("createPaymentRequest","terminalId",n),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},createRefundRequest:async(n,e,s={})=>{c("createRefundRequest","terminalId",n),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(r),options:i}},getPaymentResult:async(n,e={})=>{c("getPaymentResult","operationId",n);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(n,e,s={})=>{c("getTerminalAuthContext","terminalId",n),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getTerminalContext:async(n,e,s={})=>{c("getTerminalContext","terminalId",n),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(n))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(r),options:i}},getTerminalState:async(n,e={})=>{c("getTerminalState","terminalId",n);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(n))),t=new URL(s,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(n={})=>{let e="/api/v2/worldline/internal/callback",s=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...n},o={};g(s,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...n.headers},{url:y(s),options:r}}}},H=function(a){let n=hs(a);return{async createPaymentRequest(e,s,t){let r=await n.createPaymentRequest(e,s,t);return P(r,h,p,a)},async createRefundRequest(e,s,t){let r=await n.createRefundRequest(e,s,t);return P(r,h,p,a)},async getPaymentResult(e,s){let t=await n.getPaymentResult(e,s);return P(t,h,p,a)},async getTerminalAuthContext(e,s,t){let r=await n.getTerminalAuthContext(e,s,t);return P(r,h,p,a)},async getTerminalContext(e,s,t){let r=await n.getTerminalContext(e,s,t);return P(r,h,p,a)},async getTerminalState(e,s){let t=await n.getTerminalState(e,s);return P(t,h,p,a)},async handleCallback(e){let s=await n.handleCallback(e);return P(s,h,p,a)}}},No=function(a,n,e){let s=H(a);return{createPaymentRequest(t,r,o){return s.createPaymentRequest(t,r,o).then(i=>i(e,n))},createRefundRequest(t,r,o){return s.createRefundRequest(t,r,o).then(i=>i(e,n))},getPaymentResult(t,r){return s.getPaymentResult(t,r).then(o=>o(e,n))},getTerminalAuthContext(t,r,o){return s.getTerminalAuthContext(t,r,o).then(i=>i(e,n))},getTerminalContext(t,r,o){return s.getTerminalContext(t,r,o).then(i=>i(e,n))},getTerminalState(t,r){return s.getTerminalState(t,r).then(o=>o(e,n))},handleCallback(t){return s.handleCallback(t).then(r=>r(e,n))}}},Pt=class extends S{createPaymentRequest(n,e,s){return H(this.configuration).createPaymentRequest(n,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(n,e,s){return H(this.configuration).createRefundRequest(n,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(n,e){return H(this.configuration).getPaymentResult(n,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(n,e,s){return H(this.configuration).getTerminalAuthContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(n,e,s){return H(this.configuration).getTerminalContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(n,e){return H(this.configuration).getTerminalState(n,e).then(s=>s(this.axios,this.basePath))}handleCallback(n){return H(this.configuration).handleCallback(n).then(e=>e(this.axios,this.basePath))}};var Rt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(n={}){this.apiKey=n.apiKey,this.username=n.username,this.password=n.password,this.accessToken=n.accessToken,this.basePath=n.basePath,this.baseOptions=n.baseOptions,this.formDataCtor=n.formDataCtor}isJsonMime(n){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return n!==null&&(e.test(n)||n.toLowerCase()==="application/json-patch+json")}};var As={[le.Eur]:2,[le.Aed]:2,[le.Usd]:2,[le.Gbp]:2,BHD:3,JPY:0},$o={getMultiplier(a){let n=As[a.toUpperCase()];return typeof n!="number"?100:Math.round(10**n)}};import Pe from"lodash";var De=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),bs=a=>{let n=a.subcategories;return Array.isArray(n)?n:[]},xs=(a,n)=>({...a,colorCode:a.colorCode??n}),fs=(a,n)=>Pe.compact(a.map(e=>n.get(e))),Ct=(a,n)=>a.flatMap(e=>{let s=n[e];return s?[e,...Ct(s.childIds,n)]:[]}),Dt=(a,n)=>a.flatMap(e=>{let s=n[e];return s?.enabled?[e,...Dt(s.childIds,n)]:[]}),Jo=a=>{let n=new Map,e={},s={},t=De(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return n.set(d,xs(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=(R,C)=>{let O=String(R.id),I=o(R.products,u),V=De(bs(R)).map(U=>A(U,O));return s[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:V},O},x=De(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:n,categoriesById:e,subcategoriesById:s,categoryIdsOrder:r}},Xo=(a,n,e,s)=>{let t=n[a];if(!t)return[];let r=Dt(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return fs(o,s)},Zo=(a,n,e)=>{let s=n[a];if(!s)return[];let t=Ct(s.subcategoryIds,e);return Pe.compact(t.map(r=>e[r]))};var Rs="1.9.126";export{Ms as ABLYEVENT,Oe as AblyApi,St as AblyApiAxiosParamCreator,Yr as AblyApiFactory,Ae as AblyApiFp,ks as ActionEnum,Se as ActionPasscodesApi,Vt as ActionPasscodesApiAxiosParamCreator,zr as ActionPasscodesApiFactory,ce as ActionPasscodesApiFp,Ls as ActionsEnum,Ve as AuthApi,It as AuthApiAxiosParamCreator,Jr as AuthApiFactory,X as AuthApiFp,_s as AutonomousVehicleType,Ie as BusinessApi,vt as BusinessApiAxiosParamCreator,Xr as BusinessApiFactory,T as BusinessApiFp,Ns as BusinessBackgroundType,Ws as BusinessEventAction,Gs as BusinessEventType,Ks as BusinessPaymentIntegrationType,ve as BusinessProviderPolicyApi,Tt as BusinessProviderPolicyApiAxiosParamCreator,Zr as BusinessProviderPolicyApiFactory,ht as BusinessProviderPolicyApiFp,Te as BusinessScheduleApi,qt as BusinessScheduleApiAxiosParamCreator,eo as BusinessScheduleApiFactory,At as BusinessScheduleApiFp,Hs as BusinessStatusEnum,Qs as CashLogReason,$s as CashLogType,qe as CashManagementApi,Ut as CashManagementApiAxiosParamCreator,to as CashManagementApiFactory,$ as CashManagementApiFp,Ys as CashSessionDtoEnum,zs as CashSessionStatus,Js as CdsSessionRole,Xs as ChannelEnum,Ue as ChannelMenuApi,Et as ChannelMenuApiAxiosParamCreator,so as ChannelMenuApiFactory,de as ChannelMenuApiFp,Zs as ChargeStatusEnum,en as CheckoutModelEnum,tn as ConditionType,Ee as ConfigManagementApi,Bt as ConfigManagementApiAxiosParamCreator,no as ConfigManagementApiFactory,k as ConfigManagementApiFp,Rt as Configuration,sn as ConsumptionType,Be as CoursesApi,Mt as CoursesApiAxiosParamCreator,ro as CoursesApiFactory,be as CoursesApiFp,le as CurrencyCode,$o as CurrencyRegistry,nn as DayOfWeek,Me as DeliveryIntentApi,kt as DeliveryIntentApiAxiosParamCreator,oo as DeliveryIntentApiFactory,xe as DeliveryIntentApiFp,rn as DeliveryIntentStatus,on as DeliveryStatus,an as DeliveryType,ln as DeviceType,un as DiscountScope,cn as DiscountScopeType,dn as DiscountSourceType,pn as DiscountType,br as DiscountTypeEnum,ke as DisplayApi,wt as DisplayApiAxiosParamCreator,ao as DisplayApiFactory,Z as DisplayApiFp,we as EmployeesApi,Lt as EmployeesApiAxiosParamCreator,io as EmployeesApiFactory,bt as EmployeesApiFp,mn as EntityType,ws as EntityTypeEnum,Fs as EventTypeEnum,Hr as EventTypeIdEnum,gn as FeeType,Le as FloorPlanApi,Ft as FloorPlanApiAxiosParamCreator,lo as FloorPlanApiFactory,w as FloorPlanApiFp,Fe as GiftcardApi,_t as GiftcardApiAxiosParamCreator,uo as GiftcardApiFactory,fe as GiftcardApiFp,_e as HistoryApi,Nt as HistoryApiAxiosParamCreator,co as HistoryApiFactory,ee as HistoryApiFp,yn as IntegrationType,Ne as InvoiceCompaniesApi,jt as InvoiceCompaniesApiAxiosParamCreator,po as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,je as KDSApi,Wt as KDSApiAxiosParamCreator,mo as KDSApiFactory,te as KDSApiFp,Pn as KDSEVENTNAME,hn as KioskEventType,An as KioskLayout,We as KiosksApi,Gt as KiosksApiAxiosParamCreator,go as KiosksApiFactory,J as KiosksApiFp,bn as KitchenItemStatus,xn as KitchenStatus,fn as LocatorType,Rn as LoyaltyActionKey,Ge as LoyaltyIntegerationsApi,Kt as LoyaltyIntegerationsApiAxiosParamCreator,yo as LoyaltyIntegerationsApiFactory,L as LoyaltyIntegerationsApiFp,Rs as MUNCHI_CORE_VERSION,Ke as MenuApi,Ht as MenuApiAxiosParamCreator,Po as MenuApiFactory,z as MenuApiFp,js as MenuTypeEnum,He as MerchantsApi,Qt as MerchantsApiAxiosParamCreator,ho as MerchantsApiFactory,pe as MerchantsApiFp,Qe as MunchiGiftCardApi,$t as MunchiGiftCardApiAxiosParamCreator,Ao as MunchiGiftCardApiFactory,se as MunchiGiftCardApiFp,Nr as NameEnum,Cn as NetsRevertMethod,$e as NotificationApi,Yt as NotificationApiAxiosParamCreator,bo as NotificationApiFactory,Re as NotificationApiFp,Dn as OperatingMode,Fr as OperatingModeEnum,On as OrderFormat,Ye as OrderInternalApi,zt as OrderInternalApiAxiosParamCreator,xo as OrderInternalApiFactory,xt as OrderInternalApiFp,Sn as OrderMode,Vn as OrderRefundStatus,In as OrderSource,vn as OrderStatus,Tn as OrderStatusEnum,qn as OrderType,Un as OrderTypePOS,ze as OrdersApi,Jt as OrdersApiAxiosParamCreator,fo as OrdersApiFactory,B as OrdersApiFp,Je as POSSessionApi,Xt as POSSessionApiAxiosParamCreator,Ro as POSSessionApiFactory,Ce as POSSessionApiFp,Xe as PayTerminalApi,Zt as PayTerminalApiAxiosParamCreator,Co as PayTerminalApiFactory,G as PayTerminalApiFp,En as PayTerminalSessionRole,Ze as PaymentApi,es as PaymentApiAxiosParamCreator,Do as PaymentApiFactory,j as PaymentApiFp,Bn as PaymentApp,Mn as PaymentCheckoutFlow,kn as PaymentEventType,wn as PaymentFailureCode,Ln as PaymentMethod,et as PaymentMethodsApi,ts as PaymentMethodsApiAxiosParamCreator,Oo as PaymentMethodsApiFactory,K as PaymentMethodsApiFp,Fn as PaymentOutcomeStatus,_n as PaymentProvider,Nn as PaymentProviderEnum,jn as PaymentReportingBucket,tt as PaymentSessionApi,ss as PaymentSessionApiAxiosParamCreator,So as PaymentSessionApiFactory,E as PaymentSessionApiFp,Wn as PaymentSessionPurpose,Gn as PaymentSessionStatus,Kn as PaymentStatus,Hn as PaymentTypeEnum,Qn as PosDiscountTargetType,$n as PosDiscountType,Yn as PosPaymentStatus,zn as PosPaymentType,Jn as PosPermission,Xn as PreorderStatus,Zn as PriceType,er as PrinterConnectionType,tr as PrinterModelType,sr as PrinterTypeEnum,st as PrintersApi,ns as PrintersApiAxiosParamCreator,Vo as PrintersApiFactory,F as PrintersApiFp,nt as ProductApi,rs as ProductApiAxiosParamCreator,Io as ProductApiFactory,ne as ProductApiFp,nr as ProductAvailability,rr as ProductDetailLayout,_r as ProductDetailLayoutEnum,or as PromotionDiscountType,rt as ProviderApi,os as ProviderApiAxiosParamCreator,vo as ProviderApiFactory,_ as ProviderApiFp,ar as ProviderEnum,ir as PubSubAction,lr as PubSubTarget,ur as RecordManualStatus,cr as RefundFailureReasonKey,dr as RefundMode,pr as RefundOverallStatus,mr as RefundStatusEnum,gr as RefundStepStatus,ot as RefundsApi,as as RefundsApiAxiosParamCreator,To as RefundsApiFactory,M as RefundsApiFp,at as ReportApi,is as ReportApiAxiosParamCreator,qo as ReportApiFactory,re as ReportApiFp,yr as ReportLanguage,Pr as ReservationSource,hr as ReservationStatus,it as ReservationsApi,ls as ReservationsApiAxiosParamCreator,Uo as ReservationsApiFactory,N as ReservationsApiFp,fr as SYNCKEY,Rr as ScheduleType,xr as ScopeEnum,Lr as SelectedPaymentProviderEnum,lt as ShiftTrackingApi,us as ShiftTrackingApiAxiosParamCreator,Eo as ShiftTrackingApiFactory,oe as ShiftTrackingApiFp,Cr as SimplePaymentStatus,Dr as SourceType,Or as StaffActivityActionType,Sr as StationType,ut as StationsApi,cs as StationsApiAxiosParamCreator,Bo as StationsApiFactory,me as StationsApiFp,Vr as Status,Ir as SystemProfileType,vr as TableGroupType,Tr as TableShape,qr as TableStatus,ct as TerminalApi,ds as TerminalApiAxiosParamCreator,Mo as TerminalApiFactory,ae as TerminalApiFp,Ur as TerminalConnectionType,Er as TimeSpan,Br as TransactionEventType,Mr as TransactionType,kr as Type,wr as UpsellMode,dt as UserApi,ps as UserApiAxiosParamCreator,ko as UserApiFactory,ge as UserApiFp,pt as VendureSellerApi,ms as VendureSellerApiAxiosParamCreator,wo as VendureSellerApiFactory,ft as VendureSellerApiFp,mt as VivaApi,gs as VivaApiAxiosParamCreator,Lo as VivaApiFactory,ie as VivaApiFp,jr as VivaAppToAppPaymentMethod,Wr as VivaCurrencyCode,Gr as VivaErrorId,Kr as VivaEventId,Qr as WalletItemStatus,Ar as WalletStatusEnum,gt as WebhookApi,ys as WebhookApiAxiosParamCreator,Fo as WebhookApiFactory,q as WebhookApiFp,yt as WorldlineApi,Ps as WorldlineApiAxiosParamCreator,_o as WorldlineApiFactory,ye as WorldlineApiFp,Pt as WorldlineInternalApi,hs as WorldlineInternalApiAxiosParamCreator,No as WorldlineInternalApiFactory,H as WorldlineInternalApiFp,$r as WorldlineRevertMethod,Jo as buildPosCategoryIndex,Dt as collectEnabledSubcategoryIdsDepthFirst,Ct as collectSubcategoryIdsDepthFirst,Xo as getCategoryProductsIncludingSubcategories,Zo as getSubcategoriesForCategory,fs as mapProductIdsToProducts};