@munchi_oy/core 1.9.113 → 1.9.114
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 +29 -5
- 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 +29 -5
- 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},ue=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 ue(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"},Ls={Image:"image",Video:"video",Animation:"animation"},Fs={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},_s={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={Pos:"pos",Display:"display"},Ys={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},zs={Pending:"pending",Success:"success",Failure:"failure"},Js={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Xs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Zs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},le={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},er={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},tr={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},sr={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},rr={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},nr={Item:"ITEM",Cart:"CART"},or={Business:"BUSINESS",Owner:"OWNER"},ar={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},ir={Percentage:"PERCENTAGE",Fixed:"FIXED"},lr={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ur={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},cr={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},dr={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},pr={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},mr={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},gr={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},yr={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Pr={Table:"table",Indicator:"indicator"},hr={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Ar={Reversal:"REVERSAL",Refund:"REFUND"},br={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},xr={Open:"OPEN",Instant:"INSTANT"},fr={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Rr={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Cr={Platform:"PLATFORM",Pos:"POS"},Dr={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Or={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"},Vr={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Sr={DineIn:"dine_in",PickUp:"pick_up"},Ir={Pos:"pos",Terminal:"terminal"},vr={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Tr={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},qr={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"},Ur={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"},Er={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Br={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Mr={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},kr={Sale:"SALE",Refund:"REFUND",Void:"VOID"},wr={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"},Lr={Paid:"paid",Pending:"pending"},Fr={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},_r={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Nr={Percentage:"percentage",Fixed:"fixed"},jr={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Gr={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Wr={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"},Kr={Waiting:"waiting",Confirm:"confirm"},Hr={Preset:"PRESET",Open:"OPEN"},Qr={Bluetooth:"bluetooth",Network:"network"},$r={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Yr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},zr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Jr={Modal:"MODAL",Screen:"SCREEN"},Xr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Zr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},en={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},tn={Kds:"KDS"},sn={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},rn={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"},nn={Full:"FULL",Item:"ITEM"},on={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},an={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},ln={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},un={Fi:"fi",En:"en"},cn={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},dn={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},pn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},mn={Percentage:"PERCENTAGE",Fixed:"FIXED"},gn={Item:"ITEM",Cart:"CART"},yn={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",BusinessProviderSupportedIntegrations:"BUSINESS_PROVIDER_SUPPORTED_INTEGRATIONS",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",PaymentMethods:"PAYMENT_METHODS"},Pn={Physical:"PHYSICAL"},hn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},An={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},bn={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"},xn={Kiosk:"KIOSK",Pos:"POS"},fn={Active:"ACTIVE",Inactive:"INACTIVE"},Rn={NoStation:"NO_STATION"},Cn={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Dn={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},On={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Vn={Network:"NETWORK"},Sn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},In={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},vn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Tn={Instant:"instant",Preorder:"preorder"},qn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Un={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},En={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Bn={Modal:"MODAL",Screen:"SCREEN"},Mn={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"},kn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},wn={_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"},Ln={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},Nn={Claimed:"Claimed",Redeemed:"Redeemed"},jn={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)}}},Gn=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}}}},ce=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)}}},Wn=function(a,r,e){let s=ce(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 ce(this.configuration).createActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(r,e){return ce(this.configuration).deleteActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(r,e,s){return ce(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}}}},X=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)}}},Kn=function(a,r,e){let s=X(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 X(this.configuration).firebaseAuth(r).then(e=>e(this.axios,this.basePath))}login(r,e){return X(this.configuration).login(r,e).then(s=>s(this.axios,this.basePath))}logout(r){return X(this.configuration).logout(r).then(e=>e(this.axios,this.basePath))}refreshToken(r,e){return X(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)}}},Hn=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)}}},Qn=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)}}},$n=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}}}},$=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)}}},Yn=function(a,r,e){let s=$(a);return{create(t,n,o){return s.create(t,n,o).then(i=>i(e,r))},getCashLogs(t,n,o,i,l,u,d,A){return s.getCashLogs(t,n,o,i,l,u,d,A).then(x=>x(e,r))},getCashSession(t,n){return s.getCashSession(t,n).then(o=>o(e,r))},getSessionReport(t,n,o){return s.getSessionReport(t,n,o).then(i=>i(e,r))},recordCashLog(t,n,o){return s.recordCashLog(t,n,o).then(i=>i(e,r))},sendSessionReport(t,n,o,i){return s.sendSessionReport(t,n,o,i).then(l=>l(e,r))}}},Te=class extends V{create(r,e,s){return $(this.configuration).create(r,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(r,e,s,t,n,o,i,l){return $(this.configuration).getCashLogs(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(r,e){return $(this.configuration).getCashSession(r,e).then(s=>s(this.axios,this.basePath))}getSessionReport(r,e,s){return $(this.configuration).getSessionReport(r,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(r,e,s){return $(this.configuration).recordCashLog(r,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(r,e,s,t){return $(this.configuration).sendSessionReport(r,e,s,t).then(n=>n(this.axios,this.basePath))}},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}}}},de=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)}}},zn=function(a,r,e){let s=de(a);return{getChannelCatalog(t,n,o,i){return s.getChannelCatalog(t,n,o,i).then(l=>l(e,r))},getChannelMenu(t,n,o,i){return s.getChannelMenu(t,n,o,i).then(l=>l(e,r))},getChannelMenuTimes(t,n,o){return s.getChannelMenuTimes(t,n,o).then(i=>i(e,r))}}},qe=class extends V{getChannelCatalog(r,e,s,t){return de(this.configuration).getChannelCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(r,e,s,t){return de(this.configuration).getChannelMenu(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(r,e,s){return de(this.configuration).getChannelMenuTimes(r,e,s).then(t=>t(this.axios,this.basePath))}},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)}}},Jn=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)}}},Xn=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}},unpair:async(r,e={})=>{c("unpair","unpairDisplayBodyDto",r);let s="/api/v1/display/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}}}},Z=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)},async unpair(e,s){let t=await r.unpair(e,s);return P(t,h,p,a)}}},Zn=function(a,r,e){let s=Z(a);return{init(t,n){return s.init(t,n).then(o=>o(e,r))},pair(t,n){return s.pair(t,n).then(o=>o(e,r))},sessionToken(t,n){return s.sessionToken(t,n).then(o=>o(e,r))},unpair(t,n){return s.unpair(t,n).then(o=>o(e,r))}}},Be=class extends V{init(r,e){return Z(this.configuration).init(r,e).then(s=>s(this.axios,this.basePath))}pair(r,e){return Z(this.configuration).pair(r,e).then(s=>s(this.axios,this.basePath))}sessionToken(r,e){return Z(this.configuration).sessionToken(r,e).then(s=>s(this.axios,this.basePath))}unpair(r,e){return Z(this.configuration).unpair(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)}}},eo=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)}}},to=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)}}},so=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))}},Lt=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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...O.headers},{url:y(v),options:q}}}},ee=function(a){let r=Lt(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)}}},ro=function(a,r,e){let s=ee(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))}}},Le=class extends V{getInternalOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O){return ee(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 ee(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 ee(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 ee(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))}},Ft=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}}}},Y=function(a){let r=Ft(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)}}},no=function(a,r,e){let s=Y(a);return{createInvoiceCompany(t,n,o){return s.createInvoiceCompany(t,n,o).then(i=>i(e,r))},deleteInvoiceCompany(t,n,o){return s.deleteInvoiceCompany(t,n,o).then(i=>i(e,r))},getInvoiceCompanies(t,n){return s.getInvoiceCompanies(t,n).then(o=>o(e,r))},getInvoiceCompanyById(t,n,o){return s.getInvoiceCompanyById(t,n,o).then(i=>i(e,r))},searchInvoiceCompanies(t,n,o){return s.searchInvoiceCompanies(t,n,o).then(i=>i(e,r))},updateInvoiceCompany(t,n,o,i){return s.updateInvoiceCompany(t,n,o,i).then(l=>l(e,r))}}},Fe=class extends V{createInvoiceCompany(r,e,s){return Y(this.configuration).createInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(r,e,s){return Y(this.configuration).deleteInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(r,e){return Y(this.configuration).getInvoiceCompanies(r,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(r,e,s){return Y(this.configuration).getInvoiceCompanyById(r,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(r,e,s){return Y(this.configuration).searchInvoiceCompanies(r,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(r,e,s,t){return Y(this.configuration).updateInvoiceCompany(r,e,s,t).then(n=>n(this.axios,this.basePath))}},_t=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}}}},te=function(a){let r=_t(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)}}},oo=function(a,r,e){let s=te(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))}}},_e=class extends V{kdsGetOrders(r,e,s,t,n,o,i,l,u,d,A,x){return te(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 te(this.configuration).kdsGetProfiles(r,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(r,e){return te(this.configuration).kdsMarkOrderReady(r,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(r,e){return te(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}}}},J=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)}}},ao=function(a,r,e){let s=J(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 J(this.configuration).getKioskOrder(r,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(r,e,s){return J(this.configuration).getOrderStatus(r,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(r,e,s){return J(this.configuration).recoverOrder(r,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(r,e){return J(this.configuration).syncKioskOrder(r,e).then(s=>s(this.axios,this.basePath))}validate(r,e,s){return J(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}}}},L=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)}}},io=function(a,r,e){let s=L(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 L(this.configuration).activateKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(r,e){return L(this.configuration).claimKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(r,e,s){return L(this.configuration).createLoyaltyUser(r,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(r,e,s,t){return L(this.configuration).getAdminTransactions(r,e,s,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(r,e){return L(this.configuration).getLoyaltyInfo(r,e).then(s=>s(this.axios,this.basePath))}getUserById(r,e,s){return L(this.configuration).getUserById(r,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(r,e,s){return L(this.configuration).getUserPerks(r,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(r,e,s){return L(this.configuration).getUserWallet(r,e,s).then(t=>t(this.axios,this.basePath))}resolvePerks(r,e){return L(this.configuration).resolvePerks(r,e).then(s=>s(this.axios,this.basePath))}searchUser(r,e,s,t,n){return L(this.configuration).searchUser(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(r,e,s){return L(this.configuration).updatePoints(r,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(r,e,s,t){return L(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}}}},z=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)}}},lo=function(a,r,e){let s=z(a);return{editBusinessProduct(t,n,o){return s.editBusinessProduct(t,n,o).then(i=>i(e,r))},editBusinessProductV2(t,n,o){return s.editBusinessProductV2(t,n,o).then(i=>i(e,r))},getBusinessExtras(t,n){return s.getBusinessExtras(t,n).then(o=>o(e,r))},getProductsByCategoriesV2(t,n,o){return s.getProductsByCategoriesV2(t,n,o).then(i=>i(e,r))},getProductsByCategoriesV3(t,n,o){return s.getProductsByCategoriesV3(t,n,o).then(i=>i(e,r))},resetProductEod(t,n){return s.resetProductEod(t,n).then(o=>o(e,r))}}},Ge=class extends V{editBusinessProduct(r,e,s){return z(this.configuration).editBusinessProduct(r,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(r,e,s){return z(this.configuration).editBusinessProductV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(r,e){return z(this.configuration).getBusinessExtras(r,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(r,e,s){return z(this.configuration).getProductsByCategoriesV2(r,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(r,e,s){return z(this.configuration).getProductsByCategoriesV3(r,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(r,e){return z(this.configuration).resetProductEod(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},uo=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}}}},se=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)}}},co=function(a,r,e){let s=se(a);return{createMunchiGiftCard(t,n){return s.createMunchiGiftCard(t,n).then(o=>o(e,r))},getMunchiGiftCardData(t,n){return s.getMunchiGiftCardData(t,n).then(o=>o(e,r))},redeemMunchiGiftCard(t,n){return s.redeemMunchiGiftCard(t,n).then(o=>o(e,r))},validateMunchiGiftCard(t,n){return s.validateMunchiGiftCard(t,n).then(o=>o(e,r))}}},Ke=class extends V{createMunchiGiftCard(r,e){return se(this.configuration).createMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(r,e){return se(this.configuration).getMunchiGiftCardData(r,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(r,e){return se(this.configuration).redeemMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(r,e){return se(this.configuration).validateMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},po=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)}}},mo=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}},parkPosOrderV5:async(r,e={})=>{c("parkPosOrderV5","parkPosOrderDto",r);let s="/api/v5/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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 parkPosOrderV5(e,s){let t=await r.parkPosOrderV5(e,s);return P(t,h,p,a)},async placePosOrderV4(e,s){let t=await r.placePosOrderV4(e,s);return P(t,h,p,a)},async processPosOrderActions(e,s){let t=await r.processPosOrderActions(e,s);return P(t,h,p,a)},async rejectOrder(e,s){let t=await r.rejectOrder(e,s);return P(t,h,p,a)},async syncPosOrder(e,s){let t=await r.syncPosOrder(e,s);return P(t,h,p,a)},async updatePosOrderV2(e,s){let t=await r.updatePosOrderV2(e,s);return P(t,h,p,a)}}},go=function(a,r,e){let s=B(a);return{acceptOrder(t,n){return s.acceptOrder(t,n).then(o=>o(e,r))},confirmPreOrder(t,n){return s.confirmPreOrder(t,n).then(o=>o(e,r))},deletePosParkedOrderV2(t,n){return s.deletePosParkedOrderV2(t,n).then(o=>o(e,r))},deliverOrder(t,n){return s.deliverOrder(t,n).then(o=>o(e,r))},dispatchPosOrderV5(t,n){return s.dispatchPosOrderV5(t,n).then(o=>o(e,r))},getAllOrdersV2(t,n){return s.getAllOrdersV2(t,n).then(o=>o(e,r))},getOrdersV2(t,n,o,i,l){return s.getOrdersV2(t,n,o,i,l).then(u=>u(e,r))},getOrdersV3(t,n,o,i,l){return s.getOrdersV3(t,n,o,i,l).then(u=>u(e,r))},getParkedPosOrderV2(t,n){return s.getParkedPosOrderV2(t,n).then(o=>o(e,r))},getPosOrderById(t,n){return s.getPosOrderById(t,n).then(o=>o(e,r))},markOrderAsReady(t,n){return s.markOrderAsReady(t,n).then(o=>o(e,r))},parkPosOrderV5(t,n){return s.parkPosOrderV5(t,n).then(o=>o(e,r))},placePosOrderV4(t,n){return s.placePosOrderV4(t,n).then(o=>o(e,r))},processPosOrderActions(t,n){return s.processPosOrderActions(t,n).then(o=>o(e,r))},rejectOrder(t,n){return s.rejectOrder(t,n).then(o=>o(e,r))},syncPosOrder(t,n){return s.syncPosOrder(t,n).then(o=>o(e,r))},updatePosOrderV2(t,n){return s.updatePosOrderV2(t,n).then(o=>o(e,r))}}},$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))}parkPosOrderV5(r,e){return B(this.configuration).parkPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}placePosOrderV4(r,e){return B(this.configuration).placePosOrderV4(r,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(r,e){return B(this.configuration).processPosOrderActions(r,e).then(s=>s(this.axios,this.basePath))}rejectOrder(r,e){return B(this.configuration).rejectOrder(r,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(r,e){return B(this.configuration).syncPosOrder(r,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(r,e){return B(this.configuration).updatePosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},yo=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}},payTerminalLockSet:async(r,e={})=>{c("payTerminalLockSet","setPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",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}},payTerminalLockStatus:async(r,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",r);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}},payTerminalLockSync:async(r,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}},payTerminalLockVerify:async(r,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}}}},W=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 payTerminalLockSet(e,s){let t=await r.payTerminalLockSet(e,s);return P(t,h,p,a)},async payTerminalLockStatus(e,s){let t=await r.payTerminalLockStatus(e,s);return P(t,h,p,a)},async payTerminalLockSync(e,s){let t=await r.payTerminalLockSync(e,s);return P(t,h,p,a)},async payTerminalLockVerify(e,s){let t=await r.payTerminalLockVerify(e,s);return P(t,h,p,a)},async payTerminalPair(e,s){let t=await r.payTerminalPair(e,s);return P(t,h,p,a)},async 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)}}},Po=function(a,r,e){let s=W(a);return{payTerminalInit(t,n){return s.payTerminalInit(t,n).then(o=>o(e,r))},payTerminalLockSet(t,n){return s.payTerminalLockSet(t,n).then(o=>o(e,r))},payTerminalLockStatus(t,n){return s.payTerminalLockStatus(t,n).then(o=>o(e,r))},payTerminalLockSync(t,n){return s.payTerminalLockSync(t,n).then(o=>o(e,r))},payTerminalLockVerify(t,n){return s.payTerminalLockVerify(t,n).then(o=>o(e,r))},payTerminalPair(t,n){return s.payTerminalPair(t,n).then(o=>o(e,r))},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 W(this.configuration).payTerminalInit(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSet(r,e){return W(this.configuration).payTerminalLockSet(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(r,e){return W(this.configuration).payTerminalLockStatus(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(r,e){return W(this.configuration).payTerminalLockSync(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(r,e){return W(this.configuration).payTerminalLockVerify(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(r,e){return W(this.configuration).payTerminalPair(r,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(r,e){return W(this.configuration).payTerminalSessionToken(r,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(r,e){return W(this.configuration).payTerminalUnpair(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},ho=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}}}},K=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)}}},Ao=function(a,r,e){let s=K(a);return{createPaymentMethod(t,n,o,i){return s.createPaymentMethod(t,n,o,i).then(l=>l(e,r))},deletePaymentMethodOption(t,n,o,i){return s.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,r))},getCatalog(t,n,o,i){return s.getCatalog(t,n,o,i).then(l=>l(e,r))},getGlobalCatalog(t,n){return s.getGlobalCatalog(t,n).then(o=>o(e,r))},getPaymentMethods(t,n,o,i){return s.getPaymentMethods(t,n,o,i).then(l=>l(e,r))},getTypes(t){return s.getTypes(t).then(n=>n(e,r))},reorder(t,n,o,i){return s.reorder(t,n,o,i).then(l=>l(e,r))},updatePaymentMethodOption(t,n,o,i,l){return s.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,r))}}},Xe=class extends V{createPaymentMethod(r,e,s,t){return K(this.configuration).createPaymentMethod(r,e,s,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(r,e,s,t){return K(this.configuration).deletePaymentMethodOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}getCatalog(r,e,s,t){return K(this.configuration).getCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getGlobalCatalog(r,e){return K(this.configuration).getGlobalCatalog(r,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(r,e,s,t){return K(this.configuration).getPaymentMethods(r,e,s,t).then(n=>n(this.axios,this.basePath))}getTypes(r){return K(this.configuration).getTypes(r).then(e=>e(this.axios,this.basePath))}reorder(r,e,s,t){return K(this.configuration).reorder(r,e,s,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(r,e,s,t,n){return K(this.configuration).updatePaymentMethodOption(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},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)}}},bo=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}}}},F=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)}}},xo=function(a,r,e){let s=F(a);return{deleteCategoryPolicy(t,n,o){return s.deleteCategoryPolicy(t,n,o).then(i=>i(e,r))},deletePrinter(t,n,o){return s.deletePrinter(t,n,o).then(i=>i(e,r))},deletePrinterByAddress(t,n,o){return s.deletePrinterByAddress(t,n,o).then(i=>i(e,r))},deleteProductPolicy(t,n,o){return s.deleteProductPolicy(t,n,o).then(i=>i(e,r))},listCategoryPolicies(t,n){return s.listCategoryPolicies(t,n).then(o=>o(e,r))},listPrinters(t,n){return s.listPrinters(t,n).then(o=>o(e,r))},listProductPolicies(t,n){return s.listProductPolicies(t,n).then(o=>o(e,r))},upsertCategoryPolicy(t,n){return s.upsertCategoryPolicy(t,n).then(o=>o(e,r))},upsertPrinter(t,n){return s.upsertPrinter(t,n).then(o=>o(e,r))},upsertProductPolicy(t,n){return s.upsertProductPolicy(t,n).then(o=>o(e,r))}}},et=class extends V{deleteCategoryPolicy(r,e,s){return F(this.configuration).deleteCategoryPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(r,e,s){return F(this.configuration).deletePrinter(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(r,e,s){return F(this.configuration).deletePrinterByAddress(r,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(r,e,s){return F(this.configuration).deleteProductPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(r,e){return F(this.configuration).listCategoryPolicies(r,e).then(s=>s(this.axios,this.basePath))}listPrinters(r,e){return F(this.configuration).listPrinters(r,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(r,e){return F(this.configuration).listProductPolicies(r,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(r,e){return F(this.configuration).upsertCategoryPolicy(r,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(r,e){return F(this.configuration).upsertPrinter(r,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(r,e){return F(this.configuration).upsertProductPolicy(r,e).then(s=>s(this.axios,this.basePath))}},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}}}},re=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)}}},fo=function(a,r,e){let s=re(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 re(this.configuration).generateProductSkuV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelInventoryV2(r,e,s,t){return re(this.configuration).getChannelInventoryV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(r,e,s,t,n){return re(this.configuration).updateChannelInventoryV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(r,e,s,t,n){return re(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}}}},_=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)}}},Ro=function(a,r,e){let s=_(a);return{createOnboardingSession(t,n,o){return s.createOnboardingSession(t,n,o).then(i=>i(e,r))},disconnectOnboarding(t,n,o){return s.disconnectOnboarding(t,n,o).then(i=>i(e,r))},getMenuIntegrations(t,n){return s.getMenuIntegrations(t,n).then(o=>o(e,r))},getOnboardingStatus(t,n,o){return s.getOnboardingStatus(t,n,o).then(i=>i(e,r))},getSupportedChannels(t,n){return s.getSupportedChannels(t,n).then(o=>o(e,r))},listOnboardingStores(t,n,o){return s.listOnboardingStores(t,n,o).then(i=>i(e,r))},provisionOnboardingStore(t,n,o,i){return s.provisionOnboardingStore(t,n,o,i).then(l=>l(e,r))},registerCredential(t,n){return s.registerCredential(t,n).then(o=>o(e,r))},registerProvider(t,n){return s.registerProvider(t,n).then(o=>o(e,r))},updateProviderSettings(t,n,o){return s.updateProviderSettings(t,n,o).then(i=>i(e,r))}}},st=class extends V{createOnboardingSession(r,e,s){return _(this.configuration).createOnboardingSession(r,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(r,e,s){return _(this.configuration).disconnectOnboarding(r,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(r,e){return _(this.configuration).getMenuIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(r,e,s){return _(this.configuration).getOnboardingStatus(r,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(r,e){return _(this.configuration).getSupportedChannels(r,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(r,e,s){return _(this.configuration).listOnboardingStores(r,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(r,e,s,t){return _(this.configuration).provisionOnboardingStore(r,e,s,t).then(n=>n(this.axios,this.basePath))}registerCredential(r,e){return _(this.configuration).registerCredential(r,e).then(s=>s(this.axios,this.basePath))}registerProvider(r,e){return _(this.configuration).registerProvider(r,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(r,e,s){return _(this.configuration).updateProviderSettings(r,e,s).then(t=>t(this.axios,this.basePath))}},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)}}},Co=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}}}},ne=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)}}},Do=function(a,r,e){let s=ne(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 ne(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 ne(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 ne(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 ne(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)}}},Oo=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}}}},oe=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)}}},Vo=function(a,r,e){let s=oe(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 oe(this.configuration).clockIn(r,e,s).then(t=>t(this.axios,this.basePath))}clockOut(r,e,s){return oe(this.configuration).clockOut(r,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(r,e,s){return oe(this.configuration).getTodayShift(r,e,s).then(t=>t(this.axios,this.basePath))}unlock(r,e,s){return oe(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)}}},So=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}}}},ae=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)}}},Io=function(a,r,e){let s=ae(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 ae(this.configuration).connectTerminal(r,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(r){return ae(this.configuration).disconnectTerminal(r).then(e=>e(this.axios,this.basePath))}discoverTerminal(r,e){return ae(this.configuration).discoverTerminal(r,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(r,e,s,t){return ae(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)}}},vo=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)}}},To=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.timeSpan=n),o!==void 0&&(C.start=o),i!==void 0&&(C.end=i),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},refundVivaPayment:async(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}}}},ie=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)}}},qo=function(a,r,e){let s=ie(a);return{createVivaAppToAppPayment(t,n){return s.createVivaAppToAppPayment(t,n).then(o=>o(e,r))},getVivaSession(t,n){return s.getVivaSession(t,n).then(o=>o(e,r))},listVivaSessions(t,n,o,i,l,u,d,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 ie(this.configuration).createVivaAppToAppPayment(r,e).then(s=>s(this.axios,this.basePath))}getVivaSession(r,e){return ie(this.configuration).getVivaSession(r,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(r,e,s,t,n,o,i,l){return ie(this.configuration).listVivaSessions(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(r,e){return ie(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)}}},Uo=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)}}},Eo=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}}}},H=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)}}},Bo=function(a,r,e){let s=H(a);return{createPaymentRequest(t,n,o){return s.createPaymentRequest(t,n,o).then(i=>i(e,r))},createRefundRequest(t,n,o){return s.createRefundRequest(t,n,o).then(i=>i(e,r))},getPaymentResult(t,n){return s.getPaymentResult(t,n).then(o=>o(e,r))},getTerminalAuthContext(t,n,o){return s.getTerminalAuthContext(t,n,o).then(i=>i(e,r))},getTerminalContext(t,n,o){return s.getTerminalContext(t,n,o).then(i=>i(e,r))},getTerminalState(t,n){return s.getTerminalState(t,n).then(o=>o(e,r))},handleCallback(t){return s.handleCallback(t).then(n=>n(e,r))}}},gt=class extends V{createPaymentRequest(r,e,s){return H(this.configuration).createPaymentRequest(r,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(r,e,s){return H(this.configuration).createRefundRequest(r,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(r,e){return H(this.configuration).getPaymentResult(r,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(r,e,s){return H(this.configuration).getTerminalAuthContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(r,e,s){return H(this.configuration).getTerminalContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(r,e){return H(this.configuration).getTerminalState(r,e).then(s=>s(this.axios,this.basePath))}handleCallback(r){return H(this.configuration).handleCallback(r).then(e=>e(this.axios,this.basePath))}};var 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={[le.Eur]:2,[le.Aed]:2,[le.Usd]:2,[le.Gbp]:2,BHD:3,JPY:0},No={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)]:[]}),Wo=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}},Ko=(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)},Ho=(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.113";export{Us as ABLYEVENT,De as AblyApi,Dt as AblyApiAxiosParamCreator,Gn as AblyApiFactory,Ae as AblyApiFp,Es as ActionEnum,Oe as ActionPasscodesApi,Ot as ActionPasscodesApiAxiosParamCreator,Wn as ActionPasscodesApiFactory,ce as ActionPasscodesApiFp,Ms as ActionsEnum,Ve as AuthApi,Vt as AuthApiAxiosParamCreator,Kn as AuthApiFactory,X as AuthApiFp,ws as AutonomousVehicleType,Se as BusinessApi,St as BusinessApiAxiosParamCreator,Hn as BusinessApiFactory,T as BusinessApiFp,Ls as BusinessBackgroundType,_s as BusinessEventAction,Ns as BusinessEventType,js as BusinessPaymentIntegrationType,Ie as BusinessProviderPolicyApi,It as BusinessProviderPolicyApiAxiosParamCreator,Qn as BusinessProviderPolicyApiFactory,yt as BusinessProviderPolicyApiFp,ve as BusinessScheduleApi,vt as BusinessScheduleApiAxiosParamCreator,$n as BusinessScheduleApiFactory,Pt as BusinessScheduleApiFp,Gs as BusinessStatusEnum,Ws as CashLogReason,Ks as CashLogType,Te as CashManagementApi,Tt as CashManagementApiAxiosParamCreator,Yn as CashManagementApiFactory,$ as CashManagementApiFp,Hs as CashSessionDtoEnum,Qs as CashSessionStatus,$s as CdsSessionRole,Ys as ChannelEnum,qe as ChannelMenuApi,qt as ChannelMenuApiAxiosParamCreator,zn as ChannelMenuApiFactory,de as ChannelMenuApiFp,zs as ChargeStatusEnum,Js as CheckoutModelEnum,Xs as ConditionType,Ue as ConfigManagementApi,Ut as ConfigManagementApiAxiosParamCreator,Jn as ConfigManagementApiFactory,k as ConfigManagementApiFp,xt as Configuration,Zs as ConsumptionType,Ee as CoursesApi,Et as CoursesApiAxiosParamCreator,Xn as CoursesApiFactory,be as CoursesApiFp,le as CurrencyCode,No as CurrencyRegistry,er as DayOfWeek,tr as DeliveryStatus,sr as DeliveryType,rr as DeviceType,nr as DiscountScope,or as DiscountScopeType,ar as DiscountSourceType,ir as DiscountType,mn as DiscountTypeEnum,Be as DisplayApi,Bt as DisplayApiAxiosParamCreator,Zn as DisplayApiFactory,Z as DisplayApiFp,Me as EmployeesApi,Mt as EmployeesApiAxiosParamCreator,eo as EmployeesApiFactory,ht as EmployeesApiFp,lr as EntityType,Bs as EntityTypeEnum,ks as EventTypeEnum,_n as EventTypeIdEnum,ur as FeeType,ke as FloorPlanApi,kt as FloorPlanApiAxiosParamCreator,to as FloorPlanApiFactory,w as FloorPlanApiFp,we as GiftcardApi,wt as GiftcardApiAxiosParamCreator,so as GiftcardApiFactory,xe as GiftcardApiFp,Le as HistoryApi,Lt as HistoryApiAxiosParamCreator,ro as HistoryApiFactory,ee as HistoryApiFp,cr as IntegrationType,Fe as InvoiceCompaniesApi,Ft as InvoiceCompaniesApiAxiosParamCreator,no as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,_e as KDSApi,_t as KDSApiAxiosParamCreator,oo as KDSApiFactory,te as KDSApiFp,dr as KDSEVENTNAME,pr as KioskEventType,mr as KioskLayout,Ne as KiosksApi,Nt as KiosksApiAxiosParamCreator,ao as KiosksApiFactory,J as KiosksApiFp,gr as KitchenItemStatus,yr as KitchenStatus,Pr as LocatorType,hr as LoyaltyActionKey,je as LoyaltyIntegerationsApi,jt as LoyaltyIntegerationsApiAxiosParamCreator,io as LoyaltyIntegerationsApiFactory,L as LoyaltyIntegerationsApiFp,bs as MUNCHI_CORE_VERSION,Ge as MenuApi,Gt as MenuApiAxiosParamCreator,lo as MenuApiFactory,z as MenuApiFp,Fs as MenuTypeEnum,We as MerchantsApi,Wt as MerchantsApiAxiosParamCreator,uo as MerchantsApiFactory,pe as MerchantsApiFp,Ke as MunchiGiftCardApi,Kt as MunchiGiftCardApiAxiosParamCreator,co as MunchiGiftCardApiFactory,se as MunchiGiftCardApiFp,Mn as NameEnum,Ar as NetsRevertMethod,He as NotificationApi,Ht as NotificationApiAxiosParamCreator,po as NotificationApiFactory,fe as NotificationApiFp,br as OperatingMode,En as OperatingModeEnum,xr as OrderFormat,Qe as OrderInternalApi,Qt as OrderInternalApiAxiosParamCreator,mo as OrderInternalApiFactory,At as OrderInternalApiFp,fr as OrderMode,Rr as OrderRefundStatus,Cr as OrderSource,Dr as OrderStatus,Or as OrderStatusEnum,Vr as OrderType,Sr as OrderTypePOS,$e as OrdersApi,$t as OrdersApiAxiosParamCreator,go as OrdersApiFactory,B as OrdersApiFp,Ye as POSSessionApi,Yt as POSSessionApiAxiosParamCreator,yo as POSSessionApiFactory,Re as POSSessionApiFp,ze as PayTerminalApi,zt as PayTerminalApiAxiosParamCreator,Po as PayTerminalApiFactory,W as PayTerminalApiFp,Ir as PayTerminalSessionRole,Je as PaymentApi,Jt as PaymentApiAxiosParamCreator,ho as PaymentApiFactory,j as PaymentApiFp,vr as PaymentCheckoutFlow,Tr as PaymentEventType,qr as PaymentFailureCode,Ur as PaymentMethod,Xe as PaymentMethodsApi,Xt as PaymentMethodsApiAxiosParamCreator,Ao as PaymentMethodsApiFactory,K as PaymentMethodsApiFp,Er as PaymentProvider,Br as PaymentProviderEnum,Mr as PaymentReportingBucket,Ze as PaymentSessionApi,Zt as PaymentSessionApiAxiosParamCreator,bo as PaymentSessionApiFactory,E as PaymentSessionApiFp,kr as PaymentSessionPurpose,wr as PaymentSessionStatus,Lr as PaymentStatus,Fr as PaymentTypeEnum,_r as PosDiscountTargetType,Nr as PosDiscountType,jr as PosPaymentStatus,Gr as PosPaymentType,Wr as PosPermission,Kr as PreorderStatus,Hr as PriceType,Qr as PrinterConnectionType,$r as PrinterModelType,Yr as PrinterTypeEnum,et as PrintersApi,es as PrintersApiAxiosParamCreator,xo as PrintersApiFactory,F as PrintersApiFp,tt as ProductApi,ts as ProductApiAxiosParamCreator,fo as ProductApiFactory,re as ProductApiFp,zr as ProductAvailability,Jr as ProductDetailLayout,Bn as ProductDetailLayoutEnum,Xr as PromotionDiscountType,st as ProviderApi,ss as ProviderApiAxiosParamCreator,Ro as ProviderApiFactory,_ as ProviderApiFp,Zr as ProviderEnum,en as PubSubAction,tn as PubSubTarget,sn as RecordManualStatus,rn as RefundFailureReasonKey,nn as RefundMode,on as RefundOverallStatus,an as RefundStatusEnum,ln as RefundStepStatus,rt as RefundsApi,rs as RefundsApiAxiosParamCreator,Co as RefundsApiFactory,M as RefundsApiFp,nt as ReportApi,ns as ReportApiAxiosParamCreator,Do as ReportApiFactory,ne as ReportApiFp,un as ReportLanguage,cn as ReservationSource,dn as ReservationStatus,ot as ReservationsApi,os as ReservationsApiAxiosParamCreator,Oo as ReservationsApiFactory,N as ReservationsApiFp,yn as SYNCKEY,Pn as ScheduleType,gn as ScopeEnum,Un as SelectedPaymentProviderEnum,at as ShiftTrackingApi,as as ShiftTrackingApiAxiosParamCreator,Vo as ShiftTrackingApiFactory,oe as ShiftTrackingApiFp,hn as SimplePaymentStatus,An as SourceType,bn as StaffActivityActionType,xn as StationType,it as StationsApi,is as StationsApiAxiosParamCreator,So as StationsApiFactory,me as StationsApiFp,fn as Status,Nn as StatusEnum,Rn as SystemProfileType,Cn as TableGroupType,Dn as TableShape,On as TableStatus,lt as TerminalApi,ls as TerminalApiAxiosParamCreator,Io as TerminalApiFactory,ae as TerminalApiFp,Vn as TerminalConnectionType,Sn as TimeSpan,In as TransactionEventType,vn as TransactionType,Tn as Type,qn as UpsellMode,ut as UserApi,us as UserApiAxiosParamCreator,vo as UserApiFactory,ge as UserApiFp,ct as VendureSellerApi,cs as VendureSellerApiAxiosParamCreator,To as VendureSellerApiFactory,bt as VendureSellerApiFp,dt as VivaApi,ds as VivaApiAxiosParamCreator,qo as VivaApiFactory,ie as VivaApiFp,kn as VivaAppToAppPaymentMethod,wn as VivaCurrencyCode,Ln as VivaErrorId,Fn as VivaEventId,pn as WalletStatusEnum,pt as WebhookApi,ps as WebhookApiAxiosParamCreator,Uo as WebhookApiFactory,U as WebhookApiFp,mt as WorldlineApi,ms as WorldlineApiAxiosParamCreator,Eo as WorldlineApiFactory,ye as WorldlineApiFp,gt as WorldlineInternalApi,gs as WorldlineInternalApiAxiosParamCreator,Bo as WorldlineInternalApiFactory,H as WorldlineInternalApiFp,jn as WorldlineRevertMethod,Wo as buildPosCategoryIndex,Rt as collectEnabledSubcategoryIdsDepthFirst,ft as collectSubcategoryIdsDepthFirst,Ko as getCategoryProductsIncludingSubcategories,Ho as getSubcategoriesForCategory,As as mapProductIdsToProducts};
|
|
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},ue=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 ue(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"},Ls={Image:"image",Video:"video",Animation:"animation"},Fs={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},_s={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={Pos:"pos",Display:"display"},Ys={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},zs={Pending:"pending",Success:"success",Failure:"failure"},Js={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Xs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Zs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},le={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},er={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},tr={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},sr={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},rr={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},nr={Item:"ITEM",Cart:"CART"},or={Business:"BUSINESS",Owner:"OWNER"},ar={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},ir={Percentage:"PERCENTAGE",Fixed:"FIXED"},lr={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ur={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},cr={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},dr={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},pr={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},mr={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},gr={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},yr={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Pr={Table:"table",Indicator:"indicator"},hr={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Ar={Reversal:"REVERSAL",Refund:"REFUND"},br={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},xr={Open:"OPEN",Instant:"INSTANT"},fr={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Rr={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Cr={Platform:"PLATFORM",Pos:"POS"},Dr={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Or={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"},Vr={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Sr={DineIn:"dine_in",PickUp:"pick_up"},Ir={Pos:"pos",Terminal:"terminal"},vr={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Tr={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},qr={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"},Ur={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"},Er={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Br={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Mr={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},kr={Sale:"SALE",Refund:"REFUND",Void:"VOID"},wr={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"},Lr={Paid:"paid",Pending:"pending"},Fr={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},_r={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Nr={Percentage:"percentage",Fixed:"fixed"},jr={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Gr={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},Wr={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"},Kr={Waiting:"waiting",Confirm:"confirm"},Hr={Preset:"PRESET",Open:"OPEN"},Qr={Bluetooth:"bluetooth",Network:"network"},$r={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Yr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},zr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Jr={Modal:"MODAL",Screen:"SCREEN"},Xr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Zr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},en={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},tn={Kds:"KDS"},sn={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},rn={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"},nn={Full:"FULL",Item:"ITEM"},on={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},an={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},ln={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},un={Fi:"fi",En:"en"},cn={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},dn={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},pn={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},mn={Percentage:"PERCENTAGE",Fixed:"FIXED"},gn={Item:"ITEM",Cart:"CART"},yn={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",BusinessProviderSupportedIntegrations:"BUSINESS_PROVIDER_SUPPORTED_INTEGRATIONS",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",PaymentMethods:"PAYMENT_METHODS"},Pn={Physical:"PHYSICAL"},hn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},An={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},bn={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"},xn={Kiosk:"KIOSK",Pos:"POS"},fn={Active:"ACTIVE",Inactive:"INACTIVE"},Rn={NoStation:"NO_STATION"},Cn={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},Dn={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},On={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},Vn={Network:"NETWORK"},Sn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},In={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},vn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Tn={Instant:"instant",Preorder:"preorder"},qn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Un={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},En={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Bn={Modal:"MODAL",Screen:"SCREEN"},Mn={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"},kn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},wn={_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"},Ln={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},Nn={Claimed:"Claimed",Redeemed:"Redeemed"},jn={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)}}},Gn=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}}}},ce=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)}}},Wn=function(a,r,e){let s=ce(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 ce(this.configuration).createActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}deleteActionPasscode(r,e){return ce(this.configuration).deleteActionPasscode(r,e).then(s=>s(this.axios,this.basePath))}updateActionPasscode(r,e,s){return ce(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}}}},X=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)}}},Kn=function(a,r,e){let s=X(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 X(this.configuration).firebaseAuth(r).then(e=>e(this.axios,this.basePath))}login(r,e){return X(this.configuration).login(r,e).then(s=>s(this.axios,this.basePath))}logout(r){return X(this.configuration).logout(r).then(e=>e(this.axios,this.basePath))}refreshToken(r,e){return X(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)}}},Hn=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)}}},Qn=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)}}},$n=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}}}},$=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)}}},Yn=function(a,r,e){let s=$(a);return{create(t,n,o){return s.create(t,n,o).then(i=>i(e,r))},getCashLogs(t,n,o,i,l,u,d,A){return s.getCashLogs(t,n,o,i,l,u,d,A).then(x=>x(e,r))},getCashSession(t,n){return s.getCashSession(t,n).then(o=>o(e,r))},getSessionReport(t,n,o){return s.getSessionReport(t,n,o).then(i=>i(e,r))},recordCashLog(t,n,o){return s.recordCashLog(t,n,o).then(i=>i(e,r))},sendSessionReport(t,n,o,i){return s.sendSessionReport(t,n,o,i).then(l=>l(e,r))}}},Te=class extends V{create(r,e,s){return $(this.configuration).create(r,e,s).then(t=>t(this.axios,this.basePath))}getCashLogs(r,e,s,t,n,o,i,l){return $(this.configuration).getCashLogs(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(r,e){return $(this.configuration).getCashSession(r,e).then(s=>s(this.axios,this.basePath))}getSessionReport(r,e,s){return $(this.configuration).getSessionReport(r,e,s).then(t=>t(this.axios,this.basePath))}recordCashLog(r,e,s){return $(this.configuration).recordCashLog(r,e,s).then(t=>t(this.axios,this.basePath))}sendSessionReport(r,e,s,t){return $(this.configuration).sendSessionReport(r,e,s,t).then(n=>n(this.axios,this.basePath))}},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}}}},de=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)}}},zn=function(a,r,e){let s=de(a);return{getChannelCatalog(t,n,o,i){return s.getChannelCatalog(t,n,o,i).then(l=>l(e,r))},getChannelMenu(t,n,o,i){return s.getChannelMenu(t,n,o,i).then(l=>l(e,r))},getChannelMenuTimes(t,n,o){return s.getChannelMenuTimes(t,n,o).then(i=>i(e,r))}}},qe=class extends V{getChannelCatalog(r,e,s,t){return de(this.configuration).getChannelCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(r,e,s,t){return de(this.configuration).getChannelMenu(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(r,e,s){return de(this.configuration).getChannelMenuTimes(r,e,s).then(t=>t(this.axios,this.basePath))}},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)}}},Jn=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)}}},Xn=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}},unpair:async(r,e={})=>{c("unpair","unpairDisplayBodyDto",r);let s="/api/v1/display/unpair",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}}}},Z=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)},async unpair(e,s){let t=await r.unpair(e,s);return P(t,h,p,a)}}},Zn=function(a,r,e){let s=Z(a);return{init(t,n){return s.init(t,n).then(o=>o(e,r))},pair(t,n){return s.pair(t,n).then(o=>o(e,r))},sessionToken(t,n){return s.sessionToken(t,n).then(o=>o(e,r))},unpair(t,n){return s.unpair(t,n).then(o=>o(e,r))}}},Be=class extends V{init(r,e){return Z(this.configuration).init(r,e).then(s=>s(this.axios,this.basePath))}pair(r,e){return Z(this.configuration).pair(r,e).then(s=>s(this.axios,this.basePath))}sessionToken(r,e){return Z(this.configuration).sessionToken(r,e).then(s=>s(this.axios,this.basePath))}unpair(r,e){return Z(this.configuration).unpair(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)}}},eo=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)}}},to=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)}}},so=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))}},Lt=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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...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 Q=S&&S.headers?S.headers:{};return q.headers={...G,...Q,...O.headers},{url:y(v),options:q}}}},ee=function(a){let r=Lt(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)}}},ro=function(a,r,e){let s=ee(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))}}},Le=class extends V{getInternalOrderHistoryOnline(r,e,s,t,n,o,i,l,u,d,A,x,R,C,O){return ee(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 ee(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 ee(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 ee(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))}},Ft=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}}}},Y=function(a){let r=Ft(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)}}},no=function(a,r,e){let s=Y(a);return{createInvoiceCompany(t,n,o){return s.createInvoiceCompany(t,n,o).then(i=>i(e,r))},deleteInvoiceCompany(t,n,o){return s.deleteInvoiceCompany(t,n,o).then(i=>i(e,r))},getInvoiceCompanies(t,n){return s.getInvoiceCompanies(t,n).then(o=>o(e,r))},getInvoiceCompanyById(t,n,o){return s.getInvoiceCompanyById(t,n,o).then(i=>i(e,r))},searchInvoiceCompanies(t,n,o){return s.searchInvoiceCompanies(t,n,o).then(i=>i(e,r))},updateInvoiceCompany(t,n,o,i){return s.updateInvoiceCompany(t,n,o,i).then(l=>l(e,r))}}},Fe=class extends V{createInvoiceCompany(r,e,s){return Y(this.configuration).createInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(r,e,s){return Y(this.configuration).deleteInvoiceCompany(r,e,s).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(r,e){return Y(this.configuration).getInvoiceCompanies(r,e).then(s=>s(this.axios,this.basePath))}getInvoiceCompanyById(r,e,s){return Y(this.configuration).getInvoiceCompanyById(r,e,s).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(r,e,s){return Y(this.configuration).searchInvoiceCompanies(r,e,s).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(r,e,s,t){return Y(this.configuration).updateInvoiceCompany(r,e,s,t).then(n=>n(this.axios,this.basePath))}},_t=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}}}},te=function(a){let r=_t(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)}}},oo=function(a,r,e){let s=te(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))}}},_e=class extends V{kdsGetOrders(r,e,s,t,n,o,i,l,u,d,A,x){return te(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 te(this.configuration).kdsGetProfiles(r,e).then(s=>s(this.axios,this.basePath))}kdsMarkOrderReady(r,e){return te(this.configuration).kdsMarkOrderReady(r,e).then(s=>s(this.axios,this.basePath))}kdsRevertOrder(r,e){return te(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}}}},J=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)}}},ao=function(a,r,e){let s=J(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 J(this.configuration).getKioskOrder(r,e,s).then(t=>t(this.axios,this.basePath))}getOrderStatus(r,e,s){return J(this.configuration).getOrderStatus(r,e,s).then(t=>t(this.axios,this.basePath))}recoverOrder(r,e,s){return J(this.configuration).recoverOrder(r,e,s).then(t=>t(this.axios,this.basePath))}syncKioskOrder(r,e){return J(this.configuration).syncKioskOrder(r,e).then(s=>s(this.axios,this.basePath))}validate(r,e,s){return J(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}}}},L=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)}}},io=function(a,r,e){let s=L(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 L(this.configuration).activateKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}claimKioskOffer(r,e){return L(this.configuration).claimKioskOffer(r,e).then(s=>s(this.axios,this.basePath))}createLoyaltyUser(r,e,s){return L(this.configuration).createLoyaltyUser(r,e,s).then(t=>t(this.axios,this.basePath))}getAdminTransactions(r,e,s,t){return L(this.configuration).getAdminTransactions(r,e,s,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(r,e){return L(this.configuration).getLoyaltyInfo(r,e).then(s=>s(this.axios,this.basePath))}getUserById(r,e,s){return L(this.configuration).getUserById(r,e,s).then(t=>t(this.axios,this.basePath))}getUserPerks(r,e,s){return L(this.configuration).getUserPerks(r,e,s).then(t=>t(this.axios,this.basePath))}getUserWallet(r,e,s){return L(this.configuration).getUserWallet(r,e,s).then(t=>t(this.axios,this.basePath))}resolvePerks(r,e){return L(this.configuration).resolvePerks(r,e).then(s=>s(this.axios,this.basePath))}searchUser(r,e,s,t,n){return L(this.configuration).searchUser(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(r,e,s){return L(this.configuration).updatePoints(r,e,s).then(t=>t(this.axios,this.basePath))}validateWallet(r,e,s,t){return L(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}}}},z=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)}}},lo=function(a,r,e){let s=z(a);return{editBusinessProduct(t,n,o){return s.editBusinessProduct(t,n,o).then(i=>i(e,r))},editBusinessProductV2(t,n,o){return s.editBusinessProductV2(t,n,o).then(i=>i(e,r))},getBusinessExtras(t,n){return s.getBusinessExtras(t,n).then(o=>o(e,r))},getProductsByCategoriesV2(t,n,o){return s.getProductsByCategoriesV2(t,n,o).then(i=>i(e,r))},getProductsByCategoriesV3(t,n,o){return s.getProductsByCategoriesV3(t,n,o).then(i=>i(e,r))},resetProductEod(t,n){return s.resetProductEod(t,n).then(o=>o(e,r))}}},Ge=class extends V{editBusinessProduct(r,e,s){return z(this.configuration).editBusinessProduct(r,e,s).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(r,e,s){return z(this.configuration).editBusinessProductV2(r,e,s).then(t=>t(this.axios,this.basePath))}getBusinessExtras(r,e){return z(this.configuration).getBusinessExtras(r,e).then(s=>s(this.axios,this.basePath))}getProductsByCategoriesV2(r,e,s){return z(this.configuration).getProductsByCategoriesV2(r,e,s).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(r,e,s){return z(this.configuration).getProductsByCategoriesV3(r,e,s).then(t=>t(this.axios,this.basePath))}resetProductEod(r,e){return z(this.configuration).resetProductEod(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},uo=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}}}},se=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)}}},co=function(a,r,e){let s=se(a);return{createMunchiGiftCard(t,n){return s.createMunchiGiftCard(t,n).then(o=>o(e,r))},getMunchiGiftCardData(t,n){return s.getMunchiGiftCardData(t,n).then(o=>o(e,r))},redeemMunchiGiftCard(t,n){return s.redeemMunchiGiftCard(t,n).then(o=>o(e,r))},validateMunchiGiftCard(t,n){return s.validateMunchiGiftCard(t,n).then(o=>o(e,r))}}},Ke=class extends V{createMunchiGiftCard(r,e){return se(this.configuration).createMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}getMunchiGiftCardData(r,e){return se(this.configuration).getMunchiGiftCardData(r,e).then(s=>s(this.axios,this.basePath))}redeemMunchiGiftCard(r,e){return se(this.configuration).redeemMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}validateMunchiGiftCard(r,e){return se(this.configuration).validateMunchiGiftCard(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},po=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)}}},mo=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}},parkPosOrderV5:async(r,e={})=>{c("parkPosOrderV5","parkPosOrderDto",r);let s="/api/v5/orders/pos/park",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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 parkPosOrderV5(e,s){let t=await r.parkPosOrderV5(e,s);return P(t,h,p,a)},async placePosOrderV4(e,s){let t=await r.placePosOrderV4(e,s);return P(t,h,p,a)},async processPosOrderActions(e,s){let t=await r.processPosOrderActions(e,s);return P(t,h,p,a)},async rejectOrder(e,s){let t=await r.rejectOrder(e,s);return P(t,h,p,a)},async syncPosOrder(e,s){let t=await r.syncPosOrder(e,s);return P(t,h,p,a)},async updatePosOrderV2(e,s){let t=await r.updatePosOrderV2(e,s);return P(t,h,p,a)}}},go=function(a,r,e){let s=B(a);return{acceptOrder(t,n){return s.acceptOrder(t,n).then(o=>o(e,r))},confirmPreOrder(t,n){return s.confirmPreOrder(t,n).then(o=>o(e,r))},deletePosParkedOrderV2(t,n){return s.deletePosParkedOrderV2(t,n).then(o=>o(e,r))},deliverOrder(t,n){return s.deliverOrder(t,n).then(o=>o(e,r))},dispatchPosOrderV5(t,n){return s.dispatchPosOrderV5(t,n).then(o=>o(e,r))},getAllOrdersV2(t,n){return s.getAllOrdersV2(t,n).then(o=>o(e,r))},getOrdersV2(t,n,o,i,l){return s.getOrdersV2(t,n,o,i,l).then(u=>u(e,r))},getOrdersV3(t,n,o,i,l){return s.getOrdersV3(t,n,o,i,l).then(u=>u(e,r))},getParkedPosOrderV2(t,n){return s.getParkedPosOrderV2(t,n).then(o=>o(e,r))},getPosOrderById(t,n){return s.getPosOrderById(t,n).then(o=>o(e,r))},markOrderAsReady(t,n){return s.markOrderAsReady(t,n).then(o=>o(e,r))},parkPosOrderV5(t,n){return s.parkPosOrderV5(t,n).then(o=>o(e,r))},placePosOrderV4(t,n){return s.placePosOrderV4(t,n).then(o=>o(e,r))},processPosOrderActions(t,n){return s.processPosOrderActions(t,n).then(o=>o(e,r))},rejectOrder(t,n){return s.rejectOrder(t,n).then(o=>o(e,r))},syncPosOrder(t,n){return s.syncPosOrder(t,n).then(o=>o(e,r))},updatePosOrderV2(t,n){return s.updatePosOrderV2(t,n).then(o=>o(e,r))}}},$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))}parkPosOrderV5(r,e){return B(this.configuration).parkPosOrderV5(r,e).then(s=>s(this.axios,this.basePath))}placePosOrderV4(r,e){return B(this.configuration).placePosOrderV4(r,e).then(s=>s(this.axios,this.basePath))}processPosOrderActions(r,e){return B(this.configuration).processPosOrderActions(r,e).then(s=>s(this.axios,this.basePath))}rejectOrder(r,e){return B(this.configuration).rejectOrder(r,e).then(s=>s(this.axios,this.basePath))}syncPosOrder(r,e){return B(this.configuration).syncPosOrder(r,e).then(s=>s(this.axios,this.basePath))}updatePosOrderV2(r,e){return B(this.configuration).updatePosOrderV2(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},yo=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}},payTerminalLockSet:async(r,e={})=>{c("payTerminalLockSet","setPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",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}},payTerminalLockStatus:async(r,e={})=>{c("payTerminalLockStatus","payTerminalLockStatusBodyDto",r);let s="/api/v1/pay-terminal/lock/status",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}},payTerminalLockSync:async(r,e={})=>{c("payTerminalLockSync","syncPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/sync",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}},payTerminalLockVerify:async(r,e={})=>{c("payTerminalLockVerify","verifyPayTerminalLockBodyDto",r);let s="/api/v1/pay-terminal/lock/verify",t=new URL(s,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",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}}}},W=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 payTerminalLockSet(e,s){let t=await r.payTerminalLockSet(e,s);return P(t,h,p,a)},async payTerminalLockStatus(e,s){let t=await r.payTerminalLockStatus(e,s);return P(t,h,p,a)},async payTerminalLockSync(e,s){let t=await r.payTerminalLockSync(e,s);return P(t,h,p,a)},async payTerminalLockVerify(e,s){let t=await r.payTerminalLockVerify(e,s);return P(t,h,p,a)},async payTerminalPair(e,s){let t=await r.payTerminalPair(e,s);return P(t,h,p,a)},async 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)}}},Po=function(a,r,e){let s=W(a);return{payTerminalInit(t,n){return s.payTerminalInit(t,n).then(o=>o(e,r))},payTerminalLockSet(t,n){return s.payTerminalLockSet(t,n).then(o=>o(e,r))},payTerminalLockStatus(t,n){return s.payTerminalLockStatus(t,n).then(o=>o(e,r))},payTerminalLockSync(t,n){return s.payTerminalLockSync(t,n).then(o=>o(e,r))},payTerminalLockVerify(t,n){return s.payTerminalLockVerify(t,n).then(o=>o(e,r))},payTerminalPair(t,n){return s.payTerminalPair(t,n).then(o=>o(e,r))},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 W(this.configuration).payTerminalInit(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSet(r,e){return W(this.configuration).payTerminalLockSet(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockStatus(r,e){return W(this.configuration).payTerminalLockStatus(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockSync(r,e){return W(this.configuration).payTerminalLockSync(r,e).then(s=>s(this.axios,this.basePath))}payTerminalLockVerify(r,e){return W(this.configuration).payTerminalLockVerify(r,e).then(s=>s(this.axios,this.basePath))}payTerminalPair(r,e){return W(this.configuration).payTerminalPair(r,e).then(s=>s(this.axios,this.basePath))}payTerminalSessionToken(r,e){return W(this.configuration).payTerminalSessionToken(r,e).then(s=>s(this.axios,this.basePath))}payTerminalUnpair(r,e){return W(this.configuration).payTerminalUnpair(r,e).then(s=>s(this.axios,this.basePath))}},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)}}},ho=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}}}},K=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)}}},Ao=function(a,r,e){let s=K(a);return{createPaymentMethod(t,n,o,i){return s.createPaymentMethod(t,n,o,i).then(l=>l(e,r))},deletePaymentMethodOption(t,n,o,i){return s.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,r))},getCatalog(t,n,o,i){return s.getCatalog(t,n,o,i).then(l=>l(e,r))},getGlobalCatalog(t,n){return s.getGlobalCatalog(t,n).then(o=>o(e,r))},getPaymentMethods(t,n,o,i){return s.getPaymentMethods(t,n,o,i).then(l=>l(e,r))},getTypes(t){return s.getTypes(t).then(n=>n(e,r))},reorder(t,n,o,i){return s.reorder(t,n,o,i).then(l=>l(e,r))},updatePaymentMethodOption(t,n,o,i,l){return s.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,r))}}},Xe=class extends V{createPaymentMethod(r,e,s,t){return K(this.configuration).createPaymentMethod(r,e,s,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(r,e,s,t){return K(this.configuration).deletePaymentMethodOption(r,e,s,t).then(n=>n(this.axios,this.basePath))}getCatalog(r,e,s,t){return K(this.configuration).getCatalog(r,e,s,t).then(n=>n(this.axios,this.basePath))}getGlobalCatalog(r,e){return K(this.configuration).getGlobalCatalog(r,e).then(s=>s(this.axios,this.basePath))}getPaymentMethods(r,e,s,t){return K(this.configuration).getPaymentMethods(r,e,s,t).then(n=>n(this.axios,this.basePath))}getTypes(r){return K(this.configuration).getTypes(r).then(e=>e(this.axios,this.basePath))}reorder(r,e,s,t){return K(this.configuration).reorder(r,e,s,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(r,e,s,t,n){return K(this.configuration).updatePaymentMethodOption(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}},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)}}},bo=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}}}},F=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)}}},xo=function(a,r,e){let s=F(a);return{deleteCategoryPolicy(t,n,o){return s.deleteCategoryPolicy(t,n,o).then(i=>i(e,r))},deletePrinter(t,n,o){return s.deletePrinter(t,n,o).then(i=>i(e,r))},deletePrinterByAddress(t,n,o){return s.deletePrinterByAddress(t,n,o).then(i=>i(e,r))},deleteProductPolicy(t,n,o){return s.deleteProductPolicy(t,n,o).then(i=>i(e,r))},listCategoryPolicies(t,n){return s.listCategoryPolicies(t,n).then(o=>o(e,r))},listPrinters(t,n){return s.listPrinters(t,n).then(o=>o(e,r))},listProductPolicies(t,n){return s.listProductPolicies(t,n).then(o=>o(e,r))},upsertCategoryPolicy(t,n){return s.upsertCategoryPolicy(t,n).then(o=>o(e,r))},upsertPrinter(t,n){return s.upsertPrinter(t,n).then(o=>o(e,r))},upsertProductPolicy(t,n){return s.upsertProductPolicy(t,n).then(o=>o(e,r))}}},et=class extends V{deleteCategoryPolicy(r,e,s){return F(this.configuration).deleteCategoryPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinter(r,e,s){return F(this.configuration).deletePrinter(r,e,s).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(r,e,s){return F(this.configuration).deletePrinterByAddress(r,e,s).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(r,e,s){return F(this.configuration).deleteProductPolicy(r,e,s).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(r,e){return F(this.configuration).listCategoryPolicies(r,e).then(s=>s(this.axios,this.basePath))}listPrinters(r,e){return F(this.configuration).listPrinters(r,e).then(s=>s(this.axios,this.basePath))}listProductPolicies(r,e){return F(this.configuration).listProductPolicies(r,e).then(s=>s(this.axios,this.basePath))}upsertCategoryPolicy(r,e){return F(this.configuration).upsertCategoryPolicy(r,e).then(s=>s(this.axios,this.basePath))}upsertPrinter(r,e){return F(this.configuration).upsertPrinter(r,e).then(s=>s(this.axios,this.basePath))}upsertProductPolicy(r,e){return F(this.configuration).upsertProductPolicy(r,e).then(s=>s(this.axios,this.basePath))}},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}}}},re=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)}}},fo=function(a,r,e){let s=re(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 re(this.configuration).generateProductSkuV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}getChannelInventoryV2(r,e,s,t){return re(this.configuration).getChannelInventoryV2(r,e,s,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(r,e,s,t,n){return re(this.configuration).updateChannelInventoryV2(r,e,s,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(r,e,s,t,n){return re(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}}}},_=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)}}},Ro=function(a,r,e){let s=_(a);return{createOnboardingSession(t,n,o){return s.createOnboardingSession(t,n,o).then(i=>i(e,r))},disconnectOnboarding(t,n,o){return s.disconnectOnboarding(t,n,o).then(i=>i(e,r))},getMenuIntegrations(t,n){return s.getMenuIntegrations(t,n).then(o=>o(e,r))},getOnboardingStatus(t,n,o){return s.getOnboardingStatus(t,n,o).then(i=>i(e,r))},getSupportedChannels(t,n){return s.getSupportedChannels(t,n).then(o=>o(e,r))},listOnboardingStores(t,n,o){return s.listOnboardingStores(t,n,o).then(i=>i(e,r))},provisionOnboardingStore(t,n,o,i){return s.provisionOnboardingStore(t,n,o,i).then(l=>l(e,r))},registerCredential(t,n){return s.registerCredential(t,n).then(o=>o(e,r))},registerProvider(t,n){return s.registerProvider(t,n).then(o=>o(e,r))},updateProviderSettings(t,n,o){return s.updateProviderSettings(t,n,o).then(i=>i(e,r))}}},st=class extends V{createOnboardingSession(r,e,s){return _(this.configuration).createOnboardingSession(r,e,s).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(r,e,s){return _(this.configuration).disconnectOnboarding(r,e,s).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(r,e){return _(this.configuration).getMenuIntegrations(r,e).then(s=>s(this.axios,this.basePath))}getOnboardingStatus(r,e,s){return _(this.configuration).getOnboardingStatus(r,e,s).then(t=>t(this.axios,this.basePath))}getSupportedChannels(r,e){return _(this.configuration).getSupportedChannels(r,e).then(s=>s(this.axios,this.basePath))}listOnboardingStores(r,e,s){return _(this.configuration).listOnboardingStores(r,e,s).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(r,e,s,t){return _(this.configuration).provisionOnboardingStore(r,e,s,t).then(n=>n(this.axios,this.basePath))}registerCredential(r,e){return _(this.configuration).registerCredential(r,e).then(s=>s(this.axios,this.basePath))}registerProvider(r,e){return _(this.configuration).registerProvider(r,e).then(s=>s(this.axios,this.basePath))}updateProviderSettings(r,e,s){return _(this.configuration).updateProviderSettings(r,e,s).then(t=>t(this.axios,this.basePath))}},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)}}},Co=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}}}},ne=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)}}},Do=function(a,r,e){let s=ne(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 ne(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 ne(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 ne(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 ne(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)}}},Oo=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}}}},oe=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)}}},Vo=function(a,r,e){let s=oe(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 oe(this.configuration).clockIn(r,e,s).then(t=>t(this.axios,this.basePath))}clockOut(r,e,s){return oe(this.configuration).clockOut(r,e,s).then(t=>t(this.axios,this.basePath))}getTodayShift(r,e,s){return oe(this.configuration).getTodayShift(r,e,s).then(t=>t(this.axios,this.basePath))}unlock(r,e,s){return oe(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)}}},So=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}}}},ae=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)}}},Io=function(a,r,e){let s=ae(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 ae(this.configuration).connectTerminal(r,e).then(s=>s(this.axios,this.basePath))}disconnectTerminal(r){return ae(this.configuration).disconnectTerminal(r).then(e=>e(this.axios,this.basePath))}discoverTerminal(r,e){return ae(this.configuration).discoverTerminal(r,e).then(s=>s(this.axios,this.basePath))}getTerminalStatus(r,e,s,t){return ae(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)}}},vo=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)}}},To=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.timeSpan=n),o!==void 0&&(C.start=o),i!==void 0&&(C.end=i),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},refundVivaPayment:async(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}}}},ie=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)}}},qo=function(a,r,e){let s=ie(a);return{createVivaAppToAppPayment(t,n){return s.createVivaAppToAppPayment(t,n).then(o=>o(e,r))},getVivaSession(t,n){return s.getVivaSession(t,n).then(o=>o(e,r))},listVivaSessions(t,n,o,i,l,u,d,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 ie(this.configuration).createVivaAppToAppPayment(r,e).then(s=>s(this.axios,this.basePath))}getVivaSession(r,e){return ie(this.configuration).getVivaSession(r,e).then(s=>s(this.axios,this.basePath))}listVivaSessions(r,e,s,t,n,o,i,l){return ie(this.configuration).listVivaSessions(r,e,s,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(r,e){return ie(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)}}},Uo=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)}}},Eo=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}}}},H=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)}}},Bo=function(a,r,e){let s=H(a);return{createPaymentRequest(t,n,o){return s.createPaymentRequest(t,n,o).then(i=>i(e,r))},createRefundRequest(t,n,o){return s.createRefundRequest(t,n,o).then(i=>i(e,r))},getPaymentResult(t,n){return s.getPaymentResult(t,n).then(o=>o(e,r))},getTerminalAuthContext(t,n,o){return s.getTerminalAuthContext(t,n,o).then(i=>i(e,r))},getTerminalContext(t,n,o){return s.getTerminalContext(t,n,o).then(i=>i(e,r))},getTerminalState(t,n){return s.getTerminalState(t,n).then(o=>o(e,r))},handleCallback(t){return s.handleCallback(t).then(n=>n(e,r))}}},gt=class extends V{createPaymentRequest(r,e,s){return H(this.configuration).createPaymentRequest(r,e,s).then(t=>t(this.axios,this.basePath))}createRefundRequest(r,e,s){return H(this.configuration).createRefundRequest(r,e,s).then(t=>t(this.axios,this.basePath))}getPaymentResult(r,e){return H(this.configuration).getPaymentResult(r,e).then(s=>s(this.axios,this.basePath))}getTerminalAuthContext(r,e,s){return H(this.configuration).getTerminalAuthContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalContext(r,e,s){return H(this.configuration).getTerminalContext(r,e,s).then(t=>t(this.axios,this.basePath))}getTerminalState(r,e){return H(this.configuration).getTerminalState(r,e).then(s=>s(this.axios,this.basePath))}handleCallback(r){return H(this.configuration).handleCallback(r).then(e=>e(this.axios,this.basePath))}};var 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={[le.Eur]:2,[le.Aed]:2,[le.Usd]:2,[le.Gbp]:2,BHD:3,JPY:0},No={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)]:[]}),Wo=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}},Ko=(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)},Ho=(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.114";export{Us as ABLYEVENT,De as AblyApi,Dt as AblyApiAxiosParamCreator,Gn as AblyApiFactory,Ae as AblyApiFp,Es as ActionEnum,Oe as ActionPasscodesApi,Ot as ActionPasscodesApiAxiosParamCreator,Wn as ActionPasscodesApiFactory,ce as ActionPasscodesApiFp,Ms as ActionsEnum,Ve as AuthApi,Vt as AuthApiAxiosParamCreator,Kn as AuthApiFactory,X as AuthApiFp,ws as AutonomousVehicleType,Se as BusinessApi,St as BusinessApiAxiosParamCreator,Hn as BusinessApiFactory,T as BusinessApiFp,Ls as BusinessBackgroundType,_s as BusinessEventAction,Ns as BusinessEventType,js as BusinessPaymentIntegrationType,Ie as BusinessProviderPolicyApi,It as BusinessProviderPolicyApiAxiosParamCreator,Qn as BusinessProviderPolicyApiFactory,yt as BusinessProviderPolicyApiFp,ve as BusinessScheduleApi,vt as BusinessScheduleApiAxiosParamCreator,$n as BusinessScheduleApiFactory,Pt as BusinessScheduleApiFp,Gs as BusinessStatusEnum,Ws as CashLogReason,Ks as CashLogType,Te as CashManagementApi,Tt as CashManagementApiAxiosParamCreator,Yn as CashManagementApiFactory,$ as CashManagementApiFp,Hs as CashSessionDtoEnum,Qs as CashSessionStatus,$s as CdsSessionRole,Ys as ChannelEnum,qe as ChannelMenuApi,qt as ChannelMenuApiAxiosParamCreator,zn as ChannelMenuApiFactory,de as ChannelMenuApiFp,zs as ChargeStatusEnum,Js as CheckoutModelEnum,Xs as ConditionType,Ue as ConfigManagementApi,Ut as ConfigManagementApiAxiosParamCreator,Jn as ConfigManagementApiFactory,k as ConfigManagementApiFp,xt as Configuration,Zs as ConsumptionType,Ee as CoursesApi,Et as CoursesApiAxiosParamCreator,Xn as CoursesApiFactory,be as CoursesApiFp,le as CurrencyCode,No as CurrencyRegistry,er as DayOfWeek,tr as DeliveryStatus,sr as DeliveryType,rr as DeviceType,nr as DiscountScope,or as DiscountScopeType,ar as DiscountSourceType,ir as DiscountType,mn as DiscountTypeEnum,Be as DisplayApi,Bt as DisplayApiAxiosParamCreator,Zn as DisplayApiFactory,Z as DisplayApiFp,Me as EmployeesApi,Mt as EmployeesApiAxiosParamCreator,eo as EmployeesApiFactory,ht as EmployeesApiFp,lr as EntityType,Bs as EntityTypeEnum,ks as EventTypeEnum,_n as EventTypeIdEnum,ur as FeeType,ke as FloorPlanApi,kt as FloorPlanApiAxiosParamCreator,to as FloorPlanApiFactory,w as FloorPlanApiFp,we as GiftcardApi,wt as GiftcardApiAxiosParamCreator,so as GiftcardApiFactory,xe as GiftcardApiFp,Le as HistoryApi,Lt as HistoryApiAxiosParamCreator,ro as HistoryApiFactory,ee as HistoryApiFp,cr as IntegrationType,Fe as InvoiceCompaniesApi,Ft as InvoiceCompaniesApiAxiosParamCreator,no as InvoiceCompaniesApiFactory,Y as InvoiceCompaniesApiFp,_e as KDSApi,_t as KDSApiAxiosParamCreator,oo as KDSApiFactory,te as KDSApiFp,dr as KDSEVENTNAME,pr as KioskEventType,mr as KioskLayout,Ne as KiosksApi,Nt as KiosksApiAxiosParamCreator,ao as KiosksApiFactory,J as KiosksApiFp,gr as KitchenItemStatus,yr as KitchenStatus,Pr as LocatorType,hr as LoyaltyActionKey,je as LoyaltyIntegerationsApi,jt as LoyaltyIntegerationsApiAxiosParamCreator,io as LoyaltyIntegerationsApiFactory,L as LoyaltyIntegerationsApiFp,bs as MUNCHI_CORE_VERSION,Ge as MenuApi,Gt as MenuApiAxiosParamCreator,lo as MenuApiFactory,z as MenuApiFp,Fs as MenuTypeEnum,We as MerchantsApi,Wt as MerchantsApiAxiosParamCreator,uo as MerchantsApiFactory,pe as MerchantsApiFp,Ke as MunchiGiftCardApi,Kt as MunchiGiftCardApiAxiosParamCreator,co as MunchiGiftCardApiFactory,se as MunchiGiftCardApiFp,Mn as NameEnum,Ar as NetsRevertMethod,He as NotificationApi,Ht as NotificationApiAxiosParamCreator,po as NotificationApiFactory,fe as NotificationApiFp,br as OperatingMode,En as OperatingModeEnum,xr as OrderFormat,Qe as OrderInternalApi,Qt as OrderInternalApiAxiosParamCreator,mo as OrderInternalApiFactory,At as OrderInternalApiFp,fr as OrderMode,Rr as OrderRefundStatus,Cr as OrderSource,Dr as OrderStatus,Or as OrderStatusEnum,Vr as OrderType,Sr as OrderTypePOS,$e as OrdersApi,$t as OrdersApiAxiosParamCreator,go as OrdersApiFactory,B as OrdersApiFp,Ye as POSSessionApi,Yt as POSSessionApiAxiosParamCreator,yo as POSSessionApiFactory,Re as POSSessionApiFp,ze as PayTerminalApi,zt as PayTerminalApiAxiosParamCreator,Po as PayTerminalApiFactory,W as PayTerminalApiFp,Ir as PayTerminalSessionRole,Je as PaymentApi,Jt as PaymentApiAxiosParamCreator,ho as PaymentApiFactory,j as PaymentApiFp,vr as PaymentCheckoutFlow,Tr as PaymentEventType,qr as PaymentFailureCode,Ur as PaymentMethod,Xe as PaymentMethodsApi,Xt as PaymentMethodsApiAxiosParamCreator,Ao as PaymentMethodsApiFactory,K as PaymentMethodsApiFp,Er as PaymentProvider,Br as PaymentProviderEnum,Mr as PaymentReportingBucket,Ze as PaymentSessionApi,Zt as PaymentSessionApiAxiosParamCreator,bo as PaymentSessionApiFactory,E as PaymentSessionApiFp,kr as PaymentSessionPurpose,wr as PaymentSessionStatus,Lr as PaymentStatus,Fr as PaymentTypeEnum,_r as PosDiscountTargetType,Nr as PosDiscountType,jr as PosPaymentStatus,Gr as PosPaymentType,Wr as PosPermission,Kr as PreorderStatus,Hr as PriceType,Qr as PrinterConnectionType,$r as PrinterModelType,Yr as PrinterTypeEnum,et as PrintersApi,es as PrintersApiAxiosParamCreator,xo as PrintersApiFactory,F as PrintersApiFp,tt as ProductApi,ts as ProductApiAxiosParamCreator,fo as ProductApiFactory,re as ProductApiFp,zr as ProductAvailability,Jr as ProductDetailLayout,Bn as ProductDetailLayoutEnum,Xr as PromotionDiscountType,st as ProviderApi,ss as ProviderApiAxiosParamCreator,Ro as ProviderApiFactory,_ as ProviderApiFp,Zr as ProviderEnum,en as PubSubAction,tn as PubSubTarget,sn as RecordManualStatus,rn as RefundFailureReasonKey,nn as RefundMode,on as RefundOverallStatus,an as RefundStatusEnum,ln as RefundStepStatus,rt as RefundsApi,rs as RefundsApiAxiosParamCreator,Co as RefundsApiFactory,M as RefundsApiFp,nt as ReportApi,ns as ReportApiAxiosParamCreator,Do as ReportApiFactory,ne as ReportApiFp,un as ReportLanguage,cn as ReservationSource,dn as ReservationStatus,ot as ReservationsApi,os as ReservationsApiAxiosParamCreator,Oo as ReservationsApiFactory,N as ReservationsApiFp,yn as SYNCKEY,Pn as ScheduleType,gn as ScopeEnum,Un as SelectedPaymentProviderEnum,at as ShiftTrackingApi,as as ShiftTrackingApiAxiosParamCreator,Vo as ShiftTrackingApiFactory,oe as ShiftTrackingApiFp,hn as SimplePaymentStatus,An as SourceType,bn as StaffActivityActionType,xn as StationType,it as StationsApi,is as StationsApiAxiosParamCreator,So as StationsApiFactory,me as StationsApiFp,fn as Status,Nn as StatusEnum,Rn as SystemProfileType,Cn as TableGroupType,Dn as TableShape,On as TableStatus,lt as TerminalApi,ls as TerminalApiAxiosParamCreator,Io as TerminalApiFactory,ae as TerminalApiFp,Vn as TerminalConnectionType,Sn as TimeSpan,In as TransactionEventType,vn as TransactionType,Tn as Type,qn as UpsellMode,ut as UserApi,us as UserApiAxiosParamCreator,vo as UserApiFactory,ge as UserApiFp,ct as VendureSellerApi,cs as VendureSellerApiAxiosParamCreator,To as VendureSellerApiFactory,bt as VendureSellerApiFp,dt as VivaApi,ds as VivaApiAxiosParamCreator,qo as VivaApiFactory,ie as VivaApiFp,kn as VivaAppToAppPaymentMethod,wn as VivaCurrencyCode,Ln as VivaErrorId,Fn as VivaEventId,pn as WalletStatusEnum,pt as WebhookApi,ps as WebhookApiAxiosParamCreator,Uo as WebhookApiFactory,U as WebhookApiFp,mt as WorldlineApi,ms as WorldlineApiAxiosParamCreator,Eo as WorldlineApiFactory,ye as WorldlineApiFp,gt as WorldlineInternalApi,gs as WorldlineInternalApiAxiosParamCreator,Bo as WorldlineInternalApiFactory,H as WorldlineInternalApiFp,jn as WorldlineRevertMethod,Wo as buildPosCategoryIndex,Rt as collectEnabledSubcategoryIdsDepthFirst,ft as collectSubcategoryIdsDepthFirst,Ko as getCategoryProductsIncludingSubcategories,Ho as getSubcategoriesForCategory,As as mapProductIdsToProducts};
|