@munchi_oy/core 1.9.101 → 1.9.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +162 -155
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +171 -160
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import h from"axios";import Ct from"axios";var p="http://localhost".replace(/\/+$/,"");var V=class{constructor(r,e=p,s=Ct){this.basePath=e;this.axios=s;r&&(this.configuration=r,this.basePath=r.basePath||this.basePath)}configuration},le=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,r,e){if(e==null)throw new le(r,`Required parameter ${r} was null or undefined when calling ${a}.`)};var f=async function(a,r){if(r&&r.accessToken){let e=typeof r.accessToken=="function"?await r.accessToken():await r.accessToken;a.Authorization="Bearer "+e}};function he(a,r,e=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(s=>he(a,s,e)):Object.keys(r).forEach(s=>he(a,r[s],`${e}${e!==""?".":""}${s}`)):a.has(e)?a.append(e,r):a.set(e,r))}var g=function(a,...r){let e=new URLSearchParams(a.search);he(e,r),a.search=e.toString()},b=function(a,r,e){let s=typeof a!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(r.headers["Content-Type"]):s)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,r,e,s){return(t=r,n=e)=>{let o={...a.options,url:(s?.basePath||n)+a.url};return t.request(o)}};var Us={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},Es={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Bs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ms={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},ks={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ws={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Fs={Image:"image",Video:"video",Animation:"animation"},_s={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ls={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Ns={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},js={GiftCard:"GiftCard"},Gs={Online:"ONLINE",Offline:"OFFLINE"},Ws={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"},Ks={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Hs={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Qs={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},$s={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Ys={Pending:"pending",Success:"success",Failure:"failure"},zs={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Js={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Xs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},ie={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"},Zs={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},er={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},tr={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},sr={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},rr={Item:"ITEM",Cart:"CART"},nr={Business:"BUSINESS",Owner:"OWNER"},or={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},ar={Percentage:"PERCENTAGE",Fixed:"FIXED"},ir={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},lr={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},ur={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},cr={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},dr={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},pr={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},mr={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},gr={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},yr={Table:"table",Indicator:"indicator"},Pr={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},hr={Reversal:"REVERSAL",Refund:"REFUND"},Ar={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},br={Open:"OPEN",Instant:"INSTANT"},xr={Instant:"INSTANT",PreOrder:"PRE_ORDER"},fr={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Rr={Platform:"PLATFORM",Pos:"POS"},Cr={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Dr={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"},Or={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Vr={DineIn:"dine_in",PickUp:"pick_up"},Sr={Pos:"pos",Terminal:"terminal"},Ir={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},vr={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},Tr={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",SystemProviderError:"system.provider_error",SystemUnknown:"system.unknown"},qr={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"},Ur={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Er={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Br={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},Mr={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"},kr={Paid:"paid",Pending:"pending"},wr={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Fr={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},_r={Percentage:"percentage",Fixed:"fixed"},Lr={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Nr={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},jr={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"},Gr={Waiting:"waiting",Confirm:"confirm"},Wr={Preset:"PRESET",Open:"OPEN"},Kr={Bluetooth:"bluetooth",Network:"network"},Hr={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Qr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},$r={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Yr={Modal:"MODAL",Screen:"SCREEN"},zr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Jr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Xr={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},Zr={Kds:"KDS"},en={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},tn={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"},sn={Full:"FULL",Item:"ITEM"},rn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},nn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},on={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},an={Fi:"fi",En:"en"},ln={Pos:"pos",Display:"display"},un={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},cn={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},dn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},pn={Percentage:"PERCENTAGE",Fixed:"FIXED"},mn={Item:"ITEM",Cart:"CART"},gn={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"},yn={Physical:"PHYSICAL"},Pn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},hn={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},An={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"},bn={Kiosk:"KIOSK",Pos:"POS"},xn={Active:"ACTIVE",Inactive:"INACTIVE"},fn={NoStation:"NO_STATION"},Rn={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Cn={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},Dn={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},On={Network:"NETWORK"},Vn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Sn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},In={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},vn={Instant:"instant",Preorder:"preorder"},Tn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},qn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Un={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},En={Modal:"MODAL",Screen:"SCREEN"},Bn={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"},Mn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},kn={_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"},wn={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},Fn={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},_n={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Ln={Claimed:"Claimed",Redeemed:"Redeemed"},Nn={Reversal:"REVERSAL",Refund:"REFUND"},Dt=function(a){return{refreshConfig:async(r={})=>{let e="/api/v1/ably/refresh-config",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},requestSettings:async(r={})=>{let e="/api/v1/ably/request-settings",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}}}},Ae=function(a){let r=Dt(a);return{async refreshConfig(e){let s=await r.refreshConfig(e);return P(s,h,p,a)},async requestSettings(e){let s=await r.requestSettings(e);return P(s,h,p,a)}}},jn=function(a,r,e){let s=Ae(a);return{refreshConfig(t){return s.refreshConfig(t).then(n=>n(e,r))},requestSettings(t){return s.requestSettings(t).then(n=>n(e,r))}}},De=class extends V{refreshConfig(r){return Ae(this.configuration).refreshConfig(r).then(e=>e(this.axios,this.basePath))}requestSettings(r){return Ae(this.configuration).requestSettings(r).then(e=>e(this.axios,this.basePath))}},Ot=function(a){return{createActionPasscode:async(r,e={})=>{c("createActionPasscode","createActionPasscodeDto",r);let s="/api/v1/action-passcodes",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},deleteActionPasscode:async(r,e={})=>{c("deleteActionPasscode","id",r);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(r,e,s={})=>{c("updateActionPasscode","id",r),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},ue=function(a){let r=Ot(a);return{async createActionPasscode(e,s){let t=await r.createActionPasscode(e,s);return P(t,h,p,a)},async deleteActionPasscode(e,s){let t=await r.deleteActionPasscode(e,s);return P(t,h,p,a)},async updateActionPasscode(e,s,t){let n=await r.updateActionPasscode(e,s,t);return P(n,h,p,a)}}},Gn=function(a,r,e){let s=ue(a);return{createActionPasscode(t,n){return s.createActionPasscode(t,n).then(o=>o(e,r))},deleteActionPasscode(t,n){return s.deleteActionPasscode(t,n).then(o=>o(e,r))},updateActionPasscode(t,n,o){return s.updateActionPasscode(t,n,o).then(i=>i(e,r))}}},Oe=class extends V{createActionPasscode(r,e){return ue(this.configuration).createActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(r,e){return ue(this.configuration).deleteActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(r,e,s){return ue(this.configuration).updateActionPasscode(r,e,s).then(t=>t(this.axios,this.basePath))}},Vt=function(a){return{firebaseAuth:async(r={})=>{let e="/api/v1/auth/firebase-login",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},login:async(r,e={})=>{c("login","credentialDto",r);let s="/api/v1/auth/login",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},logout:async(r={})=>{let e="/api/v1/auth/logout",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},refreshToken:async(r,e={})=>{c("refreshToken","refreshTokenDto",r);let s="/api/v1/auth/refresh",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},J=function(a){let r=Vt(a);return{async firebaseAuth(e){let s=await r.firebaseAuth(e);return P(s,h,p,a)},async login(e,s){let t=await r.login(e,s);return P(t,h,p,a)},async logout(e){let s=await r.logout(e);return P(s,h,p,a)},async refreshToken(e,s){let t=await r.refreshToken(e,s);return P(t,h,p,a)}}},Wn=function(a,r,e){let s=J(a);return{firebaseAuth(t){return s.firebaseAuth(t).then(n=>n(e,r))},login(t,n){return s.login(t,n).then(o=>o(e,r))},logout(t){return s.logout(t).then(n=>n(e,r))},refreshToken(t,n){return s.refreshToken(t,n).then(o=>o(e,r))}}},Ve=class extends V{firebaseAuth(r){return J(this.configuration).firebaseAuth(r).then(e=>e(this.axios,this.basePath))}login(r,e){return J(this.configuration).login(r,e).then(s=>s(this.axios,this.basePath))}logout(r){return J(this.configuration).logout(r).then(e=>e(this.axios,this.basePath))}refreshToken(r,e){return J(this.configuration).refreshToken(r,e).then(s=>s(this.axios,this.basePath))}},St=function(a){return{createBusinessPermission:async(r,e,s={})=>{c("createBusinessPermission","businessId",r),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},deleteBusinessPermission:async(r,e,s={})=>{c("deleteBusinessPermission","permissionId",r),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getAdvancedDiscounts:async(r,e={})=>{c("getAdvancedDiscounts","businessId",r);let s="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessCategoriesByMenuId:async(r,e,s={})=>{c("getBusinessCategoriesByMenuId","businessId",r),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV2:async(r,e,s={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",r),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV3:async(r,e,s={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",r),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessChannelConfig:async(r,e,s={})=>{c("getBusinessChannelConfig","businessId",r);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessChannelConfigV2:async(r,e,s={})=>{c("getBusinessChannelConfigV2","businessId",r);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessConfig:async(r,e,s={})=>{c("getBusinessConfig","businessId",r);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessConfigById:async(r,e,s={})=>{c("getBusinessConfigById","businessId",r);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessConfigByIdV2:async(r,e,s={})=>{c("getBusinessConfigByIdV2","businessId",r);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessConfiguration:async(r,e,s={})=>{c("getBusinessConfiguration","businessId",r);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessMenuByType:async(r,e,s={})=>{c("getBusinessMenuByType","businessId",r),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessMenuByTypeV2:async(r,e,s={})=>{c("getBusinessMenuByTypeV2","businessId",r),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessMenuByTypeV3:async(r,e,s={})=>{c("getBusinessMenuByTypeV3","businessId",r),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessMenuByTypeV4:async(r,e,s={})=>{c("getBusinessMenuByTypeV4","businessId",r),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(r))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessProviderStatus:async(r,e={})=>{c("getBusinessProviderStatus","businessId",r);let s="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(r,e,s={})=>{c("getBusinessProviderStatusExternal","businessId",r);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getBusinessTax:async(r={})=>{let e="/api/v1/business/tax",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},getProvidersSupportedIntegrations:async(r,e={})=>{c("getProvidersSupportedIntegrations","businessIds",r);let s="/api/v1/business/providers/supported-integrations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r&&(l.businessIds=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(r,e,s,t={})=>{c("getSingleBusinessProviderStatus","businessId",r),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",s);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(r))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await 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(r,e={})=>{c("getUnifiedDiscounts","businessId",r);let s="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(r,e,s={})=>{c("setBusinessStatus","businessId",r),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},setBusinessStatusSchedule:async(r,e,s={})=>{c("setBusinessStatusSchedule","businessId",r),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},updateBusinessPermission:async(r,e,s,t={})=>{c("updateBusinessPermission","permissionId",r),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",s);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await 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(r,e={})=>{c("validateBusiness","businessId",r);let s="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let r=St(a);return{async createBusinessPermission(e,s,t){let n=await r.createBusinessPermission(e,s,t);return P(n,h,p,a)},async deleteBusinessPermission(e,s,t){let n=await r.deleteBusinessPermission(e,s,t);return P(n,h,p,a)},async getAdvancedDiscounts(e,s){let t=await r.getAdvancedDiscounts(e,s);return P(t,h,p,a)},async getBusinessCategoriesByMenuId(e,s,t){let n=await r.getBusinessCategoriesByMenuId(e,s,t);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV2(e,s,t){let n=await r.getBusinessCategoriesByMenuIdV2(e,s,t);return P(n,h,p,a)},async getBusinessCategoriesByMenuIdV3(e,s,t){let n=await r.getBusinessCategoriesByMenuIdV3(e,s,t);return P(n,h,p,a)},async getBusinessChannelConfig(e,s,t){let n=await r.getBusinessChannelConfig(e,s,t);return P(n,h,p,a)},async getBusinessChannelConfigV2(e,s,t){let n=await r.getBusinessChannelConfigV2(e,s,t);return P(n,h,p,a)},async getBusinessConfig(e,s,t){let n=await r.getBusinessConfig(e,s,t);return P(n,h,p,a)},async getBusinessConfigById(e,s,t){let n=await r.getBusinessConfigById(e,s,t);return P(n,h,p,a)},async getBusinessConfigByIdV2(e,s,t){let n=await r.getBusinessConfigByIdV2(e,s,t);return P(n,h,p,a)},async getBusinessConfiguration(e,s,t){let n=await r.getBusinessConfiguration(e,s,t);return P(n,h,p,a)},async getBusinessMenuByType(e,s,t){let n=await r.getBusinessMenuByType(e,s,t);return P(n,h,p,a)},async getBusinessMenuByTypeV2(e,s,t){let n=await r.getBusinessMenuByTypeV2(e,s,t);return P(n,h,p,a)},async getBusinessMenuByTypeV3(e,s,t){let n=await r.getBusinessMenuByTypeV3(e,s,t);return P(n,h,p,a)},async getBusinessMenuByTypeV4(e,s,t){let n=await r.getBusinessMenuByTypeV4(e,s,t);return P(n,h,p,a)},async getBusinessProviderStatus(e,s){let t=await r.getBusinessProviderStatus(e,s);return P(t,h,p,a)},async getBusinessProviderStatusExternal(e,s,t){let n=await r.getBusinessProviderStatusExternal(e,s,t);return P(n,h,p,a)},async getBusinessTax(e){let s=await r.getBusinessTax(e);return P(s,h,p,a)},async getProvidersSupportedIntegrations(e,s){let t=await r.getProvidersSupportedIntegrations(e,s);return P(t,h,p,a)},async getSingleBusinessProviderStatus(e,s,t,n){let o=await r.getSingleBusinessProviderStatus(e,s,t,n);return P(o,h,p,a)},async getUnifiedDiscounts(e,s){let t=await r.getUnifiedDiscounts(e,s);return P(t,h,p,a)},async setBusinessStatus(e,s,t){let n=await r.setBusinessStatus(e,s,t);return P(n,h,p,a)},async setBusinessStatusSchedule(e,s,t){let n=await r.setBusinessStatusSchedule(e,s,t);return P(n,h,p,a)},async updateBusinessPermission(e,s,t,n){let o=await r.updateBusinessPermission(e,s,t,n);return P(o,h,p,a)},async validateBusiness(e,s){let t=await r.validateBusiness(e,s);return P(t,h,p,a)}}},Kn=function(a,r,e){let s=T(a);return{createBusinessPermission(t,n,o){return s.createBusinessPermission(t,n,o).then(i=>i(e,r))},deleteBusinessPermission(t,n,o){return s.deleteBusinessPermission(t,n,o).then(i=>i(e,r))},getAdvancedDiscounts(t,n){return s.getAdvancedDiscounts(t,n).then(o=>o(e,r))},getBusinessCategoriesByMenuId(t,n,o){return s.getBusinessCategoriesByMenuId(t,n,o).then(i=>i(e,r))},getBusinessCategoriesByMenuIdV2(t,n,o){return s.getBusinessCategoriesByMenuIdV2(t,n,o).then(i=>i(e,r))},getBusinessCategoriesByMenuIdV3(t,n,o){return s.getBusinessCategoriesByMenuIdV3(t,n,o).then(i=>i(e,r))},getBusinessChannelConfig(t,n,o){return s.getBusinessChannelConfig(t,n,o).then(i=>i(e,r))},getBusinessChannelConfigV2(t,n,o){return s.getBusinessChannelConfigV2(t,n,o).then(i=>i(e,r))},getBusinessConfig(t,n,o){return s.getBusinessConfig(t,n,o).then(i=>i(e,r))},getBusinessConfigById(t,n,o){return s.getBusinessConfigById(t,n,o).then(i=>i(e,r))},getBusinessConfigByIdV2(t,n,o){return s.getBusinessConfigByIdV2(t,n,o).then(i=>i(e,r))},getBusinessConfiguration(t,n,o){return s.getBusinessConfiguration(t,n,o).then(i=>i(e,r))},getBusinessMenuByType(t,n,o){return s.getBusinessMenuByType(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV2(t,n,o){return s.getBusinessMenuByTypeV2(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV3(t,n,o){return s.getBusinessMenuByTypeV3(t,n,o).then(i=>i(e,r))},getBusinessMenuByTypeV4(t,n,o){return s.getBusinessMenuByTypeV4(t,n,o).then(i=>i(e,r))},getBusinessProviderStatus(t,n){return s.getBusinessProviderStatus(t,n).then(o=>o(e,r))},getBusinessProviderStatusExternal(t,n,o){return s.getBusinessProviderStatusExternal(t,n,o).then(i=>i(e,r))},getBusinessTax(t){return s.getBusinessTax(t).then(n=>n(e,r))},getProvidersSupportedIntegrations(t,n){return s.getProvidersSupportedIntegrations(t,n).then(o=>o(e,r))},getSingleBusinessProviderStatus(t,n,o,i){return s.getSingleBusinessProviderStatus(t,n,o,i).then(l=>l(e,r))},getUnifiedDiscounts(t,n){return s.getUnifiedDiscounts(t,n).then(o=>o(e,r))},setBusinessStatus(t,n,o){return s.setBusinessStatus(t,n,o).then(i=>i(e,r))},setBusinessStatusSchedule(t,n,o){return s.setBusinessStatusSchedule(t,n,o).then(i=>i(e,r))},updateBusinessPermission(t,n,o,i){return s.updateBusinessPermission(t,n,o,i).then(l=>l(e,r))},validateBusiness(t,n){return s.validateBusiness(t,n).then(o=>o(e,r))}}},Se=class extends V{createBusinessPermission(r,e,s){return T(this.configuration).createBusinessPermission(r,e,s).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(r,e,s){return T(this.configuration).deleteBusinessPermission(r,e,s).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(r,e){return T(this.configuration).getAdvancedDiscounts(r,e).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuId(r,e,s){return T(this.configuration).getBusinessCategoriesByMenuId(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(r,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(r,e,s){return T(this.configuration).getBusinessCategoriesByMenuIdV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(r,e,s){return T(this.configuration).getBusinessChannelConfig(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(r,e,s){return T(this.configuration).getBusinessChannelConfigV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfig(r,e,s){return T(this.configuration).getBusinessConfig(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(r,e,s){return T(this.configuration).getBusinessConfigById(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(r,e,s){return T(this.configuration).getBusinessConfigByIdV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(r,e,s){return T(this.configuration).getBusinessConfiguration(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(r,e,s){return T(this.configuration).getBusinessMenuByType(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(r,e,s){return T(this.configuration).getBusinessMenuByTypeV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(r,e,s){return T(this.configuration).getBusinessMenuByTypeV3(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(r,e,s){return T(this.configuration).getBusinessMenuByTypeV4(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(r,e){return T(this.configuration).getBusinessProviderStatus(r,e).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatusExternal(r,e,s){return T(this.configuration).getBusinessProviderStatusExternal(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessTax(r){return T(this.configuration).getBusinessTax(r).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(r,e){return T(this.configuration).getProvidersSupportedIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getSingleBusinessProviderStatus(r,e,s,t){return T(this.configuration).getSingleBusinessProviderStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(r,e){return T(this.configuration).getUnifiedDiscounts(r,e).then(s=>s(this.axios,this.basePath))}setBusinessStatus(r,e,s){return T(this.configuration).setBusinessStatus(r,e,s).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(r,e,s){return T(this.configuration).setBusinessStatusSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(r,e,s,t){return T(this.configuration).updateBusinessPermission(r,e,s,t).then(n=>n(this.axios,this.basePath))}validateBusiness(r,e){return T(this.configuration).validateBusiness(r,e).then(s=>s(this.axios,this.basePath))}},It=function(a){return{updatePosGlobalSettings:async(r,e,s={})=>{c("updatePosGlobalSettings","businessId",r),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},yt=function(a){let r=It(a);return{async updatePosGlobalSettings(e,s,t){let n=await r.updatePosGlobalSettings(e,s,t);return P(n,h,p,a)}}},Hn=function(a,r,e){let s=yt(a);return{updatePosGlobalSettings(t,n,o){return s.updatePosGlobalSettings(t,n,o).then(i=>i(e,r))}}},Ie=class extends V{updatePosGlobalSettings(r,e,s){return yt(this.configuration).updatePosGlobalSettings(r,e,s).then(t=>t(this.axios,this.basePath))}},vt=function(a){return{upsertSchedule:async(r,e,s={})=>{c("upsertSchedule","businessId",r),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},Pt=function(a){let r=vt(a);return{async upsertSchedule(e,s,t){let n=await r.upsertSchedule(e,s,t);return P(n,h,p,a)}}},Qn=function(a,r,e){let s=Pt(a);return{upsertSchedule(t,n,o){return s.upsertSchedule(t,n,o).then(i=>i(e,r))}}},ve=class extends V{upsertSchedule(r,e,s){return Pt(this.configuration).upsertSchedule(r,e,s).then(t=>t(this.axios,this.basePath))}},Tt=function(a){return{create:async(r,e,s={})=>{c("create","businessId",r),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getCashLogs:async(r,e,s,t,n,o,i,l={})=>{c("getCashLogs","businessId",r),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(r))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};s!==void 0&&(C.timeSpan=s),t!==void 0&&(C.start=t),n!==void 0&&(C.end=n),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(r,e={})=>{c("getCashSession","businessId",r);let s="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(r,e,s={})=>{c("getSessionReport","businessId",r),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(r))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},recordCashLog:async(r,e,s={})=>{c("recordCashLog","businessId",r),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},sendSessionReport:async(r,e,s,t={})=>{c("sendSessionReport","businessId",r),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",s);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(r))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",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}}}},Q=function(a){let r=Tt(a);return{async create(e,s,t){let n=await r.create(e,s,t);return P(n,h,p,a)},async getCashLogs(e,s,t,n,o,i,l,u){let d=await r.getCashLogs(e,s,t,n,o,i,l,u);return P(d,h,p,a)},async getCashSession(e,s){let t=await r.getCashSession(e,s);return P(t,h,p,a)},async getSessionReport(e,s,t){let n=await r.getSessionReport(e,s,t);return P(n,h,p,a)},async recordCashLog(e,s,t){let n=await r.recordCashLog(e,s,t);return P(n,h,p,a)},async sendSessionReport(e,s,t,n){let o=await r.sendSessionReport(e,s,t,n);return P(o,h,p,a)}}},$n=function(a,r,e){let s=Q(a);return{create(t,n,o){return s.create(t,n,o).then(i=>i(e,r))},getCashLogs(t,n,o,i,l,u,d,A){return s.getCashLogs(t,n,o,i,l,u,d,A).then(x=>x(e,r))},getCashSession(t,n){return s.getCashSession(t,n).then(o=>o(e,r))},getSessionReport(t,n,o){return s.getSessionReport(t,n,o).then(i=>i(e,r))},recordCashLog(t,n,o){return s.recordCashLog(t,n,o).then(i=>i(e,r))},sendSessionReport(t,n,o,i){return s.sendSessionReport(t,n,o,i).then(l=>l(e,r))}}},Te=class extends V{create(r,e,s){return Q(this.configuration).create(r,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(r,e,s,t,n,o,i,l){return Q(this.configuration).getCashLogs(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(r,e){return Q(this.configuration).getCashSession(r,e).then(s=>s(this.axios,this.basePath))}getSessionReport(r,e,s){return Q(this.configuration).getSessionReport(r,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(r,e,s){return Q(this.configuration).recordCashLog(r,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(r,e,s,t){return Q(this.configuration).sendSessionReport(r,e,s,t).then(n=>n(this.axios,this.basePath))}},qt=function(a){return{getChannelCatalog:async(r,e,s,t={})=>{c("getChannelCatalog","businessId",r),c("getChannelCatalog","channelType",e);let n="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.menuId=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenu:async(r,e,s,t={})=>{c("getChannelMenu","businessId",r),c("getChannelMenu","channelType",e);let n="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),s!==void 0&&(d.deliveryType=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenuTimes:async(r,e,s={})=>{c("getChannelMenuTimes","businessId",r),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channelType=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}}}},ce=function(a){let r=qt(a);return{async getChannelCatalog(e,s,t,n){let o=await r.getChannelCatalog(e,s,t,n);return P(o,h,p,a)},async getChannelMenu(e,s,t,n){let o=await r.getChannelMenu(e,s,t,n);return P(o,h,p,a)},async getChannelMenuTimes(e,s,t){let n=await r.getChannelMenuTimes(e,s,t);return P(n,h,p,a)}}},Yn=function(a,r,e){let s=ce(a);return{getChannelCatalog(t,n,o,i){return s.getChannelCatalog(t,n,o,i).then(l=>l(e,r))},getChannelMenu(t,n,o,i){return s.getChannelMenu(t,n,o,i).then(l=>l(e,r))},getChannelMenuTimes(t,n,o){return s.getChannelMenuTimes(t,n,o).then(i=>i(e,r))}}},qe=class extends V{getChannelCatalog(r,e,s,t){return ce(this.configuration).getChannelCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(r,e,s,t){return ce(this.configuration).getChannelMenu(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(r,e,s){return ce(this.configuration).getChannelMenuTimes(r,e,s).then(t=>t(this.axios,this.basePath))}},Ut=function(a){return{configConfigureMunchiGiftCard:async(r,e,s,t={})=>{c("configConfigureMunchiGiftCard","businessId",r),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",s);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s={})=>{c("configGetProviders","businessId",r),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),e!=null&&(l["x-app-x"]=String(e)),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},configManualSync:async(r,e,s={})=>{c("configManualSync","businessId",r),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},configRemovePaymentOption:async(r,e,s,t={})=>{c("configRemovePaymentOption","businessId",r),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",s);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await 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(r,e,s={})=>{c("configUpsertBusiness","businessId",r),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},configUpsertChannelConfig:async(r,e,s,t={})=>{c("configUpsertChannelConfig","businessId",r),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",s);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("configUpsertGiftCard","businessId",r),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",s);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s={})=>{c("configUpsertLoyalty","businessId",r),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},configUpsertNets:async(r,e,s,t={})=>{c("configUpsertNets","businessId",r),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",s);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("configUpsertPaymentOptions","businessId",r),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",s);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("configUpsertProviders","businessId",r),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",s);let n="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("configUpsertStripe","businessId",r),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",s);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("configUpsertViva","businessId",r),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",s);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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 r=Ut(a);return{async configConfigureMunchiGiftCard(e,s,t,n){let o=await r.configConfigureMunchiGiftCard(e,s,t,n);return P(o,h,p,a)},async configGetProviders(e,s,t){let n=await r.configGetProviders(e,s,t);return P(n,h,p,a)},async configManualSync(e,s,t){let n=await r.configManualSync(e,s,t);return P(n,h,p,a)},async configRemovePaymentOption(e,s,t,n){let o=await r.configRemovePaymentOption(e,s,t,n);return P(o,h,p,a)},async configUpsertBusiness(e,s,t){let n=await r.configUpsertBusiness(e,s,t);return P(n,h,p,a)},async configUpsertChannelConfig(e,s,t,n){let o=await r.configUpsertChannelConfig(e,s,t,n);return P(o,h,p,a)},async configUpsertGiftCard(e,s,t,n){let o=await r.configUpsertGiftCard(e,s,t,n);return P(o,h,p,a)},async configUpsertLoyalty(e,s,t){let n=await r.configUpsertLoyalty(e,s,t);return P(n,h,p,a)},async configUpsertNets(e,s,t,n){let o=await r.configUpsertNets(e,s,t,n);return P(o,h,p,a)},async configUpsertPaymentOptions(e,s,t,n){let o=await r.configUpsertPaymentOptions(e,s,t,n);return P(o,h,p,a)},async configUpsertProviders(e,s,t,n){let o=await r.configUpsertProviders(e,s,t,n);return P(o,h,p,a)},async configUpsertStripe(e,s,t,n){let o=await r.configUpsertStripe(e,s,t,n);return P(o,h,p,a)},async configUpsertViva(e,s,t,n){let o=await r.configUpsertViva(e,s,t,n);return P(o,h,p,a)}}},zn=function(a,r,e){let s=k(a);return{configConfigureMunchiGiftCard(t,n,o,i){return s.configConfigureMunchiGiftCard(t,n,o,i).then(l=>l(e,r))},configGetProviders(t,n,o){return s.configGetProviders(t,n,o).then(i=>i(e,r))},configManualSync(t,n,o){return s.configManualSync(t,n,o).then(i=>i(e,r))},configRemovePaymentOption(t,n,o,i){return s.configRemovePaymentOption(t,n,o,i).then(l=>l(e,r))},configUpsertBusiness(t,n,o){return s.configUpsertBusiness(t,n,o).then(i=>i(e,r))},configUpsertChannelConfig(t,n,o,i){return s.configUpsertChannelConfig(t,n,o,i).then(l=>l(e,r))},configUpsertGiftCard(t,n,o,i){return s.configUpsertGiftCard(t,n,o,i).then(l=>l(e,r))},configUpsertLoyalty(t,n,o){return s.configUpsertLoyalty(t,n,o).then(i=>i(e,r))},configUpsertNets(t,n,o,i){return s.configUpsertNets(t,n,o,i).then(l=>l(e,r))},configUpsertPaymentOptions(t,n,o,i){return s.configUpsertPaymentOptions(t,n,o,i).then(l=>l(e,r))},configUpsertProviders(t,n,o,i){return s.configUpsertProviders(t,n,o,i).then(l=>l(e,r))},configUpsertStripe(t,n,o,i){return s.configUpsertStripe(t,n,o,i).then(l=>l(e,r))},configUpsertViva(t,n,o,i){return s.configUpsertViva(t,n,o,i).then(l=>l(e,r))}}},Ue=class extends V{configConfigureMunchiGiftCard(r,e,s,t){return k(this.configuration).configConfigureMunchiGiftCard(r,e,s,t).then(n=>n(this.axios,this.basePath))}configGetProviders(r,e,s){return k(this.configuration).configGetProviders(r,e,s).then(t=>t(this.axios,this.basePath))}configManualSync(r,e,s){return k(this.configuration).configManualSync(r,e,s).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(r,e,s,t){return k(this.configuration).configRemovePaymentOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(r,e,s){return k(this.configuration).configUpsertBusiness(r,e,s).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(r,e,s,t){return k(this.configuration).configUpsertChannelConfig(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(r,e,s,t){return k(this.configuration).configUpsertGiftCard(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(r,e,s){return k(this.configuration).configUpsertLoyalty(r,e,s).then(t=>t(this.axios,this.basePath))}configUpsertNets(r,e,s,t){return k(this.configuration).configUpsertNets(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(r,e,s,t){return k(this.configuration).configUpsertPaymentOptions(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertProviders(r,e,s,t){return k(this.configuration).configUpsertProviders(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertStripe(r,e,s,t){return k(this.configuration).configUpsertStripe(r,e,s,t).then(n=>n(this.axios,this.basePath))}configUpsertViva(r,e,s,t){return k(this.configuration).configUpsertViva(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Et=function(a){return{getCourseConfig:async(r,e={})=>{c("getCourseConfig","businessId",r);let s="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getCourses:async(r,e={})=>{c("getCourses","businessId",r);let s="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},be=function(a){let r=Et(a);return{async getCourseConfig(e,s){let t=await r.getCourseConfig(e,s);return P(t,h,p,a)},async getCourses(e,s){let t=await r.getCourses(e,s);return P(t,h,p,a)}}},Jn=function(a,r,e){let s=be(a);return{getCourseConfig(t,n){return s.getCourseConfig(t,n).then(o=>o(e,r))},getCourses(t,n){return s.getCourses(t,n).then(o=>o(e,r))}}},Ee=class extends V{getCourseConfig(r,e){return be(this.configuration).getCourseConfig(r,e).then(s=>s(this.axios,this.basePath))}getCourses(r,e){return be(this.configuration).getCourses(r,e).then(s=>s(this.axios,this.basePath))}},Bt=function(a){return{init:async(r,e={})=>{let s="/api/v1/display/init",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},pair:async(r,e={})=>{c("pair","pairDisplayBodyDto",r);let s="/api/v1/display/pair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},sessionToken:async(r,e={})=>{c("sessionToken","requestSessionTokenBodyDto",r);let s="/api/v1/display/session-token",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},de=function(a){let r=Bt(a);return{async init(e,s){let t=await r.init(e,s);return P(t,h,p,a)},async pair(e,s){let t=await r.pair(e,s);return P(t,h,p,a)},async sessionToken(e,s){let t=await r.sessionToken(e,s);return P(t,h,p,a)}}},Xn=function(a,r,e){let s=de(a);return{init(t,n){return s.init(t,n).then(o=>o(e,r))},pair(t,n){return s.pair(t,n).then(o=>o(e,r))},sessionToken(t,n){return s.sessionToken(t,n).then(o=>o(e,r))}}},Be=class extends V{init(r,e){return de(this.configuration).init(r,e).then(s=>s(this.axios,this.basePath))}pair(r,e){return de(this.configuration).pair(r,e).then(s=>s(this.axios,this.basePath))}sessionToken(r,e){return de(this.configuration).sessionToken(r,e).then(s=>s(this.axios,this.basePath))}},Mt=function(a){return{createAssignment:async(r,e,s={})=>{c("createAssignment","businessId",r),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},ht=function(a){let r=Mt(a);return{async createAssignment(e,s,t){let n=await r.createAssignment(e,s,t);return P(n,h,p,a)}}},Zn=function(a,r,e){let s=ht(a);return{createAssignment(t,n,o){return s.createAssignment(t,n,o).then(i=>i(e,r))}}},Me=class extends V{createAssignment(r,e,s){return ht(this.configuration).createAssignment(r,e,s).then(t=>t(this.axios,this.basePath))}},kt=function(a){return{createDiningTable:async(r,e={})=>{c("createDiningTable","createDiningTableDto",r);let s="/api/v1/floor-plan/tables",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},createFloorSection:async(r,e={})=>{c("createFloorSection","createFloorSectionDto",r);let s="/api/v1/floor-plan/sections",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},deleteDiningTable:async(r,e,s={})=>{c("deleteDiningTable","id",r),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},deleteFloorSection:async(r,e,s={})=>{c("deleteFloorSection","id",r),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},dissolveTableGroup:async(r,e,s={})=>{c("dissolveTableGroup","id",r),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getFloorPlan:async(r,e={})=>{c("getFloorPlan","businessId",r);let s="/api/v1/floor-plan",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},joinTables:async(r,e,s={})=>{c("joinTables","businessId",r),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},removeTableFromGroup:async(r,e,s={})=>{c("removeTableFromGroup","id",r),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},transferTable:async(r,e,s,t={})=>{c("transferTable","id",r),c("transferTable","businessId",e),c("transferTable","transferTableDto",s);let n="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("updateDiningTable","id",r),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",s);let n="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("updateFloorSection","id",r),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",s);let n="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("updateTablePosition","id",r),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",s);let n="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,e,s,t={})=>{c("updateTableStatus","id",r),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",s);let n="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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 r=kt(a);return{async createDiningTable(e,s){let t=await r.createDiningTable(e,s);return P(t,h,p,a)},async createFloorSection(e,s){let t=await r.createFloorSection(e,s);return P(t,h,p,a)},async deleteDiningTable(e,s,t){let n=await r.deleteDiningTable(e,s,t);return P(n,h,p,a)},async deleteFloorSection(e,s,t){let n=await r.deleteFloorSection(e,s,t);return P(n,h,p,a)},async dissolveTableGroup(e,s,t){let n=await r.dissolveTableGroup(e,s,t);return P(n,h,p,a)},async getFloorPlan(e,s){let t=await r.getFloorPlan(e,s);return P(t,h,p,a)},async joinTables(e,s,t){let n=await r.joinTables(e,s,t);return P(n,h,p,a)},async removeTableFromGroup(e,s,t){let n=await r.removeTableFromGroup(e,s,t);return P(n,h,p,a)},async transferTable(e,s,t,n){let o=await r.transferTable(e,s,t,n);return P(o,h,p,a)},async updateDiningTable(e,s,t,n){let o=await r.updateDiningTable(e,s,t,n);return P(o,h,p,a)},async updateFloorSection(e,s,t,n){let o=await r.updateFloorSection(e,s,t,n);return P(o,h,p,a)},async updateTablePosition(e,s,t,n){let o=await r.updateTablePosition(e,s,t,n);return P(o,h,p,a)},async updateTableStatus(e,s,t,n){let o=await r.updateTableStatus(e,s,t,n);return P(o,h,p,a)}}},eo=function(a,r,e){let s=w(a);return{createDiningTable(t,n){return s.createDiningTable(t,n).then(o=>o(e,r))},createFloorSection(t,n){return s.createFloorSection(t,n).then(o=>o(e,r))},deleteDiningTable(t,n,o){return s.deleteDiningTable(t,n,o).then(i=>i(e,r))},deleteFloorSection(t,n,o){return s.deleteFloorSection(t,n,o).then(i=>i(e,r))},dissolveTableGroup(t,n,o){return s.dissolveTableGroup(t,n,o).then(i=>i(e,r))},getFloorPlan(t,n){return s.getFloorPlan(t,n).then(o=>o(e,r))},joinTables(t,n,o){return s.joinTables(t,n,o).then(i=>i(e,r))},removeTableFromGroup(t,n,o){return s.removeTableFromGroup(t,n,o).then(i=>i(e,r))},transferTable(t,n,o,i){return s.transferTable(t,n,o,i).then(l=>l(e,r))},updateDiningTable(t,n,o,i){return s.updateDiningTable(t,n,o,i).then(l=>l(e,r))},updateFloorSection(t,n,o,i){return s.updateFloorSection(t,n,o,i).then(l=>l(e,r))},updateTablePosition(t,n,o,i){return s.updateTablePosition(t,n,o,i).then(l=>l(e,r))},updateTableStatus(t,n,o,i){return s.updateTableStatus(t,n,o,i).then(l=>l(e,r))}}},ke=class extends V{createDiningTable(r,e){return w(this.configuration).createDiningTable(r,e).then(s=>s(this.axios,this.basePath))}createFloorSection(r,e){return w(this.configuration).createFloorSection(r,e).then(s=>s(this.axios,this.basePath))}deleteDiningTable(r,e,s){return w(this.configuration).deleteDiningTable(r,e,s).then(t=>t(this.axios,this.basePath))}deleteFloorSection(r,e,s){return w(this.configuration).deleteFloorSection(r,e,s).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(r,e,s){return w(this.configuration).dissolveTableGroup(r,e,s).then(t=>t(this.axios,this.basePath))}getFloorPlan(r,e){return w(this.configuration).getFloorPlan(r,e).then(s=>s(this.axios,this.basePath))}joinTables(r,e,s){return w(this.configuration).joinTables(r,e,s).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(r,e,s){return w(this.configuration).removeTableFromGroup(r,e,s).then(t=>t(this.axios,this.basePath))}transferTable(r,e,s,t){return w(this.configuration).transferTable(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateDiningTable(r,e,s,t){return w(this.configuration).updateDiningTable(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateFloorSection(r,e,s,t){return w(this.configuration).updateFloorSection(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateTablePosition(r,e,s,t){return w(this.configuration).updateTablePosition(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateTableStatus(r,e,s,t){return w(this.configuration).updateTableStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},wt=function(a){return{redeemGiftCard:async(r,e={})=>{c("redeemGiftCard","redeemGiftCardDto",r);let s="/api/v1/giftcard/redeem",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},validateGiftCard:async(r,e={})=>{c("validateGiftCard","validateGiftCardDto",r);let s="/api/v1/giftcard/validate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},xe=function(a){let r=wt(a);return{async redeemGiftCard(e,s){let t=await r.redeemGiftCard(e,s);return P(t,h,p,a)},async validateGiftCard(e,s){let t=await r.validateGiftCard(e,s);return P(t,h,p,a)}}},to=function(a,r,e){let s=xe(a);return{redeemGiftCard(t,n){return s.redeemGiftCard(t,n).then(o=>o(e,r))},validateGiftCard(t,n){return s.validateGiftCard(t,n).then(o=>o(e,r))}}},we=class extends V{redeemGiftCard(r,e){return xe(this.configuration).redeemGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(r,e){return xe(this.configuration).validateGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},Ft=function(a){return{getInternalOrderHistoryOnline:async(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",r);let I="/api/v1/history/internal/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}},getOrderHistoryOnline:async(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",r);let I="/api/v1/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},D={};e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}},getOrderHistoryPOSV5:async(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",r);let I="/api/v5/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},D={};await f(G,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}},getOrderHistoryPOSV5Internal:async(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",r);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},D={};await f(G,a),e!==void 0&&(D.timeSpan=e),s!==void 0&&(D.start=s),t!==void 0&&(D.end=t),r&&(D.businessIds=r),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}}}},X=function(a){let r=Ft(a);return{async getInternalOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await r.getInternalOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await r.getOrderHistoryOnline(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await r.getOrderHistoryPOSV5(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)},async getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await r.getOrderHistoryPOSV5Internal(e,s,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h,p,a)}}},so=function(a,r,e){let s=X(a);return{getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,r))},getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,r))},getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,r))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,r))}}},Fe=class extends V{getInternalOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getInternalOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryPOSV5(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryPOSV5Internal(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}},_t=function(a){return{createInvoiceCompany:async(r,e,s={})=>{c("createInvoiceCompany","businessId",r),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},deleteInvoiceCompany:async(r,e,s={})=>{c("deleteInvoiceCompany","id",r),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getInvoiceCompanies:async(r,e={})=>{c("getInvoiceCompanies","businessId",r);let s="/api/v1/invoice-companies",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(r,e,s={})=>{c("getInvoiceCompanyById","id",r),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},searchInvoiceCompanies:async(r,e,s={})=>{c("searchInvoiceCompanies","businessId",r);let t="/api/v1/invoice-companies/search",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.search=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},updateInvoiceCompany:async(r,e,s,t={})=>{c("updateInvoiceCompany","id",r),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",s);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",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 r=_t(a);return{async createInvoiceCompany(e,s,t){let n=await r.createInvoiceCompany(e,s,t);return P(n,h,p,a)},async deleteInvoiceCompany(e,s,t){let n=await r.deleteInvoiceCompany(e,s,t);return P(n,h,p,a)},async getInvoiceCompanies(e,s){let t=await r.getInvoiceCompanies(e,s);return P(t,h,p,a)},async getInvoiceCompanyById(e,s,t){let n=await r.getInvoiceCompanyById(e,s,t);return P(n,h,p,a)},async searchInvoiceCompanies(e,s,t){let n=await r.searchInvoiceCompanies(e,s,t);return P(n,h,p,a)},async updateInvoiceCompany(e,s,t,n){let o=await r.updateInvoiceCompany(e,s,t,n);return P(o,h,p,a)}}},ro=function(a,r,e){let s=$(a);return{createInvoiceCompany(t,n,o){return s.createInvoiceCompany(t,n,o).then(i=>i(e,r))},deleteInvoiceCompany(t,n,o){return s.deleteInvoiceCompany(t,n,o).then(i=>i(e,r))},getInvoiceCompanies(t,n){return s.getInvoiceCompanies(t,n).then(o=>o(e,r))},getInvoiceCompanyById(t,n,o){return s.getInvoiceCompanyById(t,n,o).then(i=>i(e,r))},searchInvoiceCompanies(t,n,o){return s.searchInvoiceCompanies(t,n,o).then(i=>i(e,r))},updateInvoiceCompany(t,n,o,i){return s.updateInvoiceCompany(t,n,o,i).then(l=>l(e,r))}}},_e=class extends V{createInvoiceCompany(r,e,s){return $(this.configuration).createInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(r,e,s){return $(this.configuration).deleteInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(r,e){return $(this.configuration).getInvoiceCompanies(r,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(r,e,s){return $(this.configuration).getInvoiceCompanyById(r,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(r,e,s){return $(this.configuration).searchInvoiceCompanies(r,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(r,e,s,t){return $(this.configuration).updateInvoiceCompany(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Lt=function(a){return{kdsGetOrders:async(r,e,s,t,n,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",r),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",s);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(r))),C=new URL(R,m),O;a&&(O=a.baseOptions);let I={method:"GET",...O,...x},v={},S={};await f(v,a),e!==void 0&&(S.businessIds=e),s!==void 0&&(S.profileId=s),t!==void 0&&(S.page=t),n!==void 0&&(S.rowPerPage=n),o!==void 0&&(S.timeSpan=o),i!==void 0&&(S.start=i),l!==void 0&&(S.end=l),u!==void 0&&(S.timezone=u),d&&(S.provider=d),A&&(S.consumptionType=A),g(C,S);let q=O&&O.headers?O.headers:{};return I.headers={...v,...q,...x.headers},{url:y(C),options:I}},kdsGetProfiles:async(r,e={})=>{c("kdsGetProfiles","businessId",r);let s="/api/v1/kds/profiles",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(r,e={})=>{c("kdsMarkOrderReady","id",r);let s="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(r,e={})=>{c("kdsRevertOrder","id",r);let s="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Z=function(a){let r=Lt(a);return{async kdsGetOrders(e,s,t,n,o,i,l,u,d,A,x,R){let C=await r.kdsGetOrders(e,s,t,n,o,i,l,u,d,A,x,R);return P(C,h,p,a)},async kdsGetProfiles(e,s){let t=await r.kdsGetProfiles(e,s);return P(t,h,p,a)},async kdsMarkOrderReady(e,s){let t=await r.kdsMarkOrderReady(e,s);return P(t,h,p,a)},async kdsRevertOrder(e,s){let t=await r.kdsRevertOrder(e,s);return P(t,h,p,a)}}},no=function(a,r,e){let s=Z(a);return{kdsGetOrders(t,n,o,i,l,u,d,A,x,R,C,O){return s.kdsGetOrders(t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(e,r))},kdsGetProfiles(t,n){return s.kdsGetProfiles(t,n).then(o=>o(e,r))},kdsMarkOrderReady(t,n){return s.kdsMarkOrderReady(t,n).then(o=>o(e,r))},kdsRevertOrder(t,n){return s.kdsRevertOrder(t,n).then(o=>o(e,r))}}},Le=class extends V{kdsGetOrders(r,e,s,t,n,o,i,l,u,d,A,x){return Z(this.configuration).kdsGetOrders(r,e,s,t,n,o,i,l,u,d,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(r,e){return Z(this.configuration).kdsGetProfiles(r,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(r,e){return Z(this.configuration).kdsMarkOrderReady(r,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(r,e){return Z(this.configuration).kdsRevertOrder(r,e).then(s=>s(this.axios,this.basePath))}},Nt=function(a){return{getKioskOrder:async(r,e,s={})=>{c("getKioskOrder","orderId",r),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getOrderStatus:async(r,e,s={})=>{c("getOrderStatus","orderId",r),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},recoverOrder:async(r,e,s={})=>{c("recoverOrder","orderId",r),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},syncKioskOrder:async(r,e={})=>{c("syncKioskOrder","syncKioskOrderDto",r);let s="/api/v1/kiosk/orders/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},validate:async(r,e,s={})=>{c("validate","terminalId",r),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};r!==void 0&&(u.terminalId=r),e!==void 0&&(u.provider=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}}}},z=function(a){let r=Nt(a);return{async getKioskOrder(e,s,t){let n=await r.getKioskOrder(e,s,t);return P(n,h,p,a)},async getOrderStatus(e,s,t){let n=await r.getOrderStatus(e,s,t);return P(n,h,p,a)},async recoverOrder(e,s,t){let n=await r.recoverOrder(e,s,t);return P(n,h,p,a)},async syncKioskOrder(e,s){let t=await r.syncKioskOrder(e,s);return P(t,h,p,a)},async validate(e,s,t){let n=await r.validate(e,s,t);return P(n,h,p,a)}}},oo=function(a,r,e){let s=z(a);return{getKioskOrder(t,n,o){return s.getKioskOrder(t,n,o).then(i=>i(e,r))},getOrderStatus(t,n,o){return s.getOrderStatus(t,n,o).then(i=>i(e,r))},recoverOrder(t,n,o){return s.recoverOrder(t,n,o).then(i=>i(e,r))},syncKioskOrder(t,n){return s.syncKioskOrder(t,n).then(o=>o(e,r))},validate(t,n,o){return s.validate(t,n,o).then(i=>i(e,r))}}},Ne=class extends V{getKioskOrder(r,e,s){return z(this.configuration).getKioskOrder(r,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(r,e,s){return z(this.configuration).getOrderStatus(r,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(r,e,s){return z(this.configuration).recoverOrder(r,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(r,e){return z(this.configuration).syncKioskOrder(r,e).then(s=>s(this.axios,this.basePath))}validate(r,e,s){return z(this.configuration).validate(r,e,s).then(t=>t(this.axios,this.basePath))}},jt=function(a){return{activateKioskOffer:async(r,e={})=>{c("activateKioskOffer","activateKioskOfferDto",r);let s="/api/v1/loyalty/users/activate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},claimKioskOffer:async(r,e={})=>{c("claimKioskOffer","claimKioskOfferDto",r);let s="/api/v1/loyalty/users/claim",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},createLoyaltyUser:async(r,e,s={})=>{c("createLoyaltyUser","businessId",r),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getAdminTransactions:async(r,e,s,t={})=>{c("getAdminTransactions","businessId",r);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),r!==void 0&&(d.businessId=r),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(r,e={})=>{c("getLoyaltyInfo","businessId",r);let s="/api/v1/loyalty/info",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(r,e,s={})=>{c("getUserById","businessId",r),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getUserPerks:async(r,e,s={})=>{c("getUserPerks","businessId",r),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getUserWallet:async(r,e,s={})=>{c("getUserWallet","businessId",r),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},resolvePerks:async(r,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",r);let s="/api/v1/loyalty/resolve",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},searchUser:async(r,e,s,t,n={})=>{c("searchUser","businessId",r);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};await f(d,a),e!==void 0&&(A.phone=e),s!==void 0&&(A.country_code=s),t!==void 0&&(A.email=t),r!==void 0&&(A.businessId=r),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},updatePoints:async(r,e,s={})=>{c("updatePoints","businessId",r),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),r!==void 0&&(u.businessId=r),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},validateWallet:async(r,e,s,t={})=>{c("validateWallet","businessId",r),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",s);let n="/api/v1/loyalty/wallets/validate",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),r!==void 0&&(d.businessId=r),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}}}},F=function(a){let r=jt(a);return{async activateKioskOffer(e,s){let t=await r.activateKioskOffer(e,s);return P(t,h,p,a)},async claimKioskOffer(e,s){let t=await r.claimKioskOffer(e,s);return P(t,h,p,a)},async createLoyaltyUser(e,s,t){let n=await r.createLoyaltyUser(e,s,t);return P(n,h,p,a)},async getAdminTransactions(e,s,t,n){let o=await r.getAdminTransactions(e,s,t,n);return P(o,h,p,a)},async getLoyaltyInfo(e,s){let t=await r.getLoyaltyInfo(e,s);return P(t,h,p,a)},async getUserById(e,s,t){let n=await r.getUserById(e,s,t);return P(n,h,p,a)},async getUserPerks(e,s,t){let n=await r.getUserPerks(e,s,t);return P(n,h,p,a)},async getUserWallet(e,s,t){let n=await r.getUserWallet(e,s,t);return P(n,h,p,a)},async resolvePerks(e,s){let t=await r.resolvePerks(e,s);return P(t,h,p,a)},async searchUser(e,s,t,n,o){let i=await r.searchUser(e,s,t,n,o);return P(i,h,p,a)},async updatePoints(e,s,t){let n=await r.updatePoints(e,s,t);return P(n,h,p,a)},async validateWallet(e,s,t,n){let o=await r.validateWallet(e,s,t,n);return P(o,h,p,a)}}},ao=function(a,r,e){let s=F(a);return{activateKioskOffer(t,n){return s.activateKioskOffer(t,n).then(o=>o(e,r))},claimKioskOffer(t,n){return s.claimKioskOffer(t,n).then(o=>o(e,r))},createLoyaltyUser(t,n,o){return s.createLoyaltyUser(t,n,o).then(i=>i(e,r))},getAdminTransactions(t,n,o,i){return s.getAdminTransactions(t,n,o,i).then(l=>l(e,r))},getLoyaltyInfo(t,n){return s.getLoyaltyInfo(t,n).then(o=>o(e,r))},getUserById(t,n,o){return s.getUserById(t,n,o).then(i=>i(e,r))},getUserPerks(t,n,o){return s.getUserPerks(t,n,o).then(i=>i(e,r))},getUserWallet(t,n,o){return s.getUserWallet(t,n,o).then(i=>i(e,r))},resolvePerks(t,n){return s.resolvePerks(t,n).then(o=>o(e,r))},searchUser(t,n,o,i,l){return s.searchUser(t,n,o,i,l).then(u=>u(e,r))},updatePoints(t,n,o){return s.updatePoints(t,n,o).then(i=>i(e,r))},validateWallet(t,n,o,i){return s.validateWallet(t,n,o,i).then(l=>l(e,r))}}},je=class extends V{activateKioskOffer(r,e){return F(this.configuration).activateKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(r,e){return F(this.configuration).claimKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(r,e,s){return F(this.configuration).createLoyaltyUser(r,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(r,e,s,t){return F(this.configuration).getAdminTransactions(r,e,s,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(r,e){return F(this.configuration).getLoyaltyInfo(r,e).then(s=>s(this.axios,this.basePath))}getUserById(r,e,s){return F(this.configuration).getUserById(r,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(r,e,s){return F(this.configuration).getUserPerks(r,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(r,e,s){return F(this.configuration).getUserWallet(r,e,s).then(t=>t(this.axios,this.basePath))}resolvePerks(r,e){return F(this.configuration).resolvePerks(r,e).then(s=>s(this.axios,this.basePath))}searchUser(r,e,s,t,n){return F(this.configuration).searchUser(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(r,e,s){return F(this.configuration).updatePoints(r,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(r,e,s,t){return F(this.configuration).validateWallet(r,e,s,t).then(n=>n(this.axios,this.basePath))}},Gt=function(a){return{editBusinessProduct:async(r,e,s={})=>{c("editBusinessProduct","businessId",r),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},editBusinessProductV2:async(r,e,s={})=>{c("editBusinessProductV2","businessId",r),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessExtras:async(r,e={})=>{c("getBusinessExtras","businessId",r);let s="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(r,e,s={})=>{c("getProductsByCategoriesV2","businessId",r);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getProductsByCategoriesV3:async(r,e,s={})=>{c("getProductsByCategoriesV3","businessId",r);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},resetProductEod:async(r,e={})=>{c("resetProductEod","resetEodDto",r);let s="/api/v1/menu/availability/reset-eod",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},Y=function(a){let r=Gt(a);return{async editBusinessProduct(e,s,t){let n=await r.editBusinessProduct(e,s,t);return P(n,h,p,a)},async editBusinessProductV2(e,s,t){let n=await r.editBusinessProductV2(e,s,t);return P(n,h,p,a)},async getBusinessExtras(e,s){let t=await r.getBusinessExtras(e,s);return P(t,h,p,a)},async getProductsByCategoriesV2(e,s,t){let n=await r.getProductsByCategoriesV2(e,s,t);return P(n,h,p,a)},async getProductsByCategoriesV3(e,s,t){let n=await r.getProductsByCategoriesV3(e,s,t);return P(n,h,p,a)},async resetProductEod(e,s){let t=await r.resetProductEod(e,s);return P(t,h,p,a)}}},io=function(a,r,e){let s=Y(a);return{editBusinessProduct(t,n,o){return s.editBusinessProduct(t,n,o).then(i=>i(e,r))},editBusinessProductV2(t,n,o){return s.editBusinessProductV2(t,n,o).then(i=>i(e,r))},getBusinessExtras(t,n){return s.getBusinessExtras(t,n).then(o=>o(e,r))},getProductsByCategoriesV2(t,n,o){return s.getProductsByCategoriesV2(t,n,o).then(i=>i(e,r))},getProductsByCategoriesV3(t,n,o){return s.getProductsByCategoriesV3(t,n,o).then(i=>i(e,r))},resetProductEod(t,n){return s.resetProductEod(t,n).then(o=>o(e,r))}}},Ge=class extends V{editBusinessProduct(r,e,s){return Y(this.configuration).editBusinessProduct(r,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(r,e,s){return Y(this.configuration).editBusinessProductV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(r,e){return Y(this.configuration).getBusinessExtras(r,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(r,e,s){return Y(this.configuration).getProductsByCategoriesV2(r,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(r,e,s){return Y(this.configuration).getProductsByCategoriesV3(r,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(r,e){return Y(this.configuration).resetProductEod(r,e).then(s=>s(this.axios,this.basePath))}},Wt=function(a){return{addBusinessesToMerchant:async(r,e,s={})=>{c("addBusinessesToMerchant","merchantId",r),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},createMerchant:async(r,e={})=>{c("createMerchant","createMerchantDto",r);let s="/api/v1/merchants",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(r,e,s={})=>{c("removeBusinessFromMerchant","merchantId",r),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}}}},pe=function(a){let r=Wt(a);return{async addBusinessesToMerchant(e,s,t){let n=await r.addBusinessesToMerchant(e,s,t);return P(n,h,p,a)},async createMerchant(e,s){let t=await r.createMerchant(e,s);return P(t,h,p,a)},async removeBusinessFromMerchant(e,s,t){let n=await r.removeBusinessFromMerchant(e,s,t);return P(n,h,p,a)}}},lo=function(a,r,e){let s=pe(a);return{addBusinessesToMerchant(t,n,o){return s.addBusinessesToMerchant(t,n,o).then(i=>i(e,r))},createMerchant(t,n){return s.createMerchant(t,n).then(o=>o(e,r))},removeBusinessFromMerchant(t,n,o){return s.removeBusinessFromMerchant(t,n,o).then(i=>i(e,r))}}},We=class extends V{addBusinessesToMerchant(r,e,s){return pe(this.configuration).addBusinessesToMerchant(r,e,s).then(t=>t(this.axios,this.basePath))}createMerchant(r,e){return pe(this.configuration).createMerchant(r,e).then(s=>s(this.axios,this.basePath))}removeBusinessFromMerchant(r,e,s){return pe(this.configuration).removeBusinessFromMerchant(r,e,s).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{createMunchiGiftCard:async(r,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",r);let s="/api/v1/munchi-giftcard/create",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(r,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",r);let s="/api/v1/munchi-giftcard/data",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(r,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",r);let s="/api/v1/munchi-giftcard/redeem",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(r,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",r);let s="/api/v1/munchi-giftcard/validate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},ee=function(a){let r=Kt(a);return{async createMunchiGiftCard(e,s){let t=await r.createMunchiGiftCard(e,s);return P(t,h,p,a)},async getMunchiGiftCardData(e,s){let t=await r.getMunchiGiftCardData(e,s);return P(t,h,p,a)},async redeemMunchiGiftCard(e,s){let t=await r.redeemMunchiGiftCard(e,s);return P(t,h,p,a)},async validateMunchiGiftCard(e,s){let t=await r.validateMunchiGiftCard(e,s);return P(t,h,p,a)}}},uo=function(a,r,e){let s=ee(a);return{createMunchiGiftCard(t,n){return s.createMunchiGiftCard(t,n).then(o=>o(e,r))},getMunchiGiftCardData(t,n){return s.getMunchiGiftCardData(t,n).then(o=>o(e,r))},redeemMunchiGiftCard(t,n){return s.redeemMunchiGiftCard(t,n).then(o=>o(e,r))},validateMunchiGiftCard(t,n){return s.validateMunchiGiftCard(t,n).then(o=>o(e,r))}}},Ke=class extends V{createMunchiGiftCard(r,e){return ee(this.configuration).createMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(r,e){return ee(this.configuration).getMunchiGiftCardData(r,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(r,e){return ee(this.configuration).redeemMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(r,e){return ee(this.configuration).validateMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},Ht=function(a){return{addVenueSubscriptionsV2:async(r,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",r);let s="/api/v2/notification/add-venue-subscriptions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(r,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",r);let s="/api/v2/notification/remove-venue-subscriptions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},fe=function(a){let r=Ht(a);return{async addVenueSubscriptionsV2(e,s){let t=await r.addVenueSubscriptionsV2(e,s);return P(t,h,p,a)},async removeVenueSubscriptionsV2(e,s){let t=await r.removeVenueSubscriptionsV2(e,s);return P(t,h,p,a)}}},co=function(a,r,e){let s=fe(a);return{addVenueSubscriptionsV2(t,n){return s.addVenueSubscriptionsV2(t,n).then(o=>o(e,r))},removeVenueSubscriptionsV2(t,n){return s.removeVenueSubscriptionsV2(t,n).then(o=>o(e,r))}}},He=class extends V{addVenueSubscriptionsV2(r,e){return fe(this.configuration).addVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(r,e){return fe(this.configuration).removeVenueSubscriptionsV2(r,e).then(s=>s(this.axios,this.basePath))}},Qt=function(a){return{findOneByExternalId:async(r,e={})=>{c("findOneByExternalId","externalId",r);let s="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},At=function(a){let r=Qt(a);return{async findOneByExternalId(e,s){let t=await r.findOneByExternalId(e,s);return P(t,h,p,a)}}},po=function(a,r,e){let s=At(a);return{findOneByExternalId(t,n){return s.findOneByExternalId(t,n).then(o=>o(e,r))}}},Qe=class extends V{findOneByExternalId(r,e){return At(this.configuration).findOneByExternalId(r,e).then(s=>s(this.axios,this.basePath))}},$t=function(a){return{acceptOrder:async(r,e={})=>{c("acceptOrder","acceptOrderDto",r);let s="/api/v1/orders/accept",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},confirmPreOrder:async(r,e={})=>{c("confirmPreOrder","confirmPreorderDto",r);let s="/api/v1/orders/confirm/preOrder",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(r,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",r);let s="/api/v2/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},deliverOrder:async(r,e={})=>{c("deliverOrder","deliveredOrderDto",r);let s="/api/v1/orders/delivered",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},dispatchPosOrderV5:async(r,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",r);let s="/api/v5/orders/pos/dispatch",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getAllOrdersV2:async(r,e={})=>{c("getAllOrdersV2","businessIds",r);let s="/api/v2/orders",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessIds=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(r,e,s,t,n={})=>{c("getOrdersV2","status",r),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getOrdersV3:async(r,e,s,t,n={})=>{c("getOrdersV3","status",r),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),s!==void 0&&(A.posBusinessId=s),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(r,e={})=>{c("getParkedPosOrderV2","businessId",r);let s="/api/v2/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosOrderById:async(r,e={})=>{c("getPosOrderById","getPosOrderDto",r);let s="/api/v1/orders/pos",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},markOrderAsReady:async(r,e={})=>{c("markOrderAsReady","readyOrderDto",r);let s="/api/v1/orders/ready",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},placePosOrderV4:async(r,e={})=>{c("placePosOrderV4","posOrderPayloadDto",r);let s="/api/v4/orders/pos/place",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},processPosOrderActions:async(r,e={})=>{c("processPosOrderActions","processOrderActionsDto",r);let s="/api/v4/orders/pos/actions",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},rejectOrder:async(r,e={})=>{c("rejectOrder","rejectOrderDto",r);let s="/api/v1/orders/reject",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},syncPosOrder:async(r,e={})=>{c("syncPosOrder","syncPosOrderDto",r);let s="/api/v1/orders/pos/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},updatePosOrderV2:async(r,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",r);let s="/api/v2/orders/pos/update",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},B=function(a){let r=$t(a);return{async acceptOrder(e,s){let t=await r.acceptOrder(e,s);return P(t,h,p,a)},async confirmPreOrder(e,s){let t=await r.confirmPreOrder(e,s);return P(t,h,p,a)},async deletePosParkedOrderV2(e,s){let t=await r.deletePosParkedOrderV2(e,s);return P(t,h,p,a)},async deliverOrder(e,s){let t=await r.deliverOrder(e,s);return P(t,h,p,a)},async dispatchPosOrderV5(e,s){let t=await r.dispatchPosOrderV5(e,s);return P(t,h,p,a)},async getAllOrdersV2(e,s){let t=await r.getAllOrdersV2(e,s);return P(t,h,p,a)},async getOrdersV2(e,s,t,n,o){let i=await r.getOrdersV2(e,s,t,n,o);return P(i,h,p,a)},async getOrdersV3(e,s,t,n,o){let i=await r.getOrdersV3(e,s,t,n,o);return P(i,h,p,a)},async getParkedPosOrderV2(e,s){let t=await r.getParkedPosOrderV2(e,s);return P(t,h,p,a)},async getPosOrderById(e,s){let t=await r.getPosOrderById(e,s);return P(t,h,p,a)},async markOrderAsReady(e,s){let t=await r.markOrderAsReady(e,s);return P(t,h,p,a)},async placePosOrderV4(e,s){let t=await r.placePosOrderV4(e,s);return P(t,h,p,a)},async processPosOrderActions(e,s){let t=await r.processPosOrderActions(e,s);return P(t,h,p,a)},async rejectOrder(e,s){let t=await r.rejectOrder(e,s);return P(t,h,p,a)},async syncPosOrder(e,s){let t=await r.syncPosOrder(e,s);return P(t,h,p,a)},async updatePosOrderV2(e,s){let t=await r.updatePosOrderV2(e,s);return P(t,h,p,a)}}},mo=function(a,r,e){let s=B(a);return{acceptOrder(t,n){return s.acceptOrder(t,n).then(o=>o(e,r))},confirmPreOrder(t,n){return s.confirmPreOrder(t,n).then(o=>o(e,r))},deletePosParkedOrderV2(t,n){return s.deletePosParkedOrderV2(t,n).then(o=>o(e,r))},deliverOrder(t,n){return s.deliverOrder(t,n).then(o=>o(e,r))},dispatchPosOrderV5(t,n){return s.dispatchPosOrderV5(t,n).then(o=>o(e,r))},getAllOrdersV2(t,n){return s.getAllOrdersV2(t,n).then(o=>o(e,r))},getOrdersV2(t,n,o,i,l){return s.getOrdersV2(t,n,o,i,l).then(u=>u(e,r))},getOrdersV3(t,n,o,i,l){return s.getOrdersV3(t,n,o,i,l).then(u=>u(e,r))},getParkedPosOrderV2(t,n){return s.getParkedPosOrderV2(t,n).then(o=>o(e,r))},getPosOrderById(t,n){return s.getPosOrderById(t,n).then(o=>o(e,r))},markOrderAsReady(t,n){return s.markOrderAsReady(t,n).then(o=>o(e,r))},placePosOrderV4(t,n){return s.placePosOrderV4(t,n).then(o=>o(e,r))},processPosOrderActions(t,n){return s.processPosOrderActions(t,n).then(o=>o(e,r))},rejectOrder(t,n){return s.rejectOrder(t,n).then(o=>o(e,r))},syncPosOrder(t,n){return s.syncPosOrder(t,n).then(o=>o(e,r))},updatePosOrderV2(t,n){return s.updatePosOrderV2(t,n).then(o=>o(e,r))}}},$e=class extends V{acceptOrder(r,e){return B(this.configuration).acceptOrder(r,e).then(s=>s(this.axios,this.basePath))}confirmPreOrder(r,e){return B(this.configuration).confirmPreOrder(r,e).then(s=>s(this.axios,this.basePath))}deletePosParkedOrderV2(r,e){return B(this.configuration).deletePosParkedOrderV2(r,e).then(s=>s(this.axios,this.basePath))}deliverOrder(r,e){return B(this.configuration).deliverOrder(r,e).then(s=>s(this.axios,this.basePath))}dispatchPosOrderV5(r,e){return B(this.configuration).dispatchPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}getAllOrdersV2(r,e){return B(this.configuration).getAllOrdersV2(r,e).then(s=>s(this.axios,this.basePath))}getOrdersV2(r,e,s,t,n){return B(this.configuration).getOrdersV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getOrdersV3(r,e,s,t,n){return B(this.configuration).getOrdersV3(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(r,e){return B(this.configuration).getParkedPosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}getPosOrderById(r,e){return B(this.configuration).getPosOrderById(r,e).then(s=>s(this.axios,this.basePath))}markOrderAsReady(r,e){return B(this.configuration).markOrderAsReady(r,e).then(s=>s(this.axios,this.basePath))}placePosOrderV4(r,e){return B(this.configuration).placePosOrderV4(r,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(r,e){return B(this.configuration).processPosOrderActions(r,e).then(s=>s(this.axios,this.basePath))}rejectOrder(r,e){return B(this.configuration).rejectOrder(r,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(r,e){return B(this.configuration).syncPosOrder(r,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(r,e){return B(this.configuration).updatePosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}},Yt=function(a){return{getPosSession:async(r,e={})=>{c("getPosSession","businessId",r);let s="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(r,e={})=>{c("getPosSessionV2","businessId",r);let s="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Re=function(a){let r=Yt(a);return{async getPosSession(e,s){let t=await r.getPosSession(e,s);return P(t,h,p,a)},async getPosSessionV2(e,s){let t=await r.getPosSessionV2(e,s);return P(t,h,p,a)}}},go=function(a,r,e){let s=Re(a);return{getPosSession(t,n){return s.getPosSession(t,n).then(o=>o(e,r))},getPosSessionV2(t,n){return s.getPosSessionV2(t,n).then(o=>o(e,r))}}},Ye=class extends V{getPosSession(r,e){return Re(this.configuration).getPosSession(r,e).then(s=>s(this.axios,this.basePath))}getPosSessionV2(r,e){return Re(this.configuration).getPosSessionV2(r,e).then(s=>s(this.axios,this.basePath))}},zt=function(a){return{payTerminalInit:async(r,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",r);let s="/api/v1/pay-terminal/init",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},payTerminalPair:async(r,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",r);let s="/api/v1/pay-terminal/pair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},payTerminalSessionToken:async(r,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",r);let s="/api/v1/pay-terminal/session-token",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},payTerminalUnpair:async(r,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",r);let s="/api/v1/pay-terminal/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},te=function(a){let r=zt(a);return{async payTerminalInit(e,s){let t=await r.payTerminalInit(e,s);return P(t,h,p,a)},async payTerminalPair(e,s){let t=await r.payTerminalPair(e,s);return P(t,h,p,a)},async payTerminalSessionToken(e,s){let t=await r.payTerminalSessionToken(e,s);return P(t,h,p,a)},async payTerminalUnpair(e,s){let t=await r.payTerminalUnpair(e,s);return P(t,h,p,a)}}},yo=function(a,r,e){let s=te(a);return{payTerminalInit(t,n){return s.payTerminalInit(t,n).then(o=>o(e,r))},payTerminalPair(t,n){return s.payTerminalPair(t,n).then(o=>o(e,r))},payTerminalSessionToken(t,n){return s.payTerminalSessionToken(t,n).then(o=>o(e,r))},payTerminalUnpair(t,n){return s.payTerminalUnpair(t,n).then(o=>o(e,r))}}},ze=class extends V{payTerminalInit(r,e){return te(this.configuration).payTerminalInit(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(r,e){return te(this.configuration).payTerminalPair(r,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(r,e){return te(this.configuration).payTerminalSessionToken(r,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(r,e){return te(this.configuration).payTerminalUnpair(r,e).then(s=>s(this.axios,this.basePath))}},Jt=function(a){return{cancelNetsTerminalTransaction:async(r,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",r);let s="/api/v3/payment/nets/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(r,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",r);let s="/api/v2/payment/viva/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(r,e={})=>{c("createNetsRefundTransaction","createRefundDto",r);let s="/api/v4/payment/nets/refund/transaction",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getPaymentReference:async(r,e={})=>{c("getPaymentReference","getPaymentReferenceDto",r);let s="/api/v1/payment/reference",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getPaymentStatus:async(r,e={})=>{c("getPaymentStatus","getPaymentStatusDto",r);let s="/api/v1/payment/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(r,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",r);let s="/api/v3/payment/nets/terminal/initiate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(r,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",r);let s="/api/v4/payment/viva/terminal/initiate",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(r,e={})=>{c("processOnlineOrderRefund","orderResponseDto",r);let s="/api/v1/payment/online-orders/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(r,e={})=>{c("refundSingleVivaTransaction","createRefundDto",r);let s="/api/v4/payment/viva/refund/single",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},j=function(a){let r=Jt(a);return{async cancelNetsTerminalTransaction(e,s){let t=await r.cancelNetsTerminalTransaction(e,s);return P(t,h,p,a)},async cancelVivaTransactionV2(e,s){let t=await r.cancelVivaTransactionV2(e,s);return P(t,h,p,a)},async createNetsRefundTransaction(e,s){let t=await r.createNetsRefundTransaction(e,s);return P(t,h,p,a)},async getPaymentReference(e,s){let t=await r.getPaymentReference(e,s);return P(t,h,p,a)},async getPaymentStatus(e,s){let t=await r.getPaymentStatus(e,s);return P(t,h,p,a)},async initiateNetsTerminalTransaction(e,s){let t=await r.initiateNetsTerminalTransaction(e,s);return P(t,h,p,a)},async initiateTerminalTransaction(e,s){let t=await r.initiateTerminalTransaction(e,s);return P(t,h,p,a)},async processOnlineOrderRefund(e,s){let t=await r.processOnlineOrderRefund(e,s);return P(t,h,p,a)},async refundSingleVivaTransaction(e,s){let t=await r.refundSingleVivaTransaction(e,s);return P(t,h,p,a)}}},Po=function(a,r,e){let s=j(a);return{cancelNetsTerminalTransaction(t,n){return s.cancelNetsTerminalTransaction(t,n).then(o=>o(e,r))},cancelVivaTransactionV2(t,n){return s.cancelVivaTransactionV2(t,n).then(o=>o(e,r))},createNetsRefundTransaction(t,n){return s.createNetsRefundTransaction(t,n).then(o=>o(e,r))},getPaymentReference(t,n){return s.getPaymentReference(t,n).then(o=>o(e,r))},getPaymentStatus(t,n){return s.getPaymentStatus(t,n).then(o=>o(e,r))},initiateNetsTerminalTransaction(t,n){return s.initiateNetsTerminalTransaction(t,n).then(o=>o(e,r))},initiateTerminalTransaction(t,n){return s.initiateTerminalTransaction(t,n).then(o=>o(e,r))},processOnlineOrderRefund(t,n){return s.processOnlineOrderRefund(t,n).then(o=>o(e,r))},refundSingleVivaTransaction(t,n){return s.refundSingleVivaTransaction(t,n).then(o=>o(e,r))}}},Je=class extends V{cancelNetsTerminalTransaction(r,e){return j(this.configuration).cancelNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}cancelVivaTransactionV2(r,e){return j(this.configuration).cancelVivaTransactionV2(r,e).then(s=>s(this.axios,this.basePath))}createNetsRefundTransaction(r,e){return j(this.configuration).createNetsRefundTransaction(r,e).then(s=>s(this.axios,this.basePath))}getPaymentReference(r,e){return j(this.configuration).getPaymentReference(r,e).then(s=>s(this.axios,this.basePath))}getPaymentStatus(r,e){return j(this.configuration).getPaymentStatus(r,e).then(s=>s(this.axios,this.basePath))}initiateNetsTerminalTransaction(r,e){return j(this.configuration).initiateNetsTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}initiateTerminalTransaction(r,e){return j(this.configuration).initiateTerminalTransaction(r,e).then(s=>s(this.axios,this.basePath))}processOnlineOrderRefund(r,e){return j(this.configuration).processOnlineOrderRefund(r,e).then(s=>s(this.axios,this.basePath))}refundSingleVivaTransaction(r,e){return j(this.configuration).refundSingleVivaTransaction(r,e).then(s=>s(this.axios,this.basePath))}},Xt=function(a){return{createPaymentMethod:async(r,e,s,t={})=>{c("createPaymentMethod","businessId",r),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",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(r,e,s,t={})=>{c("deletePaymentMethodOption","businessId",r),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getCatalog:async(r,e,s,t={})=>{c("getCatalog","businessId",r),c("getCatalog","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getGlobalCatalog:async(r,e={})=>{let s="/api/v1/payment-methods/catalog",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.locale=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentMethods:async(r,e,s,t={})=>{c("getPaymentMethods","businessId",r),c("getPaymentMethods","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.locale=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getTypes:async(r={})=>{let e="/api/v1/payment-methods/types",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},reorder:async(r,e,s,t={})=>{c("reorder","businessId",r),c("reorder","channel",e),c("reorder","bulkRankDto",s);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",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(r,e,s,t,n={})=>{c("updatePaymentMethodOption","businessId",r),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",s),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(r))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},W=function(a){let r=Xt(a);return{async createPaymentMethod(e,s,t,n){let o=await r.createPaymentMethod(e,s,t,n);return P(o,h,p,a)},async deletePaymentMethodOption(e,s,t,n){let o=await r.deletePaymentMethodOption(e,s,t,n);return P(o,h,p,a)},async getCatalog(e,s,t,n){let o=await r.getCatalog(e,s,t,n);return P(o,h,p,a)},async getGlobalCatalog(e,s){let t=await r.getGlobalCatalog(e,s);return P(t,h,p,a)},async getPaymentMethods(e,s,t,n){let o=await r.getPaymentMethods(e,s,t,n);return P(o,h,p,a)},async getTypes(e){let s=await r.getTypes(e);return P(s,h,p,a)},async reorder(e,s,t,n){let o=await r.reorder(e,s,t,n);return P(o,h,p,a)},async updatePaymentMethodOption(e,s,t,n,o){let i=await r.updatePaymentMethodOption(e,s,t,n,o);return P(i,h,p,a)}}},ho=function(a,r,e){let s=W(a);return{createPaymentMethod(t,n,o,i){return s.createPaymentMethod(t,n,o,i).then(l=>l(e,r))},deletePaymentMethodOption(t,n,o,i){return s.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,r))},getCatalog(t,n,o,i){return s.getCatalog(t,n,o,i).then(l=>l(e,r))},getGlobalCatalog(t,n){return s.getGlobalCatalog(t,n).then(o=>o(e,r))},getPaymentMethods(t,n,o,i){return s.getPaymentMethods(t,n,o,i).then(l=>l(e,r))},getTypes(t){return s.getTypes(t).then(n=>n(e,r))},reorder(t,n,o,i){return s.reorder(t,n,o,i).then(l=>l(e,r))},updatePaymentMethodOption(t,n,o,i,l){return s.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,r))}}},Xe=class extends V{createPaymentMethod(r,e,s,t){return W(this.configuration).createPaymentMethod(r,e,s,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(r,e,s,t){return W(this.configuration).deletePaymentMethodOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}getCatalog(r,e,s,t){return W(this.configuration).getCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getGlobalCatalog(r,e){return W(this.configuration).getGlobalCatalog(r,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(r,e,s,t){return W(this.configuration).getPaymentMethods(r,e,s,t).then(n=>n(this.axios,this.basePath))}getTypes(r){return W(this.configuration).getTypes(r).then(e=>e(this.axios,this.basePath))}reorder(r,e,s,t){return W(this.configuration).reorder(r,e,s,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(r,e,s,t,n){return W(this.configuration).updatePaymentMethodOption(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},Zt=function(a){return{cancelSession:async(r,e={})=>{c("cancelSession","clientToken",r);let s="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrderSettlementStatus:async(r,e,s,t={})=>{c("getOrderSettlementStatus","businessId",r),c("getOrderSettlementStatus","orderId",e);let n="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",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(r,e={})=>{c("getPaymentSession","clientToken",r);let s="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},initiateNetsSession:async(r,e,s={})=>{c("initiateNetsSession","initiateNetsSessionDto",r);let t="/api/v1/payment-session/nets/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(r,i,a),{url:y(n),options:i}},initiateVivaA2aSession:async(r,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",r);let s="/api/v1/payment-session/viva/a2a",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},initiateVivaSession:async(r,e,s={})=>{c("initiateVivaSession","initiateVivaSessionDto",r);let t="/api/v1/payment-session/viva/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(r,i,a),{url:y(n),options:i}},initiateWorldlineSession:async(r,e,s={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",r);let t="/api/v1/payment-session/worldline/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(r,i,a),{url:y(n),options:i}},paymentSessionGetChargeStatus:async(r,e={})=>{c("paymentSessionGetChargeStatus","chargeId",r);let s="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},paymentSessionRegisterChargeMapping:async(r,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",r);let s="/api/v1/payment-session/charge-status/register",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},pollVivaSession:async(r,e={})=>{c("pollVivaSession","pollVivaSessionDto",r);let s="/api/v1/payment-session/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},pollWorldlineSession:async(r,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",r);let s="/api/v1/payment-session/worldline/poll",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},recordManualPayment:async(r,e={})=>{c("recordManualPayment","createManualSessionDto",r);let s="/api/v1/payment-session/manual",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},refundNetsSession:async(r,e={})=>{c("refundNetsSession","reverseSessionDto",r);let s="/api/v1/payment-session/nets/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},refundVivaSession:async(r,e={})=>{c("refundVivaSession","reverseSessionDto",r);let s="/api/v1/payment-session/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},refundWorldlineSession:async(r,e={})=>{c("refundWorldlineSession","reverseSessionDto",r);let s="/api/v1/payment-session/worldline/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},revertNetsSession:async(r,e={})=>{c("revertNetsSession","reverseSessionDto",r);let s="/api/v1/payment-session/nets/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},revertVivaSession:async(r,e={})=>{c("revertVivaSession","reverseSessionDto",r);let s="/api/v1/payment-session/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},revertWorldlineSession:async(r,e={})=>{c("revertWorldlineSession","reverseSessionDto",r);let s="/api/v1/payment-session/worldline/revert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},voidManualPayment:async(r,e={})=>{c("voidManualPayment","voidManualSessionDto",r);let s="/api/v1/payment-session/void",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},E=function(a){let r=Zt(a);return{async cancelSession(e,s){let t=await r.cancelSession(e,s);return P(t,h,p,a)},async getOrderSettlementStatus(e,s,t,n){let o=await r.getOrderSettlementStatus(e,s,t,n);return P(o,h,p,a)},async getPaymentSession(e,s){let t=await r.getPaymentSession(e,s);return P(t,h,p,a)},async initiateNetsSession(e,s,t){let n=await r.initiateNetsSession(e,s,t);return P(n,h,p,a)},async initiateVivaA2aSession(e,s){let t=await r.initiateVivaA2aSession(e,s);return P(t,h,p,a)},async initiateVivaSession(e,s,t){let n=await r.initiateVivaSession(e,s,t);return P(n,h,p,a)},async initiateWorldlineSession(e,s,t){let n=await r.initiateWorldlineSession(e,s,t);return P(n,h,p,a)},async paymentSessionGetChargeStatus(e,s){let t=await r.paymentSessionGetChargeStatus(e,s);return P(t,h,p,a)},async paymentSessionRegisterChargeMapping(e,s){let t=await r.paymentSessionRegisterChargeMapping(e,s);return P(t,h,p,a)},async pollVivaSession(e,s){let t=await r.pollVivaSession(e,s);return P(t,h,p,a)},async pollWorldlineSession(e,s){let t=await r.pollWorldlineSession(e,s);return P(t,h,p,a)},async recordManualPayment(e,s){let t=await r.recordManualPayment(e,s);return P(t,h,p,a)},async refundNetsSession(e,s){let t=await r.refundNetsSession(e,s);return P(t,h,p,a)},async refundVivaSession(e,s){let t=await r.refundVivaSession(e,s);return P(t,h,p,a)},async refundWorldlineSession(e,s){let t=await r.refundWorldlineSession(e,s);return P(t,h,p,a)},async revertNetsSession(e,s){let t=await r.revertNetsSession(e,s);return P(t,h,p,a)},async revertVivaSession(e,s){let t=await r.revertVivaSession(e,s);return P(t,h,p,a)},async revertWorldlineSession(e,s){let t=await r.revertWorldlineSession(e,s);return P(t,h,p,a)},async voidManualPayment(e,s){let t=await r.voidManualPayment(e,s);return P(t,h,p,a)}}},Ao=function(a,r,e){let s=E(a);return{cancelSession(t,n){return s.cancelSession(t,n).then(o=>o(e,r))},getOrderSettlementStatus(t,n,o,i){return s.getOrderSettlementStatus(t,n,o,i).then(l=>l(e,r))},getPaymentSession(t,n){return s.getPaymentSession(t,n).then(o=>o(e,r))},initiateNetsSession(t,n,o){return s.initiateNetsSession(t,n,o).then(i=>i(e,r))},initiateVivaA2aSession(t,n){return s.initiateVivaA2aSession(t,n).then(o=>o(e,r))},initiateVivaSession(t,n,o){return s.initiateVivaSession(t,n,o).then(i=>i(e,r))},initiateWorldlineSession(t,n,o){return s.initiateWorldlineSession(t,n,o).then(i=>i(e,r))},paymentSessionGetChargeStatus(t,n){return s.paymentSessionGetChargeStatus(t,n).then(o=>o(e,r))},paymentSessionRegisterChargeMapping(t,n){return s.paymentSessionRegisterChargeMapping(t,n).then(o=>o(e,r))},pollVivaSession(t,n){return s.pollVivaSession(t,n).then(o=>o(e,r))},pollWorldlineSession(t,n){return s.pollWorldlineSession(t,n).then(o=>o(e,r))},recordManualPayment(t,n){return s.recordManualPayment(t,n).then(o=>o(e,r))},refundNetsSession(t,n){return s.refundNetsSession(t,n).then(o=>o(e,r))},refundVivaSession(t,n){return s.refundVivaSession(t,n).then(o=>o(e,r))},refundWorldlineSession(t,n){return s.refundWorldlineSession(t,n).then(o=>o(e,r))},revertNetsSession(t,n){return s.revertNetsSession(t,n).then(o=>o(e,r))},revertVivaSession(t,n){return s.revertVivaSession(t,n).then(o=>o(e,r))},revertWorldlineSession(t,n){return s.revertWorldlineSession(t,n).then(o=>o(e,r))},voidManualPayment(t,n){return s.voidManualPayment(t,n).then(o=>o(e,r))}}},Ze=class extends V{cancelSession(r,e){return E(this.configuration).cancelSession(r,e).then(s=>s(this.axios,this.basePath))}getOrderSettlementStatus(r,e,s,t){return E(this.configuration).getOrderSettlementStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}getPaymentSession(r,e){return E(this.configuration).getPaymentSession(r,e).then(s=>s(this.axios,this.basePath))}initiateNetsSession(r,e,s){return E(this.configuration).initiateNetsSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(r,e){return E(this.configuration).initiateVivaA2aSession(r,e).then(s=>s(this.axios,this.basePath))}initiateVivaSession(r,e,s){return E(this.configuration).initiateVivaSession(r,e,s).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(r,e,s){return E(this.configuration).initiateWorldlineSession(r,e,s).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(r,e){return E(this.configuration).paymentSessionGetChargeStatus(r,e).then(s=>s(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(r,e){return E(this.configuration).paymentSessionRegisterChargeMapping(r,e).then(s=>s(this.axios,this.basePath))}pollVivaSession(r,e){return E(this.configuration).pollVivaSession(r,e).then(s=>s(this.axios,this.basePath))}pollWorldlineSession(r,e){return E(this.configuration).pollWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}recordManualPayment(r,e){return E(this.configuration).recordManualPayment(r,e).then(s=>s(this.axios,this.basePath))}refundNetsSession(r,e){return E(this.configuration).refundNetsSession(r,e).then(s=>s(this.axios,this.basePath))}refundVivaSession(r,e){return E(this.configuration).refundVivaSession(r,e).then(s=>s(this.axios,this.basePath))}refundWorldlineSession(r,e){return E(this.configuration).refundWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}revertNetsSession(r,e){return E(this.configuration).revertNetsSession(r,e).then(s=>s(this.axios,this.basePath))}revertVivaSession(r,e){return E(this.configuration).revertVivaSession(r,e).then(s=>s(this.axios,this.basePath))}revertWorldlineSession(r,e){return E(this.configuration).revertWorldlineSession(r,e).then(s=>s(this.axios,this.basePath))}voidManualPayment(r,e){return E(this.configuration).voidManualPayment(r,e).then(s=>s(this.axios,this.basePath))}},es=function(a){return{deleteCategoryPolicy:async(r,e,s={})=>{c("deleteCategoryPolicy","businessId",r),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.categoryId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},deletePrinter:async(r,e,s={})=>{c("deletePrinter","id",r),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},deletePrinterByAddress:async(r,e,s={})=>{c("deletePrinterByAddress","businessId",r),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.address=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},deleteProductPolicy:async(r,e,s={})=>{c("deleteProductPolicy","businessId",r),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={},u={};r!==void 0&&(u.businessId=r),e!==void 0&&(u.productId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},listCategoryPolicies:async(r,e={})=>{c("listCategoryPolicies","businessId",r);let s="/api/v1/printer/policies/category",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listPrinters:async(r,e={})=>{c("listPrinters","businessId",r);let s="/api/v1/printer",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listProductPolicies:async(r,e={})=>{c("listProductPolicies","businessId",r);let s="/api/v1/printer/policies/product",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},upsertCategoryPolicy:async(r,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",r);let s="/api/v1/printer/policies/category",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},upsertPrinter:async(r,e={})=>{c("upsertPrinter","upsertPrinterDto",r);let s="/api/v1/printer",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},upsertProductPolicy:async(r,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",r);let s="/api/v1/printer/policies/product",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},_=function(a){let r=es(a);return{async deleteCategoryPolicy(e,s,t){let n=await r.deleteCategoryPolicy(e,s,t);return P(n,h,p,a)},async deletePrinter(e,s,t){let n=await r.deletePrinter(e,s,t);return P(n,h,p,a)},async deletePrinterByAddress(e,s,t){let n=await r.deletePrinterByAddress(e,s,t);return P(n,h,p,a)},async deleteProductPolicy(e,s,t){let n=await r.deleteProductPolicy(e,s,t);return P(n,h,p,a)},async listCategoryPolicies(e,s){let t=await r.listCategoryPolicies(e,s);return P(t,h,p,a)},async listPrinters(e,s){let t=await r.listPrinters(e,s);return P(t,h,p,a)},async listProductPolicies(e,s){let t=await r.listProductPolicies(e,s);return P(t,h,p,a)},async upsertCategoryPolicy(e,s){let t=await r.upsertCategoryPolicy(e,s);return P(t,h,p,a)},async upsertPrinter(e,s){let t=await r.upsertPrinter(e,s);return P(t,h,p,a)},async upsertProductPolicy(e,s){let t=await r.upsertProductPolicy(e,s);return P(t,h,p,a)}}},bo=function(a,r,e){let s=_(a);return{deleteCategoryPolicy(t,n,o){return s.deleteCategoryPolicy(t,n,o).then(i=>i(e,r))},deletePrinter(t,n,o){return s.deletePrinter(t,n,o).then(i=>i(e,r))},deletePrinterByAddress(t,n,o){return s.deletePrinterByAddress(t,n,o).then(i=>i(e,r))},deleteProductPolicy(t,n,o){return s.deleteProductPolicy(t,n,o).then(i=>i(e,r))},listCategoryPolicies(t,n){return s.listCategoryPolicies(t,n).then(o=>o(e,r))},listPrinters(t,n){return s.listPrinters(t,n).then(o=>o(e,r))},listProductPolicies(t,n){return s.listProductPolicies(t,n).then(o=>o(e,r))},upsertCategoryPolicy(t,n){return s.upsertCategoryPolicy(t,n).then(o=>o(e,r))},upsertPrinter(t,n){return s.upsertPrinter(t,n).then(o=>o(e,r))},upsertProductPolicy(t,n){return s.upsertProductPolicy(t,n).then(o=>o(e,r))}}},et=class extends V{deleteCategoryPolicy(r,e,s){return _(this.configuration).deleteCategoryPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(r,e,s){return _(this.configuration).deletePrinter(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(r,e,s){return _(this.configuration).deletePrinterByAddress(r,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(r,e,s){return _(this.configuration).deleteProductPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(r,e){return _(this.configuration).listCategoryPolicies(r,e).then(s=>s(this.axios,this.basePath))}listPrinters(r,e){return _(this.configuration).listPrinters(r,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(r,e){return _(this.configuration).listProductPolicies(r,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(r,e){return _(this.configuration).upsertCategoryPolicy(r,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(r,e){return _(this.configuration).upsertPrinter(r,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(r,e){return _(this.configuration).upsertProductPolicy(r,e).then(s=>s(this.axios,this.basePath))}},ts=function(a){return{generateProductSkuV2:async(r,e,s,t={})=>{c("generateProductSkuV2","businessId",r),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",s);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelInventoryV2:async(r,e,s,t={})=>{c("getChannelInventoryV2","businessId",r),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",s);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(r,e,s,t,n={})=>{c("updateChannelInventoryV2","businessId",r),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",s),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}},updateProductSkuV2:async(r,e,s,t,n={})=>{c("updateProductSkuV2","businessId",r),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",s),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(r))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},se=function(a){let r=ts(a);return{async generateProductSkuV2(e,s,t,n){let o=await r.generateProductSkuV2(e,s,t,n);return P(o,h,p,a)},async getChannelInventoryV2(e,s,t,n){let o=await r.getChannelInventoryV2(e,s,t,n);return P(o,h,p,a)},async updateChannelInventoryV2(e,s,t,n,o){let i=await r.updateChannelInventoryV2(e,s,t,n,o);return P(i,h,p,a)},async updateProductSkuV2(e,s,t,n,o){let i=await r.updateProductSkuV2(e,s,t,n,o);return P(i,h,p,a)}}},xo=function(a,r,e){let s=se(a);return{generateProductSkuV2(t,n,o,i){return s.generateProductSkuV2(t,n,o,i).then(l=>l(e,r))},getChannelInventoryV2(t,n,o,i){return s.getChannelInventoryV2(t,n,o,i).then(l=>l(e,r))},updateChannelInventoryV2(t,n,o,i,l){return s.updateChannelInventoryV2(t,n,o,i,l).then(u=>u(e,r))},updateProductSkuV2(t,n,o,i,l){return s.updateProductSkuV2(t,n,o,i,l).then(u=>u(e,r))}}},tt=class extends V{generateProductSkuV2(r,e,s,t){return se(this.configuration).generateProductSkuV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelInventoryV2(r,e,s,t){return se(this.configuration).getChannelInventoryV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(r,e,s,t,n){return se(this.configuration).updateChannelInventoryV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(r,e,s,t,n){return se(this.configuration).updateProductSkuV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},ss=function(a){return{createOnboardingSession:async(r,e,s={})=>{c("createOnboardingSession","channel",r),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},disconnectOnboarding:async(r,e,s={})=>{c("disconnectOnboarding","channel",r),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getMenuIntegrations:async(r,e={})=>{c("getMenuIntegrations","businessId",r);let s="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOnboardingStatus:async(r,e,s={})=>{c("getOnboardingStatus","channel",r),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(r))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getSupportedChannels:async(r,e={})=>{c("getSupportedChannels","businessId",r);let s="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listOnboardingStores:async(r,e,s={})=>{c("listOnboardingStores","channel",r),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(r))).replace("{state}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},provisionOnboardingStore:async(r,e,s,t={})=>{c("provisionOnboardingStore","channel",r),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",s);let n="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(r))).replace("{state}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",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(r,e={})=>{c("registerCredential","body",r);let s="/api/v1/provider/credentials",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},registerProvider:async(r,e={})=>{c("registerProvider","body",r);let s="/api/v1/provider",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},updateProviderSettings:async(r,e,s={})=>{c("updateProviderSettings","businessId",r),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},L=function(a){let r=ss(a);return{async createOnboardingSession(e,s,t){let n=await r.createOnboardingSession(e,s,t);return P(n,h,p,a)},async disconnectOnboarding(e,s,t){let n=await r.disconnectOnboarding(e,s,t);return P(n,h,p,a)},async getMenuIntegrations(e,s){let t=await r.getMenuIntegrations(e,s);return P(t,h,p,a)},async getOnboardingStatus(e,s,t){let n=await r.getOnboardingStatus(e,s,t);return P(n,h,p,a)},async getSupportedChannels(e,s){let t=await r.getSupportedChannels(e,s);return P(t,h,p,a)},async listOnboardingStores(e,s,t){let n=await r.listOnboardingStores(e,s,t);return P(n,h,p,a)},async provisionOnboardingStore(e,s,t,n){let o=await r.provisionOnboardingStore(e,s,t,n);return P(o,h,p,a)},async registerCredential(e,s){let t=await r.registerCredential(e,s);return P(t,h,p,a)},async registerProvider(e,s){let t=await r.registerProvider(e,s);return P(t,h,p,a)},async updateProviderSettings(e,s,t){let n=await r.updateProviderSettings(e,s,t);return P(n,h,p,a)}}},fo=function(a,r,e){let s=L(a);return{createOnboardingSession(t,n,o){return s.createOnboardingSession(t,n,o).then(i=>i(e,r))},disconnectOnboarding(t,n,o){return s.disconnectOnboarding(t,n,o).then(i=>i(e,r))},getMenuIntegrations(t,n){return s.getMenuIntegrations(t,n).then(o=>o(e,r))},getOnboardingStatus(t,n,o){return s.getOnboardingStatus(t,n,o).then(i=>i(e,r))},getSupportedChannels(t,n){return s.getSupportedChannels(t,n).then(o=>o(e,r))},listOnboardingStores(t,n,o){return s.listOnboardingStores(t,n,o).then(i=>i(e,r))},provisionOnboardingStore(t,n,o,i){return s.provisionOnboardingStore(t,n,o,i).then(l=>l(e,r))},registerCredential(t,n){return s.registerCredential(t,n).then(o=>o(e,r))},registerProvider(t,n){return s.registerProvider(t,n).then(o=>o(e,r))},updateProviderSettings(t,n,o){return s.updateProviderSettings(t,n,o).then(i=>i(e,r))}}},st=class extends V{createOnboardingSession(r,e,s){return L(this.configuration).createOnboardingSession(r,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(r,e,s){return L(this.configuration).disconnectOnboarding(r,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(r,e){return L(this.configuration).getMenuIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(r,e,s){return L(this.configuration).getOnboardingStatus(r,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(r,e){return L(this.configuration).getSupportedChannels(r,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(r,e,s){return L(this.configuration).listOnboardingStores(r,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(r,e,s,t){return L(this.configuration).provisionOnboardingStore(r,e,s,t).then(n=>n(this.axios,this.basePath))}registerCredential(r,e){return L(this.configuration).registerCredential(r,e).then(s=>s(this.axios,this.basePath))}registerProvider(r,e){return L(this.configuration).registerProvider(r,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(r,e,s){return L(this.configuration).updateProviderSettings(r,e,s).then(t=>t(this.axios,this.basePath))}},rs=function(a){return{cancelPlan:async(r,e,s,t={})=>{c("cancelPlan","businessId",r),c("cancelPlan","orderId",e),c("cancelPlan","refundId",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},cancelPlanV2:async(r,e,s,t={})=>{c("cancelPlanV2","businessId",r),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},createRefundPlan:async(r,e,s,t={})=>{c("createRefundPlan","businessId",r),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",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(r,e,s,t={})=>{c("createRefundPlanV2","businessId",r),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",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(r,e,s,t={})=>{c("getRefundPlan","businessId",r),c("getRefundPlan","orderId",e),c("getRefundPlan","status",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getRefundPlanV2:async(r,e,s,t={})=>{c("getRefundPlanV2","businessId",r),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};s!==void 0&&(d.status=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(r,e,s,t,n={})=>{c("recordRefundPlan","businessId",r),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",s),c("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}},recordRefundPlanV2:async(r,e,s,t,n={})=>{c("recordRefundPlanV2","businessId",r),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",s),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(r,e,s,t={})=>{c("refundOnlineOrder","businessId",r),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},refundOnlineOrderV2:async(r,e,s,t={})=>{c("refundOnlineOrderV2","businessId",r),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};s!==void 0&&(d.provider=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(r,e,s,t,n={})=>{c("resolveRefundChoice","businessId",r),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",s),c("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}},resolveRefundChoiceV2:async(r,e,s,t,n={})=>{c("resolveRefundChoiceV2","businessId",r),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",s),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}},startProcessPlan:async(r,e,s,t={})=>{c("startProcessPlan","businessId",r),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",s);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},startProcessPlanV2:async(r,e,s,t={})=>{c("startProcessPlanV2","businessId",r),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",s);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(r))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};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 r=rs(a);return{async cancelPlan(e,s,t,n){let o=await r.cancelPlan(e,s,t,n);return P(o,h,p,a)},async cancelPlanV2(e,s,t,n){let o=await r.cancelPlanV2(e,s,t,n);return P(o,h,p,a)},async createRefundPlan(e,s,t,n){let o=await r.createRefundPlan(e,s,t,n);return P(o,h,p,a)},async createRefundPlanV2(e,s,t,n){let o=await r.createRefundPlanV2(e,s,t,n);return P(o,h,p,a)},async getRefundPlan(e,s,t,n){let o=await r.getRefundPlan(e,s,t,n);return P(o,h,p,a)},async getRefundPlanV2(e,s,t,n){let o=await r.getRefundPlanV2(e,s,t,n);return P(o,h,p,a)},async recordRefundPlan(e,s,t,n,o){let i=await r.recordRefundPlan(e,s,t,n,o);return P(i,h,p,a)},async recordRefundPlanV2(e,s,t,n,o){let i=await r.recordRefundPlanV2(e,s,t,n,o);return P(i,h,p,a)},async refundOnlineOrder(e,s,t,n){let o=await r.refundOnlineOrder(e,s,t,n);return P(o,h,p,a)},async refundOnlineOrderV2(e,s,t,n){let o=await r.refundOnlineOrderV2(e,s,t,n);return P(o,h,p,a)},async resolveRefundChoice(e,s,t,n,o){let i=await r.resolveRefundChoice(e,s,t,n,o);return P(i,h,p,a)},async resolveRefundChoiceV2(e,s,t,n,o){let i=await r.resolveRefundChoiceV2(e,s,t,n,o);return P(i,h,p,a)},async startProcessPlan(e,s,t,n){let o=await r.startProcessPlan(e,s,t,n);return P(o,h,p,a)},async startProcessPlanV2(e,s,t,n){let o=await r.startProcessPlanV2(e,s,t,n);return P(o,h,p,a)}}},Ro=function(a,r,e){let s=M(a);return{cancelPlan(t,n,o,i){return s.cancelPlan(t,n,o,i).then(l=>l(e,r))},cancelPlanV2(t,n,o,i){return s.cancelPlanV2(t,n,o,i).then(l=>l(e,r))},createRefundPlan(t,n,o,i){return s.createRefundPlan(t,n,o,i).then(l=>l(e,r))},createRefundPlanV2(t,n,o,i){return s.createRefundPlanV2(t,n,o,i).then(l=>l(e,r))},getRefundPlan(t,n,o,i){return s.getRefundPlan(t,n,o,i).then(l=>l(e,r))},getRefundPlanV2(t,n,o,i){return s.getRefundPlanV2(t,n,o,i).then(l=>l(e,r))},recordRefundPlan(t,n,o,i,l){return s.recordRefundPlan(t,n,o,i,l).then(u=>u(e,r))},recordRefundPlanV2(t,n,o,i,l){return s.recordRefundPlanV2(t,n,o,i,l).then(u=>u(e,r))},refundOnlineOrder(t,n,o,i){return s.refundOnlineOrder(t,n,o,i).then(l=>l(e,r))},refundOnlineOrderV2(t,n,o,i){return s.refundOnlineOrderV2(t,n,o,i).then(l=>l(e,r))},resolveRefundChoice(t,n,o,i,l){return s.resolveRefundChoice(t,n,o,i,l).then(u=>u(e,r))},resolveRefundChoiceV2(t,n,o,i,l){return s.resolveRefundChoiceV2(t,n,o,i,l).then(u=>u(e,r))},startProcessPlan(t,n,o,i){return s.startProcessPlan(t,n,o,i).then(l=>l(e,r))},startProcessPlanV2(t,n,o,i){return s.startProcessPlanV2(t,n,o,i).then(l=>l(e,r))}}},rt=class extends V{cancelPlan(r,e,s,t){return M(this.configuration).cancelPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}cancelPlanV2(r,e,s,t){return M(this.configuration).cancelPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}createRefundPlan(r,e,s,t){return M(this.configuration).createRefundPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}createRefundPlanV2(r,e,s,t){return M(this.configuration).createRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getRefundPlan(r,e,s,t){return M(this.configuration).getRefundPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}getRefundPlanV2(r,e,s,t){return M(this.configuration).getRefundPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}recordRefundPlan(r,e,s,t,n){return M(this.configuration).recordRefundPlan(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(r,e,s,t,n){return M(this.configuration).recordRefundPlanV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(r,e,s,t){return M(this.configuration).refundOnlineOrder(r,e,s,t).then(n=>n(this.axios,this.basePath))}refundOnlineOrderV2(r,e,s,t){return M(this.configuration).refundOnlineOrderV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(r,e,s,t,n){return M(this.configuration).resolveRefundChoice(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(r,e,s,t,n){return M(this.configuration).resolveRefundChoiceV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(r,e,s,t){return M(this.configuration).startProcessPlan(r,e,s,t).then(n=>n(this.axios,this.basePath))}startProcessPlanV2(r,e,s,t){return M(this.configuration).startProcessPlanV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}},ns=function(a){return{getEndOfDayReportV5:async(r,e,s,t,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",r);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),s!==void 0&&(R.start=s),t!==void 0&&(R.end=t),r&&(R.businessIds=r),n!==void 0&&(R.timezone=n),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(r,e,s,t,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",r);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};e!==void 0&&(x.timeSpan=e),s!==void 0&&(x.start=s),t!==void 0&&(x.end=t),r&&(x.businessIds=r),n!==void 0&&(x.timezone=n),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(r,e,s,t,n,o,i={})=>{c("sendReportEmailV4","businessIds",r),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",s);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},x={},R={};t!==void 0&&(R.timeSpan=t),n!==void 0&&(R.start=n),o!==void 0&&(R.end=o),r&&(R.businessIds=r),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(r,e,s,t,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",r),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",s);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},R={},C={};t!==void 0&&(C.timeSpan=t),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),r&&(C.businessIds=r),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),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 r=ns(a);return{async getEndOfDayReportV5(e,s,t,n,o,i,l){let u=await r.getEndOfDayReportV5(e,s,t,n,o,i,l);return P(u,h,p,a)},async getPOSEndOfDayReportV4(e,s,t,n,o,i){let l=await r.getPOSEndOfDayReportV4(e,s,t,n,o,i);return P(l,h,p,a)},async sendReportEmailV4(e,s,t,n,o,i,l){let u=await r.sendReportEmailV4(e,s,t,n,o,i,l);return P(u,h,p,a)},async sendReportEmailV5(e,s,t,n,o,i,l,u){let d=await r.sendReportEmailV5(e,s,t,n,o,i,l,u);return P(d,h,p,a)}}},Co=function(a,r,e){let s=re(a);return{getEndOfDayReportV5(t,n,o,i,l,u,d){return s.getEndOfDayReportV5(t,n,o,i,l,u,d).then(A=>A(e,r))},getPOSEndOfDayReportV4(t,n,o,i,l,u){return s.getPOSEndOfDayReportV4(t,n,o,i,l,u).then(d=>d(e,r))},sendReportEmailV4(t,n,o,i,l,u,d){return s.sendReportEmailV4(t,n,o,i,l,u,d).then(A=>A(e,r))},sendReportEmailV5(t,n,o,i,l,u,d,A){return s.sendReportEmailV5(t,n,o,i,l,u,d,A).then(x=>x(e,r))}}},nt=class extends V{getEndOfDayReportV5(r,e,s,t,n,o,i){return re(this.configuration).getEndOfDayReportV5(r,e,s,t,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(r,e,s,t,n,o){return re(this.configuration).getPOSEndOfDayReportV4(r,e,s,t,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(r,e,s,t,n,o,i){return re(this.configuration).sendReportEmailV4(r,e,s,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(r,e,s,t,n,o,i,l){return re(this.configuration).sendReportEmailV5(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},os=function(a){return{createReservation:async(r,e={})=>{c("createReservation","createReservationDto",r);let s="/api/v1/reservations",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getReservationAvailability:async(r,e,s,t,n={})=>{c("getReservationAvailability","businessId",r),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let o="/api/v1/reservations/availability",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};await f(d,a),r!==void 0&&(A.businessId=r),e!==void 0&&(A.date=e),s!==void 0&&(A.partySize=s),t!==void 0&&(A.sectionId=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getReservationPolicy:async(r,e={})=>{c("getReservationPolicy","businessId",r);let s="/api/v1/reservations/policy",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},linkReservationIntegration:async(r,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",r);let s="/api/v1/reservations/link",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},listReservations:async(r,e,s,t={})=>{c("listReservations","businessId",r);let n="/api/v1/reservations",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),r!==void 0&&(d.businessId=r),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(r,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",r);let s="/api/v1/reservations/webhook/inbound",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},unlinkReservationIntegration:async(r,e={})=>{c("unlinkReservationIntegration","businessId",r);let s="/api/v1/reservations/link",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await f(i,a),r!==void 0&&(l.businessId=r),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateReservation:async(r,e,s,t={})=>{c("updateReservation","id",r),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",s);let n="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",r);let s="/api/v1/reservations/policy",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},updateReservationStatus:async(r,e,s,t={})=>{c("updateReservationStatus","id",r),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",s);let n="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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 r=os(a);return{async createReservation(e,s){let t=await r.createReservation(e,s);return P(t,h,p,a)},async getReservationAvailability(e,s,t,n,o){let i=await r.getReservationAvailability(e,s,t,n,o);return P(i,h,p,a)},async getReservationPolicy(e,s){let t=await r.getReservationPolicy(e,s);return P(t,h,p,a)},async linkReservationIntegration(e,s){let t=await r.linkReservationIntegration(e,s);return P(t,h,p,a)},async listReservations(e,s,t,n){let o=await r.listReservations(e,s,t,n);return P(o,h,p,a)},async reservationInboundWebhook(e,s){let t=await r.reservationInboundWebhook(e,s);return P(t,h,p,a)},async unlinkReservationIntegration(e,s){let t=await r.unlinkReservationIntegration(e,s);return P(t,h,p,a)},async updateReservation(e,s,t,n){let o=await r.updateReservation(e,s,t,n);return P(o,h,p,a)},async updateReservationPolicy(e,s){let t=await r.updateReservationPolicy(e,s);return P(t,h,p,a)},async updateReservationStatus(e,s,t,n){let o=await r.updateReservationStatus(e,s,t,n);return P(o,h,p,a)}}},Do=function(a,r,e){let s=N(a);return{createReservation(t,n){return s.createReservation(t,n).then(o=>o(e,r))},getReservationAvailability(t,n,o,i,l){return s.getReservationAvailability(t,n,o,i,l).then(u=>u(e,r))},getReservationPolicy(t,n){return s.getReservationPolicy(t,n).then(o=>o(e,r))},linkReservationIntegration(t,n){return s.linkReservationIntegration(t,n).then(o=>o(e,r))},listReservations(t,n,o,i){return s.listReservations(t,n,o,i).then(l=>l(e,r))},reservationInboundWebhook(t,n){return s.reservationInboundWebhook(t,n).then(o=>o(e,r))},unlinkReservationIntegration(t,n){return s.unlinkReservationIntegration(t,n).then(o=>o(e,r))},updateReservation(t,n,o,i){return s.updateReservation(t,n,o,i).then(l=>l(e,r))},updateReservationPolicy(t,n){return s.updateReservationPolicy(t,n).then(o=>o(e,r))},updateReservationStatus(t,n,o,i){return s.updateReservationStatus(t,n,o,i).then(l=>l(e,r))}}},ot=class extends V{createReservation(r,e){return N(this.configuration).createReservation(r,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(r,e,s,t,n){return N(this.configuration).getReservationAvailability(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}getReservationPolicy(r,e){return N(this.configuration).getReservationPolicy(r,e).then(s=>s(this.axios,this.basePath))}linkReservationIntegration(r,e){return N(this.configuration).linkReservationIntegration(r,e).then(s=>s(this.axios,this.basePath))}listReservations(r,e,s,t){return N(this.configuration).listReservations(r,e,s,t).then(n=>n(this.axios,this.basePath))}reservationInboundWebhook(r,e){return N(this.configuration).reservationInboundWebhook(r,e).then(s=>s(this.axios,this.basePath))}unlinkReservationIntegration(r,e){return N(this.configuration).unlinkReservationIntegration(r,e).then(s=>s(this.axios,this.basePath))}updateReservation(r,e,s,t){return N(this.configuration).updateReservation(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateReservationPolicy(r,e){return N(this.configuration).updateReservationPolicy(r,e).then(s=>s(this.axios,this.basePath))}updateReservationStatus(r,e,s,t){return N(this.configuration).updateReservationStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},as=function(a){return{clockIn:async(r,e,s={})=>{c("clockIn","businessId",r),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},clockOut:async(r,e,s={})=>{c("clockOut","businessId",r),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getTodayShift:async(r,e,s={})=>{c("getTodayShift","businessId",r),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.employeeId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},unlock:async(r,e,s={})=>{c("unlock","businessId",r),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},ne=function(a){let r=as(a);return{async clockIn(e,s,t){let n=await r.clockIn(e,s,t);return P(n,h,p,a)},async clockOut(e,s,t){let n=await r.clockOut(e,s,t);return P(n,h,p,a)},async getTodayShift(e,s,t){let n=await r.getTodayShift(e,s,t);return P(n,h,p,a)},async unlock(e,s,t){let n=await r.unlock(e,s,t);return P(n,h,p,a)}}},Oo=function(a,r,e){let s=ne(a);return{clockIn(t,n,o){return s.clockIn(t,n,o).then(i=>i(e,r))},clockOut(t,n,o){return s.clockOut(t,n,o).then(i=>i(e,r))},getTodayShift(t,n,o){return s.getTodayShift(t,n,o).then(i=>i(e,r))},unlock(t,n,o){return s.unlock(t,n,o).then(i=>i(e,r))}}},at=class extends V{clockIn(r,e,s){return ne(this.configuration).clockIn(r,e,s).then(t=>t(this.axios,this.basePath))}clockOut(r,e,s){return ne(this.configuration).clockOut(r,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(r,e,s){return ne(this.configuration).getTodayShift(r,e,s).then(t=>t(this.axios,this.basePath))}unlock(r,e,s){return ne(this.configuration).unlock(r,e,s).then(t=>t(this.axios,this.basePath))}},is=function(a){return{deactivateStation:async(r={})=>{let e="/api/v1/station/deactivate",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},getStation:async(r={})=>{let e="/api/v1/station",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},syncStation:async(r,e={})=>{c("syncStation","syncStationDto",r);let s="/api/v1/station/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},me=function(a){let r=is(a);return{async deactivateStation(e){let s=await r.deactivateStation(e);return P(s,h,p,a)},async getStation(e){let s=await r.getStation(e);return P(s,h,p,a)},async syncStation(e,s){let t=await r.syncStation(e,s);return P(t,h,p,a)}}},Vo=function(a,r,e){let s=me(a);return{deactivateStation(t){return s.deactivateStation(t).then(n=>n(e,r))},getStation(t){return s.getStation(t).then(n=>n(e,r))},syncStation(t,n){return s.syncStation(t,n).then(o=>o(e,r))}}},it=class extends V{deactivateStation(r){return me(this.configuration).deactivateStation(r).then(e=>e(this.axios,this.basePath))}getStation(r){return me(this.configuration).getStation(r).then(e=>e(this.axios,this.basePath))}syncStation(r,e){return me(this.configuration).syncStation(r,e).then(s=>s(this.axios,this.basePath))}},ls=function(a){return{connectTerminal:async(r,e={})=>{c("connectTerminal","connectTerminalDto",r);let s="/api/v1/terminal/connect",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},disconnectTerminal:async(r={})=>{let e="/api/v1/terminal/disconnect",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},discoverTerminal:async(r,e={})=>{c("discoverTerminal","discoverTerminalDto",r);let s="/api/v1/terminal/discover",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getTerminalStatus:async(r,e,s,t={})=>{c("getTerminalStatus","businessId",r),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",s);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.provider=e),s!==void 0&&(d.terminalId=s),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},oe=function(a){let r=ls(a);return{async connectTerminal(e,s){let t=await r.connectTerminal(e,s);return P(t,h,p,a)},async disconnectTerminal(e){let s=await r.disconnectTerminal(e);return P(s,h,p,a)},async discoverTerminal(e,s){let t=await r.discoverTerminal(e,s);return P(t,h,p,a)},async getTerminalStatus(e,s,t,n){let o=await r.getTerminalStatus(e,s,t,n);return P(o,h,p,a)}}},So=function(a,r,e){let s=oe(a);return{connectTerminal(t,n){return s.connectTerminal(t,n).then(o=>o(e,r))},disconnectTerminal(t){return s.disconnectTerminal(t).then(n=>n(e,r))},discoverTerminal(t,n){return s.discoverTerminal(t,n).then(o=>o(e,r))},getTerminalStatus(t,n,o,i){return s.getTerminalStatus(t,n,o,i).then(l=>l(e,r))}}},lt=class extends V{connectTerminal(r,e){return oe(this.configuration).connectTerminal(r,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(r){return oe(this.configuration).disconnectTerminal(r).then(e=>e(this.axios,this.basePath))}discoverTerminal(r,e){return oe(this.configuration).discoverTerminal(r,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(r,e,s,t){return oe(this.configuration).getTerminalStatus(r,e,s,t).then(n=>n(this.axios,this.basePath))}},us=function(a){return{getUserBusinessV1:async(r={})=>{let e="/api/v1/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},getUserBusinessV2:async(r={})=>{let e="/api/v2/user/business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},getUserInfoV1:async(r={})=>{let e="/api/v1/user",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={},i={};await f(o,a),g(s,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}}}},ge=function(a){let r=us(a);return{async getUserBusinessV1(e){let s=await r.getUserBusinessV1(e);return P(s,h,p,a)},async getUserBusinessV2(e){let s=await r.getUserBusinessV2(e);return P(s,h,p,a)},async getUserInfoV1(e){let s=await r.getUserInfoV1(e);return P(s,h,p,a)}}},Io=function(a,r,e){let s=ge(a);return{getUserBusinessV1(t){return s.getUserBusinessV1(t).then(n=>n(e,r))},getUserBusinessV2(t){return s.getUserBusinessV2(t).then(n=>n(e,r))},getUserInfoV1(t){return s.getUserInfoV1(t).then(n=>n(e,r))}}},ut=class extends V{getUserBusinessV1(r){return ge(this.configuration).getUserBusinessV1(r).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(r){return ge(this.configuration).getUserBusinessV2(r).then(e=>e(this.axios,this.basePath))}getUserInfoV1(r){return ge(this.configuration).getUserInfoV1(r).then(e=>e(this.axios,this.basePath))}},cs=function(a){return{upsert:async(r,e={})=>{c("upsert","body",r);let s="/api/v1/vendure/seller/upsert",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},bt=function(a){let r=cs(a);return{async upsert(e,s){let t=await r.upsert(e,s);return P(t,h,p,a)}}},vo=function(a,r,e){let s=bt(a);return{upsert(t,n){return s.upsert(t,n).then(o=>o(e,r))}}},ct=class extends V{upsert(r,e){return bt(this.configuration).upsert(r,e).then(s=>s(this.axios,this.basePath))}},ds=function(a){return{createVivaAppToAppPayment:async(r,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",r);let s="/api/v1/viva/a2a/create-payment",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},getVivaSession:async(r,e={})=>{c("getVivaSession","id",r);let s="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listVivaSessions:async(r,e,s,t,n,o,i,l={})=>{c("listVivaSessions","businessId",r);let u="/api/v1/viva/sessions",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};r!==void 0&&(C.businessId=r),e!==void 0&&(C.page=e),s!==void 0&&(C.rowPerPage=s),t!==void 0&&(C.terminalId=t),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),i!==void 0&&(C.search=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(r,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",r);let s="/api/v1/viva/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},ae=function(a){let r=ds(a);return{async createVivaAppToAppPayment(e,s){let t=await r.createVivaAppToAppPayment(e,s);return P(t,h,p,a)},async getVivaSession(e,s){let t=await r.getVivaSession(e,s);return P(t,h,p,a)},async listVivaSessions(e,s,t,n,o,i,l,u){let d=await r.listVivaSessions(e,s,t,n,o,i,l,u);return P(d,h,p,a)},async refundVivaPayment(e,s){let t=await r.refundVivaPayment(e,s);return P(t,h,p,a)}}},To=function(a,r,e){let s=ae(a);return{createVivaAppToAppPayment(t,n){return s.createVivaAppToAppPayment(t,n).then(o=>o(e,r))},getVivaSession(t,n){return s.getVivaSession(t,n).then(o=>o(e,r))},listVivaSessions(t,n,o,i,l,u,d,A){return s.listVivaSessions(t,n,o,i,l,u,d,A).then(x=>x(e,r))},refundVivaPayment(t,n){return s.refundVivaPayment(t,n).then(o=>o(e,r))}}},dt=class extends V{createVivaAppToAppPayment(r,e){return ae(this.configuration).createVivaAppToAppPayment(r,e).then(s=>s(this.axios,this.basePath))}getVivaSession(r,e){return ae(this.configuration).getVivaSession(r,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(r,e,s,t,n,o,i,l){return ae(this.configuration).listVivaSessions(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(r,e){return ae(this.configuration).refundVivaPayment(r,e).then(s=>s(this.axios,this.basePath))}},ps=function(a){return{handleAssignmentWebhook:async(r={})=>{let e="/api/webhook/add-employee-assignments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleBusinessWebhook:async(r={})=>{let e="/api/webhook/add-business",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleFoodoraEvent:async(r,e={})=>{c("handleFoodoraEvent","orderUpdateDto",r);let s="/api/webhook/order/event",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},handleLoadEmployee:async(r={})=>{let e="/api/webhook/load-employee",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleNetsEvents:async(r={})=>{let e="/api/webhook/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleNetsEventsV2:async(r={})=>{let e="/api/webhook/v2/nets",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleNetsSessionEvents:async(r={})=>{let e="/api/webhook/nets/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handlePreorderReminder:async(r,e={})=>{c("handlePreorderReminder","preOrderReminderDto",r);let s="/api/webhook/preorder-reminder",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},handleRoleWebhook:async(r={})=>{let e="/api/webhook/add-roles",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleShiftWebhook:async(r={})=>{let e="/api/webhook/add-employee-shifts",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleVivaEvents:async(r,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",r);let s="/api/webhook/viva/verification",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},handleVivaSessionEvents:async(r,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",r);let s="/api/webhook/viva/payments",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},handleWebhook:async(r={})=>{let e="/api/webhook/ship-day",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleWoltDriveEvent:async(r={})=>{let e="/api/webhook/wolt-drive/event",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleWoltDriveEventByCountry:async(r,e={})=>{c("handleWoltDriveEventByCountry","country",r);let s="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(r={})=>{let e="/api/webhook/worldline/events",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},handleWorldlineSessionEvents:async(r={})=>{let e="/api/webhook/worldline/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},processPosOrderActionsQueue:async(r,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",r);let s="/api/webhook/pos/order-actions/process",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},updateWoltProduct:async(r={})=>{let e="/api/webhook/wolt/product/edit",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},verifyVivaSessionWebhook:async(r={})=>{let e="/api/webhook/viva/payments",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}},verifyVivaWebhook:async(r={})=>{let e="/api/webhook/viva/verification",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}}}},U=function(a){let r=ps(a);return{async handleAssignmentWebhook(e){let s=await r.handleAssignmentWebhook(e);return P(s,h,p,a)},async handleBusinessWebhook(e){let s=await r.handleBusinessWebhook(e);return P(s,h,p,a)},async handleFoodoraEvent(e,s){let t=await r.handleFoodoraEvent(e,s);return P(t,h,p,a)},async handleLoadEmployee(e){let s=await r.handleLoadEmployee(e);return P(s,h,p,a)},async handleNetsEvents(e){let s=await r.handleNetsEvents(e);return P(s,h,p,a)},async handleNetsEventsV2(e){let s=await r.handleNetsEventsV2(e);return P(s,h,p,a)},async handleNetsSessionEvents(e){let s=await r.handleNetsSessionEvents(e);return P(s,h,p,a)},async handlePreorderReminder(e,s){let t=await r.handlePreorderReminder(e,s);return P(t,h,p,a)},async handleRoleWebhook(e){let s=await r.handleRoleWebhook(e);return P(s,h,p,a)},async handleShiftWebhook(e){let s=await r.handleShiftWebhook(e);return P(s,h,p,a)},async handleVivaEvents(e,s){let t=await r.handleVivaEvents(e,s);return P(t,h,p,a)},async handleVivaSessionEvents(e,s){let t=await r.handleVivaSessionEvents(e,s);return P(t,h,p,a)},async handleWebhook(e){let s=await r.handleWebhook(e);return P(s,h,p,a)},async handleWoltDriveEvent(e){let s=await r.handleWoltDriveEvent(e);return P(s,h,p,a)},async handleWoltDriveEventByCountry(e,s){let t=await r.handleWoltDriveEventByCountry(e,s);return P(t,h,p,a)},async handleWorldlineEvents(e){let s=await r.handleWorldlineEvents(e);return P(s,h,p,a)},async handleWorldlineSessionEvents(e){let s=await r.handleWorldlineSessionEvents(e);return P(s,h,p,a)},async processPosOrderActionsQueue(e,s){let t=await r.processPosOrderActionsQueue(e,s);return P(t,h,p,a)},async updateWoltProduct(e){let s=await r.updateWoltProduct(e);return P(s,h,p,a)},async verifyVivaSessionWebhook(e){let s=await r.verifyVivaSessionWebhook(e);return P(s,h,p,a)},async verifyVivaWebhook(e){let s=await r.verifyVivaWebhook(e);return P(s,h,p,a)}}},qo=function(a,r,e){let s=U(a);return{handleAssignmentWebhook(t){return s.handleAssignmentWebhook(t).then(n=>n(e,r))},handleBusinessWebhook(t){return s.handleBusinessWebhook(t).then(n=>n(e,r))},handleFoodoraEvent(t,n){return s.handleFoodoraEvent(t,n).then(o=>o(e,r))},handleLoadEmployee(t){return s.handleLoadEmployee(t).then(n=>n(e,r))},handleNetsEvents(t){return s.handleNetsEvents(t).then(n=>n(e,r))},handleNetsEventsV2(t){return s.handleNetsEventsV2(t).then(n=>n(e,r))},handleNetsSessionEvents(t){return s.handleNetsSessionEvents(t).then(n=>n(e,r))},handlePreorderReminder(t,n){return s.handlePreorderReminder(t,n).then(o=>o(e,r))},handleRoleWebhook(t){return s.handleRoleWebhook(t).then(n=>n(e,r))},handleShiftWebhook(t){return s.handleShiftWebhook(t).then(n=>n(e,r))},handleVivaEvents(t,n){return s.handleVivaEvents(t,n).then(o=>o(e,r))},handleVivaSessionEvents(t,n){return s.handleVivaSessionEvents(t,n).then(o=>o(e,r))},handleWebhook(t){return s.handleWebhook(t).then(n=>n(e,r))},handleWoltDriveEvent(t){return s.handleWoltDriveEvent(t).then(n=>n(e,r))},handleWoltDriveEventByCountry(t,n){return s.handleWoltDriveEventByCountry(t,n).then(o=>o(e,r))},handleWorldlineEvents(t){return s.handleWorldlineEvents(t).then(n=>n(e,r))},handleWorldlineSessionEvents(t){return s.handleWorldlineSessionEvents(t).then(n=>n(e,r))},processPosOrderActionsQueue(t,n){return s.processPosOrderActionsQueue(t,n).then(o=>o(e,r))},updateWoltProduct(t){return s.updateWoltProduct(t).then(n=>n(e,r))},verifyVivaSessionWebhook(t){return s.verifyVivaSessionWebhook(t).then(n=>n(e,r))},verifyVivaWebhook(t){return s.verifyVivaWebhook(t).then(n=>n(e,r))}}},pt=class extends V{handleAssignmentWebhook(r){return U(this.configuration).handleAssignmentWebhook(r).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(r){return U(this.configuration).handleBusinessWebhook(r).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(r,e){return U(this.configuration).handleFoodoraEvent(r,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(r){return U(this.configuration).handleLoadEmployee(r).then(e=>e(this.axios,this.basePath))}handleNetsEvents(r){return U(this.configuration).handleNetsEvents(r).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(r){return U(this.configuration).handleNetsEventsV2(r).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(r){return U(this.configuration).handleNetsSessionEvents(r).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(r,e){return U(this.configuration).handlePreorderReminder(r,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(r){return U(this.configuration).handleRoleWebhook(r).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(r){return U(this.configuration).handleShiftWebhook(r).then(e=>e(this.axios,this.basePath))}handleVivaEvents(r,e){return U(this.configuration).handleVivaEvents(r,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(r,e){return U(this.configuration).handleVivaSessionEvents(r,e).then(s=>s(this.axios,this.basePath))}handleWebhook(r){return U(this.configuration).handleWebhook(r).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(r){return U(this.configuration).handleWoltDriveEvent(r).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(r,e){return U(this.configuration).handleWoltDriveEventByCountry(r,e).then(s=>s(this.axios,this.basePath))}handleWorldlineEvents(r){return U(this.configuration).handleWorldlineEvents(r).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(r){return U(this.configuration).handleWorldlineSessionEvents(r).then(e=>e(this.axios,this.basePath))}processPosOrderActionsQueue(r,e){return U(this.configuration).processPosOrderActionsQueue(r,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(r){return U(this.configuration).updateWoltProduct(r).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(r){return U(this.configuration).verifyVivaSessionWebhook(r).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(r){return U(this.configuration).verifyVivaWebhook(r).then(e=>e(this.axios,this.basePath))}},ms=function(a){return{cancelPayment:async(r,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",r);let s="/api/v1/worldline/payment/cancel",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},createPayment:async(r,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",r);let s="/api/v1/worldline/payment",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}},createRefund:async(r,e={})=>{c("createRefund","createWorldlineRefundDto",r);let s="/api/v1/worldline/refund",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(r,o,a),{url:y(t),options:o}}}},ye=function(a){let r=ms(a);return{async cancelPayment(e,s){let t=await r.cancelPayment(e,s);return P(t,h,p,a)},async createPayment(e,s){let t=await r.createPayment(e,s);return P(t,h,p,a)},async createRefund(e,s){let t=await r.createRefund(e,s);return P(t,h,p,a)}}},Uo=function(a,r,e){let s=ye(a);return{cancelPayment(t,n){return s.cancelPayment(t,n).then(o=>o(e,r))},createPayment(t,n){return s.createPayment(t,n).then(o=>o(e,r))},createRefund(t,n){return s.createRefund(t,n).then(o=>o(e,r))}}},mt=class extends V{cancelPayment(r,e){return ye(this.configuration).cancelPayment(r,e).then(s=>s(this.axios,this.basePath))}createPayment(r,e){return ye(this.configuration).createPayment(r,e).then(s=>s(this.axios,this.basePath))}createRefund(r,e){return ye(this.configuration).createRefund(r,e).then(s=>s(this.axios,this.basePath))}},gs=function(a){return{createPaymentRequest:async(r,e,s={})=>{c("createPaymentRequest","terminalId",r),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},createRefundRequest:async(r,e,s={})=>{c("createRefundRequest","terminalId",r),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...s},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=b(e,i,a),{url:y(n),options:i}},getPaymentResult:async(r,e={})=>{c("getPaymentResult","operationId",r);let s="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(r,e,s={})=>{c("getTerminalAuthContext","terminalId",r),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getTerminalContext:async(r,e,s={})=>{c("getTerminalContext","terminalId",r),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(r))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...s},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:y(n),options:i}},getTerminalState:async(r,e={})=>{c("getTerminalState","terminalId",r);let s="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(r))),t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(r={})=>{let e="/api/v2/worldline/internal/callback",s=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...r},o={};g(s,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...r.headers},{url:y(s),options:n}}}},K=function(a){let r=gs(a);return{async createPaymentRequest(e,s,t){let n=await r.createPaymentRequest(e,s,t);return P(n,h,p,a)},async createRefundRequest(e,s,t){let n=await r.createRefundRequest(e,s,t);return P(n,h,p,a)},async getPaymentResult(e,s){let t=await r.getPaymentResult(e,s);return P(t,h,p,a)},async getTerminalAuthContext(e,s,t){let n=await r.getTerminalAuthContext(e,s,t);return P(n,h,p,a)},async getTerminalContext(e,s,t){let n=await r.getTerminalContext(e,s,t);return P(n,h,p,a)},async getTerminalState(e,s){let t=await r.getTerminalState(e,s);return P(t,h,p,a)},async handleCallback(e){let s=await r.handleCallback(e);return P(s,h,p,a)}}},Eo=function(a,r,e){let s=K(a);return{createPaymentRequest(t,n,o){return s.createPaymentRequest(t,n,o).then(i=>i(e,r))},createRefundRequest(t,n,o){return s.createRefundRequest(t,n,o).then(i=>i(e,r))},getPaymentResult(t,n){return s.getPaymentResult(t,n).then(o=>o(e,r))},getTerminalAuthContext(t,n,o){return s.getTerminalAuthContext(t,n,o).then(i=>i(e,r))},getTerminalContext(t,n,o){return s.getTerminalContext(t,n,o).then(i=>i(e,r))},getTerminalState(t,n){return s.getTerminalState(t,n).then(o=>o(e,r))},handleCallback(t){return s.handleCallback(t).then(n=>n(e,r))}}},gt=class extends V{createPaymentRequest(r,e,s){return K(this.configuration).createPaymentRequest(r,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(r,e,s){return K(this.configuration).createRefundRequest(r,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(r,e){return K(this.configuration).getPaymentResult(r,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(r,e,s){return K(this.configuration).getTerminalAuthContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(r,e,s){return K(this.configuration).getTerminalContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(r,e){return K(this.configuration).getTerminalState(r,e).then(s=>s(this.axios,this.basePath))}handleCallback(r){return K(this.configuration).handleCallback(r).then(e=>e(this.axios,this.basePath))}};var xt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(r={}){this.apiKey=r.apiKey,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.baseOptions=r.baseOptions,this.formDataCtor=r.formDataCtor}isJsonMime(r){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return r!==null&&(e.test(r)||r.toLowerCase()==="application/json-patch+json")}};var ys={[ie.Eur]:2,[ie.Aed]:2,[ie.Usd]:2,[ie.Gbp]:2,BHD:3,JPY:0},Lo={getMultiplier(a){let r=ys[a.toUpperCase()];return typeof r!="number"?100:Math.round(10**r)}};import Pe from"lodash";var Ce=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),Ps=a=>{let r=a.subcategories;return Array.isArray(r)?r:[]},hs=(a,r)=>({...a,colorCode:a.colorCode??r}),As=(a,r)=>Pe.compact(a.map(e=>r.get(e))),ft=(a,r)=>a.flatMap(e=>{let s=r[e];return s?[e,...ft(s.childIds,r)]:[]}),Rt=(a,r)=>a.flatMap(e=>{let s=r[e];return s?.enabled?[e,...Rt(s.childIds,r)]:[]}),Go=a=>{let r=new Map,e={},s={},t=Ce(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return r.set(d,hs(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),S=Ce(Ps(R)).map(q=>A(q,O));return s[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:S},O},x=Ce(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:r,categoriesById:e,subcategoriesById:s,categoryIdsOrder:n}},Wo=(a,r,e,s)=>{let t=r[a];if(!t)return[];let n=Rt(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return As(o,s)},Ko=(a,r,e)=>{let s=r[a];if(!s)return[];let t=ft(s.subcategoryIds,e);return Pe.compact(t.map(n=>e[n]))};var bs="1.9.101";export{Us as ABLYEVENT,De as AblyApi,Dt as AblyApiAxiosParamCreator,jn as AblyApiFactory,Ae as AblyApiFp,Es as ActionEnum,Oe as ActionPasscodesApi,Ot as ActionPasscodesApiAxiosParamCreator,Gn as ActionPasscodesApiFactory,ue as ActionPasscodesApiFp,Ms as ActionsEnum,Ve as AuthApi,Vt as AuthApiAxiosParamCreator,Wn as AuthApiFactory,J as AuthApiFp,ws as AutonomousVehicleType,Se as BusinessApi,St as BusinessApiAxiosParamCreator,Kn as BusinessApiFactory,T as BusinessApiFp,Fs as BusinessBackgroundType,Ls as BusinessEventAction,Ns as BusinessEventType,js as BusinessPaymentIntegrationType,Ie as BusinessProviderPolicyApi,It as BusinessProviderPolicyApiAxiosParamCreator,Hn as BusinessProviderPolicyApiFactory,yt as BusinessProviderPolicyApiFp,ve as BusinessScheduleApi,vt as BusinessScheduleApiAxiosParamCreator,Qn as BusinessScheduleApiFactory,Pt as BusinessScheduleApiFp,Gs as BusinessStatusEnum,Ws as CashLogReason,Ks as CashLogType,Te as CashManagementApi,Tt as CashManagementApiAxiosParamCreator,$n as CashManagementApiFactory,Q as CashManagementApiFp,Hs as CashSessionDtoEnum,Qs as CashSessionStatus,$s as ChannelEnum,qe as ChannelMenuApi,qt as ChannelMenuApiAxiosParamCreator,Yn as ChannelMenuApiFactory,ce as ChannelMenuApiFp,Ys as ChargeStatusEnum,zs as CheckoutModelEnum,Js as ConditionType,Ue as ConfigManagementApi,Ut as ConfigManagementApiAxiosParamCreator,zn as ConfigManagementApiFactory,k as ConfigManagementApiFp,xt as Configuration,Xs as ConsumptionType,Ee as CoursesApi,Et as CoursesApiAxiosParamCreator,Jn as CoursesApiFactory,be as CoursesApiFp,ie as CurrencyCode,Lo as CurrencyRegistry,Zs as DayOfWeek,er as DeliveryStatus,tr as DeliveryType,sr as DeviceType,rr as DiscountScope,nr as DiscountScopeType,or as DiscountSourceType,ar as DiscountType,pn as DiscountTypeEnum,Be as DisplayApi,Bt as DisplayApiAxiosParamCreator,Xn as DisplayApiFactory,de as DisplayApiFp,Me as EmployeesApi,Mt as EmployeesApiAxiosParamCreator,Zn as EmployeesApiFactory,ht as EmployeesApiFp,ir as EntityType,Bs as EntityTypeEnum,ks as EventTypeEnum,_n as EventTypeIdEnum,lr as FeeType,ke as FloorPlanApi,kt as FloorPlanApiAxiosParamCreator,eo as FloorPlanApiFactory,w as FloorPlanApiFp,we as GiftcardApi,wt as GiftcardApiAxiosParamCreator,to as GiftcardApiFactory,xe as GiftcardApiFp,Fe as HistoryApi,Ft as HistoryApiAxiosParamCreator,so as HistoryApiFactory,X as HistoryApiFp,ur as IntegrationType,_e as InvoiceCompaniesApi,_t as InvoiceCompaniesApiAxiosParamCreator,ro as InvoiceCompaniesApiFactory,$ as InvoiceCompaniesApiFp,Le as KDSApi,Lt as KDSApiAxiosParamCreator,no as KDSApiFactory,Z as KDSApiFp,cr as KDSEVENTNAME,dr as KioskEventType,pr as KioskLayout,Ne as KiosksApi,Nt as KiosksApiAxiosParamCreator,oo as KiosksApiFactory,z as KiosksApiFp,mr as KitchenItemStatus,gr as KitchenStatus,yr as LocatorType,Pr as LoyaltyActionKey,je as LoyaltyIntegerationsApi,jt as LoyaltyIntegerationsApiAxiosParamCreator,ao as LoyaltyIntegerationsApiFactory,F as LoyaltyIntegerationsApiFp,bs as MUNCHI_CORE_VERSION,Ge as MenuApi,Gt as MenuApiAxiosParamCreator,io as MenuApiFactory,Y as MenuApiFp,_s as MenuTypeEnum,We as MerchantsApi,Wt as MerchantsApiAxiosParamCreator,lo as MerchantsApiFactory,pe as MerchantsApiFp,Ke as MunchiGiftCardApi,Kt as MunchiGiftCardApiAxiosParamCreator,uo as MunchiGiftCardApiFactory,ee as MunchiGiftCardApiFp,Bn as NameEnum,hr as NetsRevertMethod,He as NotificationApi,Ht as NotificationApiAxiosParamCreator,co as NotificationApiFactory,fe as NotificationApiFp,Ar as OperatingMode,Un as OperatingModeEnum,br as OrderFormat,Qe as OrderInternalApi,Qt as OrderInternalApiAxiosParamCreator,po as OrderInternalApiFactory,At as OrderInternalApiFp,xr as OrderMode,fr as OrderRefundStatus,Rr as OrderSource,Cr as OrderStatus,Dr as OrderStatusEnum,Or as OrderType,Vr as OrderTypePOS,$e as OrdersApi,$t as OrdersApiAxiosParamCreator,mo as OrdersApiFactory,B as OrdersApiFp,Ye as POSSessionApi,Yt as POSSessionApiAxiosParamCreator,go as POSSessionApiFactory,Re as POSSessionApiFp,ze as PayTerminalApi,zt as PayTerminalApiAxiosParamCreator,yo as PayTerminalApiFactory,te as PayTerminalApiFp,Sr as PayTerminalSessionRole,Je as PaymentApi,Jt as PaymentApiAxiosParamCreator,Po as PaymentApiFactory,j as PaymentApiFp,Ir as PaymentCheckoutFlow,vr as PaymentEventType,Tr as PaymentFailureCode,qr as PaymentMethod,Xe as PaymentMethodsApi,Xt as PaymentMethodsApiAxiosParamCreator,ho as PaymentMethodsApiFactory,W as PaymentMethodsApiFp,Ur as PaymentProvider,Er as PaymentProviderEnum,Br as PaymentReportingBucket,Ze as PaymentSessionApi,Zt as PaymentSessionApiAxiosParamCreator,Ao as PaymentSessionApiFactory,E as PaymentSessionApiFp,Mr as PaymentSessionStatus,kr as PaymentStatus,wr as PaymentTypeEnum,Fr as PosDiscountTargetType,_r as PosDiscountType,Lr as PosPaymentStatus,Nr as PosPaymentType,jr as PosPermission,Gr as PreorderStatus,Wr as PriceType,Kr as PrinterConnectionType,Hr as PrinterModelType,Qr as PrinterTypeEnum,et as PrintersApi,es as PrintersApiAxiosParamCreator,bo as PrintersApiFactory,_ as PrintersApiFp,tt as ProductApi,ts as ProductApiAxiosParamCreator,xo as ProductApiFactory,se as ProductApiFp,$r as ProductAvailability,Yr as ProductDetailLayout,En as ProductDetailLayoutEnum,zr as PromotionDiscountType,st as ProviderApi,ss as ProviderApiAxiosParamCreator,fo as ProviderApiFactory,L as ProviderApiFp,Jr as ProviderEnum,Xr as PubSubAction,Zr as PubSubTarget,en as RecordManualStatus,tn as RefundFailureReasonKey,sn as RefundMode,rn as RefundOverallStatus,nn as RefundStatusEnum,on as RefundStepStatus,rt as RefundsApi,rs as RefundsApiAxiosParamCreator,Ro as RefundsApiFactory,M as RefundsApiFp,nt as ReportApi,ns as ReportApiAxiosParamCreator,Co as ReportApiFactory,re as ReportApiFp,an as ReportLanguage,un as ReservationSource,cn as ReservationStatus,ot as ReservationsApi,os as ReservationsApiAxiosParamCreator,Do as ReservationsApiFactory,N as ReservationsApiFp,ln as RoleEnum,gn as SYNCKEY,yn as ScheduleType,mn as ScopeEnum,qn as SelectedPaymentProviderEnum,at as ShiftTrackingApi,as as ShiftTrackingApiAxiosParamCreator,Oo as ShiftTrackingApiFactory,ne as ShiftTrackingApiFp,Pn as SimplePaymentStatus,hn as SourceType,An as StaffActivityActionType,bn as StationType,it as StationsApi,is as StationsApiAxiosParamCreator,Vo as StationsApiFactory,me as StationsApiFp,xn as Status,Ln as StatusEnum,fn as SystemProfileType,Rn as TableGroupType,Cn as TableShape,Dn as TableStatus,lt as TerminalApi,ls as TerminalApiAxiosParamCreator,So as TerminalApiFactory,oe as TerminalApiFp,On as TerminalConnectionType,Vn as TimeSpan,Sn as TransactionEventType,In as TransactionType,vn as Type,Tn as UpsellMode,ut as UserApi,us as UserApiAxiosParamCreator,Io as UserApiFactory,ge as UserApiFp,ct as VendureSellerApi,cs as VendureSellerApiAxiosParamCreator,vo as VendureSellerApiFactory,bt as VendureSellerApiFp,dt as VivaApi,ds as VivaApiAxiosParamCreator,To as VivaApiFactory,ae as VivaApiFp,Mn as VivaAppToAppPaymentMethod,kn as VivaCurrencyCode,wn as VivaErrorId,Fn as VivaEventId,dn as WalletStatusEnum,pt as WebhookApi,ps as WebhookApiAxiosParamCreator,qo as WebhookApiFactory,U as WebhookApiFp,mt as WorldlineApi,ms as WorldlineApiAxiosParamCreator,Uo as WorldlineApiFactory,ye as WorldlineApiFp,gt as WorldlineInternalApi,gs as WorldlineInternalApiAxiosParamCreator,Eo as WorldlineInternalApiFactory,K as WorldlineInternalApiFp,Nn as WorldlineRevertMethod,Go as buildPosCategoryIndex,Rt as collectEnabledSubcategoryIdsDepthFirst,ft as collectSubcategoryIdsDepthFirst,Wo as getCategoryProductsIncludingSubcategories,Ko as getSubcategoriesForCategory,As as mapProductIdsToProducts};
|
|
1
|
+
import h from"axios";import Ct from"axios";var p="http://localhost".replace(/\/+$/,"");var V=class{constructor(n,e=p,s=Ct){this.basePath=e;this.axios=s;n&&(this.configuration=n,this.basePath=n.basePath||this.basePath)}configuration},le=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,n,e){if(e==null)throw new le(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 Us={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},Es={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Bs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ms={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},ks={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ws={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Fs={Image:"image",Video:"video",Animation:"animation"},_s={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ls={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},Ns={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},js={GiftCard:"GiftCard"},Gs={Online:"ONLINE",Offline:"OFFLINE"},Ws={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"},Ks={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Hs={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Qs={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},$s={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Ys={Pending:"pending",Success:"success",Failure:"failure"},zs={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Js={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Xs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},ie={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"},Zs={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},en={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},tn={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},sn={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},nn={Item:"ITEM",Cart:"CART"},rn={Business:"BUSINESS",Owner:"OWNER"},on={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},an={Percentage:"PERCENTAGE",Fixed:"FIXED"},ln={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},un={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},cn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},dn={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},pn={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},mn={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},gn={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},yn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Pn={Table:"table",Indicator:"indicator"},hn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},An={Reversal:"REVERSAL",Refund:"REFUND"},bn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},xn={Open:"OPEN",Instant:"INSTANT"},fn={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Rn={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Cn={Platform:"PLATFORM",Pos:"POS"},Dn={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},On={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"},Vn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Sn={DineIn:"dine_in",PickUp:"pick_up"},In={Pos:"pos",Terminal:"terminal"},vn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Tn={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},qn={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",SystemProviderError:"system.provider_error",SystemUnknown:"system.unknown"},Un={Cash:"Cash",Card:"Card",Voucher:"Voucher",EPassi:"EPassi",Edenred:"Edenred",Munchi:"Munchi",Flatpay:"Flatpay",GiftUp:"GiftUp",MobilePay:"MobilePay",CardManual:"CardManual",EdenredManual:"EdenredManual",EmployeeDiscount:"EmployeeDiscount",LunchVoucher:"LunchVoucher",EdenredVoucher:"EdenredVoucher",SmartumVoucher:"SmartumVoucher",Invoice:"Invoice",Smartum:"Smartum",GiftCard:"GiftCard",Debit:"Debit",Credit:"Credit",GiftCardManual:"GiftCardManual",WoltBenefit:"WoltBenefit",Fundis:"Fundis",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives",Trade:"Trade",Exchange:"Exchange",Tilisiirto:"Tilisiirto",LoyaltyPoints:"LoyaltyPoints",DiningByAmex:"DiningByAmex"},En={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Bn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Mn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},kn={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"},wn={Paid:"paid",Pending:"pending"},Fn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},_n={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Ln={Percentage:"percentage",Fixed:"fixed"},Nn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},jn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Gn={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"},Wn={Waiting:"waiting",Confirm:"confirm"},Kn={Preset:"PRESET",Open:"OPEN"},Hn={Bluetooth:"bluetooth",Network:"network"},Qn={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},$n={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Yn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},zn={Modal:"MODAL",Screen:"SCREEN"},Jn={Percentage:"PERCENTAGE",Fixed:"FIXED"},Xn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Zn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},er={Kds:"KDS"},tr={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},sr={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"},nr={Full:"FULL",Item:"ITEM"},rr={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},or={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},ar={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},ir={Fi:"fi",En:"en"},lr={Pos:"pos",Display:"display"},ur={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},cr={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},dr={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},pr={Percentage:"PERCENTAGE",Fixed:"FIXED"},mr={Item:"ITEM",Cart:"CART"},gr={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"},yr={Physical:"PHYSICAL"},Pr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},hr={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},Ar={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"},br={Kiosk:"KIOSK",Pos:"POS"},xr={Active:"ACTIVE",Inactive:"INACTIVE"},fr={NoStation:"NO_STATION"},Rr={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Cr={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},Dr={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Or={Network:"NETWORK"},Vr={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Sr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Ir={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},vr={Instant:"instant",Preorder:"preorder"},Tr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},qr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Ur={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Er={Modal:"MODAL",Screen:"SCREEN"},Br={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"},Mr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},kr={_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"},wr={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},Fr={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},_r={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Lr={Claimed:"Claimed",Redeemed:"Redeemed"},Nr={Reversal:"REVERSAL",Refund:"REFUND"},Dt=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=Dt(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)}}},jr=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))}}},De=class extends V{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))}},Ot=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}}}},ue=function(a){let n=Ot(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)}}},Gr=function(a,n,e){let s=ue(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))}}},Oe=class extends V{createActionPasscode(n,e){return ue(this.configuration).createActionPasscode(n,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(n,e){return ue(this.configuration).deleteActionPasscode(n,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(n,e,s){return ue(this.configuration).updateActionPasscode(n,e,s).then(t=>t(this.axios,this.basePath))}},Vt=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}}}},J=function(a){let n=Vt(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)}}},Wr=function(a,n,e){let s=J(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 V{firebaseAuth(n){return J(this.configuration).firebaseAuth(n).then(e=>e(this.axios,this.basePath))}login(n,e){return J(this.configuration).login(n,e).then(s=>s(this.axios,this.basePath))}logout(n){return J(this.configuration).logout(n).then(e=>e(this.axios,this.basePath))}refreshToken(n,e){return J(this.configuration).refreshToken(n,e).then(s=>s(this.axios,this.basePath))}},St=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=St(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)}}},Kr=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))}}},Se=class extends V{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))}},It=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}}}},yt=function(a){let n=It(a);return{async updatePosGlobalSettings(e,s,t){let r=await n.updatePosGlobalSettings(e,s,t);return P(r,h,p,a)}}},Hr=function(a,n,e){let s=yt(a);return{updatePosGlobalSettings(t,r,o){return s.updatePosGlobalSettings(t,r,o).then(i=>i(e,n))}}},Ie=class extends V{updatePosGlobalSettings(n,e,s){return yt(this.configuration).updatePosGlobalSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},vt=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}}}},Pt=function(a){let n=vt(a);return{async upsertSchedule(e,s,t){let r=await n.upsertSchedule(e,s,t);return P(r,h,p,a)}}},Qr=function(a,n,e){let s=Pt(a);return{upsertSchedule(t,r,o){return s.upsertSchedule(t,r,o).then(i=>i(e,n))}}},ve=class extends V{upsertSchedule(n,e,s){return Pt(this.configuration).upsertSchedule(n,e,s).then(t=>t(this.axios,this.basePath))}},Tt=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}}}},Q=function(a){let n=Tt(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)}}},$r=function(a,n,e){let s=Q(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))}}},Te=class extends V{create(n,e,s){return Q(this.configuration).create(n,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(n,e,s,t,r,o,i,l){return Q(this.configuration).getCashLogs(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(n,e){return Q(this.configuration).getCashSession(n,e).then(s=>s(this.axios,this.basePath))}getSessionReport(n,e,s){return Q(this.configuration).getSessionReport(n,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(n,e,s){return Q(this.configuration).recordCashLog(n,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(n,e,s,t){return Q(this.configuration).sendSessionReport(n,e,s,t).then(r=>r(this.axios,this.basePath))}},qt=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}}}},ce=function(a){let n=qt(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)}}},Yr=function(a,n,e){let s=ce(a);return{getChannelCatalog(t,r,o,i){return s.getChannelCatalog(t,r,o,i).then(l=>l(e,n))},getChannelMenu(t,r,o,i){return s.getChannelMenu(t,r,o,i).then(l=>l(e,n))},getChannelMenuTimes(t,r,o){return s.getChannelMenuTimes(t,r,o).then(i=>i(e,n))}}},qe=class extends V{getChannelCatalog(n,e,s,t){return ce(this.configuration).getChannelCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(n,e,s,t){return ce(this.configuration).getChannelMenu(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(n,e,s){return ce(this.configuration).getChannelMenuTimes(n,e,s).then(t=>t(this.axios,this.basePath))}},Ut=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=Ut(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)}}},zr=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))}}},Ue=class extends V{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))}},Et=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=Et(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)}}},Jr=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))}}},Ee=class extends V{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))}},Bt=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}}}},de=function(a){let n=Bt(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)}}},Xr=function(a,n,e){let s=de(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))}}},Be=class extends V{init(n,e){return de(this.configuration).init(n,e).then(s=>s(this.axios,this.basePath))}pair(n,e){return de(this.configuration).pair(n,e).then(s=>s(this.axios,this.basePath))}sessionToken(n,e){return de(this.configuration).sessionToken(n,e).then(s=>s(this.axios,this.basePath))}},Mt=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}}}},ht=function(a){let n=Mt(a);return{async createAssignment(e,s,t){let r=await n.createAssignment(e,s,t);return P(r,h,p,a)}}},Zr=function(a,n,e){let s=ht(a);return{createAssignment(t,r,o){return s.createAssignment(t,r,o).then(i=>i(e,n))}}},Me=class extends V{createAssignment(n,e,s){return ht(this.configuration).createAssignment(n,e,s).then(t=>t(this.axios,this.basePath))}},kt=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=kt(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)}}},eo=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))}}},ke=class extends V{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))}},wt=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}}}},xe=function(a){let n=wt(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)}}},to=function(a,n,e){let s=xe(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))}}},we=class extends V{redeemGiftCard(n,e){return xe(this.configuration).redeemGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateGiftCard(n,e){return xe(this.configuration).validateGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Ft=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),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},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 H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}},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),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},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 H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}},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),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},D={};await f(G,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 H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}},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),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},G={},D={};await f(G,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 H=S&&S.headers?S.headers:{};return q.headers={...G,...H,...O.headers},{url:y(v),options:q}}}},X=function(a){let n=Ft(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)}}},so=function(a,n,e){let s=X(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,n))},getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,n))},getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,n))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return s.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,n))}}},Fe=class extends V{getInternalOrderHistoryOnline(n,e,s,t,r,o,i,l,u,d,A,x,R,C,O){return X(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 X(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 X(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 X(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))}},_t=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}}}},$=function(a){let n=_t(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)}}},no=function(a,n,e){let s=$(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))}}},_e=class extends V{createInvoiceCompany(n,e,s){return $(this.configuration).createInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(n,e,s){return $(this.configuration).deleteInvoiceCompany(n,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(n,e){return $(this.configuration).getInvoiceCompanies(n,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(n,e,s){return $(this.configuration).getInvoiceCompanyById(n,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(n,e,s){return $(this.configuration).searchInvoiceCompanies(n,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(n,e,s,t){return $(this.configuration).updateInvoiceCompany(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Lt=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={},S={};await f(v,a),e!==void 0&&(S.businessIds=e),s!==void 0&&(S.profileId=s),t!==void 0&&(S.page=t),r!==void 0&&(S.rowPerPage=r),o!==void 0&&(S.timeSpan=o),i!==void 0&&(S.start=i),l!==void 0&&(S.end=l),u!==void 0&&(S.timezone=u),d&&(S.provider=d),A&&(S.consumptionType=A),g(C,S);let q=O&&O.headers?O.headers:{};return I.headers={...v,...q,...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}}}},Z=function(a){let n=Lt(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)}}},ro=function(a,n,e){let s=Z(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))}}},Le=class extends V{kdsGetOrders(n,e,s,t,r,o,i,l,u,d,A,x){return Z(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 Z(this.configuration).kdsGetProfiles(n,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(n,e){return Z(this.configuration).kdsMarkOrderReady(n,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(n,e){return Z(this.configuration).kdsRevertOrder(n,e).then(s=>s(this.axios,this.basePath))}},Nt=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}}}},z=function(a){let n=Nt(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)}}},oo=function(a,n,e){let s=z(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))}}},Ne=class extends V{getKioskOrder(n,e,s){return z(this.configuration).getKioskOrder(n,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(n,e,s){return z(this.configuration).getOrderStatus(n,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(n,e,s){return z(this.configuration).recoverOrder(n,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(n,e){return z(this.configuration).syncKioskOrder(n,e).then(s=>s(this.axios,this.basePath))}validate(n,e,s){return z(this.configuration).validate(n,e,s).then(t=>t(this.axios,this.basePath))}},jt=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}}}},F=function(a){let n=jt(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)}}},ao=function(a,n,e){let s=F(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))}}},je=class extends V{activateKioskOffer(n,e){return F(this.configuration).activateKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(n,e){return F(this.configuration).claimKioskOffer(n,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(n,e,s){return F(this.configuration).createLoyaltyUser(n,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(n,e,s,t){return F(this.configuration).getAdminTransactions(n,e,s,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(n,e){return F(this.configuration).getLoyaltyInfo(n,e).then(s=>s(this.axios,this.basePath))}getUserById(n,e,s){return F(this.configuration).getUserById(n,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(n,e,s){return F(this.configuration).getUserPerks(n,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(n,e,s){return F(this.configuration).getUserWallet(n,e,s).then(t=>t(this.axios,this.basePath))}resolvePerks(n,e){return F(this.configuration).resolvePerks(n,e).then(s=>s(this.axios,this.basePath))}searchUser(n,e,s,t,r){return F(this.configuration).searchUser(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(n,e,s){return F(this.configuration).updatePoints(n,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(n,e,s,t){return F(this.configuration).validateWallet(n,e,s,t).then(r=>r(this.axios,this.basePath))}},Gt=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}}}},Y=function(a){let n=Gt(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)}}},io=function(a,n,e){let s=Y(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))}}},Ge=class extends V{editBusinessProduct(n,e,s){return Y(this.configuration).editBusinessProduct(n,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(n,e,s){return Y(this.configuration).editBusinessProductV2(n,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(n,e){return Y(this.configuration).getBusinessExtras(n,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(n,e,s){return Y(this.configuration).getProductsByCategoriesV2(n,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(n,e,s){return Y(this.configuration).getProductsByCategoriesV3(n,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(n,e){return Y(this.configuration).resetProductEod(n,e).then(s=>s(this.axios,this.basePath))}},Wt=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=Wt(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)}}},lo=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))}}},We=class extends V{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))}},Kt=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}}}},ee=function(a){let n=Kt(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)}}},uo=function(a,n,e){let s=ee(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))}}},Ke=class extends V{createMunchiGiftCard(n,e){return ee(this.configuration).createMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(n,e){return ee(this.configuration).getMunchiGiftCardData(n,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(n,e){return ee(this.configuration).redeemMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(n,e){return ee(this.configuration).validateMunchiGiftCard(n,e).then(s=>s(this.axios,this.basePath))}},Ht=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}}}},fe=function(a){let n=Ht(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)}}},co=function(a,n,e){let s=fe(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))}}},He=class extends V{addVenueSubscriptionsV2(n,e){return fe(this.configuration).addVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}removeVenueSubscriptionsV2(n,e){return fe(this.configuration).removeVenueSubscriptionsV2(n,e).then(s=>s(this.axios,this.basePath))}},Qt=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}}}},At=function(a){let n=Qt(a);return{async findOneByExternalId(e,s){let t=await n.findOneByExternalId(e,s);return P(t,h,p,a)}}},po=function(a,n,e){let s=At(a);return{findOneByExternalId(t,r){return s.findOneByExternalId(t,r).then(o=>o(e,n))}}},Qe=class extends V{findOneByExternalId(n,e){return At(this.configuration).findOneByExternalId(n,e).then(s=>s(this.axios,this.basePath))}},$t=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}},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=$t(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 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)}}},mo=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))},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))}}},$e=class extends V{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))}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))}},Yt=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}}}},Re=function(a){let n=Yt(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)}}},go=function(a,n,e){let s=Re(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))}}},Ye=class extends V{getPosSession(n,e){return Re(this.configuration).getPosSession(n,e).then(s=>s(this.axios,this.basePath))}getPosSessionV2(n,e){return Re(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}},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}}}},te=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 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)}}},yo=function(a,n,e){let s=te(a);return{payTerminalInit(t,r){return s.payTerminalInit(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))}}},ze=class extends V{payTerminalInit(n,e){return te(this.configuration).payTerminalInit(n,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(n,e){return te(this.configuration).payTerminalPair(n,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(n,e){return te(this.configuration).payTerminalSessionToken(n,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(n,e){return te(this.configuration).payTerminalUnpair(n,e).then(s=>s(this.axios,this.basePath))}},Jt=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=Jt(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)}}},Po=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))}}},Je=class extends V{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))}},Xt=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}}}},W=function(a){let n=Xt(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)}}},ho=function(a,n,e){let s=W(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))}}},Xe=class extends V{createPaymentMethod(n,e,s,t){return W(this.configuration).createPaymentMethod(n,e,s,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(n,e,s,t){return W(this.configuration).deletePaymentMethodOption(n,e,s,t).then(r=>r(this.axios,this.basePath))}getCatalog(n,e,s,t){return W(this.configuration).getCatalog(n,e,s,t).then(r=>r(this.axios,this.basePath))}getGlobalCatalog(n,e){return W(this.configuration).getGlobalCatalog(n,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(n,e,s,t){return W(this.configuration).getPaymentMethods(n,e,s,t).then(r=>r(this.axios,this.basePath))}getTypes(n){return W(this.configuration).getTypes(n).then(e=>e(this.axios,this.basePath))}reorder(n,e,s,t){return W(this.configuration).reorder(n,e,s,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(n,e,s,t,r){return W(this.configuration).updatePaymentMethodOption(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},Zt=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}},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}},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=Zt(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 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 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)}}},Ao=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))},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))},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))}}},Ze=class extends V{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))}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))}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))}},es=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}}}},_=function(a){let n=es(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)}}},bo=function(a,n,e){let s=_(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))}}},et=class extends V{deleteCategoryPolicy(n,e,s){return _(this.configuration).deleteCategoryPolicy(n,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(n,e,s){return _(this.configuration).deletePrinter(n,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(n,e,s){return _(this.configuration).deletePrinterByAddress(n,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(n,e,s){return _(this.configuration).deleteProductPolicy(n,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(n,e){return _(this.configuration).listCategoryPolicies(n,e).then(s=>s(this.axios,this.basePath))}listPrinters(n,e){return _(this.configuration).listPrinters(n,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(n,e){return _(this.configuration).listProductPolicies(n,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(n,e){return _(this.configuration).upsertCategoryPolicy(n,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(n,e){return _(this.configuration).upsertPrinter(n,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(n,e){return _(this.configuration).upsertProductPolicy(n,e).then(s=>s(this.axios,this.basePath))}},ts=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}}}},se=function(a){let n=ts(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)}}},xo=function(a,n,e){let s=se(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))}}},tt=class extends V{generateProductSkuV2(n,e,s,t){return se(this.configuration).generateProductSkuV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}getChannelInventoryV2(n,e,s,t){return se(this.configuration).getChannelInventoryV2(n,e,s,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(n,e,s,t,r){return se(this.configuration).updateChannelInventoryV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(n,e,s,t,r){return se(this.configuration).updateProductSkuV2(n,e,s,t,r).then(o=>o(this.axios,this.basePath))}},ss=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}}}},L=function(a){let n=ss(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)}}},fo=function(a,n,e){let s=L(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))}}},st=class extends V{createOnboardingSession(n,e,s){return L(this.configuration).createOnboardingSession(n,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(n,e,s){return L(this.configuration).disconnectOnboarding(n,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(n,e){return L(this.configuration).getMenuIntegrations(n,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(n,e,s){return L(this.configuration).getOnboardingStatus(n,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(n,e){return L(this.configuration).getSupportedChannels(n,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(n,e,s){return L(this.configuration).listOnboardingStores(n,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(n,e,s,t){return L(this.configuration).provisionOnboardingStore(n,e,s,t).then(r=>r(this.axios,this.basePath))}registerCredential(n,e){return L(this.configuration).registerCredential(n,e).then(s=>s(this.axios,this.basePath))}registerProvider(n,e){return L(this.configuration).registerProvider(n,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(n,e,s){return L(this.configuration).updateProviderSettings(n,e,s).then(t=>t(this.axios,this.basePath))}},ns=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=ns(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)}}},Ro=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))}}},nt=class extends V{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))}},rs=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}}}},ne=function(a){let n=rs(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)}}},Co=function(a,n,e){let s=ne(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))}}},rt=class extends V{getEndOfDayReportV5(n,e,s,t,r,o,i){return ne(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 ne(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 ne(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 ne(this.configuration).sendReportEmailV5(n,e,s,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},os=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={})=>{c("getReservationAvailability","businessId",n),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",s);let o="/api/v1/reservations/availability",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};await f(d,a),n!==void 0&&(A.businessId=n),e!==void 0&&(A.date=e),s!==void 0&&(A.partySize=s),t!==void 0&&(A.sectionId=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},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=os(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){let i=await n.getReservationAvailability(e,s,t,r,o);return P(i,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)}}},Do=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){return s.getReservationAvailability(t,r,o,i,l).then(u=>u(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))}}},ot=class extends V{createReservation(n,e){return N(this.configuration).createReservation(n,e).then(s=>s(this.axios,this.basePath))}getReservationAvailability(n,e,s,t,r){return N(this.configuration).getReservationAvailability(n,e,s,t,r).then(o=>o(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))}},as=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}}}},re=function(a){let n=as(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)}}},Oo=function(a,n,e){let s=re(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))}}},at=class extends V{clockIn(n,e,s){return re(this.configuration).clockIn(n,e,s).then(t=>t(this.axios,this.basePath))}clockOut(n,e,s){return re(this.configuration).clockOut(n,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(n,e,s){return re(this.configuration).getTodayShift(n,e,s).then(t=>t(this.axios,this.basePath))}unlock(n,e,s){return re(this.configuration).unlock(n,e,s).then(t=>t(this.axios,this.basePath))}},is=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=is(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)}}},Vo=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))}}},it=class extends V{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))}},ls=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}}}},oe=function(a){let n=ls(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)}}},So=function(a,n,e){let s=oe(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))}}},lt=class extends V{connectTerminal(n,e){return oe(this.configuration).connectTerminal(n,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(n){return oe(this.configuration).disconnectTerminal(n).then(e=>e(this.axios,this.basePath))}discoverTerminal(n,e){return oe(this.configuration).discoverTerminal(n,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(n,e,s,t){return oe(this.configuration).getTerminalStatus(n,e,s,t).then(r=>r(this.axios,this.basePath))}},us=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=us(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)}}},Io=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))}}},ut=class extends V{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))}},cs=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}}}},bt=function(a){let n=cs(a);return{async upsert(e,s){let t=await n.upsert(e,s);return P(t,h,p,a)}}},vo=function(a,n,e){let s=bt(a);return{upsert(t,r){return s.upsert(t,r).then(o=>o(e,n))}}},ct=class extends V{upsert(n,e){return bt(this.configuration).upsert(n,e).then(s=>s(this.axios,this.basePath))}},ds=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,u={})=>{c("listVivaSessions","businessId",n);let d="/api/v1/viva/sessions",A=new URL(d,m),x;a&&(x=a.baseOptions);let R={method:"GET",...x,...u},C={},O={};n!==void 0&&(O.businessId=n),e!==void 0&&(O.page=e),s!==void 0&&(O.rowPerPage=s),t!==void 0&&(O.terminalId=t),r!==void 0&&(O.timeSpan=r),o!==void 0&&(O.start=o),i!==void 0&&(O.end=i),l!==void 0&&(O.search=l),g(A,O);let I=x&&x.headers?x.headers:{};return R.headers={...C,...I,...u.headers},{url:y(A),options:R}},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}}}},ae=function(a){let n=ds(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,d){let A=await n.listVivaSessions(e,s,t,r,o,i,l,u,d);return P(A,h,p,a)},async refundVivaPayment(e,s){let t=await n.refundVivaPayment(e,s);return P(t,h,p,a)}}},To=function(a,n,e){let s=ae(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,x){return s.listVivaSessions(t,r,o,i,l,u,d,A,x).then(R=>R(e,n))},refundVivaPayment(t,r){return s.refundVivaPayment(t,r).then(o=>o(e,n))}}},dt=class extends V{createVivaAppToAppPayment(n,e){return ae(this.configuration).createVivaAppToAppPayment(n,e).then(s=>s(this.axios,this.basePath))}getVivaSession(n,e){return ae(this.configuration).getVivaSession(n,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(n,e,s,t,r,o,i,l,u){return ae(this.configuration).listVivaSessions(n,e,s,t,r,o,i,l,u).then(d=>d(this.axios,this.basePath))}refundVivaPayment(n,e){return ae(this.configuration).refundVivaPayment(n,e).then(s=>s(this.axios,this.basePath))}},ps=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}},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}},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}}}},U=function(a){let n=ps(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 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 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)}}},qo=function(a,n,e){let s=U(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))},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))},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))}}},pt=class extends V{handleAssignmentWebhook(n){return U(this.configuration).handleAssignmentWebhook(n).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(n){return U(this.configuration).handleBusinessWebhook(n).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(n,e){return U(this.configuration).handleFoodoraEvent(n,e).then(s=>s(this.axios,this.basePath))}handleLoadEmployee(n){return U(this.configuration).handleLoadEmployee(n).then(e=>e(this.axios,this.basePath))}handleNetsEvents(n){return U(this.configuration).handleNetsEvents(n).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(n){return U(this.configuration).handleNetsEventsV2(n).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(n){return U(this.configuration).handleNetsSessionEvents(n).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(n,e){return U(this.configuration).handlePreorderReminder(n,e).then(s=>s(this.axios,this.basePath))}handleRoleWebhook(n){return U(this.configuration).handleRoleWebhook(n).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(n){return U(this.configuration).handleShiftWebhook(n).then(e=>e(this.axios,this.basePath))}handleVivaEvents(n,e){return U(this.configuration).handleVivaEvents(n,e).then(s=>s(this.axios,this.basePath))}handleVivaSessionEvents(n,e){return U(this.configuration).handleVivaSessionEvents(n,e).then(s=>s(this.axios,this.basePath))}handleWebhook(n){return U(this.configuration).handleWebhook(n).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(n){return U(this.configuration).handleWoltDriveEvent(n).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(n,e){return U(this.configuration).handleWoltDriveEventByCountry(n,e).then(s=>s(this.axios,this.basePath))}handleWorldlineEvents(n){return U(this.configuration).handleWorldlineEvents(n).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(n){return U(this.configuration).handleWorldlineSessionEvents(n).then(e=>e(this.axios,this.basePath))}processPosOrderActionsQueue(n,e){return U(this.configuration).processPosOrderActionsQueue(n,e).then(s=>s(this.axios,this.basePath))}updateWoltProduct(n){return U(this.configuration).updateWoltProduct(n).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(n){return U(this.configuration).verifyVivaSessionWebhook(n).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(n){return U(this.configuration).verifyVivaWebhook(n).then(e=>e(this.axios,this.basePath))}},ms=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=ms(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)}}},Uo=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))}}},mt=class extends V{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))}},gs=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}}}},K=function(a){let n=gs(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)}}},Eo=function(a,n,e){let s=K(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))}}},gt=class extends V{createPaymentRequest(n,e,s){return K(this.configuration).createPaymentRequest(n,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(n,e,s){return K(this.configuration).createRefundRequest(n,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(n,e){return K(this.configuration).getPaymentResult(n,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(n,e,s){return K(this.configuration).getTerminalAuthContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(n,e,s){return K(this.configuration).getTerminalContext(n,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(n,e){return K(this.configuration).getTerminalState(n,e).then(s=>s(this.axios,this.basePath))}handleCallback(n){return K(this.configuration).handleCallback(n).then(e=>e(this.axios,this.basePath))}};var xt=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 ys={[ie.Eur]:2,[ie.Aed]:2,[ie.Usd]:2,[ie.Gbp]:2,BHD:3,JPY:0},Lo={getMultiplier(a){let n=ys[a.toUpperCase()];return typeof n!="number"?100:Math.round(10**n)}};import Pe from"lodash";var Ce=a=>Pe.orderBy(a,["rank","id"],["asc","asc"]),Ps=a=>{let n=a.subcategories;return Array.isArray(n)?n:[]},hs=(a,n)=>({...a,colorCode:a.colorCode??n}),As=(a,n)=>Pe.compact(a.map(e=>n.get(e))),ft=(a,n)=>a.flatMap(e=>{let s=n[e];return s?[e,...ft(s.childIds,n)]:[]}),Rt=(a,n)=>a.flatMap(e=>{let s=n[e];return s?.enabled?[e,...Rt(s.childIds,n)]:[]}),Go=a=>{let n=new Map,e={},s={},t=Ce(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return n.set(d,hs(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),S=Ce(Ps(R)).map(q=>A(q,O));return s[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:S},O},x=Ce(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:n,categoriesById:e,subcategoriesById:s,categoryIdsOrder:r}},Wo=(a,n,e,s)=>{let t=n[a];if(!t)return[];let r=Rt(t.subcategoryIds,e),o=Pe.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return As(o,s)},Ko=(a,n,e)=>{let s=n[a];if(!s)return[];let t=ft(s.subcategoryIds,e);return Pe.compact(t.map(r=>e[r]))};var bs="1.9.102";export{Us as ABLYEVENT,De as AblyApi,Dt as AblyApiAxiosParamCreator,jr as AblyApiFactory,Ae as AblyApiFp,Es as ActionEnum,Oe as ActionPasscodesApi,Ot as ActionPasscodesApiAxiosParamCreator,Gr as ActionPasscodesApiFactory,ue as ActionPasscodesApiFp,Ms as ActionsEnum,Ve as AuthApi,Vt as AuthApiAxiosParamCreator,Wr as AuthApiFactory,J as AuthApiFp,ws as AutonomousVehicleType,Se as BusinessApi,St as BusinessApiAxiosParamCreator,Kr as BusinessApiFactory,T as BusinessApiFp,Fs as BusinessBackgroundType,Ls as BusinessEventAction,Ns as BusinessEventType,js as BusinessPaymentIntegrationType,Ie as BusinessProviderPolicyApi,It as BusinessProviderPolicyApiAxiosParamCreator,Hr as BusinessProviderPolicyApiFactory,yt as BusinessProviderPolicyApiFp,ve as BusinessScheduleApi,vt as BusinessScheduleApiAxiosParamCreator,Qr as BusinessScheduleApiFactory,Pt as BusinessScheduleApiFp,Gs as BusinessStatusEnum,Ws as CashLogReason,Ks as CashLogType,Te as CashManagementApi,Tt as CashManagementApiAxiosParamCreator,$r as CashManagementApiFactory,Q as CashManagementApiFp,Hs as CashSessionDtoEnum,Qs as CashSessionStatus,$s as ChannelEnum,qe as ChannelMenuApi,qt as ChannelMenuApiAxiosParamCreator,Yr as ChannelMenuApiFactory,ce as ChannelMenuApiFp,Ys as ChargeStatusEnum,zs as CheckoutModelEnum,Js as ConditionType,Ue as ConfigManagementApi,Ut as ConfigManagementApiAxiosParamCreator,zr as ConfigManagementApiFactory,k as ConfigManagementApiFp,xt as Configuration,Xs as ConsumptionType,Ee as CoursesApi,Et as CoursesApiAxiosParamCreator,Jr as CoursesApiFactory,be as CoursesApiFp,ie as CurrencyCode,Lo as CurrencyRegistry,Zs as DayOfWeek,en as DeliveryStatus,tn as DeliveryType,sn as DeviceType,nn as DiscountScope,rn as DiscountScopeType,on as DiscountSourceType,an as DiscountType,pr as DiscountTypeEnum,Be as DisplayApi,Bt as DisplayApiAxiosParamCreator,Xr as DisplayApiFactory,de as DisplayApiFp,Me as EmployeesApi,Mt as EmployeesApiAxiosParamCreator,Zr as EmployeesApiFactory,ht as EmployeesApiFp,ln as EntityType,Bs as EntityTypeEnum,ks as EventTypeEnum,_r as EventTypeIdEnum,un as FeeType,ke as FloorPlanApi,kt as FloorPlanApiAxiosParamCreator,eo as FloorPlanApiFactory,w as FloorPlanApiFp,we as GiftcardApi,wt as GiftcardApiAxiosParamCreator,to as GiftcardApiFactory,xe as GiftcardApiFp,Fe as HistoryApi,Ft as HistoryApiAxiosParamCreator,so as HistoryApiFactory,X as HistoryApiFp,cn as IntegrationType,_e as InvoiceCompaniesApi,_t as InvoiceCompaniesApiAxiosParamCreator,no as InvoiceCompaniesApiFactory,$ as InvoiceCompaniesApiFp,Le as KDSApi,Lt as KDSApiAxiosParamCreator,ro as KDSApiFactory,Z as KDSApiFp,dn as KDSEVENTNAME,pn as KioskEventType,mn as KioskLayout,Ne as KiosksApi,Nt as KiosksApiAxiosParamCreator,oo as KiosksApiFactory,z as KiosksApiFp,gn as KitchenItemStatus,yn as KitchenStatus,Pn as LocatorType,hn as LoyaltyActionKey,je as LoyaltyIntegerationsApi,jt as LoyaltyIntegerationsApiAxiosParamCreator,ao as LoyaltyIntegerationsApiFactory,F as LoyaltyIntegerationsApiFp,bs as MUNCHI_CORE_VERSION,Ge as MenuApi,Gt as MenuApiAxiosParamCreator,io as MenuApiFactory,Y as MenuApiFp,_s as MenuTypeEnum,We as MerchantsApi,Wt as MerchantsApiAxiosParamCreator,lo as MerchantsApiFactory,pe as MerchantsApiFp,Ke as MunchiGiftCardApi,Kt as MunchiGiftCardApiAxiosParamCreator,uo as MunchiGiftCardApiFactory,ee as MunchiGiftCardApiFp,Br as NameEnum,An as NetsRevertMethod,He as NotificationApi,Ht as NotificationApiAxiosParamCreator,co as NotificationApiFactory,fe as NotificationApiFp,bn as OperatingMode,Ur as OperatingModeEnum,xn as OrderFormat,Qe as OrderInternalApi,Qt as OrderInternalApiAxiosParamCreator,po as OrderInternalApiFactory,At as OrderInternalApiFp,fn as OrderMode,Rn as OrderRefundStatus,Cn as OrderSource,Dn as OrderStatus,On as OrderStatusEnum,Vn as OrderType,Sn as OrderTypePOS,$e as OrdersApi,$t as OrdersApiAxiosParamCreator,mo as OrdersApiFactory,B as OrdersApiFp,Ye as POSSessionApi,Yt as POSSessionApiAxiosParamCreator,go as POSSessionApiFactory,Re as POSSessionApiFp,ze as PayTerminalApi,zt as PayTerminalApiAxiosParamCreator,yo as PayTerminalApiFactory,te as PayTerminalApiFp,In as PayTerminalSessionRole,Je as PaymentApi,Jt as PaymentApiAxiosParamCreator,Po as PaymentApiFactory,j as PaymentApiFp,vn as PaymentCheckoutFlow,Tn as PaymentEventType,qn as PaymentFailureCode,Un as PaymentMethod,Xe as PaymentMethodsApi,Xt as PaymentMethodsApiAxiosParamCreator,ho as PaymentMethodsApiFactory,W as PaymentMethodsApiFp,En as PaymentProvider,Bn as PaymentProviderEnum,Mn as PaymentReportingBucket,Ze as PaymentSessionApi,Zt as PaymentSessionApiAxiosParamCreator,Ao as PaymentSessionApiFactory,E as PaymentSessionApiFp,kn as PaymentSessionStatus,wn as PaymentStatus,Fn as PaymentTypeEnum,_n as PosDiscountTargetType,Ln as PosDiscountType,Nn as PosPaymentStatus,jn as PosPaymentType,Gn as PosPermission,Wn as PreorderStatus,Kn as PriceType,Hn as PrinterConnectionType,Qn as PrinterModelType,$n as PrinterTypeEnum,et as PrintersApi,es as PrintersApiAxiosParamCreator,bo as PrintersApiFactory,_ as PrintersApiFp,tt as ProductApi,ts as ProductApiAxiosParamCreator,xo as ProductApiFactory,se as ProductApiFp,Yn as ProductAvailability,zn as ProductDetailLayout,Er as ProductDetailLayoutEnum,Jn as PromotionDiscountType,st as ProviderApi,ss as ProviderApiAxiosParamCreator,fo as ProviderApiFactory,L as ProviderApiFp,Xn as ProviderEnum,Zn as PubSubAction,er as PubSubTarget,tr as RecordManualStatus,sr as RefundFailureReasonKey,nr as RefundMode,rr as RefundOverallStatus,or as RefundStatusEnum,ar as RefundStepStatus,nt as RefundsApi,ns as RefundsApiAxiosParamCreator,Ro as RefundsApiFactory,M as RefundsApiFp,rt as ReportApi,rs as ReportApiAxiosParamCreator,Co as ReportApiFactory,ne as ReportApiFp,ir as ReportLanguage,ur as ReservationSource,cr as ReservationStatus,ot as ReservationsApi,os as ReservationsApiAxiosParamCreator,Do as ReservationsApiFactory,N as ReservationsApiFp,lr as RoleEnum,gr as SYNCKEY,yr as ScheduleType,mr as ScopeEnum,qr as SelectedPaymentProviderEnum,at as ShiftTrackingApi,as as ShiftTrackingApiAxiosParamCreator,Oo as ShiftTrackingApiFactory,re as ShiftTrackingApiFp,Pr as SimplePaymentStatus,hr as SourceType,Ar as StaffActivityActionType,br as StationType,it as StationsApi,is as StationsApiAxiosParamCreator,Vo as StationsApiFactory,me as StationsApiFp,xr as Status,Lr as StatusEnum,fr as SystemProfileType,Rr as TableGroupType,Cr as TableShape,Dr as TableStatus,lt as TerminalApi,ls as TerminalApiAxiosParamCreator,So as TerminalApiFactory,oe as TerminalApiFp,Or as TerminalConnectionType,Vr as TimeSpan,Sr as TransactionEventType,Ir as TransactionType,vr as Type,Tr as UpsellMode,ut as UserApi,us as UserApiAxiosParamCreator,Io as UserApiFactory,ge as UserApiFp,ct as VendureSellerApi,cs as VendureSellerApiAxiosParamCreator,vo as VendureSellerApiFactory,bt as VendureSellerApiFp,dt as VivaApi,ds as VivaApiAxiosParamCreator,To as VivaApiFactory,ae as VivaApiFp,Mr as VivaAppToAppPaymentMethod,kr as VivaCurrencyCode,wr as VivaErrorId,Fr as VivaEventId,dr as WalletStatusEnum,pt as WebhookApi,ps as WebhookApiAxiosParamCreator,qo as WebhookApiFactory,U as WebhookApiFp,mt as WorldlineApi,ms as WorldlineApiAxiosParamCreator,Uo as WorldlineApiFactory,ye as WorldlineApiFp,gt as WorldlineInternalApi,gs as WorldlineInternalApiAxiosParamCreator,Eo as WorldlineInternalApiFactory,K as WorldlineInternalApiFp,Nr as WorldlineRevertMethod,Go as buildPosCategoryIndex,Rt as collectEnabledSubcategoryIdsDepthFirst,ft as collectSubcategoryIdsDepthFirst,Wo as getCategoryProductsIncludingSubcategories,Ko as getSubcategoriesForCategory,As as mapProductIdsToProducts};
|