@munchi_oy/core 1.9.101 → 1.9.103
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 +179 -161
- 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 +192 -166
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var xs=Object.create;var Pe=Object.defineProperty;var fs=Object.getOwnPropertyDescriptor;var Rs=Object.getOwnPropertyNames;var Cs=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty;var Os=(a,s)=>{for(var e in s)Pe(a,e,{get:s[e],enumerable:!0})},Ot=(a,s,e,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let t of Rs(s))!Ds.call(a,t)&&t!==e&&Pe(a,t,{get:()=>s[t],enumerable:!(r=fs(s,t))||r.enumerable});return a};var Ce=(a,s,e)=>(e=a!=null?xs(Cs(a)):{},Ot(s||!a||!a.__esModule?Pe(e,"default",{value:a,enumerable:!0}):e,a)),Vs=a=>Ot(Pe({},"__esModule",{value:!0}),a);var ko={};Os(ko,{ABLYEVENT:()=>Ss,AblyApi:()=>Oe,AblyApiAxiosParamCreator:()=>St,AblyApiFactory:()=>wn,AblyApiFp:()=>Ae,ActionEnum:()=>Is,ActionPasscodesApi:()=>Ve,ActionPasscodesApiAxiosParamCreator:()=>It,ActionPasscodesApiFactory:()=>Fn,ActionPasscodesApiFp:()=>le,ActionsEnum:()=>Ts,AuthApi:()=>Se,AuthApiAxiosParamCreator:()=>vt,AuthApiFactory:()=>_n,AuthApiFp:()=>J,AutonomousVehicleType:()=>Us,BusinessApi:()=>Ie,BusinessApiAxiosParamCreator:()=>Tt,BusinessApiFactory:()=>Ln,BusinessApiFp:()=>T,BusinessBackgroundType:()=>Es,BusinessEventAction:()=>Ms,BusinessEventType:()=>ks,BusinessPaymentIntegrationType:()=>ws,BusinessProviderPolicyApi:()=>ve,BusinessProviderPolicyApiAxiosParamCreator:()=>qt,BusinessProviderPolicyApiFactory:()=>Nn,BusinessProviderPolicyApiFp:()=>Pt,BusinessScheduleApi:()=>Te,BusinessScheduleApiAxiosParamCreator:()=>Ut,BusinessScheduleApiFactory:()=>jn,BusinessScheduleApiFp:()=>ht,BusinessStatusEnum:()=>Fs,CashLogReason:()=>_s,CashLogType:()=>Ls,CashManagementApi:()=>qe,CashManagementApiAxiosParamCreator:()=>Et,CashManagementApiFactory:()=>Gn,CashManagementApiFp:()=>H,CashSessionDtoEnum:()=>Ns,CashSessionStatus:()=>js,ChannelEnum:()=>Gs,ChannelMenuApi:()=>Ue,ChannelMenuApiAxiosParamCreator:()=>Bt,ChannelMenuApiFactory:()=>Wn,ChannelMenuApiFp:()=>ue,ChargeStatusEnum:()=>Ws,CheckoutModelEnum:()=>Ks,ConditionType:()=>Hs,ConfigManagementApi:()=>Ee,ConfigManagementApiAxiosParamCreator:()=>Mt,ConfigManagementApiFactory:()=>Kn,ConfigManagementApiFp:()=>k,Configuration:()=>ft,ConsumptionType:()=>Qs,CoursesApi:()=>Be,CoursesApiAxiosParamCreator:()=>kt,CoursesApiFactory:()=>Hn,CoursesApiFp:()=>be,CurrencyCode:()=>ie,CurrencyRegistry:()=>To,DayOfWeek:()=>$s,DeliveryStatus:()=>Ys,DeliveryType:()=>zs,DeviceType:()=>Js,DiscountScope:()=>Xs,DiscountScopeType:()=>Zs,DiscountSourceType:()=>er,DiscountType:()=>tr,DiscountTypeEnum:()=>an,DisplayApi:()=>Me,DisplayApiAxiosParamCreator:()=>wt,DisplayApiFactory:()=>Qn,DisplayApiFp:()=>ce,EmployeesApi:()=>ke,EmployeesApiAxiosParamCreator:()=>Ft,EmployeesApiFactory:()=>$n,EmployeesApiFp:()=>At,EntityType:()=>sr,EntityTypeEnum:()=>vs,EventTypeEnum:()=>qs,EventTypeIdEnum:()=>Bn,FeeType:()=>rr,FloorPlanApi:()=>we,FloorPlanApiAxiosParamCreator:()=>_t,FloorPlanApiFactory:()=>Yn,FloorPlanApiFp:()=>w,GiftcardApi:()=>Fe,GiftcardApiAxiosParamCreator:()=>Lt,GiftcardApiFactory:()=>zn,GiftcardApiFp:()=>xe,HistoryApi:()=>_e,HistoryApiAxiosParamCreator:()=>Nt,HistoryApiFactory:()=>Jn,HistoryApiFp:()=>X,IntegrationType:()=>nr,InvoiceCompaniesApi:()=>Le,InvoiceCompaniesApiAxiosParamCreator:()=>jt,InvoiceCompaniesApiFactory:()=>Xn,InvoiceCompaniesApiFp:()=>Q,KDSApi:()=>Ne,KDSApiAxiosParamCreator:()=>Gt,KDSApiFactory:()=>Zn,KDSApiFp:()=>Z,KDSEVENTNAME:()=>or,KioskEventType:()=>ar,KioskLayout:()=>ir,KiosksApi:()=>je,KiosksApiAxiosParamCreator:()=>Wt,KiosksApiFactory:()=>eo,KiosksApiFp:()=>z,KitchenItemStatus:()=>lr,KitchenStatus:()=>ur,LocatorType:()=>cr,LoyaltyActionKey:()=>dr,LoyaltyIntegerationsApi:()=>Ge,LoyaltyIntegerationsApiAxiosParamCreator:()=>Kt,LoyaltyIntegerationsApiFactory:()=>to,LoyaltyIntegerationsApiFp:()=>F,MUNCHI_CORE_VERSION:()=>bs,MenuApi:()=>We,MenuApiAxiosParamCreator:()=>Ht,MenuApiFactory:()=>so,MenuApiFp:()=>$,MenuTypeEnum:()=>Bs,MerchantsApi:()=>Ke,MerchantsApiAxiosParamCreator:()=>Qt,MerchantsApiFactory:()=>ro,MerchantsApiFp:()=>de,MunchiGiftCardApi:()=>He,MunchiGiftCardApiAxiosParamCreator:()=>$t,MunchiGiftCardApiFactory:()=>no,MunchiGiftCardApiFp:()=>ee,NameEnum:()=>vn,NetsRevertMethod:()=>pr,NotificationApi:()=>Qe,NotificationApiAxiosParamCreator:()=>Yt,NotificationApiFactory:()=>oo,NotificationApiFp:()=>fe,OperatingMode:()=>mr,OperatingModeEnum:()=>Sn,OrderFormat:()=>gr,OrderInternalApi:()=>$e,OrderInternalApiAxiosParamCreator:()=>zt,OrderInternalApiFactory:()=>ao,OrderInternalApiFp:()=>bt,OrderMode:()=>yr,OrderRefundStatus:()=>Pr,OrderSource:()=>hr,OrderStatus:()=>Ar,OrderStatusEnum:()=>br,OrderType:()=>xr,OrderTypePOS:()=>fr,OrdersApi:()=>Ye,OrdersApiAxiosParamCreator:()=>Jt,OrdersApiFactory:()=>io,OrdersApiFp:()=>B,POSSessionApi:()=>ze,POSSessionApiAxiosParamCreator:()=>Xt,POSSessionApiFactory:()=>lo,POSSessionApiFp:()=>Re,PayTerminalApi:()=>Je,PayTerminalApiAxiosParamCreator:()=>Zt,PayTerminalApiFactory:()=>uo,PayTerminalApiFp:()=>te,PayTerminalSessionRole:()=>Rr,PaymentApi:()=>Xe,PaymentApiAxiosParamCreator:()=>es,PaymentApiFactory:()=>co,PaymentApiFp:()=>j,PaymentCheckoutFlow:()=>Cr,PaymentEventType:()=>Dr,PaymentFailureCode:()=>Or,PaymentMethod:()=>Vr,PaymentMethodsApi:()=>Ze,PaymentMethodsApiAxiosParamCreator:()=>ts,PaymentMethodsApiFactory:()=>po,PaymentMethodsApiFp:()=>G,PaymentProvider:()=>Sr,PaymentProviderEnum:()=>Ir,PaymentReportingBucket:()=>vr,PaymentSessionApi:()=>et,PaymentSessionApiAxiosParamCreator:()=>ss,PaymentSessionApiFactory:()=>mo,PaymentSessionApiFp:()=>E,PaymentSessionStatus:()=>Tr,PaymentStatus:()=>qr,PaymentTypeEnum:()=>Ur,PosDiscountTargetType:()=>Er,PosDiscountType:()=>Br,PosPaymentStatus:()=>Mr,PosPaymentType:()=>kr,PosPermission:()=>wr,PreorderStatus:()=>Fr,PriceType:()=>_r,PrinterConnectionType:()=>Lr,PrinterModelType:()=>Nr,PrinterTypeEnum:()=>jr,PrintersApi:()=>tt,PrintersApiAxiosParamCreator:()=>rs,PrintersApiFactory:()=>go,PrintersApiFp:()=>_,ProductApi:()=>st,ProductApiAxiosParamCreator:()=>ns,ProductApiFactory:()=>yo,ProductApiFp:()=>se,ProductAvailability:()=>Gr,ProductDetailLayout:()=>Wr,ProductDetailLayoutEnum:()=>In,PromotionDiscountType:()=>Kr,ProviderApi:()=>rt,ProviderApiAxiosParamCreator:()=>os,ProviderApiFactory:()=>Po,ProviderApiFp:()=>L,ProviderEnum:()=>Hr,PubSubAction:()=>Qr,PubSubTarget:()=>$r,RecordManualStatus:()=>Yr,RefundFailureReasonKey:()=>zr,RefundMode:()=>Jr,RefundOverallStatus:()=>Xr,RefundStatusEnum:()=>Zr,RefundStepStatus:()=>en,RefundsApi:()=>nt,RefundsApiAxiosParamCreator:()=>as,RefundsApiFactory:()=>ho,RefundsApiFp:()=>M,ReportApi:()=>ot,ReportApiAxiosParamCreator:()=>is,ReportApiFactory:()=>Ao,ReportApiFp:()=>re,ReportLanguage:()=>tn,ReservationSource:()=>rn,ReservationStatus:()=>nn,ReservationsApi:()=>at,ReservationsApiAxiosParamCreator:()=>ls,ReservationsApiFactory:()=>bo,ReservationsApiFp:()=>N,RoleEnum:()=>sn,SYNCKEY:()=>un,ScheduleType:()=>cn,ScopeEnum:()=>ln,SelectedPaymentProviderEnum:()=>Vn,ShiftTrackingApi:()=>it,ShiftTrackingApiAxiosParamCreator:()=>us,ShiftTrackingApiFactory:()=>xo,ShiftTrackingApiFp:()=>ne,SimplePaymentStatus:()=>dn,SourceType:()=>pn,StaffActivityActionType:()=>mn,StationType:()=>gn,StationsApi:()=>lt,StationsApiAxiosParamCreator:()=>cs,StationsApiFactory:()=>fo,StationsApiFp:()=>pe,Status:()=>yn,StatusEnum:()=>Mn,SystemProfileType:()=>Pn,TableGroupType:()=>hn,TableShape:()=>An,TableStatus:()=>bn,TerminalApi:()=>ut,TerminalApiAxiosParamCreator:()=>ds,TerminalApiFactory:()=>Ro,TerminalApiFp:()=>oe,TerminalConnectionType:()=>xn,TimeSpan:()=>fn,TransactionEventType:()=>Rn,TransactionType:()=>Cn,Type:()=>Dn,UpsellMode:()=>On,UserApi:()=>ct,UserApiAxiosParamCreator:()=>ps,UserApiFactory:()=>Co,UserApiFp:()=>me,VendureSellerApi:()=>dt,VendureSellerApiAxiosParamCreator:()=>ms,VendureSellerApiFactory:()=>Do,VendureSellerApiFp:()=>xt,VivaApi:()=>pt,VivaApiAxiosParamCreator:()=>gs,VivaApiFactory:()=>Oo,VivaApiFp:()=>ae,VivaAppToAppPaymentMethod:()=>Tn,VivaCurrencyCode:()=>qn,VivaErrorId:()=>Un,VivaEventId:()=>En,WalletStatusEnum:()=>on,WebhookApi:()=>mt,WebhookApiAxiosParamCreator:()=>ys,WebhookApiFactory:()=>Vo,WebhookApiFp:()=>U,WorldlineApi:()=>gt,WorldlineApiAxiosParamCreator:()=>Ps,WorldlineApiFactory:()=>So,WorldlineApiFp:()=>ge,WorldlineInternalApi:()=>yt,WorldlineInternalApiAxiosParamCreator:()=>hs,WorldlineInternalApiFactory:()=>Io,WorldlineInternalApiFp:()=>K,WorldlineRevertMethod:()=>kn,buildPosCategoryIndex:()=>Eo,collectEnabledSubcategoryIdsDepthFirst:()=>Dt,collectSubcategoryIdsDepthFirst:()=>Ct,getCategoryProductsIncludingSubcategories:()=>Bo,getSubcategoriesForCategory:()=>Mo,mapProductIdsToProducts:()=>As});module.exports=Vs(ko);var h=Ce(require("axios"));var Vt=Ce(require("axios")),p="http://localhost".replace(/\/+$/,"");var V=class{constructor(s,e=p,r=Vt.default){this.basePath=e;this.axios=r;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},he=class extends Error{constructor(e,r){super(r);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,s,e){if(e==null)throw new he(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var f=async function(a,s){if(s&&s.accessToken){let e=typeof s.accessToken=="function"?await s.accessToken():await s.accessToken;a.Authorization="Bearer "+e}};function De(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(r=>De(a,r,e)):Object.keys(s).forEach(r=>De(a,s[r],`${e}${e!==""?".":""}${r}`)):a.has(e)?a.append(e,s):a.set(e,s))}var g=function(a,...s){let e=new URLSearchParams(a.search);De(e,s),a.search=e.toString()},b=function(a,s,e){let r=typeof a!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(s.headers["Content-Type"]):r)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,s,e,r){return(t=s,n=e)=>{let o={...a.options,url:(r?.basePath||n)+a.url};return t.request(o)}};var Ss={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},Is={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},vs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ts={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},qs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Us={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Es={Image:"image",Video:"video",Animation:"animation"},Bs={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ms={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ks={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},ws={GiftCard:"GiftCard"},Fs={Online:"ONLINE",Offline:"OFFLINE"},_s={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"},Ls={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ns={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},js={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Gs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Ws={Pending:"pending",Success:"success",Failure:"failure"},Ks={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Hs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Qs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},ie={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},$s={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},Ys={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},zs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Js={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Xs={Item:"ITEM",Cart:"CART"},Zs={Business:"BUSINESS",Owner:"OWNER"},er={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},tr={Percentage:"PERCENTAGE",Fixed:"FIXED"},sr={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},rr={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},nr={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},or={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},ar={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},ir={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},lr={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},ur={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},cr={Table:"table",Indicator:"indicator"},dr={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},pr={Reversal:"REVERSAL",Refund:"REFUND"},mr={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},gr={Open:"OPEN",Instant:"INSTANT"},yr={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Pr={None:"NONE",Partial:"PARTIAL",Full:"FULL"},hr={Platform:"PLATFORM",Pos:"POS"},Ar={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},br={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"},xr={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},fr={DineIn:"dine_in",PickUp:"pick_up"},Rr={Pos:"pos",Terminal:"terminal"},Cr={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},Dr={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},Or={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"},Vr={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"},Sr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Ir={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},vr={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},Tr={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"},qr={Paid:"paid",Pending:"pending"},Ur={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Er={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},Br={Percentage:"percentage",Fixed:"fixed"},Mr={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},kr={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"},Fr={Waiting:"waiting",Confirm:"confirm"},_r={Preset:"PRESET",Open:"OPEN"},Lr={Bluetooth:"bluetooth",Network:"network"},Nr={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},jr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Gr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Wr={Modal:"MODAL",Screen:"SCREEN"},Kr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Hr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Qr={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},$r={Kds:"KDS"},Yr={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},zr={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"},Jr={Full:"FULL",Item:"ITEM"},Xr={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Zr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},en={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},tn={Fi:"fi",En:"en"},sn={Pos:"pos",Display:"display"},rn={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},nn={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},on={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},an={Percentage:"PERCENTAGE",Fixed:"FIXED"},ln={Item:"ITEM",Cart:"CART"},un={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"},cn={Physical:"PHYSICAL"},dn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},pn={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},mn={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"},gn={Kiosk:"KIOSK",Pos:"POS"},yn={Active:"ACTIVE",Inactive:"INACTIVE"},Pn={NoStation:"NO_STATION"},hn={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},An={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},bn={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},xn={Network:"NETWORK"},fn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Rn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Cn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Dn={Instant:"instant",Preorder:"preorder"},On={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Vn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Sn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},In={Modal:"MODAL",Screen:"SCREEN"},vn={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"},Tn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},qn={_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"},Un={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},En={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},Bn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Mn={Claimed:"Claimed",Redeemed:"Redeemed"},kn={Reversal:"REVERSAL",Refund:"REFUND"},St=function(a){return{refreshConfig:async(s={})=>{let e="/api/v1/ably/refresh-config",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},requestSettings:async(s={})=>{let e="/api/v1/ably/request-settings",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},Ae=function(a){let s=St(a);return{async refreshConfig(e){let r=await s.refreshConfig(e);return P(r,h.default,p,a)},async requestSettings(e){let r=await s.requestSettings(e);return P(r,h.default,p,a)}}},wn=function(a,s,e){let r=Ae(a);return{refreshConfig(t){return r.refreshConfig(t).then(n=>n(e,s))},requestSettings(t){return r.requestSettings(t).then(n=>n(e,s))}}},Oe=class extends V{refreshConfig(s){return Ae(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return Ae(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},It=function(a){return{createActionPasscode:async(s,e={})=>{c("createActionPasscode","createActionPasscodeDto",s);let r="/api/v1/action-passcodes",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},deleteActionPasscode:async(s,e={})=>{c("deleteActionPasscode","id",s);let r="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await 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(s,e,r={})=>{c("updateActionPasscode","id",s),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},le=function(a){let s=It(a);return{async createActionPasscode(e,r){let t=await s.createActionPasscode(e,r);return P(t,h.default,p,a)},async deleteActionPasscode(e,r){let t=await s.deleteActionPasscode(e,r);return P(t,h.default,p,a)},async updateActionPasscode(e,r,t){let n=await s.updateActionPasscode(e,r,t);return P(n,h.default,p,a)}}},Fn=function(a,s,e){let r=le(a);return{createActionPasscode(t,n){return r.createActionPasscode(t,n).then(o=>o(e,s))},deleteActionPasscode(t,n){return r.deleteActionPasscode(t,n).then(o=>o(e,s))},updateActionPasscode(t,n,o){return r.updateActionPasscode(t,n,o).then(i=>i(e,s))}}},Ve=class extends V{createActionPasscode(s,e){return le(this.configuration).createActionPasscode(s,e).then(r=>r(this.axios,this.basePath))}deleteActionPasscode(s,e){return le(this.configuration).deleteActionPasscode(s,e).then(r=>r(this.axios,this.basePath))}updateActionPasscode(s,e,r){return le(this.configuration).updateActionPasscode(s,e,r).then(t=>t(this.axios,this.basePath))}},vt=function(a){return{firebaseAuth:async(s={})=>{let e="/api/v1/auth/firebase-login",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},login:async(s,e={})=>{c("login","credentialDto",s);let r="/api/v1/auth/login",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},logout:async(s={})=>{let e="/api/v1/auth/logout",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},refreshToken:async(s,e={})=>{c("refreshToken","refreshTokenDto",s);let r="/api/v1/auth/refresh",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},J=function(a){let s=vt(a);return{async firebaseAuth(e){let r=await s.firebaseAuth(e);return P(r,h.default,p,a)},async login(e,r){let t=await s.login(e,r);return P(t,h.default,p,a)},async logout(e){let r=await s.logout(e);return P(r,h.default,p,a)},async refreshToken(e,r){let t=await s.refreshToken(e,r);return P(t,h.default,p,a)}}},_n=function(a,s,e){let r=J(a);return{firebaseAuth(t){return r.firebaseAuth(t).then(n=>n(e,s))},login(t,n){return r.login(t,n).then(o=>o(e,s))},logout(t){return r.logout(t).then(n=>n(e,s))},refreshToken(t,n){return r.refreshToken(t,n).then(o=>o(e,s))}}},Se=class extends V{firebaseAuth(s){return J(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return J(this.configuration).login(s,e).then(r=>r(this.axios,this.basePath))}logout(s){return J(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return J(this.configuration).refreshToken(s,e).then(r=>r(this.axios,this.basePath))}},Tt=function(a){return{createBusinessPermission:async(s,e,r={})=>{c("createBusinessPermission","businessId",s),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},deleteBusinessPermission:async(s,e,r={})=>{c("deleteBusinessPermission","permissionId",s),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getAdvancedDiscounts:async(s,e={})=>{c("getAdvancedDiscounts","businessId",s);let r="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await 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(s,e,r={})=>{c("getBusinessCategoriesByMenuId","businessId",s),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV2:async(s,e,r={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",s),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV3:async(s,e,r={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",s),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessChannelConfig:async(s,e,r={})=>{c("getBusinessChannelConfig","businessId",s);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessChannelConfigV2:async(s,e,r={})=>{c("getBusinessChannelConfigV2","businessId",s);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfig:async(s,e,r={})=>{c("getBusinessConfig","businessId",s);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigById:async(s,e,r={})=>{c("getBusinessConfigById","businessId",s);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigByIdV2:async(s,e,r={})=>{c("getBusinessConfigByIdV2","businessId",s);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfiguration:async(s,e,r={})=>{c("getBusinessConfiguration","businessId",s);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByType:async(s,e,r={})=>{c("getBusinessMenuByType","businessId",s),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV2:async(s,e,r={})=>{c("getBusinessMenuByTypeV2","businessId",s),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV3:async(s,e,r={})=>{c("getBusinessMenuByTypeV3","businessId",s),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV4:async(s,e,r={})=>{c("getBusinessMenuByTypeV4","businessId",s),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessProviderStatus:async(s,e={})=>{c("getBusinessProviderStatus","businessId",s);let r="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await 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(s,e,r={})=>{c("getBusinessProviderStatusExternal","businessId",s);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessTax:async(s={})=>{let e="/api/v1/business/tax",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await f(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getProvidersSupportedIntegrations:async(s,e={})=>{c("getProvidersSupportedIntegrations","businessIds",s);let r="/api/v1/business/providers/supported-integrations",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),s&&(l.businessIds=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(s,e,r,t={})=>{c("getSingleBusinessProviderStatus","businessId",s),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",r);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(s))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await 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(s,e={})=>{c("getUnifiedDiscounts","businessId",s);let r="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await 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(s,e,r={})=>{c("setBusinessStatus","businessId",s),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},setBusinessStatusSchedule:async(s,e,r={})=>{c("setBusinessStatusSchedule","businessId",s),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},updateBusinessPermission:async(s,e,r,t={})=>{c("updateBusinessPermission","permissionId",s),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",r);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},validateBusiness:async(s,e={})=>{c("validateBusiness","businessId",s);let r="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await 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 s=Tt(a);return{async createBusinessPermission(e,r,t){let n=await s.createBusinessPermission(e,r,t);return P(n,h.default,p,a)},async deleteBusinessPermission(e,r,t){let n=await s.deleteBusinessPermission(e,r,t);return P(n,h.default,p,a)},async getAdvancedDiscounts(e,r){let t=await s.getAdvancedDiscounts(e,r);return P(t,h.default,p,a)},async getBusinessCategoriesByMenuId(e,r,t){let n=await s.getBusinessCategoriesByMenuId(e,r,t);return P(n,h.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,r,t){let n=await s.getBusinessCategoriesByMenuIdV2(e,r,t);return P(n,h.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,r,t){let n=await s.getBusinessCategoriesByMenuIdV3(e,r,t);return P(n,h.default,p,a)},async getBusinessChannelConfig(e,r,t){let n=await s.getBusinessChannelConfig(e,r,t);return P(n,h.default,p,a)},async getBusinessChannelConfigV2(e,r,t){let n=await s.getBusinessChannelConfigV2(e,r,t);return P(n,h.default,p,a)},async getBusinessConfig(e,r,t){let n=await s.getBusinessConfig(e,r,t);return P(n,h.default,p,a)},async getBusinessConfigById(e,r,t){let n=await s.getBusinessConfigById(e,r,t);return P(n,h.default,p,a)},async getBusinessConfigByIdV2(e,r,t){let n=await s.getBusinessConfigByIdV2(e,r,t);return P(n,h.default,p,a)},async getBusinessConfiguration(e,r,t){let n=await s.getBusinessConfiguration(e,r,t);return P(n,h.default,p,a)},async getBusinessMenuByType(e,r,t){let n=await s.getBusinessMenuByType(e,r,t);return P(n,h.default,p,a)},async getBusinessMenuByTypeV2(e,r,t){let n=await s.getBusinessMenuByTypeV2(e,r,t);return P(n,h.default,p,a)},async getBusinessMenuByTypeV3(e,r,t){let n=await s.getBusinessMenuByTypeV3(e,r,t);return P(n,h.default,p,a)},async getBusinessMenuByTypeV4(e,r,t){let n=await s.getBusinessMenuByTypeV4(e,r,t);return P(n,h.default,p,a)},async getBusinessProviderStatus(e,r){let t=await s.getBusinessProviderStatus(e,r);return P(t,h.default,p,a)},async getBusinessProviderStatusExternal(e,r,t){let n=await s.getBusinessProviderStatusExternal(e,r,t);return P(n,h.default,p,a)},async getBusinessTax(e){let r=await s.getBusinessTax(e);return P(r,h.default,p,a)},async getProvidersSupportedIntegrations(e,r){let t=await s.getProvidersSupportedIntegrations(e,r);return P(t,h.default,p,a)},async getSingleBusinessProviderStatus(e,r,t,n){let o=await s.getSingleBusinessProviderStatus(e,r,t,n);return P(o,h.default,p,a)},async getUnifiedDiscounts(e,r){let t=await s.getUnifiedDiscounts(e,r);return P(t,h.default,p,a)},async setBusinessStatus(e,r,t){let n=await s.setBusinessStatus(e,r,t);return P(n,h.default,p,a)},async setBusinessStatusSchedule(e,r,t){let n=await s.setBusinessStatusSchedule(e,r,t);return P(n,h.default,p,a)},async updateBusinessPermission(e,r,t,n){let o=await s.updateBusinessPermission(e,r,t,n);return P(o,h.default,p,a)},async validateBusiness(e,r){let t=await s.validateBusiness(e,r);return P(t,h.default,p,a)}}},Ln=function(a,s,e){let r=T(a);return{createBusinessPermission(t,n,o){return r.createBusinessPermission(t,n,o).then(i=>i(e,s))},deleteBusinessPermission(t,n,o){return r.deleteBusinessPermission(t,n,o).then(i=>i(e,s))},getAdvancedDiscounts(t,n){return r.getAdvancedDiscounts(t,n).then(o=>o(e,s))},getBusinessCategoriesByMenuId(t,n,o){return r.getBusinessCategoriesByMenuId(t,n,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV2(t,n,o){return r.getBusinessCategoriesByMenuIdV2(t,n,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV3(t,n,o){return r.getBusinessCategoriesByMenuIdV3(t,n,o).then(i=>i(e,s))},getBusinessChannelConfig(t,n,o){return r.getBusinessChannelConfig(t,n,o).then(i=>i(e,s))},getBusinessChannelConfigV2(t,n,o){return r.getBusinessChannelConfigV2(t,n,o).then(i=>i(e,s))},getBusinessConfig(t,n,o){return r.getBusinessConfig(t,n,o).then(i=>i(e,s))},getBusinessConfigById(t,n,o){return r.getBusinessConfigById(t,n,o).then(i=>i(e,s))},getBusinessConfigByIdV2(t,n,o){return r.getBusinessConfigByIdV2(t,n,o).then(i=>i(e,s))},getBusinessConfiguration(t,n,o){return r.getBusinessConfiguration(t,n,o).then(i=>i(e,s))},getBusinessMenuByType(t,n,o){return r.getBusinessMenuByType(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV2(t,n,o){return r.getBusinessMenuByTypeV2(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV3(t,n,o){return r.getBusinessMenuByTypeV3(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV4(t,n,o){return r.getBusinessMenuByTypeV4(t,n,o).then(i=>i(e,s))},getBusinessProviderStatus(t,n){return r.getBusinessProviderStatus(t,n).then(o=>o(e,s))},getBusinessProviderStatusExternal(t,n,o){return r.getBusinessProviderStatusExternal(t,n,o).then(i=>i(e,s))},getBusinessTax(t){return r.getBusinessTax(t).then(n=>n(e,s))},getProvidersSupportedIntegrations(t,n){return r.getProvidersSupportedIntegrations(t,n).then(o=>o(e,s))},getSingleBusinessProviderStatus(t,n,o,i){return r.getSingleBusinessProviderStatus(t,n,o,i).then(l=>l(e,s))},getUnifiedDiscounts(t,n){return r.getUnifiedDiscounts(t,n).then(o=>o(e,s))},setBusinessStatus(t,n,o){return r.setBusinessStatus(t,n,o).then(i=>i(e,s))},setBusinessStatusSchedule(t,n,o){return r.setBusinessStatusSchedule(t,n,o).then(i=>i(e,s))},updateBusinessPermission(t,n,o,i){return r.updateBusinessPermission(t,n,o,i).then(l=>l(e,s))},validateBusiness(t,n){return r.validateBusiness(t,n).then(o=>o(e,s))}}},Ie=class extends V{createBusinessPermission(s,e,r){return T(this.configuration).createBusinessPermission(s,e,r).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(s,e,r){return T(this.configuration).deleteBusinessPermission(s,e,r).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(s,e){return T(this.configuration).getAdvancedDiscounts(s,e).then(r=>r(this.axios,this.basePath))}getBusinessCategoriesByMenuId(s,e,r){return T(this.configuration).getBusinessCategoriesByMenuId(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(s,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(s,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV3(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(s,e,r){return T(this.configuration).getBusinessChannelConfig(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(s,e,r){return T(this.configuration).getBusinessChannelConfigV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfig(s,e,r){return T(this.configuration).getBusinessConfig(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(s,e,r){return T(this.configuration).getBusinessConfigById(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(s,e,r){return T(this.configuration).getBusinessConfigByIdV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(s,e,r){return T(this.configuration).getBusinessConfiguration(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(s,e,r){return T(this.configuration).getBusinessMenuByType(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(s,e,r){return T(this.configuration).getBusinessMenuByTypeV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(s,e,r){return T(this.configuration).getBusinessMenuByTypeV3(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(s,e,r){return T(this.configuration).getBusinessMenuByTypeV4(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(s,e){return T(this.configuration).getBusinessProviderStatus(s,e).then(r=>r(this.axios,this.basePath))}getBusinessProviderStatusExternal(s,e,r){return T(this.configuration).getBusinessProviderStatusExternal(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessTax(s){return T(this.configuration).getBusinessTax(s).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(s,e){return T(this.configuration).getProvidersSupportedIntegrations(s,e).then(r=>r(this.axios,this.basePath))}getSingleBusinessProviderStatus(s,e,r,t){return T(this.configuration).getSingleBusinessProviderStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(s,e){return T(this.configuration).getUnifiedDiscounts(s,e).then(r=>r(this.axios,this.basePath))}setBusinessStatus(s,e,r){return T(this.configuration).setBusinessStatus(s,e,r).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(s,e,r){return T(this.configuration).setBusinessStatusSchedule(s,e,r).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(s,e,r,t){return T(this.configuration).updateBusinessPermission(s,e,r,t).then(n=>n(this.axios,this.basePath))}validateBusiness(s,e){return T(this.configuration).validateBusiness(s,e).then(r=>r(this.axios,this.basePath))}},qt=function(a){return{updatePosGlobalSettings:async(s,e,r={})=>{c("updatePosGlobalSettings","businessId",s),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},Pt=function(a){let s=qt(a);return{async updatePosGlobalSettings(e,r,t){let n=await s.updatePosGlobalSettings(e,r,t);return P(n,h.default,p,a)}}},Nn=function(a,s,e){let r=Pt(a);return{updatePosGlobalSettings(t,n,o){return r.updatePosGlobalSettings(t,n,o).then(i=>i(e,s))}}},ve=class extends V{updatePosGlobalSettings(s,e,r){return Pt(this.configuration).updatePosGlobalSettings(s,e,r).then(t=>t(this.axios,this.basePath))}},Ut=function(a){return{upsertSchedule:async(s,e,r={})=>{c("upsertSchedule","businessId",s),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},ht=function(a){let s=Ut(a);return{async upsertSchedule(e,r,t){let n=await s.upsertSchedule(e,r,t);return P(n,h.default,p,a)}}},jn=function(a,s,e){let r=ht(a);return{upsertSchedule(t,n,o){return r.upsertSchedule(t,n,o).then(i=>i(e,s))}}},Te=class extends V{upsertSchedule(s,e,r){return ht(this.configuration).upsertSchedule(s,e,r).then(t=>t(this.axios,this.basePath))}},Et=function(a){return{create:async(s,e,r={})=>{c("create","businessId",s),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getCashLogs:async(s,e,r,t,n,o,i,l={})=>{c("getCashLogs","businessId",s),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};r!==void 0&&(C.timeSpan=r),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(s,e={})=>{c("getCashSession","businessId",s);let r="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(s,e,r={})=>{c("getSessionReport","businessId",s),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recordCashLog:async(s,e,r={})=>{c("recordCashLog","businessId",s),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},sendSessionReport:async(s,e,r,t={})=>{c("sendSessionReport","businessId",s),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",r);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}}}},H=function(a){let s=Et(a);return{async create(e,r,t){let n=await s.create(e,r,t);return P(n,h.default,p,a)},async getCashLogs(e,r,t,n,o,i,l,u){let d=await s.getCashLogs(e,r,t,n,o,i,l,u);return P(d,h.default,p,a)},async getCashSession(e,r){let t=await s.getCashSession(e,r);return P(t,h.default,p,a)},async getSessionReport(e,r,t){let n=await s.getSessionReport(e,r,t);return P(n,h.default,p,a)},async recordCashLog(e,r,t){let n=await s.recordCashLog(e,r,t);return P(n,h.default,p,a)},async sendSessionReport(e,r,t,n){let o=await s.sendSessionReport(e,r,t,n);return P(o,h.default,p,a)}}},Gn=function(a,s,e){let r=H(a);return{create(t,n,o){return r.create(t,n,o).then(i=>i(e,s))},getCashLogs(t,n,o,i,l,u,d,A){return r.getCashLogs(t,n,o,i,l,u,d,A).then(x=>x(e,s))},getCashSession(t,n){return r.getCashSession(t,n).then(o=>o(e,s))},getSessionReport(t,n,o){return r.getSessionReport(t,n,o).then(i=>i(e,s))},recordCashLog(t,n,o){return r.recordCashLog(t,n,o).then(i=>i(e,s))},sendSessionReport(t,n,o,i){return r.sendSessionReport(t,n,o,i).then(l=>l(e,s))}}},qe=class extends V{create(s,e,r){return H(this.configuration).create(s,e,r).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,r,t,n,o,i,l){return H(this.configuration).getCashLogs(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(s,e){return H(this.configuration).getCashSession(s,e).then(r=>r(this.axios,this.basePath))}getSessionReport(s,e,r){return H(this.configuration).getSessionReport(s,e,r).then(t=>t(this.axios,this.basePath))}recordCashLog(s,e,r){return H(this.configuration).recordCashLog(s,e,r).then(t=>t(this.axios,this.basePath))}sendSessionReport(s,e,r,t){return H(this.configuration).sendSessionReport(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Bt=function(a){return{getChannelCatalog:async(s,e,r,t={})=>{c("getChannelCatalog","businessId",s),c("getChannelCatalog","channelType",e);let n="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),r!==void 0&&(d.menuId=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenu:async(s,e,r,t={})=>{c("getChannelMenu","businessId",s),c("getChannelMenu","channelType",e);let n="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),r!==void 0&&(d.deliveryType=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenuTimes:async(s,e,r={})=>{c("getChannelMenuTimes","businessId",s),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channelType=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},ue=function(a){let s=Bt(a);return{async getChannelCatalog(e,r,t,n){let o=await s.getChannelCatalog(e,r,t,n);return P(o,h.default,p,a)},async getChannelMenu(e,r,t,n){let o=await s.getChannelMenu(e,r,t,n);return P(o,h.default,p,a)},async getChannelMenuTimes(e,r,t){let n=await s.getChannelMenuTimes(e,r,t);return P(n,h.default,p,a)}}},Wn=function(a,s,e){let r=ue(a);return{getChannelCatalog(t,n,o,i){return r.getChannelCatalog(t,n,o,i).then(l=>l(e,s))},getChannelMenu(t,n,o,i){return r.getChannelMenu(t,n,o,i).then(l=>l(e,s))},getChannelMenuTimes(t,n,o){return r.getChannelMenuTimes(t,n,o).then(i=>i(e,s))}}},Ue=class extends V{getChannelCatalog(s,e,r,t){return ue(this.configuration).getChannelCatalog(s,e,r,t).then(n=>n(this.axios,this.basePath))}getChannelMenu(s,e,r,t){return ue(this.configuration).getChannelMenu(s,e,r,t).then(n=>n(this.axios,this.basePath))}getChannelMenuTimes(s,e,r){return ue(this.configuration).getChannelMenuTimes(s,e,r).then(t=>t(this.axios,this.basePath))}},Mt=function(a){return{configConfigureMunchiGiftCard:async(s,e,r,t={})=>{c("configConfigureMunchiGiftCard","businessId",s),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configGetProviders:async(s,e,r={})=>{c("configGetProviders","businessId",s),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await 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,...r.headers},{url:y(n),options:i}},configManualSync:async(s,e,r={})=>{c("configManualSync","businessId",s),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},configRemovePaymentOption:async(s,e,r,t={})=>{c("configRemovePaymentOption","businessId",s),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await f(u,a),r!=null&&(u["x-app-x"]=String(r)),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(s,e,r={})=>{c("configUpsertBusiness","businessId",s),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},configUpsertChannelConfig:async(s,e,r,t={})=>{c("configUpsertChannelConfig","businessId",s),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",r);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(s,e,r,t={})=>{c("configUpsertGiftCard","businessId",s),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(s,e,r={})=>{c("configUpsertLoyalty","businessId",s),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},configUpsertNets:async(s,e,r,t={})=>{c("configUpsertNets","businessId",s),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",r);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(s,e,r,t={})=>{c("configUpsertPaymentOptions","businessId",s),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configUpsertProviders:async(s,e,r,t={})=>{c("configUpsertProviders","businessId",s),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",r);let n="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configUpsertStripe:async(s,e,r,t={})=>{c("configUpsertStripe","businessId",s),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",r);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},configUpsertViva:async(s,e,r,t={})=>{c("configUpsertViva","businessId",s),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",r);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}}}},k=function(a){let s=Mt(a);return{async configConfigureMunchiGiftCard(e,r,t,n){let o=await s.configConfigureMunchiGiftCard(e,r,t,n);return P(o,h.default,p,a)},async configGetProviders(e,r,t){let n=await s.configGetProviders(e,r,t);return P(n,h.default,p,a)},async configManualSync(e,r,t){let n=await s.configManualSync(e,r,t);return P(n,h.default,p,a)},async configRemovePaymentOption(e,r,t,n){let o=await s.configRemovePaymentOption(e,r,t,n);return P(o,h.default,p,a)},async configUpsertBusiness(e,r,t){let n=await s.configUpsertBusiness(e,r,t);return P(n,h.default,p,a)},async configUpsertChannelConfig(e,r,t,n){let o=await s.configUpsertChannelConfig(e,r,t,n);return P(o,h.default,p,a)},async configUpsertGiftCard(e,r,t,n){let o=await s.configUpsertGiftCard(e,r,t,n);return P(o,h.default,p,a)},async configUpsertLoyalty(e,r,t){let n=await s.configUpsertLoyalty(e,r,t);return P(n,h.default,p,a)},async configUpsertNets(e,r,t,n){let o=await s.configUpsertNets(e,r,t,n);return P(o,h.default,p,a)},async configUpsertPaymentOptions(e,r,t,n){let o=await s.configUpsertPaymentOptions(e,r,t,n);return P(o,h.default,p,a)},async configUpsertProviders(e,r,t,n){let o=await s.configUpsertProviders(e,r,t,n);return P(o,h.default,p,a)},async configUpsertStripe(e,r,t,n){let o=await s.configUpsertStripe(e,r,t,n);return P(o,h.default,p,a)},async configUpsertViva(e,r,t,n){let o=await s.configUpsertViva(e,r,t,n);return P(o,h.default,p,a)}}},Kn=function(a,s,e){let r=k(a);return{configConfigureMunchiGiftCard(t,n,o,i){return r.configConfigureMunchiGiftCard(t,n,o,i).then(l=>l(e,s))},configGetProviders(t,n,o){return r.configGetProviders(t,n,o).then(i=>i(e,s))},configManualSync(t,n,o){return r.configManualSync(t,n,o).then(i=>i(e,s))},configRemovePaymentOption(t,n,o,i){return r.configRemovePaymentOption(t,n,o,i).then(l=>l(e,s))},configUpsertBusiness(t,n,o){return r.configUpsertBusiness(t,n,o).then(i=>i(e,s))},configUpsertChannelConfig(t,n,o,i){return r.configUpsertChannelConfig(t,n,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,n,o,i){return r.configUpsertGiftCard(t,n,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,n,o){return r.configUpsertLoyalty(t,n,o).then(i=>i(e,s))},configUpsertNets(t,n,o,i){return r.configUpsertNets(t,n,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,n,o,i){return r.configUpsertPaymentOptions(t,n,o,i).then(l=>l(e,s))},configUpsertProviders(t,n,o,i){return r.configUpsertProviders(t,n,o,i).then(l=>l(e,s))},configUpsertStripe(t,n,o,i){return r.configUpsertStripe(t,n,o,i).then(l=>l(e,s))},configUpsertViva(t,n,o,i){return r.configUpsertViva(t,n,o,i).then(l=>l(e,s))}}},Ee=class extends V{configConfigureMunchiGiftCard(s,e,r,t){return k(this.configuration).configConfigureMunchiGiftCard(s,e,r,t).then(n=>n(this.axios,this.basePath))}configGetProviders(s,e,r){return k(this.configuration).configGetProviders(s,e,r).then(t=>t(this.axios,this.basePath))}configManualSync(s,e,r){return k(this.configuration).configManualSync(s,e,r).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,r,t){return k(this.configuration).configRemovePaymentOption(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(s,e,r){return k(this.configuration).configUpsertBusiness(s,e,r).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,r,t){return k(this.configuration).configUpsertChannelConfig(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(s,e,r,t){return k(this.configuration).configUpsertGiftCard(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(s,e,r){return k(this.configuration).configUpsertLoyalty(s,e,r).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,r,t){return k(this.configuration).configUpsertNets(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,r,t){return k(this.configuration).configUpsertPaymentOptions(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertProviders(s,e,r,t){return k(this.configuration).configUpsertProviders(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertStripe(s,e,r,t){return k(this.configuration).configUpsertStripe(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertViva(s,e,r,t){return k(this.configuration).configUpsertViva(s,e,r,t).then(n=>n(this.axios,this.basePath))}},kt=function(a){return{getCourseConfig:async(s,e={})=>{c("getCourseConfig","businessId",s);let r="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await 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(s,e={})=>{c("getCourses","businessId",s);let r="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await 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 s=kt(a);return{async getCourseConfig(e,r){let t=await s.getCourseConfig(e,r);return P(t,h.default,p,a)},async getCourses(e,r){let t=await s.getCourses(e,r);return P(t,h.default,p,a)}}},Hn=function(a,s,e){let r=be(a);return{getCourseConfig(t,n){return r.getCourseConfig(t,n).then(o=>o(e,s))},getCourses(t,n){return r.getCourses(t,n).then(o=>o(e,s))}}},Be=class extends V{getCourseConfig(s,e){return be(this.configuration).getCourseConfig(s,e).then(r=>r(this.axios,this.basePath))}getCourses(s,e){return be(this.configuration).getCourses(s,e).then(r=>r(this.axios,this.basePath))}},wt=function(a){return{init:async(s,e={})=>{let r="/api/v1/display/init",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},pair:async(s,e={})=>{c("pair","pairDisplayBodyDto",s);let r="/api/v1/display/pair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},sessionToken:async(s,e={})=>{c("sessionToken","requestSessionTokenBodyDto",s);let r="/api/v1/display/session-token",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ce=function(a){let s=wt(a);return{async init(e,r){let t=await s.init(e,r);return P(t,h.default,p,a)},async pair(e,r){let t=await s.pair(e,r);return P(t,h.default,p,a)},async sessionToken(e,r){let t=await s.sessionToken(e,r);return P(t,h.default,p,a)}}},Qn=function(a,s,e){let r=ce(a);return{init(t,n){return r.init(t,n).then(o=>o(e,s))},pair(t,n){return r.pair(t,n).then(o=>o(e,s))},sessionToken(t,n){return r.sessionToken(t,n).then(o=>o(e,s))}}},Me=class extends V{init(s,e){return ce(this.configuration).init(s,e).then(r=>r(this.axios,this.basePath))}pair(s,e){return ce(this.configuration).pair(s,e).then(r=>r(this.axios,this.basePath))}sessionToken(s,e){return ce(this.configuration).sessionToken(s,e).then(r=>r(this.axios,this.basePath))}},Ft=function(a){return{createAssignment:async(s,e,r={})=>{c("createAssignment","businessId",s),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},At=function(a){let s=Ft(a);return{async createAssignment(e,r,t){let n=await s.createAssignment(e,r,t);return P(n,h.default,p,a)}}},$n=function(a,s,e){let r=At(a);return{createAssignment(t,n,o){return r.createAssignment(t,n,o).then(i=>i(e,s))}}},ke=class extends V{createAssignment(s,e,r){return At(this.configuration).createAssignment(s,e,r).then(t=>t(this.axios,this.basePath))}},_t=function(a){return{createDiningTable:async(s,e={})=>{c("createDiningTable","createDiningTableDto",s);let r="/api/v1/floor-plan/tables",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},createFloorSection:async(s,e={})=>{c("createFloorSection","createFloorSectionDto",s);let r="/api/v1/floor-plan/sections",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},deleteDiningTable:async(s,e,r={})=>{c("deleteDiningTable","id",s),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},deleteFloorSection:async(s,e,r={})=>{c("deleteFloorSection","id",s),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},dissolveTableGroup:async(s,e,r={})=>{c("dissolveTableGroup","id",s),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getFloorPlan:async(s,e={})=>{c("getFloorPlan","businessId",s);let r="/api/v1/floor-plan",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},joinTables:async(s,e,r={})=>{c("joinTables","businessId",s),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},removeTableFromGroup:async(s,e,r={})=>{c("removeTableFromGroup","id",s),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},transferTable:async(s,e,r,t={})=>{c("transferTable","id",s),c("transferTable","businessId",e),c("transferTable","transferTableDto",r);let n="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},updateDiningTable:async(s,e,r,t={})=>{c("updateDiningTable","id",s),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",r);let n="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},updateFloorSection:async(s,e,r,t={})=>{c("updateFloorSection","id",s),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",r);let n="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},updateTablePosition:async(s,e,r,t={})=>{c("updateTablePosition","id",s),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",r);let n="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},updateTableStatus:async(s,e,r,t={})=>{c("updateTableStatus","id",s),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",r);let n="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}}}},w=function(a){let s=_t(a);return{async createDiningTable(e,r){let t=await s.createDiningTable(e,r);return P(t,h.default,p,a)},async createFloorSection(e,r){let t=await s.createFloorSection(e,r);return P(t,h.default,p,a)},async deleteDiningTable(e,r,t){let n=await s.deleteDiningTable(e,r,t);return P(n,h.default,p,a)},async deleteFloorSection(e,r,t){let n=await s.deleteFloorSection(e,r,t);return P(n,h.default,p,a)},async dissolveTableGroup(e,r,t){let n=await s.dissolveTableGroup(e,r,t);return P(n,h.default,p,a)},async getFloorPlan(e,r){let t=await s.getFloorPlan(e,r);return P(t,h.default,p,a)},async joinTables(e,r,t){let n=await s.joinTables(e,r,t);return P(n,h.default,p,a)},async removeTableFromGroup(e,r,t){let n=await s.removeTableFromGroup(e,r,t);return P(n,h.default,p,a)},async transferTable(e,r,t,n){let o=await s.transferTable(e,r,t,n);return P(o,h.default,p,a)},async updateDiningTable(e,r,t,n){let o=await s.updateDiningTable(e,r,t,n);return P(o,h.default,p,a)},async updateFloorSection(e,r,t,n){let o=await s.updateFloorSection(e,r,t,n);return P(o,h.default,p,a)},async updateTablePosition(e,r,t,n){let o=await s.updateTablePosition(e,r,t,n);return P(o,h.default,p,a)},async updateTableStatus(e,r,t,n){let o=await s.updateTableStatus(e,r,t,n);return P(o,h.default,p,a)}}},Yn=function(a,s,e){let r=w(a);return{createDiningTable(t,n){return r.createDiningTable(t,n).then(o=>o(e,s))},createFloorSection(t,n){return r.createFloorSection(t,n).then(o=>o(e,s))},deleteDiningTable(t,n,o){return r.deleteDiningTable(t,n,o).then(i=>i(e,s))},deleteFloorSection(t,n,o){return r.deleteFloorSection(t,n,o).then(i=>i(e,s))},dissolveTableGroup(t,n,o){return r.dissolveTableGroup(t,n,o).then(i=>i(e,s))},getFloorPlan(t,n){return r.getFloorPlan(t,n).then(o=>o(e,s))},joinTables(t,n,o){return r.joinTables(t,n,o).then(i=>i(e,s))},removeTableFromGroup(t,n,o){return r.removeTableFromGroup(t,n,o).then(i=>i(e,s))},transferTable(t,n,o,i){return r.transferTable(t,n,o,i).then(l=>l(e,s))},updateDiningTable(t,n,o,i){return r.updateDiningTable(t,n,o,i).then(l=>l(e,s))},updateFloorSection(t,n,o,i){return r.updateFloorSection(t,n,o,i).then(l=>l(e,s))},updateTablePosition(t,n,o,i){return r.updateTablePosition(t,n,o,i).then(l=>l(e,s))},updateTableStatus(t,n,o,i){return r.updateTableStatus(t,n,o,i).then(l=>l(e,s))}}},we=class extends V{createDiningTable(s,e){return w(this.configuration).createDiningTable(s,e).then(r=>r(this.axios,this.basePath))}createFloorSection(s,e){return w(this.configuration).createFloorSection(s,e).then(r=>r(this.axios,this.basePath))}deleteDiningTable(s,e,r){return w(this.configuration).deleteDiningTable(s,e,r).then(t=>t(this.axios,this.basePath))}deleteFloorSection(s,e,r){return w(this.configuration).deleteFloorSection(s,e,r).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(s,e,r){return w(this.configuration).dissolveTableGroup(s,e,r).then(t=>t(this.axios,this.basePath))}getFloorPlan(s,e){return w(this.configuration).getFloorPlan(s,e).then(r=>r(this.axios,this.basePath))}joinTables(s,e,r){return w(this.configuration).joinTables(s,e,r).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(s,e,r){return w(this.configuration).removeTableFromGroup(s,e,r).then(t=>t(this.axios,this.basePath))}transferTable(s,e,r,t){return w(this.configuration).transferTable(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateDiningTable(s,e,r,t){return w(this.configuration).updateDiningTable(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateFloorSection(s,e,r,t){return w(this.configuration).updateFloorSection(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateTablePosition(s,e,r,t){return w(this.configuration).updateTablePosition(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateTableStatus(s,e,r,t){return w(this.configuration).updateTableStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Lt=function(a){return{redeemGiftCard:async(s,e={})=>{c("redeemGiftCard","redeemGiftCardDto",s);let r="/api/v1/giftcard/redeem",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},validateGiftCard:async(s,e={})=>{c("validateGiftCard","validateGiftCardDto",s);let r="/api/v1/giftcard/validate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},xe=function(a){let s=Lt(a);return{async redeemGiftCard(e,r){let t=await s.redeemGiftCard(e,r);return P(t,h.default,p,a)},async validateGiftCard(e,r){let t=await s.validateGiftCard(e,r);return P(t,h.default,p,a)}}},zn=function(a,s,e){let r=xe(a);return{redeemGiftCard(t,n){return r.redeemGiftCard(t,n).then(o=>o(e,s))},validateGiftCard(t,n){return r.validateGiftCard(t,n).then(o=>o(e,s))}}},Fe=class extends V{redeemGiftCard(s,e){return xe(this.configuration).redeemGiftCard(s,e).then(r=>r(this.axios,this.basePath))}validateGiftCard(s,e){return xe(this.configuration).validateGiftCard(s,e).then(r=>r(this.axios,this.basePath))}},Nt=function(a){return{getInternalOrderHistoryOnline:async(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",s);let I="/api/v1/history/internal/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}},getOrderHistoryOnline:async(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",s);let I="/api/v1/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}},getOrderHistoryPOSV5:async(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",s);let I="/api/v5/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}},getOrderHistoryPOSV5Internal:async(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",s);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}}}},X=function(a){let s=Nt(a);return{async getInternalOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getInternalOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)},async getOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryOnline(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)},async getOrderHistoryPOSV5(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryPOSV5(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)},async getOrderHistoryPOSV5Internal(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryPOSV5Internal(e,r,t,n,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)}}},Jn=function(a,s,e){let r=X(a);return{getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return r.getInternalOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))},getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return r.getOrderHistoryOnline(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))},getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return r.getOrderHistoryPOSV5(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S){return r.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))}}},_e=class extends V{getInternalOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getInternalOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryPOSV5(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryPOSV5Internal(s,e,r,t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}},jt=function(a){return{createInvoiceCompany:async(s,e,r={})=>{c("createInvoiceCompany","businessId",s),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},deleteInvoiceCompany:async(s,e,r={})=>{c("deleteInvoiceCompany","id",s),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getInvoiceCompanies:async(s,e={})=>{c("getInvoiceCompanies","businessId",s);let r="/api/v1/invoice-companies",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(s,e,r={})=>{c("getInvoiceCompanyById","id",s),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},searchInvoiceCompanies:async(s,e,r={})=>{c("searchInvoiceCompanies","businessId",s);let t="/api/v1/invoice-companies/search",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.search=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},updateInvoiceCompany:async(s,e,r,t={})=>{c("updateInvoiceCompany","id",s),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",r);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}}}},Q=function(a){let s=jt(a);return{async createInvoiceCompany(e,r,t){let n=await s.createInvoiceCompany(e,r,t);return P(n,h.default,p,a)},async deleteInvoiceCompany(e,r,t){let n=await s.deleteInvoiceCompany(e,r,t);return P(n,h.default,p,a)},async getInvoiceCompanies(e,r){let t=await s.getInvoiceCompanies(e,r);return P(t,h.default,p,a)},async getInvoiceCompanyById(e,r,t){let n=await s.getInvoiceCompanyById(e,r,t);return P(n,h.default,p,a)},async searchInvoiceCompanies(e,r,t){let n=await s.searchInvoiceCompanies(e,r,t);return P(n,h.default,p,a)},async updateInvoiceCompany(e,r,t,n){let o=await s.updateInvoiceCompany(e,r,t,n);return P(o,h.default,p,a)}}},Xn=function(a,s,e){let r=Q(a);return{createInvoiceCompany(t,n,o){return r.createInvoiceCompany(t,n,o).then(i=>i(e,s))},deleteInvoiceCompany(t,n,o){return r.deleteInvoiceCompany(t,n,o).then(i=>i(e,s))},getInvoiceCompanies(t,n){return r.getInvoiceCompanies(t,n).then(o=>o(e,s))},getInvoiceCompanyById(t,n,o){return r.getInvoiceCompanyById(t,n,o).then(i=>i(e,s))},searchInvoiceCompanies(t,n,o){return r.searchInvoiceCompanies(t,n,o).then(i=>i(e,s))},updateInvoiceCompany(t,n,o,i){return r.updateInvoiceCompany(t,n,o,i).then(l=>l(e,s))}}},Le=class extends V{createInvoiceCompany(s,e,r){return Q(this.configuration).createInvoiceCompany(s,e,r).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,r){return Q(this.configuration).deleteInvoiceCompany(s,e,r).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return Q(this.configuration).getInvoiceCompanies(s,e).then(r=>r(this.axios,this.basePath))}getInvoiceCompanyById(s,e,r){return Q(this.configuration).getInvoiceCompanyById(s,e,r).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,r){return Q(this.configuration).searchInvoiceCompanies(s,e,r).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,r,t){return Q(this.configuration).updateInvoiceCompany(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Gt=function(a){return{kdsGetOrders:async(s,e,r,t,n,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",s),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",r);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),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),r!==void 0&&(S.profileId=r),t!==void 0&&(S.page=t),n!==void 0&&(S.rowPerPage=n),o!==void 0&&(S.timeSpan=o),i!==void 0&&(S.start=i),l!==void 0&&(S.end=l),u!==void 0&&(S.timezone=u),d&&(S.provider=d),A&&(S.consumptionType=A),g(C,S);let q=O&&O.headers?O.headers:{};return I.headers={...v,...q,...x.headers},{url:y(C),options:I}},kdsGetProfiles:async(s,e={})=>{c("kdsGetProfiles","businessId",s);let r="/api/v1/kds/profiles",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(s,e={})=>{c("kdsMarkOrderReady","id",s);let r="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await 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(s,e={})=>{c("kdsRevertOrder","id",s);let r="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await f(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Z=function(a){let s=Gt(a);return{async kdsGetOrders(e,r,t,n,o,i,l,u,d,A,x,R){let C=await s.kdsGetOrders(e,r,t,n,o,i,l,u,d,A,x,R);return P(C,h.default,p,a)},async kdsGetProfiles(e,r){let t=await s.kdsGetProfiles(e,r);return P(t,h.default,p,a)},async kdsMarkOrderReady(e,r){let t=await s.kdsMarkOrderReady(e,r);return P(t,h.default,p,a)},async kdsRevertOrder(e,r){let t=await s.kdsRevertOrder(e,r);return P(t,h.default,p,a)}}},Zn=function(a,s,e){let r=Z(a);return{kdsGetOrders(t,n,o,i,l,u,d,A,x,R,C,O){return r.kdsGetOrders(t,n,o,i,l,u,d,A,x,R,C,O).then(I=>I(e,s))},kdsGetProfiles(t,n){return r.kdsGetProfiles(t,n).then(o=>o(e,s))},kdsMarkOrderReady(t,n){return r.kdsMarkOrderReady(t,n).then(o=>o(e,s))},kdsRevertOrder(t,n){return r.kdsRevertOrder(t,n).then(o=>o(e,s))}}},Ne=class extends V{kdsGetOrders(s,e,r,t,n,o,i,l,u,d,A,x){return Z(this.configuration).kdsGetOrders(s,e,r,t,n,o,i,l,u,d,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(s,e){return Z(this.configuration).kdsGetProfiles(s,e).then(r=>r(this.axios,this.basePath))}kdsMarkOrderReady(s,e){return Z(this.configuration).kdsMarkOrderReady(s,e).then(r=>r(this.axios,this.basePath))}kdsRevertOrder(s,e){return Z(this.configuration).kdsRevertOrder(s,e).then(r=>r(this.axios,this.basePath))}},Wt=function(a){return{getKioskOrder:async(s,e,r={})=>{c("getKioskOrder","orderId",s),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getOrderStatus:async(s,e,r={})=>{c("getOrderStatus","orderId",s),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recoverOrder:async(s,e,r={})=>{c("recoverOrder","orderId",s),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},syncKioskOrder:async(s,e={})=>{c("syncKioskOrder","syncKioskOrderDto",s);let r="/api/v1/kiosk/orders/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},validate:async(s,e,r={})=>{c("validate","terminalId",s),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};s!==void 0&&(u.terminalId=s),e!==void 0&&(u.provider=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},z=function(a){let s=Wt(a);return{async getKioskOrder(e,r,t){let n=await s.getKioskOrder(e,r,t);return P(n,h.default,p,a)},async getOrderStatus(e,r,t){let n=await s.getOrderStatus(e,r,t);return P(n,h.default,p,a)},async recoverOrder(e,r,t){let n=await s.recoverOrder(e,r,t);return P(n,h.default,p,a)},async syncKioskOrder(e,r){let t=await s.syncKioskOrder(e,r);return P(t,h.default,p,a)},async validate(e,r,t){let n=await s.validate(e,r,t);return P(n,h.default,p,a)}}},eo=function(a,s,e){let r=z(a);return{getKioskOrder(t,n,o){return r.getKioskOrder(t,n,o).then(i=>i(e,s))},getOrderStatus(t,n,o){return r.getOrderStatus(t,n,o).then(i=>i(e,s))},recoverOrder(t,n,o){return r.recoverOrder(t,n,o).then(i=>i(e,s))},syncKioskOrder(t,n){return r.syncKioskOrder(t,n).then(o=>o(e,s))},validate(t,n,o){return r.validate(t,n,o).then(i=>i(e,s))}}},je=class extends V{getKioskOrder(s,e,r){return z(this.configuration).getKioskOrder(s,e,r).then(t=>t(this.axios,this.basePath))}getOrderStatus(s,e,r){return z(this.configuration).getOrderStatus(s,e,r).then(t=>t(this.axios,this.basePath))}recoverOrder(s,e,r){return z(this.configuration).recoverOrder(s,e,r).then(t=>t(this.axios,this.basePath))}syncKioskOrder(s,e){return z(this.configuration).syncKioskOrder(s,e).then(r=>r(this.axios,this.basePath))}validate(s,e,r){return z(this.configuration).validate(s,e,r).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{activateKioskOffer:async(s,e={})=>{c("activateKioskOffer","activateKioskOfferDto",s);let r="/api/v1/loyalty/users/activate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},claimKioskOffer:async(s,e={})=>{c("claimKioskOffer","claimKioskOfferDto",s);let r="/api/v1/loyalty/users/claim",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},createLoyaltyUser:async(s,e,r={})=>{c("createLoyaltyUser","businessId",s),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getAdminTransactions:async(s,e,r,t={})=>{c("getAdminTransactions","businessId",s);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(s,e={})=>{c("getLoyaltyInfo","businessId",s);let r="/api/v1/loyalty/info",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(s,e,r={})=>{c("getUserById","businessId",s),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserPerks:async(s,e,r={})=>{c("getUserPerks","businessId",s),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserWallet:async(s,e,r={})=>{c("getUserWallet","businessId",s),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resolvePerks:async(s,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",s);let r="/api/v1/loyalty/resolve",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},searchUser:async(s,e,r,t,n={})=>{c("searchUser","businessId",s);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};await f(d,a),e!==void 0&&(A.phone=e),r!==void 0&&(A.country_code=r),t!==void 0&&(A.email=t),s!==void 0&&(A.businessId=s),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},updatePoints:async(s,e,r={})=>{c("updatePoints","businessId",s),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},validateWallet:async(s,e,r,t={})=>{c("validateWallet","businessId",s),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",r);let n="/api/v1/loyalty/wallets/validate",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.loyaltyId=e),r!==void 0&&(d.walletId=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},F=function(a){let s=Kt(a);return{async activateKioskOffer(e,r){let t=await s.activateKioskOffer(e,r);return P(t,h.default,p,a)},async claimKioskOffer(e,r){let t=await s.claimKioskOffer(e,r);return P(t,h.default,p,a)},async createLoyaltyUser(e,r,t){let n=await s.createLoyaltyUser(e,r,t);return P(n,h.default,p,a)},async getAdminTransactions(e,r,t,n){let o=await s.getAdminTransactions(e,r,t,n);return P(o,h.default,p,a)},async getLoyaltyInfo(e,r){let t=await s.getLoyaltyInfo(e,r);return P(t,h.default,p,a)},async getUserById(e,r,t){let n=await s.getUserById(e,r,t);return P(n,h.default,p,a)},async getUserPerks(e,r,t){let n=await s.getUserPerks(e,r,t);return P(n,h.default,p,a)},async getUserWallet(e,r,t){let n=await s.getUserWallet(e,r,t);return P(n,h.default,p,a)},async resolvePerks(e,r){let t=await s.resolvePerks(e,r);return P(t,h.default,p,a)},async searchUser(e,r,t,n,o){let i=await s.searchUser(e,r,t,n,o);return P(i,h.default,p,a)},async updatePoints(e,r,t){let n=await s.updatePoints(e,r,t);return P(n,h.default,p,a)},async validateWallet(e,r,t,n){let o=await s.validateWallet(e,r,t,n);return P(o,h.default,p,a)}}},to=function(a,s,e){let r=F(a);return{activateKioskOffer(t,n){return r.activateKioskOffer(t,n).then(o=>o(e,s))},claimKioskOffer(t,n){return r.claimKioskOffer(t,n).then(o=>o(e,s))},createLoyaltyUser(t,n,o){return r.createLoyaltyUser(t,n,o).then(i=>i(e,s))},getAdminTransactions(t,n,o,i){return r.getAdminTransactions(t,n,o,i).then(l=>l(e,s))},getLoyaltyInfo(t,n){return r.getLoyaltyInfo(t,n).then(o=>o(e,s))},getUserById(t,n,o){return r.getUserById(t,n,o).then(i=>i(e,s))},getUserPerks(t,n,o){return r.getUserPerks(t,n,o).then(i=>i(e,s))},getUserWallet(t,n,o){return r.getUserWallet(t,n,o).then(i=>i(e,s))},resolvePerks(t,n){return r.resolvePerks(t,n).then(o=>o(e,s))},searchUser(t,n,o,i,l){return r.searchUser(t,n,o,i,l).then(u=>u(e,s))},updatePoints(t,n,o){return r.updatePoints(t,n,o).then(i=>i(e,s))},validateWallet(t,n,o,i){return r.validateWallet(t,n,o,i).then(l=>l(e,s))}}},Ge=class extends V{activateKioskOffer(s,e){return F(this.configuration).activateKioskOffer(s,e).then(r=>r(this.axios,this.basePath))}claimKioskOffer(s,e){return F(this.configuration).claimKioskOffer(s,e).then(r=>r(this.axios,this.basePath))}createLoyaltyUser(s,e,r){return F(this.configuration).createLoyaltyUser(s,e,r).then(t=>t(this.axios,this.basePath))}getAdminTransactions(s,e,r,t){return F(this.configuration).getAdminTransactions(s,e,r,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(s,e){return F(this.configuration).getLoyaltyInfo(s,e).then(r=>r(this.axios,this.basePath))}getUserById(s,e,r){return F(this.configuration).getUserById(s,e,r).then(t=>t(this.axios,this.basePath))}getUserPerks(s,e,r){return F(this.configuration).getUserPerks(s,e,r).then(t=>t(this.axios,this.basePath))}getUserWallet(s,e,r){return F(this.configuration).getUserWallet(s,e,r).then(t=>t(this.axios,this.basePath))}resolvePerks(s,e){return F(this.configuration).resolvePerks(s,e).then(r=>r(this.axios,this.basePath))}searchUser(s,e,r,t,n){return F(this.configuration).searchUser(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,r){return F(this.configuration).updatePoints(s,e,r).then(t=>t(this.axios,this.basePath))}validateWallet(s,e,r,t){return F(this.configuration).validateWallet(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Ht=function(a){return{editBusinessProduct:async(s,e,r={})=>{c("editBusinessProduct","businessId",s),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},editBusinessProductV2:async(s,e,r={})=>{c("editBusinessProductV2","businessId",s),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getBusinessExtras:async(s,e={})=>{c("getBusinessExtras","businessId",s);let r="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(s,e,r={})=>{c("getProductsByCategoriesV2","businessId",s);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getProductsByCategoriesV3:async(s,e,r={})=>{c("getProductsByCategoriesV3","businessId",s);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resetProductEod:async(s,e={})=>{c("resetProductEod","resetEodDto",s);let r="/api/v1/menu/availability/reset-eod",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},$=function(a){let s=Ht(a);return{async editBusinessProduct(e,r,t){let n=await s.editBusinessProduct(e,r,t);return P(n,h.default,p,a)},async editBusinessProductV2(e,r,t){let n=await s.editBusinessProductV2(e,r,t);return P(n,h.default,p,a)},async getBusinessExtras(e,r){let t=await s.getBusinessExtras(e,r);return P(t,h.default,p,a)},async getProductsByCategoriesV2(e,r,t){let n=await s.getProductsByCategoriesV2(e,r,t);return P(n,h.default,p,a)},async getProductsByCategoriesV3(e,r,t){let n=await s.getProductsByCategoriesV3(e,r,t);return P(n,h.default,p,a)},async resetProductEod(e,r){let t=await s.resetProductEod(e,r);return P(t,h.default,p,a)}}},so=function(a,s,e){let r=$(a);return{editBusinessProduct(t,n,o){return r.editBusinessProduct(t,n,o).then(i=>i(e,s))},editBusinessProductV2(t,n,o){return r.editBusinessProductV2(t,n,o).then(i=>i(e,s))},getBusinessExtras(t,n){return r.getBusinessExtras(t,n).then(o=>o(e,s))},getProductsByCategoriesV2(t,n,o){return r.getProductsByCategoriesV2(t,n,o).then(i=>i(e,s))},getProductsByCategoriesV3(t,n,o){return r.getProductsByCategoriesV3(t,n,o).then(i=>i(e,s))},resetProductEod(t,n){return r.resetProductEod(t,n).then(o=>o(e,s))}}},We=class extends V{editBusinessProduct(s,e,r){return $(this.configuration).editBusinessProduct(s,e,r).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,r){return $(this.configuration).editBusinessProductV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return $(this.configuration).getBusinessExtras(s,e).then(r=>r(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,r){return $(this.configuration).getProductsByCategoriesV2(s,e,r).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(s,e,r){return $(this.configuration).getProductsByCategoriesV3(s,e,r).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return $(this.configuration).resetProductEod(s,e).then(r=>r(this.axios,this.basePath))}},Qt=function(a){return{addBusinessesToMerchant:async(s,e,r={})=>{c("addBusinessesToMerchant","merchantId",s),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},createMerchant:async(s,e={})=>{c("createMerchant","createMerchantDto",s);let r="/api/v1/merchants",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(s,e,r={})=>{c("removeBusinessFromMerchant","merchantId",s),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await f(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},de=function(a){let s=Qt(a);return{async addBusinessesToMerchant(e,r,t){let n=await s.addBusinessesToMerchant(e,r,t);return P(n,h.default,p,a)},async createMerchant(e,r){let t=await s.createMerchant(e,r);return P(t,h.default,p,a)},async removeBusinessFromMerchant(e,r,t){let n=await s.removeBusinessFromMerchant(e,r,t);return P(n,h.default,p,a)}}},ro=function(a,s,e){let r=de(a);return{addBusinessesToMerchant(t,n,o){return r.addBusinessesToMerchant(t,n,o).then(i=>i(e,s))},createMerchant(t,n){return r.createMerchant(t,n).then(o=>o(e,s))},removeBusinessFromMerchant(t,n,o){return r.removeBusinessFromMerchant(t,n,o).then(i=>i(e,s))}}},Ke=class extends V{addBusinessesToMerchant(s,e,r){return de(this.configuration).addBusinessesToMerchant(s,e,r).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return de(this.configuration).createMerchant(s,e).then(r=>r(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,r){return de(this.configuration).removeBusinessFromMerchant(s,e,r).then(t=>t(this.axios,this.basePath))}},$t=function(a){return{createMunchiGiftCard:async(s,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",s);let r="/api/v1/munchi-giftcard/create",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(s,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",s);let r="/api/v1/munchi-giftcard/data",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(s,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",s);let r="/api/v1/munchi-giftcard/redeem",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(s,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",s);let r="/api/v1/munchi-giftcard/validate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ee=function(a){let s=$t(a);return{async createMunchiGiftCard(e,r){let t=await s.createMunchiGiftCard(e,r);return P(t,h.default,p,a)},async getMunchiGiftCardData(e,r){let t=await s.getMunchiGiftCardData(e,r);return P(t,h.default,p,a)},async redeemMunchiGiftCard(e,r){let t=await s.redeemMunchiGiftCard(e,r);return P(t,h.default,p,a)},async validateMunchiGiftCard(e,r){let t=await s.validateMunchiGiftCard(e,r);return P(t,h.default,p,a)}}},no=function(a,s,e){let r=ee(a);return{createMunchiGiftCard(t,n){return r.createMunchiGiftCard(t,n).then(o=>o(e,s))},getMunchiGiftCardData(t,n){return r.getMunchiGiftCardData(t,n).then(o=>o(e,s))},redeemMunchiGiftCard(t,n){return r.redeemMunchiGiftCard(t,n).then(o=>o(e,s))},validateMunchiGiftCard(t,n){return r.validateMunchiGiftCard(t,n).then(o=>o(e,s))}}},He=class extends V{createMunchiGiftCard(s,e){return ee(this.configuration).createMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}getMunchiGiftCardData(s,e){return ee(this.configuration).getMunchiGiftCardData(s,e).then(r=>r(this.axios,this.basePath))}redeemMunchiGiftCard(s,e){return ee(this.configuration).redeemMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}validateMunchiGiftCard(s,e){return ee(this.configuration).validateMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}},Yt=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",s);let r="/api/v2/notification/add-venue-subscriptions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",s);let r="/api/v2/notification/remove-venue-subscriptions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},fe=function(a){let s=Yt(a);return{async addVenueSubscriptionsV2(e,r){let t=await s.addVenueSubscriptionsV2(e,r);return P(t,h.default,p,a)},async removeVenueSubscriptionsV2(e,r){let t=await s.removeVenueSubscriptionsV2(e,r);return P(t,h.default,p,a)}}},oo=function(a,s,e){let r=fe(a);return{addVenueSubscriptionsV2(t,n){return r.addVenueSubscriptionsV2(t,n).then(o=>o(e,s))},removeVenueSubscriptionsV2(t,n){return r.removeVenueSubscriptionsV2(t,n).then(o=>o(e,s))}}},Qe=class extends V{addVenueSubscriptionsV2(s,e){return fe(this.configuration).addVenueSubscriptionsV2(s,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return fe(this.configuration).removeVenueSubscriptionsV2(s,e).then(r=>r(this.axios,this.basePath))}},zt=function(a){return{findOneByExternalId:async(s,e={})=>{c("findOneByExternalId","externalId",s);let r="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},bt=function(a){let s=zt(a);return{async findOneByExternalId(e,r){let t=await s.findOneByExternalId(e,r);return P(t,h.default,p,a)}}},ao=function(a,s,e){let r=bt(a);return{findOneByExternalId(t,n){return r.findOneByExternalId(t,n).then(o=>o(e,s))}}},$e=class extends V{findOneByExternalId(s,e){return bt(this.configuration).findOneByExternalId(s,e).then(r=>r(this.axios,this.basePath))}},Jt=function(a){return{acceptOrder:async(s,e={})=>{c("acceptOrder","acceptOrderDto",s);let r="/api/v1/orders/accept",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},confirmPreOrder:async(s,e={})=>{c("confirmPreOrder","confirmPreorderDto",s);let r="/api/v1/orders/confirm/preOrder",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",s);let r="/api/v2/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},deliverOrder:async(s,e={})=>{c("deliverOrder","deliveredOrderDto",s);let r="/api/v1/orders/delivered",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},dispatchPosOrderV5:async(s,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",s);let r="/api/v5/orders/pos/dispatch",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getAllOrdersV2:async(s,e={})=>{c("getAllOrdersV2","businessIds",s);let r="/api/v2/orders",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessIds=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(s,e,r,t,n={})=>{c("getOrdersV2","status",s),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),r!==void 0&&(A.posBusinessId=r),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getOrdersV3:async(s,e,r,t,n={})=>{c("getOrdersV3","status",s),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},A={};e!==void 0&&(A.businessIds=e),r!==void 0&&(A.posBusinessId=r),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{c("getParkedPosOrderV2","businessId",s);let r="/api/v2/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosOrderById:async(s,e={})=>{c("getPosOrderById","getPosOrderDto",s);let r="/api/v1/orders/pos",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},markOrderAsReady:async(s,e={})=>{c("markOrderAsReady","readyOrderDto",s);let r="/api/v1/orders/ready",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},placePosOrderV4:async(s,e={})=>{c("placePosOrderV4","posOrderPayloadDto",s);let r="/api/v4/orders/pos/place",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},processPosOrderActions:async(s,e={})=>{c("processPosOrderActions","processOrderActionsDto",s);let r="/api/v4/orders/pos/actions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},rejectOrder:async(s,e={})=>{c("rejectOrder","rejectOrderDto",s);let r="/api/v1/orders/reject",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},syncPosOrder:async(s,e={})=>{c("syncPosOrder","syncPosOrderDto",s);let r="/api/v1/orders/pos/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updatePosOrderV2:async(s,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",s);let r="/api/v2/orders/pos/update",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},B=function(a){let s=Jt(a);return{async acceptOrder(e,r){let t=await s.acceptOrder(e,r);return P(t,h.default,p,a)},async confirmPreOrder(e,r){let t=await s.confirmPreOrder(e,r);return P(t,h.default,p,a)},async deletePosParkedOrderV2(e,r){let t=await s.deletePosParkedOrderV2(e,r);return P(t,h.default,p,a)},async deliverOrder(e,r){let t=await s.deliverOrder(e,r);return P(t,h.default,p,a)},async dispatchPosOrderV5(e,r){let t=await s.dispatchPosOrderV5(e,r);return P(t,h.default,p,a)},async getAllOrdersV2(e,r){let t=await s.getAllOrdersV2(e,r);return P(t,h.default,p,a)},async getOrdersV2(e,r,t,n,o){let i=await s.getOrdersV2(e,r,t,n,o);return P(i,h.default,p,a)},async getOrdersV3(e,r,t,n,o){let i=await s.getOrdersV3(e,r,t,n,o);return P(i,h.default,p,a)},async getParkedPosOrderV2(e,r){let t=await s.getParkedPosOrderV2(e,r);return P(t,h.default,p,a)},async getPosOrderById(e,r){let t=await s.getPosOrderById(e,r);return P(t,h.default,p,a)},async markOrderAsReady(e,r){let t=await s.markOrderAsReady(e,r);return P(t,h.default,p,a)},async placePosOrderV4(e,r){let t=await s.placePosOrderV4(e,r);return P(t,h.default,p,a)},async processPosOrderActions(e,r){let t=await s.processPosOrderActions(e,r);return P(t,h.default,p,a)},async rejectOrder(e,r){let t=await s.rejectOrder(e,r);return P(t,h.default,p,a)},async syncPosOrder(e,r){let t=await s.syncPosOrder(e,r);return P(t,h.default,p,a)},async updatePosOrderV2(e,r){let t=await s.updatePosOrderV2(e,r);return P(t,h.default,p,a)}}},io=function(a,s,e){let r=B(a);return{acceptOrder(t,n){return r.acceptOrder(t,n).then(o=>o(e,s))},confirmPreOrder(t,n){return r.confirmPreOrder(t,n).then(o=>o(e,s))},deletePosParkedOrderV2(t,n){return r.deletePosParkedOrderV2(t,n).then(o=>o(e,s))},deliverOrder(t,n){return r.deliverOrder(t,n).then(o=>o(e,s))},dispatchPosOrderV5(t,n){return r.dispatchPosOrderV5(t,n).then(o=>o(e,s))},getAllOrdersV2(t,n){return r.getAllOrdersV2(t,n).then(o=>o(e,s))},getOrdersV2(t,n,o,i,l){return r.getOrdersV2(t,n,o,i,l).then(u=>u(e,s))},getOrdersV3(t,n,o,i,l){return r.getOrdersV3(t,n,o,i,l).then(u=>u(e,s))},getParkedPosOrderV2(t,n){return r.getParkedPosOrderV2(t,n).then(o=>o(e,s))},getPosOrderById(t,n){return r.getPosOrderById(t,n).then(o=>o(e,s))},markOrderAsReady(t,n){return r.markOrderAsReady(t,n).then(o=>o(e,s))},placePosOrderV4(t,n){return r.placePosOrderV4(t,n).then(o=>o(e,s))},processPosOrderActions(t,n){return r.processPosOrderActions(t,n).then(o=>o(e,s))},rejectOrder(t,n){return r.rejectOrder(t,n).then(o=>o(e,s))},syncPosOrder(t,n){return r.syncPosOrder(t,n).then(o=>o(e,s))},updatePosOrderV2(t,n){return r.updatePosOrderV2(t,n).then(o=>o(e,s))}}},Ye=class extends V{acceptOrder(s,e){return B(this.configuration).acceptOrder(s,e).then(r=>r(this.axios,this.basePath))}confirmPreOrder(s,e){return B(this.configuration).confirmPreOrder(s,e).then(r=>r(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return B(this.configuration).deletePosParkedOrderV2(s,e).then(r=>r(this.axios,this.basePath))}deliverOrder(s,e){return B(this.configuration).deliverOrder(s,e).then(r=>r(this.axios,this.basePath))}dispatchPosOrderV5(s,e){return B(this.configuration).dispatchPosOrderV5(s,e).then(r=>r(this.axios,this.basePath))}getAllOrdersV2(s,e){return B(this.configuration).getAllOrdersV2(s,e).then(r=>r(this.axios,this.basePath))}getOrdersV2(s,e,r,t,n){return B(this.configuration).getOrdersV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}getOrdersV3(s,e,r,t,n){return B(this.configuration).getOrdersV3(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return B(this.configuration).getParkedPosOrderV2(s,e).then(r=>r(this.axios,this.basePath))}getPosOrderById(s,e){return B(this.configuration).getPosOrderById(s,e).then(r=>r(this.axios,this.basePath))}markOrderAsReady(s,e){return B(this.configuration).markOrderAsReady(s,e).then(r=>r(this.axios,this.basePath))}placePosOrderV4(s,e){return B(this.configuration).placePosOrderV4(s,e).then(r=>r(this.axios,this.basePath))}processPosOrderActions(s,e){return B(this.configuration).processPosOrderActions(s,e).then(r=>r(this.axios,this.basePath))}rejectOrder(s,e){return B(this.configuration).rejectOrder(s,e).then(r=>r(this.axios,this.basePath))}syncPosOrder(s,e){return B(this.configuration).syncPosOrder(s,e).then(r=>r(this.axios,this.basePath))}updatePosOrderV2(s,e){return B(this.configuration).updatePosOrderV2(s,e).then(r=>r(this.axios,this.basePath))}},Xt=function(a){return{getPosSession:async(s,e={})=>{c("getPosSession","businessId",s);let r="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(s,e={})=>{c("getPosSessionV2","businessId",s);let r="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};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 s=Xt(a);return{async getPosSession(e,r){let t=await s.getPosSession(e,r);return P(t,h.default,p,a)},async getPosSessionV2(e,r){let t=await s.getPosSessionV2(e,r);return P(t,h.default,p,a)}}},lo=function(a,s,e){let r=Re(a);return{getPosSession(t,n){return r.getPosSession(t,n).then(o=>o(e,s))},getPosSessionV2(t,n){return r.getPosSessionV2(t,n).then(o=>o(e,s))}}},ze=class extends V{getPosSession(s,e){return Re(this.configuration).getPosSession(s,e).then(r=>r(this.axios,this.basePath))}getPosSessionV2(s,e){return Re(this.configuration).getPosSessionV2(s,e).then(r=>r(this.axios,this.basePath))}},Zt=function(a){return{payTerminalInit:async(s,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",s);let r="/api/v1/pay-terminal/init",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},payTerminalPair:async(s,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",s);let r="/api/v1/pay-terminal/pair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},payTerminalSessionToken:async(s,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",s);let r="/api/v1/pay-terminal/session-token",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},payTerminalUnpair:async(s,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",s);let r="/api/v1/pay-terminal/unpair",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},te=function(a){let s=Zt(a);return{async payTerminalInit(e,r){let t=await s.payTerminalInit(e,r);return P(t,h.default,p,a)},async payTerminalPair(e,r){let t=await s.payTerminalPair(e,r);return P(t,h.default,p,a)},async payTerminalSessionToken(e,r){let t=await s.payTerminalSessionToken(e,r);return P(t,h.default,p,a)},async payTerminalUnpair(e,r){let t=await s.payTerminalUnpair(e,r);return P(t,h.default,p,a)}}},uo=function(a,s,e){let r=te(a);return{payTerminalInit(t,n){return r.payTerminalInit(t,n).then(o=>o(e,s))},payTerminalPair(t,n){return r.payTerminalPair(t,n).then(o=>o(e,s))},payTerminalSessionToken(t,n){return r.payTerminalSessionToken(t,n).then(o=>o(e,s))},payTerminalUnpair(t,n){return r.payTerminalUnpair(t,n).then(o=>o(e,s))}}},Je=class extends V{payTerminalInit(s,e){return te(this.configuration).payTerminalInit(s,e).then(r=>r(this.axios,this.basePath))}payTerminalPair(s,e){return te(this.configuration).payTerminalPair(s,e).then(r=>r(this.axios,this.basePath))}payTerminalSessionToken(s,e){return te(this.configuration).payTerminalSessionToken(s,e).then(r=>r(this.axios,this.basePath))}payTerminalUnpair(s,e){return te(this.configuration).payTerminalUnpair(s,e).then(r=>r(this.axios,this.basePath))}},es=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",s);let r="/api/v3/payment/nets/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",s);let r="/api/v2/payment/viva/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{c("createNetsRefundTransaction","createRefundDto",s);let r="/api/v4/payment/nets/refund/transaction",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getPaymentReference:async(s,e={})=>{c("getPaymentReference","getPaymentReferenceDto",s);let r="/api/v1/payment/reference",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getPaymentStatus:async(s,e={})=>{c("getPaymentStatus","getPaymentStatusDto",s);let r="/api/v1/payment/status",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",s);let r="/api/v3/payment/nets/terminal/initiate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",s);let r="/api/v4/payment/viva/terminal/initiate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{c("processOnlineOrderRefund","orderResponseDto",s);let r="/api/v1/payment/online-orders/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{c("refundSingleVivaTransaction","createRefundDto",s);let r="/api/v4/payment/viva/refund/single",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},j=function(a){let s=es(a);return{async cancelNetsTerminalTransaction(e,r){let t=await s.cancelNetsTerminalTransaction(e,r);return P(t,h.default,p,a)},async cancelVivaTransactionV2(e,r){let t=await s.cancelVivaTransactionV2(e,r);return P(t,h.default,p,a)},async createNetsRefundTransaction(e,r){let t=await s.createNetsRefundTransaction(e,r);return P(t,h.default,p,a)},async getPaymentReference(e,r){let t=await s.getPaymentReference(e,r);return P(t,h.default,p,a)},async getPaymentStatus(e,r){let t=await s.getPaymentStatus(e,r);return P(t,h.default,p,a)},async initiateNetsTerminalTransaction(e,r){let t=await s.initiateNetsTerminalTransaction(e,r);return P(t,h.default,p,a)},async initiateTerminalTransaction(e,r){let t=await s.initiateTerminalTransaction(e,r);return P(t,h.default,p,a)},async processOnlineOrderRefund(e,r){let t=await s.processOnlineOrderRefund(e,r);return P(t,h.default,p,a)},async refundSingleVivaTransaction(e,r){let t=await s.refundSingleVivaTransaction(e,r);return P(t,h.default,p,a)}}},co=function(a,s,e){let r=j(a);return{cancelNetsTerminalTransaction(t,n){return r.cancelNetsTerminalTransaction(t,n).then(o=>o(e,s))},cancelVivaTransactionV2(t,n){return r.cancelVivaTransactionV2(t,n).then(o=>o(e,s))},createNetsRefundTransaction(t,n){return r.createNetsRefundTransaction(t,n).then(o=>o(e,s))},getPaymentReference(t,n){return r.getPaymentReference(t,n).then(o=>o(e,s))},getPaymentStatus(t,n){return r.getPaymentStatus(t,n).then(o=>o(e,s))},initiateNetsTerminalTransaction(t,n){return r.initiateNetsTerminalTransaction(t,n).then(o=>o(e,s))},initiateTerminalTransaction(t,n){return r.initiateTerminalTransaction(t,n).then(o=>o(e,s))},processOnlineOrderRefund(t,n){return r.processOnlineOrderRefund(t,n).then(o=>o(e,s))},refundSingleVivaTransaction(t,n){return r.refundSingleVivaTransaction(t,n).then(o=>o(e,s))}}},Xe=class extends V{cancelNetsTerminalTransaction(s,e){return j(this.configuration).cancelNetsTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return j(this.configuration).cancelVivaTransactionV2(s,e).then(r=>r(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return j(this.configuration).createNetsRefundTransaction(s,e).then(r=>r(this.axios,this.basePath))}getPaymentReference(s,e){return j(this.configuration).getPaymentReference(s,e).then(r=>r(this.axios,this.basePath))}getPaymentStatus(s,e){return j(this.configuration).getPaymentStatus(s,e).then(r=>r(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return j(this.configuration).initiateNetsTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return j(this.configuration).initiateTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return j(this.configuration).processOnlineOrderRefund(s,e).then(r=>r(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return j(this.configuration).refundSingleVivaTransaction(s,e).then(r=>r(this.axios,this.basePath))}},ts=function(a){return{createPaymentMethod:async(s,e,r,t={})=>{c("createPaymentMethod","businessId",s),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",r);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}},deletePaymentMethodOption:async(s,e,r,t={})=>{c("deletePaymentMethodOption","businessId",s),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",r);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getCatalog:async(s,e,r,t={})=>{c("getCatalog","businessId",s),c("getCatalog","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.locale=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getGlobalCatalog:async(s,e={})=>{let r="/api/v1/payment-methods/catalog",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.locale=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentMethods:async(s,e,r,t={})=>{c("getPaymentMethods","businessId",s),c("getPaymentMethods","channel",e);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.locale=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getTypes:async(s={})=>{let e="/api/v1/payment-methods/types",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},reorder:async(s,e,r,t={})=>{c("reorder","businessId",s),c("reorder","channel",e),c("reorder","bulkRankDto",r);let n="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}},updatePaymentMethodOption:async(s,e,r,t,n={})=>{c("updatePaymentMethodOption","businessId",s),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",r),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...n},d={},A={};d["Content-Type"]="application/json",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}}}},G=function(a){let s=ts(a);return{async createPaymentMethod(e,r,t,n){let o=await s.createPaymentMethod(e,r,t,n);return P(o,h.default,p,a)},async deletePaymentMethodOption(e,r,t,n){let o=await s.deletePaymentMethodOption(e,r,t,n);return P(o,h.default,p,a)},async getCatalog(e,r,t,n){let o=await s.getCatalog(e,r,t,n);return P(o,h.default,p,a)},async getGlobalCatalog(e,r){let t=await s.getGlobalCatalog(e,r);return P(t,h.default,p,a)},async getPaymentMethods(e,r,t,n){let o=await s.getPaymentMethods(e,r,t,n);return P(o,h.default,p,a)},async getTypes(e){let r=await s.getTypes(e);return P(r,h.default,p,a)},async reorder(e,r,t,n){let o=await s.reorder(e,r,t,n);return P(o,h.default,p,a)},async updatePaymentMethodOption(e,r,t,n,o){let i=await s.updatePaymentMethodOption(e,r,t,n,o);return P(i,h.default,p,a)}}},po=function(a,s,e){let r=G(a);return{createPaymentMethod(t,n,o,i){return r.createPaymentMethod(t,n,o,i).then(l=>l(e,s))},deletePaymentMethodOption(t,n,o,i){return r.deletePaymentMethodOption(t,n,o,i).then(l=>l(e,s))},getCatalog(t,n,o,i){return r.getCatalog(t,n,o,i).then(l=>l(e,s))},getGlobalCatalog(t,n){return r.getGlobalCatalog(t,n).then(o=>o(e,s))},getPaymentMethods(t,n,o,i){return r.getPaymentMethods(t,n,o,i).then(l=>l(e,s))},getTypes(t){return r.getTypes(t).then(n=>n(e,s))},reorder(t,n,o,i){return r.reorder(t,n,o,i).then(l=>l(e,s))},updatePaymentMethodOption(t,n,o,i,l){return r.updatePaymentMethodOption(t,n,o,i,l).then(u=>u(e,s))}}},Ze=class extends V{createPaymentMethod(s,e,r,t){return G(this.configuration).createPaymentMethod(s,e,r,t).then(n=>n(this.axios,this.basePath))}deletePaymentMethodOption(s,e,r,t){return G(this.configuration).deletePaymentMethodOption(s,e,r,t).then(n=>n(this.axios,this.basePath))}getCatalog(s,e,r,t){return G(this.configuration).getCatalog(s,e,r,t).then(n=>n(this.axios,this.basePath))}getGlobalCatalog(s,e){return G(this.configuration).getGlobalCatalog(s,e).then(r=>r(this.axios,this.basePath))}getPaymentMethods(s,e,r,t){return G(this.configuration).getPaymentMethods(s,e,r,t).then(n=>n(this.axios,this.basePath))}getTypes(s){return G(this.configuration).getTypes(s).then(e=>e(this.axios,this.basePath))}reorder(s,e,r,t){return G(this.configuration).reorder(s,e,r,t).then(n=>n(this.axios,this.basePath))}updatePaymentMethodOption(s,e,r,t,n){return G(this.configuration).updatePaymentMethodOption(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}},ss=function(a){return{cancelSession:async(s,e={})=>{c("cancelSession","clientToken",s);let r="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrderSettlementStatus:async(s,e,r,t={})=>{c("getOrderSettlementStatus","businessId",s),c("getOrderSettlementStatus","orderId",e);let n="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}},getPaymentSession:async(s,e={})=>{c("getPaymentSession","clientToken",s);let r="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},initiateNetsSession:async(s,e,r={})=>{c("initiateNetsSession","initiateNetsSessionDto",s);let t="/api/v1/payment-session/nets/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(s,i,a),{url:y(n),options:i}},initiateVivaA2aSession:async(s,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",s);let r="/api/v1/payment-session/viva/a2a",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},initiateVivaSession:async(s,e,r={})=>{c("initiateVivaSession","initiateVivaSessionDto",s);let t="/api/v1/payment-session/viva/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(s,i,a),{url:y(n),options:i}},initiateWorldlineSession:async(s,e,r={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",s);let t="/api/v1/payment-session/worldline/initiate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(s,i,a),{url:y(n),options:i}},paymentSessionGetChargeStatus:async(s,e={})=>{c("paymentSessionGetChargeStatus","chargeId",s);let r="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},paymentSessionRegisterChargeMapping:async(s,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",s);let r="/api/v1/payment-session/charge-status/register",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},pollVivaSession:async(s,e={})=>{c("pollVivaSession","pollVivaSessionDto",s);let r="/api/v1/payment-session/poll",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},pollWorldlineSession:async(s,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",s);let r="/api/v1/payment-session/worldline/poll",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},recordManualPayment:async(s,e={})=>{c("recordManualPayment","createManualSessionDto",s);let r="/api/v1/payment-session/manual",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundNetsSession:async(s,e={})=>{c("refundNetsSession","reverseSessionDto",s);let r="/api/v1/payment-session/nets/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundVivaSession:async(s,e={})=>{c("refundVivaSession","reverseSessionDto",s);let r="/api/v1/payment-session/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundWorldlineSession:async(s,e={})=>{c("refundWorldlineSession","reverseSessionDto",s);let r="/api/v1/payment-session/worldline/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},revertNetsSession:async(s,e={})=>{c("revertNetsSession","reverseSessionDto",s);let r="/api/v1/payment-session/nets/revert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},revertVivaSession:async(s,e={})=>{c("revertVivaSession","reverseSessionDto",s);let r="/api/v1/payment-session/revert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},revertWorldlineSession:async(s,e={})=>{c("revertWorldlineSession","reverseSessionDto",s);let r="/api/v1/payment-session/worldline/revert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},voidManualPayment:async(s,e={})=>{c("voidManualPayment","voidManualSessionDto",s);let r="/api/v1/payment-session/void",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},E=function(a){let s=ss(a);return{async cancelSession(e,r){let t=await s.cancelSession(e,r);return P(t,h.default,p,a)},async getOrderSettlementStatus(e,r,t,n){let o=await s.getOrderSettlementStatus(e,r,t,n);return P(o,h.default,p,a)},async getPaymentSession(e,r){let t=await s.getPaymentSession(e,r);return P(t,h.default,p,a)},async initiateNetsSession(e,r,t){let n=await s.initiateNetsSession(e,r,t);return P(n,h.default,p,a)},async initiateVivaA2aSession(e,r){let t=await s.initiateVivaA2aSession(e,r);return P(t,h.default,p,a)},async initiateVivaSession(e,r,t){let n=await s.initiateVivaSession(e,r,t);return P(n,h.default,p,a)},async initiateWorldlineSession(e,r,t){let n=await s.initiateWorldlineSession(e,r,t);return P(n,h.default,p,a)},async paymentSessionGetChargeStatus(e,r){let t=await s.paymentSessionGetChargeStatus(e,r);return P(t,h.default,p,a)},async paymentSessionRegisterChargeMapping(e,r){let t=await s.paymentSessionRegisterChargeMapping(e,r);return P(t,h.default,p,a)},async pollVivaSession(e,r){let t=await s.pollVivaSession(e,r);return P(t,h.default,p,a)},async pollWorldlineSession(e,r){let t=await s.pollWorldlineSession(e,r);return P(t,h.default,p,a)},async recordManualPayment(e,r){let t=await s.recordManualPayment(e,r);return P(t,h.default,p,a)},async refundNetsSession(e,r){let t=await s.refundNetsSession(e,r);return P(t,h.default,p,a)},async refundVivaSession(e,r){let t=await s.refundVivaSession(e,r);return P(t,h.default,p,a)},async refundWorldlineSession(e,r){let t=await s.refundWorldlineSession(e,r);return P(t,h.default,p,a)},async revertNetsSession(e,r){let t=await s.revertNetsSession(e,r);return P(t,h.default,p,a)},async revertVivaSession(e,r){let t=await s.revertVivaSession(e,r);return P(t,h.default,p,a)},async revertWorldlineSession(e,r){let t=await s.revertWorldlineSession(e,r);return P(t,h.default,p,a)},async voidManualPayment(e,r){let t=await s.voidManualPayment(e,r);return P(t,h.default,p,a)}}},mo=function(a,s,e){let r=E(a);return{cancelSession(t,n){return r.cancelSession(t,n).then(o=>o(e,s))},getOrderSettlementStatus(t,n,o,i){return r.getOrderSettlementStatus(t,n,o,i).then(l=>l(e,s))},getPaymentSession(t,n){return r.getPaymentSession(t,n).then(o=>o(e,s))},initiateNetsSession(t,n,o){return r.initiateNetsSession(t,n,o).then(i=>i(e,s))},initiateVivaA2aSession(t,n){return r.initiateVivaA2aSession(t,n).then(o=>o(e,s))},initiateVivaSession(t,n,o){return r.initiateVivaSession(t,n,o).then(i=>i(e,s))},initiateWorldlineSession(t,n,o){return r.initiateWorldlineSession(t,n,o).then(i=>i(e,s))},paymentSessionGetChargeStatus(t,n){return r.paymentSessionGetChargeStatus(t,n).then(o=>o(e,s))},paymentSessionRegisterChargeMapping(t,n){return r.paymentSessionRegisterChargeMapping(t,n).then(o=>o(e,s))},pollVivaSession(t,n){return r.pollVivaSession(t,n).then(o=>o(e,s))},pollWorldlineSession(t,n){return r.pollWorldlineSession(t,n).then(o=>o(e,s))},recordManualPayment(t,n){return r.recordManualPayment(t,n).then(o=>o(e,s))},refundNetsSession(t,n){return r.refundNetsSession(t,n).then(o=>o(e,s))},refundVivaSession(t,n){return r.refundVivaSession(t,n).then(o=>o(e,s))},refundWorldlineSession(t,n){return r.refundWorldlineSession(t,n).then(o=>o(e,s))},revertNetsSession(t,n){return r.revertNetsSession(t,n).then(o=>o(e,s))},revertVivaSession(t,n){return r.revertVivaSession(t,n).then(o=>o(e,s))},revertWorldlineSession(t,n){return r.revertWorldlineSession(t,n).then(o=>o(e,s))},voidManualPayment(t,n){return r.voidManualPayment(t,n).then(o=>o(e,s))}}},et=class extends V{cancelSession(s,e){return E(this.configuration).cancelSession(s,e).then(r=>r(this.axios,this.basePath))}getOrderSettlementStatus(s,e,r,t){return E(this.configuration).getOrderSettlementStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}getPaymentSession(s,e){return E(this.configuration).getPaymentSession(s,e).then(r=>r(this.axios,this.basePath))}initiateNetsSession(s,e,r){return E(this.configuration).initiateNetsSession(s,e,r).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(s,e){return E(this.configuration).initiateVivaA2aSession(s,e).then(r=>r(this.axios,this.basePath))}initiateVivaSession(s,e,r){return E(this.configuration).initiateVivaSession(s,e,r).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(s,e,r){return E(this.configuration).initiateWorldlineSession(s,e,r).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(s,e){return E(this.configuration).paymentSessionGetChargeStatus(s,e).then(r=>r(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(s,e){return E(this.configuration).paymentSessionRegisterChargeMapping(s,e).then(r=>r(this.axios,this.basePath))}pollVivaSession(s,e){return E(this.configuration).pollVivaSession(s,e).then(r=>r(this.axios,this.basePath))}pollWorldlineSession(s,e){return E(this.configuration).pollWorldlineSession(s,e).then(r=>r(this.axios,this.basePath))}recordManualPayment(s,e){return E(this.configuration).recordManualPayment(s,e).then(r=>r(this.axios,this.basePath))}refundNetsSession(s,e){return E(this.configuration).refundNetsSession(s,e).then(r=>r(this.axios,this.basePath))}refundVivaSession(s,e){return E(this.configuration).refundVivaSession(s,e).then(r=>r(this.axios,this.basePath))}refundWorldlineSession(s,e){return E(this.configuration).refundWorldlineSession(s,e).then(r=>r(this.axios,this.basePath))}revertNetsSession(s,e){return E(this.configuration).revertNetsSession(s,e).then(r=>r(this.axios,this.basePath))}revertVivaSession(s,e){return E(this.configuration).revertVivaSession(s,e).then(r=>r(this.axios,this.basePath))}revertWorldlineSession(s,e){return E(this.configuration).revertWorldlineSession(s,e).then(r=>r(this.axios,this.basePath))}voidManualPayment(s,e){return E(this.configuration).voidManualPayment(s,e).then(r=>r(this.axios,this.basePath))}},rs=function(a){return{deleteCategoryPolicy:async(s,e,r={})=>{c("deleteCategoryPolicy","businessId",s),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.categoryId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},deletePrinter:async(s,e,r={})=>{c("deletePrinter","id",s),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},deletePrinterByAddress:async(s,e,r={})=>{c("deletePrinterByAddress","businessId",s),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.address=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},deleteProductPolicy:async(s,e,r={})=>{c("deleteProductPolicy","businessId",s),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.productId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},listCategoryPolicies:async(s,e={})=>{c("listCategoryPolicies","businessId",s);let r="/api/v1/printer/policies/category",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listPrinters:async(s,e={})=>{c("listPrinters","businessId",s);let r="/api/v1/printer",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listProductPolicies:async(s,e={})=>{c("listProductPolicies","businessId",s);let r="/api/v1/printer/policies/product",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},upsertCategoryPolicy:async(s,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",s);let r="/api/v1/printer/policies/category",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},upsertPrinter:async(s,e={})=>{c("upsertPrinter","upsertPrinterDto",s);let r="/api/v1/printer",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},upsertProductPolicy:async(s,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",s);let r="/api/v1/printer/policies/product",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},_=function(a){let s=rs(a);return{async deleteCategoryPolicy(e,r,t){let n=await s.deleteCategoryPolicy(e,r,t);return P(n,h.default,p,a)},async deletePrinter(e,r,t){let n=await s.deletePrinter(e,r,t);return P(n,h.default,p,a)},async deletePrinterByAddress(e,r,t){let n=await s.deletePrinterByAddress(e,r,t);return P(n,h.default,p,a)},async deleteProductPolicy(e,r,t){let n=await s.deleteProductPolicy(e,r,t);return P(n,h.default,p,a)},async listCategoryPolicies(e,r){let t=await s.listCategoryPolicies(e,r);return P(t,h.default,p,a)},async listPrinters(e,r){let t=await s.listPrinters(e,r);return P(t,h.default,p,a)},async listProductPolicies(e,r){let t=await s.listProductPolicies(e,r);return P(t,h.default,p,a)},async upsertCategoryPolicy(e,r){let t=await s.upsertCategoryPolicy(e,r);return P(t,h.default,p,a)},async upsertPrinter(e,r){let t=await s.upsertPrinter(e,r);return P(t,h.default,p,a)},async upsertProductPolicy(e,r){let t=await s.upsertProductPolicy(e,r);return P(t,h.default,p,a)}}},go=function(a,s,e){let r=_(a);return{deleteCategoryPolicy(t,n,o){return r.deleteCategoryPolicy(t,n,o).then(i=>i(e,s))},deletePrinter(t,n,o){return r.deletePrinter(t,n,o).then(i=>i(e,s))},deletePrinterByAddress(t,n,o){return r.deletePrinterByAddress(t,n,o).then(i=>i(e,s))},deleteProductPolicy(t,n,o){return r.deleteProductPolicy(t,n,o).then(i=>i(e,s))},listCategoryPolicies(t,n){return r.listCategoryPolicies(t,n).then(o=>o(e,s))},listPrinters(t,n){return r.listPrinters(t,n).then(o=>o(e,s))},listProductPolicies(t,n){return r.listProductPolicies(t,n).then(o=>o(e,s))},upsertCategoryPolicy(t,n){return r.upsertCategoryPolicy(t,n).then(o=>o(e,s))},upsertPrinter(t,n){return r.upsertPrinter(t,n).then(o=>o(e,s))},upsertProductPolicy(t,n){return r.upsertProductPolicy(t,n).then(o=>o(e,s))}}},tt=class extends V{deleteCategoryPolicy(s,e,r){return _(this.configuration).deleteCategoryPolicy(s,e,r).then(t=>t(this.axios,this.basePath))}deletePrinter(s,e,r){return _(this.configuration).deletePrinter(s,e,r).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(s,e,r){return _(this.configuration).deletePrinterByAddress(s,e,r).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(s,e,r){return _(this.configuration).deleteProductPolicy(s,e,r).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(s,e){return _(this.configuration).listCategoryPolicies(s,e).then(r=>r(this.axios,this.basePath))}listPrinters(s,e){return _(this.configuration).listPrinters(s,e).then(r=>r(this.axios,this.basePath))}listProductPolicies(s,e){return _(this.configuration).listProductPolicies(s,e).then(r=>r(this.axios,this.basePath))}upsertCategoryPolicy(s,e){return _(this.configuration).upsertCategoryPolicy(s,e).then(r=>r(this.axios,this.basePath))}upsertPrinter(s,e){return _(this.configuration).upsertPrinter(s,e).then(r=>r(this.axios,this.basePath))}upsertProductPolicy(s,e){return _(this.configuration).upsertProductPolicy(s,e).then(r=>r(this.axios,this.basePath))}},ns=function(a){return{generateProductSkuV2:async(s,e,r,t={})=>{c("generateProductSkuV2","businessId",s),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelInventoryV2:async(s,e,r,t={})=>{c("getChannelInventoryV2","businessId",s),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(s,e,r,t,n={})=>{c("updateChannelInventoryV2","businessId",s),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",r),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",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(s,e,r,t,n={})=>{c("updateProductSkuV2","businessId",s),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",r),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},se=function(a){let s=ns(a);return{async generateProductSkuV2(e,r,t,n){let o=await s.generateProductSkuV2(e,r,t,n);return P(o,h.default,p,a)},async getChannelInventoryV2(e,r,t,n){let o=await s.getChannelInventoryV2(e,r,t,n);return P(o,h.default,p,a)},async updateChannelInventoryV2(e,r,t,n,o){let i=await s.updateChannelInventoryV2(e,r,t,n,o);return P(i,h.default,p,a)},async updateProductSkuV2(e,r,t,n,o){let i=await s.updateProductSkuV2(e,r,t,n,o);return P(i,h.default,p,a)}}},yo=function(a,s,e){let r=se(a);return{generateProductSkuV2(t,n,o,i){return r.generateProductSkuV2(t,n,o,i).then(l=>l(e,s))},getChannelInventoryV2(t,n,o,i){return r.getChannelInventoryV2(t,n,o,i).then(l=>l(e,s))},updateChannelInventoryV2(t,n,o,i,l){return r.updateChannelInventoryV2(t,n,o,i,l).then(u=>u(e,s))},updateProductSkuV2(t,n,o,i,l){return r.updateProductSkuV2(t,n,o,i,l).then(u=>u(e,s))}}},st=class extends V{generateProductSkuV2(s,e,r,t){return se(this.configuration).generateProductSkuV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}getChannelInventoryV2(s,e,r,t){return se(this.configuration).getChannelInventoryV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(s,e,r,t,n){return se(this.configuration).updateChannelInventoryV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(s,e,r,t,n){return se(this.configuration).updateProductSkuV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}},os=function(a){return{createOnboardingSession:async(s,e,r={})=>{c("createOnboardingSession","channel",s),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},disconnectOnboarding:async(s,e,r={})=>{c("disconnectOnboarding","channel",s),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getMenuIntegrations:async(s,e={})=>{c("getMenuIntegrations","businessId",s);let r="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOnboardingStatus:async(s,e,r={})=>{c("getOnboardingStatus","channel",s),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getSupportedChannels:async(s,e={})=>{c("getSupportedChannels","businessId",s);let r="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listOnboardingStores:async(s,e,r={})=>{c("listOnboardingStores","channel",s),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(s))).replace("{state}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},provisionOnboardingStore:async(s,e,r,t={})=>{c("provisionOnboardingStore","channel",s),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",r);let n="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(s))).replace("{state}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}},registerCredential:async(s,e={})=>{c("registerCredential","body",s);let r="/api/v1/provider/credentials",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},registerProvider:async(s,e={})=>{c("registerProvider","body",s);let r="/api/v1/provider",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updateProviderSettings:async(s,e,r={})=>{c("updateProviderSettings","businessId",s),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},L=function(a){let s=os(a);return{async createOnboardingSession(e,r,t){let n=await s.createOnboardingSession(e,r,t);return P(n,h.default,p,a)},async disconnectOnboarding(e,r,t){let n=await s.disconnectOnboarding(e,r,t);return P(n,h.default,p,a)},async getMenuIntegrations(e,r){let t=await s.getMenuIntegrations(e,r);return P(t,h.default,p,a)},async getOnboardingStatus(e,r,t){let n=await s.getOnboardingStatus(e,r,t);return P(n,h.default,p,a)},async getSupportedChannels(e,r){let t=await s.getSupportedChannels(e,r);return P(t,h.default,p,a)},async listOnboardingStores(e,r,t){let n=await s.listOnboardingStores(e,r,t);return P(n,h.default,p,a)},async provisionOnboardingStore(e,r,t,n){let o=await s.provisionOnboardingStore(e,r,t,n);return P(o,h.default,p,a)},async registerCredential(e,r){let t=await s.registerCredential(e,r);return P(t,h.default,p,a)},async registerProvider(e,r){let t=await s.registerProvider(e,r);return P(t,h.default,p,a)},async updateProviderSettings(e,r,t){let n=await s.updateProviderSettings(e,r,t);return P(n,h.default,p,a)}}},Po=function(a,s,e){let r=L(a);return{createOnboardingSession(t,n,o){return r.createOnboardingSession(t,n,o).then(i=>i(e,s))},disconnectOnboarding(t,n,o){return r.disconnectOnboarding(t,n,o).then(i=>i(e,s))},getMenuIntegrations(t,n){return r.getMenuIntegrations(t,n).then(o=>o(e,s))},getOnboardingStatus(t,n,o){return r.getOnboardingStatus(t,n,o).then(i=>i(e,s))},getSupportedChannels(t,n){return r.getSupportedChannels(t,n).then(o=>o(e,s))},listOnboardingStores(t,n,o){return r.listOnboardingStores(t,n,o).then(i=>i(e,s))},provisionOnboardingStore(t,n,o,i){return r.provisionOnboardingStore(t,n,o,i).then(l=>l(e,s))},registerCredential(t,n){return r.registerCredential(t,n).then(o=>o(e,s))},registerProvider(t,n){return r.registerProvider(t,n).then(o=>o(e,s))},updateProviderSettings(t,n,o){return r.updateProviderSettings(t,n,o).then(i=>i(e,s))}}},rt=class extends V{createOnboardingSession(s,e,r){return L(this.configuration).createOnboardingSession(s,e,r).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(s,e,r){return L(this.configuration).disconnectOnboarding(s,e,r).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(s,e){return L(this.configuration).getMenuIntegrations(s,e).then(r=>r(this.axios,this.basePath))}getOnboardingStatus(s,e,r){return L(this.configuration).getOnboardingStatus(s,e,r).then(t=>t(this.axios,this.basePath))}getSupportedChannels(s,e){return L(this.configuration).getSupportedChannels(s,e).then(r=>r(this.axios,this.basePath))}listOnboardingStores(s,e,r){return L(this.configuration).listOnboardingStores(s,e,r).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(s,e,r,t){return L(this.configuration).provisionOnboardingStore(s,e,r,t).then(n=>n(this.axios,this.basePath))}registerCredential(s,e){return L(this.configuration).registerCredential(s,e).then(r=>r(this.axios,this.basePath))}registerProvider(s,e){return L(this.configuration).registerProvider(s,e).then(r=>r(this.axios,this.basePath))}updateProviderSettings(s,e,r){return L(this.configuration).updateProviderSettings(s,e,r).then(t=>t(this.axios,this.basePath))}},as=function(a){return{cancelPlan:async(s,e,r,t={})=>{c("cancelPlan","businessId",s),c("cancelPlan","orderId",e),c("cancelPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},cancelPlanV2:async(s,e,r,t={})=>{c("cancelPlanV2","businessId",s),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},createRefundPlan:async(s,e,r,t={})=>{c("createRefundPlan","businessId",s),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}},createRefundPlanV2:async(s,e,r,t={})=>{c("createRefundPlanV2","businessId",s),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(r,l,a),{url:y(o),options:l}},getRefundPlan:async(s,e,r,t={})=>{c("getRefundPlan","businessId",s),c("getRefundPlan","orderId",e),c("getRefundPlan","status",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.status=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getRefundPlanV2:async(s,e,r,t={})=>{c("getRefundPlanV2","businessId",s),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.status=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(s,e,r,t,n={})=>{c("recordRefundPlan","businessId",s),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",r),c("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",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(s,e,r,t,n={})=>{c("recordRefundPlanV2","businessId",s),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",r),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",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(s,e,r,t={})=>{c("refundOnlineOrder","businessId",s),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};r!==void 0&&(d.provider=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},refundOnlineOrderV2:async(s,e,r,t={})=>{c("refundOnlineOrderV2","businessId",s),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};r!==void 0&&(d.provider=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(s,e,r,t,n={})=>{c("resolveRefundChoice","businessId",s),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",r),c("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",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(s,e,r,t,n={})=>{c("resolveRefundChoiceV2","businessId",s),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",r),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},A={};d["Content-Type"]="application/json",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(s,e,r,t={})=>{c("startProcessPlan","businessId",s),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},startProcessPlanV2:async(s,e,r,t={})=>{c("startProcessPlanV2","businessId",s),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",r);let n="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};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 s=as(a);return{async cancelPlan(e,r,t,n){let o=await s.cancelPlan(e,r,t,n);return P(o,h.default,p,a)},async cancelPlanV2(e,r,t,n){let o=await s.cancelPlanV2(e,r,t,n);return P(o,h.default,p,a)},async createRefundPlan(e,r,t,n){let o=await s.createRefundPlan(e,r,t,n);return P(o,h.default,p,a)},async createRefundPlanV2(e,r,t,n){let o=await s.createRefundPlanV2(e,r,t,n);return P(o,h.default,p,a)},async getRefundPlan(e,r,t,n){let o=await s.getRefundPlan(e,r,t,n);return P(o,h.default,p,a)},async getRefundPlanV2(e,r,t,n){let o=await s.getRefundPlanV2(e,r,t,n);return P(o,h.default,p,a)},async recordRefundPlan(e,r,t,n,o){let i=await s.recordRefundPlan(e,r,t,n,o);return P(i,h.default,p,a)},async recordRefundPlanV2(e,r,t,n,o){let i=await s.recordRefundPlanV2(e,r,t,n,o);return P(i,h.default,p,a)},async refundOnlineOrder(e,r,t,n){let o=await s.refundOnlineOrder(e,r,t,n);return P(o,h.default,p,a)},async refundOnlineOrderV2(e,r,t,n){let o=await s.refundOnlineOrderV2(e,r,t,n);return P(o,h.default,p,a)},async resolveRefundChoice(e,r,t,n,o){let i=await s.resolveRefundChoice(e,r,t,n,o);return P(i,h.default,p,a)},async resolveRefundChoiceV2(e,r,t,n,o){let i=await s.resolveRefundChoiceV2(e,r,t,n,o);return P(i,h.default,p,a)},async startProcessPlan(e,r,t,n){let o=await s.startProcessPlan(e,r,t,n);return P(o,h.default,p,a)},async startProcessPlanV2(e,r,t,n){let o=await s.startProcessPlanV2(e,r,t,n);return P(o,h.default,p,a)}}},ho=function(a,s,e){let r=M(a);return{cancelPlan(t,n,o,i){return r.cancelPlan(t,n,o,i).then(l=>l(e,s))},cancelPlanV2(t,n,o,i){return r.cancelPlanV2(t,n,o,i).then(l=>l(e,s))},createRefundPlan(t,n,o,i){return r.createRefundPlan(t,n,o,i).then(l=>l(e,s))},createRefundPlanV2(t,n,o,i){return r.createRefundPlanV2(t,n,o,i).then(l=>l(e,s))},getRefundPlan(t,n,o,i){return r.getRefundPlan(t,n,o,i).then(l=>l(e,s))},getRefundPlanV2(t,n,o,i){return r.getRefundPlanV2(t,n,o,i).then(l=>l(e,s))},recordRefundPlan(t,n,o,i,l){return r.recordRefundPlan(t,n,o,i,l).then(u=>u(e,s))},recordRefundPlanV2(t,n,o,i,l){return r.recordRefundPlanV2(t,n,o,i,l).then(u=>u(e,s))},refundOnlineOrder(t,n,o,i){return r.refundOnlineOrder(t,n,o,i).then(l=>l(e,s))},refundOnlineOrderV2(t,n,o,i){return r.refundOnlineOrderV2(t,n,o,i).then(l=>l(e,s))},resolveRefundChoice(t,n,o,i,l){return r.resolveRefundChoice(t,n,o,i,l).then(u=>u(e,s))},resolveRefundChoiceV2(t,n,o,i,l){return r.resolveRefundChoiceV2(t,n,o,i,l).then(u=>u(e,s))},startProcessPlan(t,n,o,i){return r.startProcessPlan(t,n,o,i).then(l=>l(e,s))},startProcessPlanV2(t,n,o,i){return r.startProcessPlanV2(t,n,o,i).then(l=>l(e,s))}}},nt=class extends V{cancelPlan(s,e,r,t){return M(this.configuration).cancelPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}cancelPlanV2(s,e,r,t){return M(this.configuration).cancelPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}createRefundPlan(s,e,r,t){return M(this.configuration).createRefundPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}createRefundPlanV2(s,e,r,t){return M(this.configuration).createRefundPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}getRefundPlan(s,e,r,t){return M(this.configuration).getRefundPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}getRefundPlanV2(s,e,r,t){return M(this.configuration).getRefundPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}recordRefundPlan(s,e,r,t,n){return M(this.configuration).recordRefundPlan(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(s,e,r,t,n){return M(this.configuration).recordRefundPlanV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,r,t){return M(this.configuration).refundOnlineOrder(s,e,r,t).then(n=>n(this.axios,this.basePath))}refundOnlineOrderV2(s,e,r,t){return M(this.configuration).refundOnlineOrderV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(s,e,r,t,n){return M(this.configuration).resolveRefundChoice(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(s,e,r,t,n){return M(this.configuration).resolveRefundChoiceV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,r,t){return M(this.configuration).startProcessPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}startProcessPlanV2(s,e,r,t){return M(this.configuration).startProcessPlanV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}},is=function(a){return{getEndOfDayReportV5:async(s,e,r,t,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",s);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),r!==void 0&&(R.start=r),t!==void 0&&(R.end=t),s&&(R.businessIds=s),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(s,e,r,t,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",s);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};e!==void 0&&(x.timeSpan=e),r!==void 0&&(x.start=r),t!==void 0&&(x.end=t),s&&(x.businessIds=s),n!==void 0&&(x.timezone=n),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(s,e,r,t,n,o,i={})=>{c("sendReportEmailV4","businessIds",s),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",r);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},x={},R={};t!==void 0&&(R.timeSpan=t),n!==void 0&&(R.start=n),o!==void 0&&(R.end=o),s&&(R.businessIds=s),e!==void 0&&(R.timezone=e),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(r,A,a),{url:y(u),options:A}},sendReportEmailV5:async(s,e,r,t,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",s),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",r);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},R={},C={};t!==void 0&&(C.timeSpan=t),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),s&&(C.businessIds=s),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(r,x,a),{url:y(d),options:x}}}},re=function(a){let s=is(a);return{async getEndOfDayReportV5(e,r,t,n,o,i,l){let u=await s.getEndOfDayReportV5(e,r,t,n,o,i,l);return P(u,h.default,p,a)},async getPOSEndOfDayReportV4(e,r,t,n,o,i){let l=await s.getPOSEndOfDayReportV4(e,r,t,n,o,i);return P(l,h.default,p,a)},async sendReportEmailV4(e,r,t,n,o,i,l){let u=await s.sendReportEmailV4(e,r,t,n,o,i,l);return P(u,h.default,p,a)},async sendReportEmailV5(e,r,t,n,o,i,l,u){let d=await s.sendReportEmailV5(e,r,t,n,o,i,l,u);return P(d,h.default,p,a)}}},Ao=function(a,s,e){let r=re(a);return{getEndOfDayReportV5(t,n,o,i,l,u,d){return r.getEndOfDayReportV5(t,n,o,i,l,u,d).then(A=>A(e,s))},getPOSEndOfDayReportV4(t,n,o,i,l,u){return r.getPOSEndOfDayReportV4(t,n,o,i,l,u).then(d=>d(e,s))},sendReportEmailV4(t,n,o,i,l,u,d){return r.sendReportEmailV4(t,n,o,i,l,u,d).then(A=>A(e,s))},sendReportEmailV5(t,n,o,i,l,u,d,A){return r.sendReportEmailV5(t,n,o,i,l,u,d,A).then(x=>x(e,s))}}},ot=class extends V{getEndOfDayReportV5(s,e,r,t,n,o,i){return re(this.configuration).getEndOfDayReportV5(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(s,e,r,t,n,o){return re(this.configuration).getPOSEndOfDayReportV4(s,e,r,t,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(s,e,r,t,n,o,i){return re(this.configuration).sendReportEmailV4(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(s,e,r,t,n,o,i,l){return re(this.configuration).sendReportEmailV5(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},ls=function(a){return{createReservation:async(s,e={})=>{c("createReservation","createReservationDto",s);let r="/api/v1/reservations",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},getReservationAvailability:async(s,e,r,t,n={})=>{c("getReservationAvailability","businessId",s),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",r);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),s!==void 0&&(A.businessId=s),e!==void 0&&(A.date=e),r!==void 0&&(A.partySize=r),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(s,e={})=>{c("getReservationPolicy","businessId",s);let r="/api/v1/reservations/policy",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},linkReservationIntegration:async(s,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",s);let r="/api/v1/reservations/link",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},listReservations:async(s,e,r,t={})=>{c("listReservations","businessId",s);let n="/api/v1/reservations",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.date=e),r!==void 0&&(d.status=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},reservationInboundWebhook:async(s,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",s);let r="/api/v1/reservations/webhook/inbound",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},unlinkReservationIntegration:async(s,e={})=>{c("unlinkReservationIntegration","businessId",s);let r="/api/v1/reservations/link",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateReservation:async(s,e,r,t={})=>{c("updateReservation","id",s),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",r);let n="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}},updateReservationPolicy:async(s,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",s);let r="/api/v1/reservations/policy",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await 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(s,o,a),{url:y(t),options:o}},updateReservationStatus:async(s,e,r,t={})=>{c("updateReservationStatus","id",s),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",r);let n="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await 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(r,l,a),{url:y(o),options:l}}}},N=function(a){let s=ls(a);return{async createReservation(e,r){let t=await s.createReservation(e,r);return P(t,h.default,p,a)},async getReservationAvailability(e,r,t,n,o){let i=await s.getReservationAvailability(e,r,t,n,o);return P(i,h.default,p,a)},async getReservationPolicy(e,r){let t=await s.getReservationPolicy(e,r);return P(t,h.default,p,a)},async linkReservationIntegration(e,r){let t=await s.linkReservationIntegration(e,r);return P(t,h.default,p,a)},async listReservations(e,r,t,n){let o=await s.listReservations(e,r,t,n);return P(o,h.default,p,a)},async reservationInboundWebhook(e,r){let t=await s.reservationInboundWebhook(e,r);return P(t,h.default,p,a)},async unlinkReservationIntegration(e,r){let t=await s.unlinkReservationIntegration(e,r);return P(t,h.default,p,a)},async updateReservation(e,r,t,n){let o=await s.updateReservation(e,r,t,n);return P(o,h.default,p,a)},async updateReservationPolicy(e,r){let t=await s.updateReservationPolicy(e,r);return P(t,h.default,p,a)},async updateReservationStatus(e,r,t,n){let o=await s.updateReservationStatus(e,r,t,n);return P(o,h.default,p,a)}}},bo=function(a,s,e){let r=N(a);return{createReservation(t,n){return r.createReservation(t,n).then(o=>o(e,s))},getReservationAvailability(t,n,o,i,l){return r.getReservationAvailability(t,n,o,i,l).then(u=>u(e,s))},getReservationPolicy(t,n){return r.getReservationPolicy(t,n).then(o=>o(e,s))},linkReservationIntegration(t,n){return r.linkReservationIntegration(t,n).then(o=>o(e,s))},listReservations(t,n,o,i){return r.listReservations(t,n,o,i).then(l=>l(e,s))},reservationInboundWebhook(t,n){return r.reservationInboundWebhook(t,n).then(o=>o(e,s))},unlinkReservationIntegration(t,n){return r.unlinkReservationIntegration(t,n).then(o=>o(e,s))},updateReservation(t,n,o,i){return r.updateReservation(t,n,o,i).then(l=>l(e,s))},updateReservationPolicy(t,n){return r.updateReservationPolicy(t,n).then(o=>o(e,s))},updateReservationStatus(t,n,o,i){return r.updateReservationStatus(t,n,o,i).then(l=>l(e,s))}}},at=class extends V{createReservation(s,e){return N(this.configuration).createReservation(s,e).then(r=>r(this.axios,this.basePath))}getReservationAvailability(s,e,r,t,n){return N(this.configuration).getReservationAvailability(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}getReservationPolicy(s,e){return N(this.configuration).getReservationPolicy(s,e).then(r=>r(this.axios,this.basePath))}linkReservationIntegration(s,e){return N(this.configuration).linkReservationIntegration(s,e).then(r=>r(this.axios,this.basePath))}listReservations(s,e,r,t){return N(this.configuration).listReservations(s,e,r,t).then(n=>n(this.axios,this.basePath))}reservationInboundWebhook(s,e){return N(this.configuration).reservationInboundWebhook(s,e).then(r=>r(this.axios,this.basePath))}unlinkReservationIntegration(s,e){return N(this.configuration).unlinkReservationIntegration(s,e).then(r=>r(this.axios,this.basePath))}updateReservation(s,e,r,t){return N(this.configuration).updateReservation(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateReservationPolicy(s,e){return N(this.configuration).updateReservationPolicy(s,e).then(r=>r(this.axios,this.basePath))}updateReservationStatus(s,e,r,t){return N(this.configuration).updateReservationStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},us=function(a){return{clockIn:async(s,e,r={})=>{c("clockIn","businessId",s),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},clockOut:async(s,e,r={})=>{c("clockOut","businessId",s),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getTodayShift:async(s,e,r={})=>{c("getTodayShift","businessId",s),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.employeeId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},unlock:async(s,e,r={})=>{c("unlock","businessId",s),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}}}},ne=function(a){let s=us(a);return{async clockIn(e,r,t){let n=await s.clockIn(e,r,t);return P(n,h.default,p,a)},async clockOut(e,r,t){let n=await s.clockOut(e,r,t);return P(n,h.default,p,a)},async getTodayShift(e,r,t){let n=await s.getTodayShift(e,r,t);return P(n,h.default,p,a)},async unlock(e,r,t){let n=await s.unlock(e,r,t);return P(n,h.default,p,a)}}},xo=function(a,s,e){let r=ne(a);return{clockIn(t,n,o){return r.clockIn(t,n,o).then(i=>i(e,s))},clockOut(t,n,o){return r.clockOut(t,n,o).then(i=>i(e,s))},getTodayShift(t,n,o){return r.getTodayShift(t,n,o).then(i=>i(e,s))},unlock(t,n,o){return r.unlock(t,n,o).then(i=>i(e,s))}}},it=class extends V{clockIn(s,e,r){return ne(this.configuration).clockIn(s,e,r).then(t=>t(this.axios,this.basePath))}clockOut(s,e,r){return ne(this.configuration).clockOut(s,e,r).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,r){return ne(this.configuration).getTodayShift(s,e,r).then(t=>t(this.axios,this.basePath))}unlock(s,e,r){return ne(this.configuration).unlock(s,e,r).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{deactivateStation:async(s={})=>{let e="/api/v1/station/deactivate",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getStation:async(s={})=>{let e="/api/v1/station",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},syncStation:async(s,e={})=>{c("syncStation","syncStationDto",s);let r="/api/v1/station/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},pe=function(a){let s=cs(a);return{async deactivateStation(e){let r=await s.deactivateStation(e);return P(r,h.default,p,a)},async getStation(e){let r=await s.getStation(e);return P(r,h.default,p,a)},async syncStation(e,r){let t=await s.syncStation(e,r);return P(t,h.default,p,a)}}},fo=function(a,s,e){let r=pe(a);return{deactivateStation(t){return r.deactivateStation(t).then(n=>n(e,s))},getStation(t){return r.getStation(t).then(n=>n(e,s))},syncStation(t,n){return r.syncStation(t,n).then(o=>o(e,s))}}},lt=class extends V{deactivateStation(s){return pe(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return pe(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return pe(this.configuration).syncStation(s,e).then(r=>r(this.axios,this.basePath))}},ds=function(a){return{connectTerminal:async(s,e={})=>{c("connectTerminal","connectTerminalDto",s);let r="/api/v1/terminal/connect",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},disconnectTerminal:async(s={})=>{let e="/api/v1/terminal/disconnect",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},discoverTerminal:async(s,e={})=>{c("discoverTerminal","discoverTerminalDto",s);let r="/api/v1/terminal/discover",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getTerminalStatus:async(s,e,r,t={})=>{c("getTerminalStatus","businessId",s),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",r);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.provider=e),r!==void 0&&(d.terminalId=r),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},oe=function(a){let s=ds(a);return{async connectTerminal(e,r){let t=await s.connectTerminal(e,r);return P(t,h.default,p,a)},async disconnectTerminal(e){let r=await s.disconnectTerminal(e);return P(r,h.default,p,a)},async discoverTerminal(e,r){let t=await s.discoverTerminal(e,r);return P(t,h.default,p,a)},async getTerminalStatus(e,r,t,n){let o=await s.getTerminalStatus(e,r,t,n);return P(o,h.default,p,a)}}},Ro=function(a,s,e){let r=oe(a);return{connectTerminal(t,n){return r.connectTerminal(t,n).then(o=>o(e,s))},disconnectTerminal(t){return r.disconnectTerminal(t).then(n=>n(e,s))},discoverTerminal(t,n){return r.discoverTerminal(t,n).then(o=>o(e,s))},getTerminalStatus(t,n,o,i){return r.getTerminalStatus(t,n,o,i).then(l=>l(e,s))}}},ut=class extends V{connectTerminal(s,e){return oe(this.configuration).connectTerminal(s,e).then(r=>r(this.axios,this.basePath))}disconnectTerminal(s){return oe(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return oe(this.configuration).discoverTerminal(s,e).then(r=>r(this.axios,this.basePath))}getTerminalStatus(s,e,r,t){return oe(this.configuration).getTerminalStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},ps=function(a){return{getUserBusinessV1:async(s={})=>{let e="/api/v1/user/business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await f(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await f(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getUserInfoV1:async(s={})=>{let e="/api/v1/user",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await f(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},me=function(a){let s=ps(a);return{async getUserBusinessV1(e){let r=await s.getUserBusinessV1(e);return P(r,h.default,p,a)},async getUserBusinessV2(e){let r=await s.getUserBusinessV2(e);return P(r,h.default,p,a)},async getUserInfoV1(e){let r=await s.getUserInfoV1(e);return P(r,h.default,p,a)}}},Co=function(a,s,e){let r=me(a);return{getUserBusinessV1(t){return r.getUserBusinessV1(t).then(n=>n(e,s))},getUserBusinessV2(t){return r.getUserBusinessV2(t).then(n=>n(e,s))},getUserInfoV1(t){return r.getUserInfoV1(t).then(n=>n(e,s))}}},ct=class extends V{getUserBusinessV1(s){return me(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return me(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return me(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},ms=function(a){return{upsert:async(s,e={})=>{c("upsert","body",s);let r="/api/v1/vendure/seller/upsert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},xt=function(a){let s=ms(a);return{async upsert(e,r){let t=await s.upsert(e,r);return P(t,h.default,p,a)}}},Do=function(a,s,e){let r=xt(a);return{upsert(t,n){return r.upsert(t,n).then(o=>o(e,s))}}},dt=class extends V{upsert(s,e){return xt(this.configuration).upsert(s,e).then(r=>r(this.axios,this.basePath))}},gs=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",s);let r="/api/v1/viva/a2a/create-payment",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getVivaSession:async(s,e={})=>{c("getVivaSession","id",s);let r="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listVivaSessions:async(s,e,r,t,n,o,i,l={})=>{c("listVivaSessions","businessId",s);let u="/api/v1/viva/sessions",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};s!==void 0&&(C.businessId=s),e!==void 0&&(C.page=e),r!==void 0&&(C.rowPerPage=r),t!==void 0&&(C.terminalId=t),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),i!==void 0&&(C.search=i),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},refundVivaPayment:async(s,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",s);let r="/api/v1/viva/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ae=function(a){let s=gs(a);return{async createVivaAppToAppPayment(e,r){let t=await s.createVivaAppToAppPayment(e,r);return P(t,h.default,p,a)},async getVivaSession(e,r){let t=await s.getVivaSession(e,r);return P(t,h.default,p,a)},async listVivaSessions(e,r,t,n,o,i,l,u){let d=await s.listVivaSessions(e,r,t,n,o,i,l,u);return P(d,h.default,p,a)},async refundVivaPayment(e,r){let t=await s.refundVivaPayment(e,r);return P(t,h.default,p,a)}}},Oo=function(a,s,e){let r=ae(a);return{createVivaAppToAppPayment(t,n){return r.createVivaAppToAppPayment(t,n).then(o=>o(e,s))},getVivaSession(t,n){return r.getVivaSession(t,n).then(o=>o(e,s))},listVivaSessions(t,n,o,i,l,u,d,A){return r.listVivaSessions(t,n,o,i,l,u,d,A).then(x=>x(e,s))},refundVivaPayment(t,n){return r.refundVivaPayment(t,n).then(o=>o(e,s))}}},pt=class extends V{createVivaAppToAppPayment(s,e){return ae(this.configuration).createVivaAppToAppPayment(s,e).then(r=>r(this.axios,this.basePath))}getVivaSession(s,e){return ae(this.configuration).getVivaSession(s,e).then(r=>r(this.axios,this.basePath))}listVivaSessions(s,e,r,t,n,o,i,l){return ae(this.configuration).listVivaSessions(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}refundVivaPayment(s,e){return ae(this.configuration).refundVivaPayment(s,e).then(r=>r(this.axios,this.basePath))}},ys=function(a){return{handleAssignmentWebhook:async(s={})=>{let e="/api/webhook/add-employee-assignments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleBusinessWebhook:async(s={})=>{let e="/api/webhook/add-business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleFoodoraEvent:async(s,e={})=>{c("handleFoodoraEvent","orderUpdateDto",s);let r="/api/webhook/order/event",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleLoadEmployee:async(s={})=>{let e="/api/webhook/load-employee",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleNetsEvents:async(s={})=>{let e="/api/webhook/nets",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleNetsEventsV2:async(s={})=>{let e="/api/webhook/v2/nets",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleNetsSessionEvents:async(s={})=>{let e="/api/webhook/nets/payments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handlePreorderReminder:async(s,e={})=>{c("handlePreorderReminder","preOrderReminderDto",s);let r="/api/webhook/preorder-reminder",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleRoleWebhook:async(s={})=>{let e="/api/webhook/add-roles",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleShiftWebhook:async(s={})=>{let e="/api/webhook/add-employee-shifts",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleVivaEvents:async(s,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",s);let r="/api/webhook/viva/verification",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleVivaSessionEvents:async(s,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",s);let r="/api/webhook/viva/payments",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleWebhook:async(s={})=>{let e="/api/webhook/ship-day",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleWoltDriveEvent:async(s={})=>{let e="/api/webhook/wolt-drive/event",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleWoltDriveEventByCountry:async(s,e={})=>{c("handleWoltDriveEventByCountry","country",s);let r="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(s={})=>{let e="/api/webhook/worldline/events",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleWorldlineSessionEvents:async(s={})=>{let e="/api/webhook/worldline/payments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},processPosOrderActionsQueue:async(s,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",s);let r="/api/webhook/pos/order-actions/process",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updateWoltProduct:async(s={})=>{let e="/api/webhook/wolt/product/edit",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},verifyVivaSessionWebhook:async(s={})=>{let e="/api/webhook/viva/payments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},verifyVivaWebhook:async(s={})=>{let e="/api/webhook/viva/verification",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},U=function(a){let s=ys(a);return{async handleAssignmentWebhook(e){let r=await s.handleAssignmentWebhook(e);return P(r,h.default,p,a)},async handleBusinessWebhook(e){let r=await s.handleBusinessWebhook(e);return P(r,h.default,p,a)},async handleFoodoraEvent(e,r){let t=await s.handleFoodoraEvent(e,r);return P(t,h.default,p,a)},async handleLoadEmployee(e){let r=await s.handleLoadEmployee(e);return P(r,h.default,p,a)},async handleNetsEvents(e){let r=await s.handleNetsEvents(e);return P(r,h.default,p,a)},async handleNetsEventsV2(e){let r=await s.handleNetsEventsV2(e);return P(r,h.default,p,a)},async handleNetsSessionEvents(e){let r=await s.handleNetsSessionEvents(e);return P(r,h.default,p,a)},async handlePreorderReminder(e,r){let t=await s.handlePreorderReminder(e,r);return P(t,h.default,p,a)},async handleRoleWebhook(e){let r=await s.handleRoleWebhook(e);return P(r,h.default,p,a)},async handleShiftWebhook(e){let r=await s.handleShiftWebhook(e);return P(r,h.default,p,a)},async handleVivaEvents(e,r){let t=await s.handleVivaEvents(e,r);return P(t,h.default,p,a)},async handleVivaSessionEvents(e,r){let t=await s.handleVivaSessionEvents(e,r);return P(t,h.default,p,a)},async handleWebhook(e){let r=await s.handleWebhook(e);return P(r,h.default,p,a)},async handleWoltDriveEvent(e){let r=await s.handleWoltDriveEvent(e);return P(r,h.default,p,a)},async handleWoltDriveEventByCountry(e,r){let t=await s.handleWoltDriveEventByCountry(e,r);return P(t,h.default,p,a)},async handleWorldlineEvents(e){let r=await s.handleWorldlineEvents(e);return P(r,h.default,p,a)},async handleWorldlineSessionEvents(e){let r=await s.handleWorldlineSessionEvents(e);return P(r,h.default,p,a)},async processPosOrderActionsQueue(e,r){let t=await s.processPosOrderActionsQueue(e,r);return P(t,h.default,p,a)},async updateWoltProduct(e){let r=await s.updateWoltProduct(e);return P(r,h.default,p,a)},async verifyVivaSessionWebhook(e){let r=await s.verifyVivaSessionWebhook(e);return P(r,h.default,p,a)},async verifyVivaWebhook(e){let r=await s.verifyVivaWebhook(e);return P(r,h.default,p,a)}}},Vo=function(a,s,e){let r=U(a);return{handleAssignmentWebhook(t){return r.handleAssignmentWebhook(t).then(n=>n(e,s))},handleBusinessWebhook(t){return r.handleBusinessWebhook(t).then(n=>n(e,s))},handleFoodoraEvent(t,n){return r.handleFoodoraEvent(t,n).then(o=>o(e,s))},handleLoadEmployee(t){return r.handleLoadEmployee(t).then(n=>n(e,s))},handleNetsEvents(t){return r.handleNetsEvents(t).then(n=>n(e,s))},handleNetsEventsV2(t){return r.handleNetsEventsV2(t).then(n=>n(e,s))},handleNetsSessionEvents(t){return r.handleNetsSessionEvents(t).then(n=>n(e,s))},handlePreorderReminder(t,n){return r.handlePreorderReminder(t,n).then(o=>o(e,s))},handleRoleWebhook(t){return r.handleRoleWebhook(t).then(n=>n(e,s))},handleShiftWebhook(t){return r.handleShiftWebhook(t).then(n=>n(e,s))},handleVivaEvents(t,n){return r.handleVivaEvents(t,n).then(o=>o(e,s))},handleVivaSessionEvents(t,n){return r.handleVivaSessionEvents(t,n).then(o=>o(e,s))},handleWebhook(t){return r.handleWebhook(t).then(n=>n(e,s))},handleWoltDriveEvent(t){return r.handleWoltDriveEvent(t).then(n=>n(e,s))},handleWoltDriveEventByCountry(t,n){return r.handleWoltDriveEventByCountry(t,n).then(o=>o(e,s))},handleWorldlineEvents(t){return r.handleWorldlineEvents(t).then(n=>n(e,s))},handleWorldlineSessionEvents(t){return r.handleWorldlineSessionEvents(t).then(n=>n(e,s))},processPosOrderActionsQueue(t,n){return r.processPosOrderActionsQueue(t,n).then(o=>o(e,s))},updateWoltProduct(t){return r.updateWoltProduct(t).then(n=>n(e,s))},verifyVivaSessionWebhook(t){return r.verifyVivaSessionWebhook(t).then(n=>n(e,s))},verifyVivaWebhook(t){return r.verifyVivaWebhook(t).then(n=>n(e,s))}}},mt=class extends V{handleAssignmentWebhook(s){return U(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return U(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return U(this.configuration).handleFoodoraEvent(s,e).then(r=>r(this.axios,this.basePath))}handleLoadEmployee(s){return U(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return U(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return U(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(s){return U(this.configuration).handleNetsSessionEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return U(this.configuration).handlePreorderReminder(s,e).then(r=>r(this.axios,this.basePath))}handleRoleWebhook(s){return U(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return U(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return U(this.configuration).handleVivaEvents(s,e).then(r=>r(this.axios,this.basePath))}handleVivaSessionEvents(s,e){return U(this.configuration).handleVivaSessionEvents(s,e).then(r=>r(this.axios,this.basePath))}handleWebhook(s){return U(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return U(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return U(this.configuration).handleWoltDriveEventByCountry(s,e).then(r=>r(this.axios,this.basePath))}handleWorldlineEvents(s){return U(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(s){return U(this.configuration).handleWorldlineSessionEvents(s).then(e=>e(this.axios,this.basePath))}processPosOrderActionsQueue(s,e){return U(this.configuration).processPosOrderActionsQueue(s,e).then(r=>r(this.axios,this.basePath))}updateWoltProduct(s){return U(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(s){return U(this.configuration).verifyVivaSessionWebhook(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return U(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},Ps=function(a){return{cancelPayment:async(s,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",s);let r="/api/v1/worldline/payment/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createPayment:async(s,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",s);let r="/api/v1/worldline/payment",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createRefund:async(s,e={})=>{c("createRefund","createWorldlineRefundDto",s);let r="/api/v1/worldline/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ge=function(a){let s=Ps(a);return{async cancelPayment(e,r){let t=await s.cancelPayment(e,r);return P(t,h.default,p,a)},async createPayment(e,r){let t=await s.createPayment(e,r);return P(t,h.default,p,a)},async createRefund(e,r){let t=await s.createRefund(e,r);return P(t,h.default,p,a)}}},So=function(a,s,e){let r=ge(a);return{cancelPayment(t,n){return r.cancelPayment(t,n).then(o=>o(e,s))},createPayment(t,n){return r.createPayment(t,n).then(o=>o(e,s))},createRefund(t,n){return r.createRefund(t,n).then(o=>o(e,s))}}},gt=class extends V{cancelPayment(s,e){return ge(this.configuration).cancelPayment(s,e).then(r=>r(this.axios,this.basePath))}createPayment(s,e){return ge(this.configuration).createPayment(s,e).then(r=>r(this.axios,this.basePath))}createRefund(s,e){return ge(this.configuration).createRefund(s,e).then(r=>r(this.axios,this.basePath))}},hs=function(a){return{createPaymentRequest:async(s,e,r={})=>{c("createPaymentRequest","terminalId",s),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},createRefundRequest:async(s,e,r={})=>{c("createRefundRequest","terminalId",s),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=b(e,i,a),{url:y(n),options:i}},getPaymentResult:async(s,e={})=>{c("getPaymentResult","operationId",s);let r="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(s,e,r={})=>{c("getTerminalAuthContext","terminalId",s),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalContext:async(s,e,r={})=>{c("getTerminalContext","terminalId",s),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalState:async(s,e={})=>{c("getTerminalState","terminalId",s);let r="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(s={})=>{let e="/api/v2/worldline/internal/callback",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},K=function(a){let s=hs(a);return{async createPaymentRequest(e,r,t){let n=await s.createPaymentRequest(e,r,t);return P(n,h.default,p,a)},async createRefundRequest(e,r,t){let n=await s.createRefundRequest(e,r,t);return P(n,h.default,p,a)},async getPaymentResult(e,r){let t=await s.getPaymentResult(e,r);return P(t,h.default,p,a)},async getTerminalAuthContext(e,r,t){let n=await s.getTerminalAuthContext(e,r,t);return P(n,h.default,p,a)},async getTerminalContext(e,r,t){let n=await s.getTerminalContext(e,r,t);return P(n,h.default,p,a)},async getTerminalState(e,r){let t=await s.getTerminalState(e,r);return P(t,h.default,p,a)},async handleCallback(e){let r=await s.handleCallback(e);return P(r,h.default,p,a)}}},Io=function(a,s,e){let r=K(a);return{createPaymentRequest(t,n,o){return r.createPaymentRequest(t,n,o).then(i=>i(e,s))},createRefundRequest(t,n,o){return r.createRefundRequest(t,n,o).then(i=>i(e,s))},getPaymentResult(t,n){return r.getPaymentResult(t,n).then(o=>o(e,s))},getTerminalAuthContext(t,n,o){return r.getTerminalAuthContext(t,n,o).then(i=>i(e,s))},getTerminalContext(t,n,o){return r.getTerminalContext(t,n,o).then(i=>i(e,s))},getTerminalState(t,n){return r.getTerminalState(t,n).then(o=>o(e,s))},handleCallback(t){return r.handleCallback(t).then(n=>n(e,s))}}},yt=class extends V{createPaymentRequest(s,e,r){return K(this.configuration).createPaymentRequest(s,e,r).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,r){return K(this.configuration).createRefundRequest(s,e,r).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return K(this.configuration).getPaymentResult(s,e).then(r=>r(this.axios,this.basePath))}getTerminalAuthContext(s,e,r){return K(this.configuration).getTerminalAuthContext(s,e,r).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,r){return K(this.configuration).getTerminalContext(s,e,r).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return K(this.configuration).getTerminalState(s,e).then(r=>r(this.axios,this.basePath))}handleCallback(s){return K(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var ft=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(s={}){this.apiKey=s.apiKey,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.baseOptions=s.baseOptions,this.formDataCtor=s.formDataCtor}isJsonMime(s){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return s!==null&&(e.test(s)||s.toLowerCase()==="application/json-patch+json")}};var vo={[ie.Eur]:2,[ie.Aed]:2,[ie.Usd]:2,[ie.Gbp]:2,BHD:3,JPY:0},To={getMultiplier(a){let s=vo[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};var ye=Ce(require("lodash")),Rt=a=>ye.default.orderBy(a,["rank","id"],["asc","asc"]),qo=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},Uo=(a,s)=>({...a,colorCode:a.colorCode??s}),As=(a,s)=>ye.default.compact(a.map(e=>s.get(e))),Ct=(a,s)=>a.flatMap(e=>{let r=s[e];return r?[e,...Ct(r.childIds,s)]:[]}),Dt=(a,s)=>a.flatMap(e=>{let r=s[e];return r?.enabled?[e,...Dt(r.childIds,s)]:[]}),Eo=a=>{let s=new Map,e={},r={},t=Rt(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return s.set(d,Uo(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=Rt(qo(R)).map(q=>A(q,O));return r[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:S},O},x=Rt(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:r,categoryIdsOrder:n}},Bo=(a,s,e,r)=>{let t=s[a];if(!t)return[];let n=Dt(t.subcategoryIds,e),o=ye.default.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return As(o,r)},Mo=(a,s,e)=>{let r=s[a];if(!r)return[];let t=Ct(r.subcategoryIds,e);return ye.default.compact(t.map(n=>e[n]))};var bs="1.9.101";0&&(module.exports={ABLYEVENT,AblyApi,AblyApiAxiosParamCreator,AblyApiFactory,AblyApiFp,ActionEnum,ActionPasscodesApi,ActionPasscodesApiAxiosParamCreator,ActionPasscodesApiFactory,ActionPasscodesApiFp,ActionsEnum,AuthApi,AuthApiAxiosParamCreator,AuthApiFactory,AuthApiFp,AutonomousVehicleType,BusinessApi,BusinessApiAxiosParamCreator,BusinessApiFactory,BusinessApiFp,BusinessBackgroundType,BusinessEventAction,BusinessEventType,BusinessPaymentIntegrationType,BusinessProviderPolicyApi,BusinessProviderPolicyApiAxiosParamCreator,BusinessProviderPolicyApiFactory,BusinessProviderPolicyApiFp,BusinessScheduleApi,BusinessScheduleApiAxiosParamCreator,BusinessScheduleApiFactory,BusinessScheduleApiFp,BusinessStatusEnum,CashLogReason,CashLogType,CashManagementApi,CashManagementApiAxiosParamCreator,CashManagementApiFactory,CashManagementApiFp,CashSessionDtoEnum,CashSessionStatus,ChannelEnum,ChannelMenuApi,ChannelMenuApiAxiosParamCreator,ChannelMenuApiFactory,ChannelMenuApiFp,ChargeStatusEnum,CheckoutModelEnum,ConditionType,ConfigManagementApi,ConfigManagementApiAxiosParamCreator,ConfigManagementApiFactory,ConfigManagementApiFp,Configuration,ConsumptionType,CoursesApi,CoursesApiAxiosParamCreator,CoursesApiFactory,CoursesApiFp,CurrencyCode,CurrencyRegistry,DayOfWeek,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,DiscountTypeEnum,DisplayApi,DisplayApiAxiosParamCreator,DisplayApiFactory,DisplayApiFp,EmployeesApi,EmployeesApiAxiosParamCreator,EmployeesApiFactory,EmployeesApiFp,EntityType,EntityTypeEnum,EventTypeEnum,EventTypeIdEnum,FeeType,FloorPlanApi,FloorPlanApiAxiosParamCreator,FloorPlanApiFactory,FloorPlanApiFp,GiftcardApi,GiftcardApiAxiosParamCreator,GiftcardApiFactory,GiftcardApiFp,HistoryApi,HistoryApiAxiosParamCreator,HistoryApiFactory,HistoryApiFp,IntegrationType,InvoiceCompaniesApi,InvoiceCompaniesApiAxiosParamCreator,InvoiceCompaniesApiFactory,InvoiceCompaniesApiFp,KDSApi,KDSApiAxiosParamCreator,KDSApiFactory,KDSApiFp,KDSEVENTNAME,KioskEventType,KioskLayout,KiosksApi,KiosksApiAxiosParamCreator,KiosksApiFactory,KiosksApiFp,KitchenItemStatus,KitchenStatus,LocatorType,LoyaltyActionKey,LoyaltyIntegerationsApi,LoyaltyIntegerationsApiAxiosParamCreator,LoyaltyIntegerationsApiFactory,LoyaltyIntegerationsApiFp,MUNCHI_CORE_VERSION,MenuApi,MenuApiAxiosParamCreator,MenuApiFactory,MenuApiFp,MenuTypeEnum,MerchantsApi,MerchantsApiAxiosParamCreator,MerchantsApiFactory,MerchantsApiFp,MunchiGiftCardApi,MunchiGiftCardApiAxiosParamCreator,MunchiGiftCardApiFactory,MunchiGiftCardApiFp,NameEnum,NetsRevertMethod,NotificationApi,NotificationApiAxiosParamCreator,NotificationApiFactory,NotificationApiFp,OperatingMode,OperatingModeEnum,OrderFormat,OrderInternalApi,OrderInternalApiAxiosParamCreator,OrderInternalApiFactory,OrderInternalApiFp,OrderMode,OrderRefundStatus,OrderSource,OrderStatus,OrderStatusEnum,OrderType,OrderTypePOS,OrdersApi,OrdersApiAxiosParamCreator,OrdersApiFactory,OrdersApiFp,POSSessionApi,POSSessionApiAxiosParamCreator,POSSessionApiFactory,POSSessionApiFp,PayTerminalApi,PayTerminalApiAxiosParamCreator,PayTerminalApiFactory,PayTerminalApiFp,PayTerminalSessionRole,PaymentApi,PaymentApiAxiosParamCreator,PaymentApiFactory,PaymentApiFp,PaymentCheckoutFlow,PaymentEventType,PaymentFailureCode,PaymentMethod,PaymentMethodsApi,PaymentMethodsApiAxiosParamCreator,PaymentMethodsApiFactory,PaymentMethodsApiFp,PaymentProvider,PaymentProviderEnum,PaymentReportingBucket,PaymentSessionApi,PaymentSessionApiAxiosParamCreator,PaymentSessionApiFactory,PaymentSessionApiFp,PaymentSessionStatus,PaymentStatus,PaymentTypeEnum,PosDiscountTargetType,PosDiscountType,PosPaymentStatus,PosPaymentType,PosPermission,PreorderStatus,PriceType,PrinterConnectionType,PrinterModelType,PrinterTypeEnum,PrintersApi,PrintersApiAxiosParamCreator,PrintersApiFactory,PrintersApiFp,ProductApi,ProductApiAxiosParamCreator,ProductApiFactory,ProductApiFp,ProductAvailability,ProductDetailLayout,ProductDetailLayoutEnum,PromotionDiscountType,ProviderApi,ProviderApiAxiosParamCreator,ProviderApiFactory,ProviderApiFp,ProviderEnum,PubSubAction,PubSubTarget,RecordManualStatus,RefundFailureReasonKey,RefundMode,RefundOverallStatus,RefundStatusEnum,RefundStepStatus,RefundsApi,RefundsApiAxiosParamCreator,RefundsApiFactory,RefundsApiFp,ReportApi,ReportApiAxiosParamCreator,ReportApiFactory,ReportApiFp,ReportLanguage,ReservationSource,ReservationStatus,ReservationsApi,ReservationsApiAxiosParamCreator,ReservationsApiFactory,ReservationsApiFp,RoleEnum,SYNCKEY,ScheduleType,ScopeEnum,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,StatusEnum,SystemProfileType,TableGroupType,TableShape,TableStatus,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,VendureSellerApi,VendureSellerApiAxiosParamCreator,VendureSellerApiFactory,VendureSellerApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WalletStatusEnum,WebhookApi,WebhookApiAxiosParamCreator,WebhookApiFactory,WebhookApiFp,WorldlineApi,WorldlineApiAxiosParamCreator,WorldlineApiFactory,WorldlineApiFp,WorldlineInternalApi,WorldlineInternalApiAxiosParamCreator,WorldlineInternalApiFactory,WorldlineInternalApiFp,WorldlineRevertMethod,buildPosCategoryIndex,collectEnabledSubcategoryIdsDepthFirst,collectSubcategoryIdsDepthFirst,getCategoryProductsIncludingSubcategories,getSubcategoriesForCategory,mapProductIdsToProducts});
|
|
1
|
+
var xs=Object.create;var Pe=Object.defineProperty;var fs=Object.getOwnPropertyDescriptor;var Rs=Object.getOwnPropertyNames;var Cs=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty;var Os=(a,s)=>{for(var e in s)Pe(a,e,{get:s[e],enumerable:!0})},Ot=(a,s,e,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let t of Rs(s))!Ds.call(a,t)&&t!==e&&Pe(a,t,{get:()=>s[t],enumerable:!(n=fs(s,t))||n.enumerable});return a};var Ce=(a,s,e)=>(e=a!=null?xs(Cs(a)):{},Ot(s||!a||!a.__esModule?Pe(e,"default",{value:a,enumerable:!0}):e,a)),Vs=a=>Ot(Pe({},"__esModule",{value:!0}),a);var wo={};Os(wo,{ABLYEVENT:()=>Ss,AblyApi:()=>Oe,AblyApiAxiosParamCreator:()=>St,AblyApiFactory:()=>Fr,AblyApiFp:()=>Ae,ActionEnum:()=>Is,ActionPasscodesApi:()=>Ve,ActionPasscodesApiAxiosParamCreator:()=>It,ActionPasscodesApiFactory:()=>_r,ActionPasscodesApiFp:()=>le,ActionsEnum:()=>Ts,AuthApi:()=>Se,AuthApiAxiosParamCreator:()=>vt,AuthApiFactory:()=>Lr,AuthApiFp:()=>J,AutonomousVehicleType:()=>Us,BusinessApi:()=>Ie,BusinessApiAxiosParamCreator:()=>Tt,BusinessApiFactory:()=>Nr,BusinessApiFp:()=>T,BusinessBackgroundType:()=>Es,BusinessEventAction:()=>Ms,BusinessEventType:()=>ks,BusinessPaymentIntegrationType:()=>ws,BusinessProviderPolicyApi:()=>ve,BusinessProviderPolicyApiAxiosParamCreator:()=>qt,BusinessProviderPolicyApiFactory:()=>jr,BusinessProviderPolicyApiFp:()=>Pt,BusinessScheduleApi:()=>Te,BusinessScheduleApiAxiosParamCreator:()=>Ut,BusinessScheduleApiFactory:()=>Gr,BusinessScheduleApiFp:()=>ht,BusinessStatusEnum:()=>Fs,CashLogReason:()=>_s,CashLogType:()=>Ls,CashManagementApi:()=>qe,CashManagementApiAxiosParamCreator:()=>Et,CashManagementApiFactory:()=>Wr,CashManagementApiFp:()=>H,CashSessionDtoEnum:()=>Ns,CashSessionStatus:()=>js,ChannelEnum:()=>Gs,ChannelMenuApi:()=>Ue,ChannelMenuApiAxiosParamCreator:()=>Bt,ChannelMenuApiFactory:()=>Kr,ChannelMenuApiFp:()=>ue,ChargeStatusEnum:()=>Ws,CheckoutModelEnum:()=>Ks,ConditionType:()=>Hs,ConfigManagementApi:()=>Ee,ConfigManagementApiAxiosParamCreator:()=>Mt,ConfigManagementApiFactory:()=>Hr,ConfigManagementApiFp:()=>k,Configuration:()=>ft,ConsumptionType:()=>Qs,CoursesApi:()=>Be,CoursesApiAxiosParamCreator:()=>kt,CoursesApiFactory:()=>Qr,CoursesApiFp:()=>be,CurrencyCode:()=>ie,CurrencyRegistry:()=>qo,DayOfWeek:()=>$s,DeliveryStatus:()=>Ys,DeliveryType:()=>zs,DeviceType:()=>Js,DiscountScope:()=>Xs,DiscountScopeType:()=>Zs,DiscountSourceType:()=>en,DiscountType:()=>tn,DiscountTypeEnum:()=>lr,DisplayApi:()=>Me,DisplayApiAxiosParamCreator:()=>wt,DisplayApiFactory:()=>$r,DisplayApiFp:()=>ce,EmployeesApi:()=>ke,EmployeesApiAxiosParamCreator:()=>Ft,EmployeesApiFactory:()=>Yr,EmployeesApiFp:()=>At,EntityType:()=>sn,EntityTypeEnum:()=>vs,EventTypeEnum:()=>qs,EventTypeIdEnum:()=>Mr,FeeType:()=>nn,FloorPlanApi:()=>we,FloorPlanApiAxiosParamCreator:()=>_t,FloorPlanApiFactory:()=>zr,FloorPlanApiFp:()=>w,GiftcardApi:()=>Fe,GiftcardApiAxiosParamCreator:()=>Lt,GiftcardApiFactory:()=>Jr,GiftcardApiFp:()=>xe,HistoryApi:()=>_e,HistoryApiAxiosParamCreator:()=>Nt,HistoryApiFactory:()=>Xr,HistoryApiFp:()=>X,IntegrationType:()=>rn,InvoiceCompaniesApi:()=>Le,InvoiceCompaniesApiAxiosParamCreator:()=>jt,InvoiceCompaniesApiFactory:()=>Zr,InvoiceCompaniesApiFp:()=>Q,KDSApi:()=>Ne,KDSApiAxiosParamCreator:()=>Gt,KDSApiFactory:()=>eo,KDSApiFp:()=>Z,KDSEVENTNAME:()=>on,KioskEventType:()=>an,KioskLayout:()=>ln,KiosksApi:()=>je,KiosksApiAxiosParamCreator:()=>Wt,KiosksApiFactory:()=>to,KiosksApiFp:()=>z,KitchenItemStatus:()=>un,KitchenStatus:()=>cn,LocatorType:()=>dn,LoyaltyActionKey:()=>pn,LoyaltyIntegerationsApi:()=>Ge,LoyaltyIntegerationsApiAxiosParamCreator:()=>Kt,LoyaltyIntegerationsApiFactory:()=>so,LoyaltyIntegerationsApiFp:()=>F,MUNCHI_CORE_VERSION:()=>bs,MenuApi:()=>We,MenuApiAxiosParamCreator:()=>Ht,MenuApiFactory:()=>no,MenuApiFp:()=>$,MenuTypeEnum:()=>Bs,MerchantsApi:()=>Ke,MerchantsApiAxiosParamCreator:()=>Qt,MerchantsApiFactory:()=>ro,MerchantsApiFp:()=>de,MunchiGiftCardApi:()=>He,MunchiGiftCardApiAxiosParamCreator:()=>$t,MunchiGiftCardApiFactory:()=>oo,MunchiGiftCardApiFp:()=>ee,NameEnum:()=>Tr,NetsRevertMethod:()=>mn,NotificationApi:()=>Qe,NotificationApiAxiosParamCreator:()=>Yt,NotificationApiFactory:()=>ao,NotificationApiFp:()=>fe,OperatingMode:()=>gn,OperatingModeEnum:()=>Ir,OrderFormat:()=>yn,OrderInternalApi:()=>$e,OrderInternalApiAxiosParamCreator:()=>zt,OrderInternalApiFactory:()=>io,OrderInternalApiFp:()=>bt,OrderMode:()=>Pn,OrderRefundStatus:()=>hn,OrderSource:()=>An,OrderStatus:()=>bn,OrderStatusEnum:()=>xn,OrderType:()=>fn,OrderTypePOS:()=>Rn,OrdersApi:()=>Ye,OrdersApiAxiosParamCreator:()=>Jt,OrdersApiFactory:()=>lo,OrdersApiFp:()=>B,POSSessionApi:()=>ze,POSSessionApiAxiosParamCreator:()=>Xt,POSSessionApiFactory:()=>uo,POSSessionApiFp:()=>Re,PayTerminalApi:()=>Je,PayTerminalApiAxiosParamCreator:()=>Zt,PayTerminalApiFactory:()=>co,PayTerminalApiFp:()=>te,PayTerminalSessionRole:()=>Cn,PaymentApi:()=>Xe,PaymentApiAxiosParamCreator:()=>es,PaymentApiFactory:()=>po,PaymentApiFp:()=>j,PaymentCheckoutFlow:()=>Dn,PaymentEventType:()=>On,PaymentFailureCode:()=>Vn,PaymentMethod:()=>Sn,PaymentMethodsApi:()=>Ze,PaymentMethodsApiAxiosParamCreator:()=>ts,PaymentMethodsApiFactory:()=>mo,PaymentMethodsApiFp:()=>G,PaymentProvider:()=>In,PaymentProviderEnum:()=>vn,PaymentReportingBucket:()=>Tn,PaymentSessionApi:()=>et,PaymentSessionApiAxiosParamCreator:()=>ss,PaymentSessionApiFactory:()=>go,PaymentSessionApiFp:()=>E,PaymentSessionPurpose:()=>qn,PaymentSessionStatus:()=>Un,PaymentStatus:()=>En,PaymentTypeEnum:()=>Bn,PosDiscountTargetType:()=>Mn,PosDiscountType:()=>kn,PosPaymentStatus:()=>wn,PosPaymentType:()=>Fn,PosPermission:()=>_n,PreorderStatus:()=>Ln,PriceType:()=>Nn,PrinterConnectionType:()=>jn,PrinterModelType:()=>Gn,PrinterTypeEnum:()=>Wn,PrintersApi:()=>tt,PrintersApiAxiosParamCreator:()=>ns,PrintersApiFactory:()=>yo,PrintersApiFp:()=>_,ProductApi:()=>st,ProductApiAxiosParamCreator:()=>rs,ProductApiFactory:()=>Po,ProductApiFp:()=>se,ProductAvailability:()=>Kn,ProductDetailLayout:()=>Hn,ProductDetailLayoutEnum:()=>vr,PromotionDiscountType:()=>Qn,ProviderApi:()=>nt,ProviderApiAxiosParamCreator:()=>os,ProviderApiFactory:()=>ho,ProviderApiFp:()=>L,ProviderEnum:()=>$n,PubSubAction:()=>Yn,PubSubTarget:()=>zn,RecordManualStatus:()=>Jn,RefundFailureReasonKey:()=>Xn,RefundMode:()=>Zn,RefundOverallStatus:()=>er,RefundStatusEnum:()=>tr,RefundStepStatus:()=>sr,RefundsApi:()=>rt,RefundsApiAxiosParamCreator:()=>as,RefundsApiFactory:()=>Ao,RefundsApiFp:()=>M,ReportApi:()=>ot,ReportApiAxiosParamCreator:()=>is,ReportApiFactory:()=>bo,ReportApiFp:()=>ne,ReportLanguage:()=>nr,ReservationSource:()=>or,ReservationStatus:()=>ar,ReservationsApi:()=>at,ReservationsApiAxiosParamCreator:()=>ls,ReservationsApiFactory:()=>xo,ReservationsApiFp:()=>N,RoleEnum:()=>rr,SYNCKEY:()=>cr,ScheduleType:()=>dr,ScopeEnum:()=>ur,SelectedPaymentProviderEnum:()=>Sr,ShiftTrackingApi:()=>it,ShiftTrackingApiAxiosParamCreator:()=>us,ShiftTrackingApiFactory:()=>fo,ShiftTrackingApiFp:()=>re,SimplePaymentStatus:()=>pr,SourceType:()=>mr,StaffActivityActionType:()=>gr,StationType:()=>yr,StationsApi:()=>lt,StationsApiAxiosParamCreator:()=>cs,StationsApiFactory:()=>Ro,StationsApiFp:()=>pe,Status:()=>Pr,StatusEnum:()=>kr,SystemProfileType:()=>hr,TableGroupType:()=>Ar,TableShape:()=>br,TableStatus:()=>xr,TerminalApi:()=>ut,TerminalApiAxiosParamCreator:()=>ds,TerminalApiFactory:()=>Co,TerminalApiFp:()=>oe,TerminalConnectionType:()=>fr,TimeSpan:()=>Rr,TransactionEventType:()=>Cr,TransactionType:()=>Dr,Type:()=>Or,UpsellMode:()=>Vr,UserApi:()=>ct,UserApiAxiosParamCreator:()=>ps,UserApiFactory:()=>Do,UserApiFp:()=>me,VendureSellerApi:()=>dt,VendureSellerApiAxiosParamCreator:()=>ms,VendureSellerApiFactory:()=>Oo,VendureSellerApiFp:()=>xt,VivaApi:()=>pt,VivaApiAxiosParamCreator:()=>gs,VivaApiFactory:()=>Vo,VivaApiFp:()=>ae,VivaAppToAppPaymentMethod:()=>qr,VivaCurrencyCode:()=>Ur,VivaErrorId:()=>Er,VivaEventId:()=>Br,WalletStatusEnum:()=>ir,WebhookApi:()=>mt,WebhookApiAxiosParamCreator:()=>ys,WebhookApiFactory:()=>So,WebhookApiFp:()=>U,WorldlineApi:()=>gt,WorldlineApiAxiosParamCreator:()=>Ps,WorldlineApiFactory:()=>Io,WorldlineApiFp:()=>ge,WorldlineInternalApi:()=>yt,WorldlineInternalApiAxiosParamCreator:()=>hs,WorldlineInternalApiFactory:()=>vo,WorldlineInternalApiFp:()=>K,WorldlineRevertMethod:()=>wr,buildPosCategoryIndex:()=>Bo,collectEnabledSubcategoryIdsDepthFirst:()=>Dt,collectSubcategoryIdsDepthFirst:()=>Ct,getCategoryProductsIncludingSubcategories:()=>Mo,getSubcategoriesForCategory:()=>ko,mapProductIdsToProducts:()=>As});module.exports=Vs(wo);var h=Ce(require("axios"));var Vt=Ce(require("axios")),p="http://localhost".replace(/\/+$/,"");var V=class{constructor(s,e=p,n=Vt.default){this.basePath=e;this.axios=n;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},he=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,s,e){if(e==null)throw new he(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var f=async function(a,s){if(s&&s.accessToken){let e=typeof s.accessToken=="function"?await s.accessToken():await s.accessToken;a.Authorization="Bearer "+e}};function De(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(n=>De(a,n,e)):Object.keys(s).forEach(n=>De(a,s[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,s):a.set(e,s))}var g=function(a,...s){let e=new URLSearchParams(a.search);De(e,s),a.search=e.toString()},b=function(a,s,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(s.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},P=function(a,s,e,n){return(t=s,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return t.request(o)}};var Ss={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},Is={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},vs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ts={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints",CourseFire:"CourseFire"},qs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Us={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},Es={Image:"image",Video:"video",Animation:"animation"},Bs={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},Ms={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ks={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},ws={GiftCard:"GiftCard"},Fs={Online:"ONLINE",Offline:"OFFLINE"},_s={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"},Ls={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ns={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},js={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Gs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Ws={Pending:"pending",Success:"success",Failure:"failure"},Ks={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Hs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Qs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},ie={Eur:"EUR",Gbp:"GBP",Chf:"CHF",Sek:"SEK",Nok:"NOK",Dkk:"DKK",Pln:"PLN",Czk:"CZK",Huf:"HUF",Ron:"RON",Bgn:"BGN",Hrk:"HRK",Isk:"ISK",Rsd:"RSD",Try:"TRY",Uah:"UAH",Rub:"RUB",All:"ALL",Mkd:"MKD",Mdl:"MDL",Bam:"BAM",Aed:"AED",Usd:"USD"},$s={Sunday:"SUNDAY",Monday:"MONDAY",Tuesday:"TUESDAY",Wednesday:"WEDNESDAY",Thursday:"THURSDAY",Friday:"FRIDAY",Saturday:"SATURDAY"},Ys={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},zs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Js={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Xs={Item:"ITEM",Cart:"CART"},Zs={Business:"BUSINESS",Owner:"OWNER"},en={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},tn={Percentage:"PERCENTAGE",Fixed:"FIXED"},sn={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},nn={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},rn={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},on={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},an={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},ln={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},un={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},cn={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},dn={Table:"table",Indicator:"indicator"},pn={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},mn={Reversal:"REVERSAL",Refund:"REFUND"},gn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},yn={Open:"OPEN",Instant:"INSTANT"},Pn={Instant:"INSTANT",PreOrder:"PRE_ORDER"},hn={None:"NONE",Partial:"PARTIAL",Full:"FULL"},An={Platform:"PLATFORM",Pos:"POS"},bn={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},xn={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"},fn={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Rn={DineIn:"dine_in",PickUp:"pick_up"},Cn={Pos:"pos",Terminal:"terminal"},Dn={TerminalCard:"terminal_card",CardManual:"card_manual",Cash:"cash",GroupedVoucher:"grouped_voucher",GiftCard:"gift_card",Static:"static"},On={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},Vn={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"},Sn={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"},In={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},vn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Tn={Cards:"cards",EdenredVoucher:"edenred_voucher",SmartumVoucher:"smartum_voucher",Other:"other"},qn={Sale:"SALE",Refund:"REFUND",Void:"VOID"},Un={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"},En={Paid:"paid",Pending:"pending"},Bn={Cash:"cash",Card:"card",PayOnDelivery:"pay_on_delivery"},Mn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},kn={Percentage:"percentage",Fixed:"fixed"},wn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},Fn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},_n={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"},Ln={Waiting:"waiting",Confirm:"confirm"},Nn={Preset:"PRESET",Open:"OPEN"},jn={Bluetooth:"bluetooth",Network:"network"},Gn={Epson:"epson",Star:"star",Sunmi:"sunmi",Label:"label"},Wn={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},Kn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},Hn={Modal:"MODAL",Screen:"SCREEN"},Qn={Percentage:"PERCENTAGE",Fixed:"FIXED"},$n={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront",MunchiPay:"MunchiPay"},Yn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},zn={Kds:"KDS"},Jn={Success:"SUCCESS",AlreadyPaid:"ALREADY_PAID",Rejected:"REJECTED",Failed:"FAILED"},Xn={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"},Zn={Full:"FULL",Item:"ITEM"},er={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},tr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},sr={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},nr={Fi:"fi",En:"en"},rr={Pos:"pos",Display:"display"},or={WalkIn:"WALK_IN",Pos:"POS",ReservationsApp:"RESERVATIONS_APP",OnlineWidget:"ONLINE_WIDGET",Phone:"PHONE"},ar={Requested:"REQUESTED",Confirmed:"CONFIRMED",Waitlist:"WAITLIST",Seated:"SEATED",NoShow:"NO_SHOW",Completed:"COMPLETED",Cancelled:"CANCELLED"},ir={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},lr={Percentage:"PERCENTAGE",Fixed:"FIXED"},ur={Item:"ITEM",Cart:"CART"},cr={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"},dr={Physical:"PHYSICAL"},pr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},mr={Order:"ORDER",Ticket:"TICKET",KitchenTicket:"KITCHEN_TICKET"},gr={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"},yr={Kiosk:"KIOSK",Pos:"POS"},Pr={Active:"ACTIVE",Inactive:"INACTIVE"},hr={NoStation:"NO_STATION"},Ar={AdHoc:"AD_HOC",Predefined:"PREDEFINED"},br={Round:"ROUND",Square:"SQUARE",Rectangle:"RECTANGLE",Booth:"BOOTH"},xr={Available:"AVAILABLE",Dirty:"DIRTY",Blocked:"BLOCKED",OutOfService:"OUT_OF_SERVICE",Occupied:"OCCUPIED"},fr={Network:"NETWORK"},Rr={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Cr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Dr={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Or={Instant:"instant",Preorder:"preorder"},Vr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Sr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Ir={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},vr={Modal:"MODAL",Screen:"SCREEN"},Tr={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"},qr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Ur={_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"},Er={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},Br={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},Mr={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},kr={Claimed:"Claimed",Redeemed:"Redeemed"},wr={Reversal:"REVERSAL",Refund:"REFUND"},St=function(a){return{refreshConfig:async(s={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},requestSettings:async(s={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},Ae=function(a){let s=St(a);return{async refreshConfig(e){let n=await s.refreshConfig(e);return P(n,h.default,p,a)},async requestSettings(e){let n=await s.requestSettings(e);return P(n,h.default,p,a)}}},Fr=function(a,s,e){let n=Ae(a);return{refreshConfig(t){return n.refreshConfig(t).then(r=>r(e,s))},requestSettings(t){return n.requestSettings(t).then(r=>r(e,s))}}},Oe=class extends V{refreshConfig(s){return Ae(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return Ae(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},It=function(a){return{createActionPasscode:async(s,e={})=>{c("createActionPasscode","createActionPasscodeDto",s);let n="/api/v1/action-passcodes",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},deleteActionPasscode:async(s,e={})=>{c("deleteActionPasscode","id",s);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(s,e,n={})=>{c("updateActionPasscode","id",s),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},le=function(a){let s=It(a);return{async createActionPasscode(e,n){let t=await s.createActionPasscode(e,n);return P(t,h.default,p,a)},async deleteActionPasscode(e,n){let t=await s.deleteActionPasscode(e,n);return P(t,h.default,p,a)},async updateActionPasscode(e,n,t){let r=await s.updateActionPasscode(e,n,t);return P(r,h.default,p,a)}}},_r=function(a,s,e){let n=le(a);return{createActionPasscode(t,r){return n.createActionPasscode(t,r).then(o=>o(e,s))},deleteActionPasscode(t,r){return n.deleteActionPasscode(t,r).then(o=>o(e,s))},updateActionPasscode(t,r,o){return n.updateActionPasscode(t,r,o).then(i=>i(e,s))}}},Ve=class extends V{createActionPasscode(s,e){return le(this.configuration).createActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(s,e){return le(this.configuration).deleteActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(s,e,n){return le(this.configuration).updateActionPasscode(s,e,n).then(t=>t(this.axios,this.basePath))}},vt=function(a){return{firebaseAuth:async(s={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},login:async(s,e={})=>{c("login","credentialDto",s);let n="/api/v1/auth/login",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},logout:async(s={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},refreshToken:async(s,e={})=>{c("refreshToken","refreshTokenDto",s);let n="/api/v1/auth/refresh",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},J=function(a){let s=vt(a);return{async firebaseAuth(e){let n=await s.firebaseAuth(e);return P(n,h.default,p,a)},async login(e,n){let t=await s.login(e,n);return P(t,h.default,p,a)},async logout(e){let n=await s.logout(e);return P(n,h.default,p,a)},async refreshToken(e,n){let t=await s.refreshToken(e,n);return P(t,h.default,p,a)}}},Lr=function(a,s,e){let n=J(a);return{firebaseAuth(t){return n.firebaseAuth(t).then(r=>r(e,s))},login(t,r){return n.login(t,r).then(o=>o(e,s))},logout(t){return n.logout(t).then(r=>r(e,s))},refreshToken(t,r){return n.refreshToken(t,r).then(o=>o(e,s))}}},Se=class extends V{firebaseAuth(s){return J(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return J(this.configuration).login(s,e).then(n=>n(this.axios,this.basePath))}logout(s){return J(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return J(this.configuration).refreshToken(s,e).then(n=>n(this.axios,this.basePath))}},Tt=function(a){return{createBusinessPermission:async(s,e,n={})=>{c("createBusinessPermission","businessId",s),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(s,e,n={})=>{c("deleteBusinessPermission","permissionId",s),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getAdvancedDiscounts:async(s,e={})=>{c("getAdvancedDiscounts","businessId",s);let n="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessCategoriesByMenuId:async(s,e,n={})=>{c("getBusinessCategoriesByMenuId","businessId",s),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(s,e,n={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",s),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(s,e,n={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",s),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(s,e,n={})=>{c("getBusinessChannelConfig","businessId",s);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(s,e,n={})=>{c("getBusinessChannelConfigV2","businessId",s);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfig:async(s,e,n={})=>{c("getBusinessConfig","businessId",s);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfigById:async(s,e,n={})=>{c("getBusinessConfigById","businessId",s);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(s,e,n={})=>{c("getBusinessConfigByIdV2","businessId",s);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessConfiguration:async(s,e,n={})=>{c("getBusinessConfiguration","businessId",s);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.lang=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByType:async(s,e,n={})=>{c("getBusinessMenuByType","businessId",s),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV2:async(s,e,n={})=>{c("getBusinessMenuByTypeV2","businessId",s),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV3:async(s,e,n={})=>{c("getBusinessMenuByTypeV3","businessId",s),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV4:async(s,e,n={})=>{c("getBusinessMenuByTypeV4","businessId",s),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessProviderStatus:async(s,e={})=>{c("getBusinessProviderStatus","businessId",s);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(s,e,n={})=>{c("getBusinessProviderStatusExternal","businessId",s);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getBusinessTax:async(s={})=>{let e="/api/v1/business/tax",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await f(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(s,e={})=>{c("getProvidersSupportedIntegrations","businessIds",s);let n="/api/v1/business/providers/supported-integrations",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),s&&(l.businessIds=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(s,e,n,t={})=>{c("getSingleBusinessProviderStatus","businessId",s),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(s))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(s,e={})=>{c("getUnifiedDiscounts","businessId",s);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(s,e,n={})=>{c("setBusinessStatus","businessId",s),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(s,e,n={})=>{c("setBusinessStatusSchedule","businessId",s),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(s,e,n,t={})=>{c("updateBusinessPermission","permissionId",s),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await f(u,a),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},validateBusiness:async(s,e={})=>{c("validateBusiness","businessId",s);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let s=Tt(a);return{async createBusinessPermission(e,n,t){let r=await s.createBusinessPermission(e,n,t);return P(r,h.default,p,a)},async deleteBusinessPermission(e,n,t){let r=await s.deleteBusinessPermission(e,n,t);return P(r,h.default,p,a)},async getAdvancedDiscounts(e,n){let t=await s.getAdvancedDiscounts(e,n);return P(t,h.default,p,a)},async getBusinessCategoriesByMenuId(e,n,t){let r=await s.getBusinessCategoriesByMenuId(e,n,t);return P(r,h.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV2(e,n,t);return P(r,h.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV3(e,n,t);return P(r,h.default,p,a)},async getBusinessChannelConfig(e,n,t){let r=await s.getBusinessChannelConfig(e,n,t);return P(r,h.default,p,a)},async getBusinessChannelConfigV2(e,n,t){let r=await s.getBusinessChannelConfigV2(e,n,t);return P(r,h.default,p,a)},async getBusinessConfig(e,n,t){let r=await s.getBusinessConfig(e,n,t);return P(r,h.default,p,a)},async getBusinessConfigById(e,n,t){let r=await s.getBusinessConfigById(e,n,t);return P(r,h.default,p,a)},async getBusinessConfigByIdV2(e,n,t){let r=await s.getBusinessConfigByIdV2(e,n,t);return P(r,h.default,p,a)},async getBusinessConfiguration(e,n,t){let r=await s.getBusinessConfiguration(e,n,t);return P(r,h.default,p,a)},async getBusinessMenuByType(e,n,t){let r=await s.getBusinessMenuByType(e,n,t);return P(r,h.default,p,a)},async getBusinessMenuByTypeV2(e,n,t){let r=await s.getBusinessMenuByTypeV2(e,n,t);return P(r,h.default,p,a)},async getBusinessMenuByTypeV3(e,n,t){let r=await s.getBusinessMenuByTypeV3(e,n,t);return P(r,h.default,p,a)},async getBusinessMenuByTypeV4(e,n,t){let r=await s.getBusinessMenuByTypeV4(e,n,t);return P(r,h.default,p,a)},async getBusinessProviderStatus(e,n){let t=await s.getBusinessProviderStatus(e,n);return P(t,h.default,p,a)},async getBusinessProviderStatusExternal(e,n,t){let r=await s.getBusinessProviderStatusExternal(e,n,t);return P(r,h.default,p,a)},async getBusinessTax(e){let n=await s.getBusinessTax(e);return P(n,h.default,p,a)},async getProvidersSupportedIntegrations(e,n){let t=await s.getProvidersSupportedIntegrations(e,n);return P(t,h.default,p,a)},async getSingleBusinessProviderStatus(e,n,t,r){let o=await s.getSingleBusinessProviderStatus(e,n,t,r);return P(o,h.default,p,a)},async getUnifiedDiscounts(e,n){let t=await s.getUnifiedDiscounts(e,n);return P(t,h.default,p,a)},async setBusinessStatus(e,n,t){let r=await s.setBusinessStatus(e,n,t);return P(r,h.default,p,a)},async setBusinessStatusSchedule(e,n,t){let r=await s.setBusinessStatusSchedule(e,n,t);return P(r,h.default,p,a)},async updateBusinessPermission(e,n,t,r){let o=await s.updateBusinessPermission(e,n,t,r);return P(o,h.default,p,a)},async validateBusiness(e,n){let t=await s.validateBusiness(e,n);return P(t,h.default,p,a)}}},Nr=function(a,s,e){let n=T(a);return{createBusinessPermission(t,r,o){return n.createBusinessPermission(t,r,o).then(i=>i(e,s))},deleteBusinessPermission(t,r,o){return n.deleteBusinessPermission(t,r,o).then(i=>i(e,s))},getAdvancedDiscounts(t,r){return n.getAdvancedDiscounts(t,r).then(o=>o(e,s))},getBusinessCategoriesByMenuId(t,r,o){return n.getBusinessCategoriesByMenuId(t,r,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV2(t,r,o){return n.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV3(t,r,o){return n.getBusinessCategoriesByMenuIdV3(t,r,o).then(i=>i(e,s))},getBusinessChannelConfig(t,r,o){return n.getBusinessChannelConfig(t,r,o).then(i=>i(e,s))},getBusinessChannelConfigV2(t,r,o){return n.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,s))},getBusinessConfig(t,r,o){return n.getBusinessConfig(t,r,o).then(i=>i(e,s))},getBusinessConfigById(t,r,o){return n.getBusinessConfigById(t,r,o).then(i=>i(e,s))},getBusinessConfigByIdV2(t,r,o){return n.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,s))},getBusinessConfiguration(t,r,o){return n.getBusinessConfiguration(t,r,o).then(i=>i(e,s))},getBusinessMenuByType(t,r,o){return n.getBusinessMenuByType(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV2(t,r,o){return n.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV3(t,r,o){return n.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV4(t,r,o){return n.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,s))},getBusinessProviderStatus(t,r){return n.getBusinessProviderStatus(t,r).then(o=>o(e,s))},getBusinessProviderStatusExternal(t,r,o){return n.getBusinessProviderStatusExternal(t,r,o).then(i=>i(e,s))},getBusinessTax(t){return n.getBusinessTax(t).then(r=>r(e,s))},getProvidersSupportedIntegrations(t,r){return n.getProvidersSupportedIntegrations(t,r).then(o=>o(e,s))},getSingleBusinessProviderStatus(t,r,o,i){return n.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,s))},getUnifiedDiscounts(t,r){return n.getUnifiedDiscounts(t,r).then(o=>o(e,s))},setBusinessStatus(t,r,o){return n.setBusinessStatus(t,r,o).then(i=>i(e,s))},setBusinessStatusSchedule(t,r,o){return n.setBusinessStatusSchedule(t,r,o).then(i=>i(e,s))},updateBusinessPermission(t,r,o,i){return n.updateBusinessPermission(t,r,o,i).then(l=>l(e,s))},validateBusiness(t,r){return n.validateBusiness(t,r).then(o=>o(e,s))}}},Ie=class extends V{createBusinessPermission(s,e,n){return T(this.configuration).createBusinessPermission(s,e,n).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(s,e,n){return T(this.configuration).deleteBusinessPermission(s,e,n).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(s,e){return T(this.configuration).getAdvancedDiscounts(s,e).then(n=>n(this.axios,this.basePath))}getBusinessCategoriesByMenuId(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(s,e,n){return T(this.configuration).getBusinessChannelConfig(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(s,e,n){return T(this.configuration).getBusinessChannelConfigV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfig(s,e,n){return T(this.configuration).getBusinessConfig(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(s,e,n){return T(this.configuration).getBusinessConfigById(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(s,e,n){return T(this.configuration).getBusinessConfigByIdV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(s,e,n){return T(this.configuration).getBusinessConfiguration(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(s,e,n){return T(this.configuration).getBusinessMenuByType(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(s,e,n){return T(this.configuration).getBusinessMenuByTypeV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(s,e,n){return T(this.configuration).getBusinessMenuByTypeV3(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(s,e,n){return T(this.configuration).getBusinessMenuByTypeV4(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(s,e){return T(this.configuration).getBusinessProviderStatus(s,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(s,e,n){return T(this.configuration).getBusinessProviderStatusExternal(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessTax(s){return T(this.configuration).getBusinessTax(s).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(s,e){return T(this.configuration).getProvidersSupportedIntegrations(s,e).then(n=>n(this.axios,this.basePath))}getSingleBusinessProviderStatus(s,e,n,t){return T(this.configuration).getSingleBusinessProviderStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(s,e){return T(this.configuration).getUnifiedDiscounts(s,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(s,e,n){return T(this.configuration).setBusinessStatus(s,e,n).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(s,e,n){return T(this.configuration).setBusinessStatusSchedule(s,e,n).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(s,e,n,t){return T(this.configuration).updateBusinessPermission(s,e,n,t).then(r=>r(this.axios,this.basePath))}validateBusiness(s,e){return T(this.configuration).validateBusiness(s,e).then(n=>n(this.axios,this.basePath))}},qt=function(a){return{updatePosGlobalSettings:async(s,e,n={})=>{c("updatePosGlobalSettings","businessId",s),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},Pt=function(a){let s=qt(a);return{async updatePosGlobalSettings(e,n,t){let r=await s.updatePosGlobalSettings(e,n,t);return P(r,h.default,p,a)}}},jr=function(a,s,e){let n=Pt(a);return{updatePosGlobalSettings(t,r,o){return n.updatePosGlobalSettings(t,r,o).then(i=>i(e,s))}}},ve=class extends V{updatePosGlobalSettings(s,e,n){return Pt(this.configuration).updatePosGlobalSettings(s,e,n).then(t=>t(this.axios,this.basePath))}},Ut=function(a){return{upsertSchedule:async(s,e,n={})=>{c("upsertSchedule","businessId",s),c("upsertSchedule","upsertBusinessScheduleDto",e);let t="/api/v1/businesses/{businessId}/schedule".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},ht=function(a){let s=Ut(a);return{async upsertSchedule(e,n,t){let r=await s.upsertSchedule(e,n,t);return P(r,h.default,p,a)}}},Gr=function(a,s,e){let n=ht(a);return{upsertSchedule(t,r,o){return n.upsertSchedule(t,r,o).then(i=>i(e,s))}}},Te=class extends V{upsertSchedule(s,e,n){return ht(this.configuration).upsertSchedule(s,e,n).then(t=>t(this.axios,this.basePath))}},Et=function(a){return{create:async(s,e,n={})=>{c("create","businessId",s),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getCashLogs:async(s,e,n,t,r,o,i,l={})=>{c("getCashLogs","businessId",s),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"GET",...A,...l},R={},C={};n!==void 0&&(C.timeSpan=n),t!==void 0&&(C.start=t),r!==void 0&&(C.end=r),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=A&&A.headers?A.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(s,e={})=>{c("getCashSession","businessId",s);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(s,e,n={})=>{c("getSessionReport","businessId",s),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},recordCashLog:async(s,e,n={})=>{c("recordCashLog","businessId",s),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},sendSessionReport:async(s,e,n,t={})=>{c("sendSessionReport","businessId",s),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}}}},H=function(a){let s=Et(a);return{async create(e,n,t){let r=await s.create(e,n,t);return P(r,h.default,p,a)},async getCashLogs(e,n,t,r,o,i,l,u){let d=await s.getCashLogs(e,n,t,r,o,i,l,u);return P(d,h.default,p,a)},async getCashSession(e,n){let t=await s.getCashSession(e,n);return P(t,h.default,p,a)},async getSessionReport(e,n,t){let r=await s.getSessionReport(e,n,t);return P(r,h.default,p,a)},async recordCashLog(e,n,t){let r=await s.recordCashLog(e,n,t);return P(r,h.default,p,a)},async sendSessionReport(e,n,t,r){let o=await s.sendSessionReport(e,n,t,r);return P(o,h.default,p,a)}}},Wr=function(a,s,e){let n=H(a);return{create(t,r,o){return n.create(t,r,o).then(i=>i(e,s))},getCashLogs(t,r,o,i,l,u,d,A){return n.getCashLogs(t,r,o,i,l,u,d,A).then(x=>x(e,s))},getCashSession(t,r){return n.getCashSession(t,r).then(o=>o(e,s))},getSessionReport(t,r,o){return n.getSessionReport(t,r,o).then(i=>i(e,s))},recordCashLog(t,r,o){return n.recordCashLog(t,r,o).then(i=>i(e,s))},sendSessionReport(t,r,o,i){return n.sendSessionReport(t,r,o,i).then(l=>l(e,s))}}},qe=class extends V{create(s,e,n){return H(this.configuration).create(s,e,n).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,n,t,r,o,i,l){return H(this.configuration).getCashLogs(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(s,e){return H(this.configuration).getCashSession(s,e).then(n=>n(this.axios,this.basePath))}getSessionReport(s,e,n){return H(this.configuration).getSessionReport(s,e,n).then(t=>t(this.axios,this.basePath))}recordCashLog(s,e,n){return H(this.configuration).recordCashLog(s,e,n).then(t=>t(this.axios,this.basePath))}sendSessionReport(s,e,n,t){return H(this.configuration).sendSessionReport(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Bt=function(a){return{getChannelCatalog:async(s,e,n,t={})=>{c("getChannelCatalog","businessId",s),c("getChannelCatalog","channelType",e);let r="/api/v1/channel-menu/{businessId}/catalog".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),n!==void 0&&(d.menuId=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenu:async(s,e,n,t={})=>{c("getChannelMenu","businessId",s),c("getChannelMenu","channelType",e);let r="/api/v1/channel-menu/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.channelType=e),n!==void 0&&(d.deliveryType=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelMenuTimes:async(s,e,n={})=>{c("getChannelMenuTimes","businessId",s),c("getChannelMenuTimes","channelType",e);let t="/api/v1/channel-menu/{businessId}/menu-times".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channelType=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},ue=function(a){let s=Bt(a);return{async getChannelCatalog(e,n,t,r){let o=await s.getChannelCatalog(e,n,t,r);return P(o,h.default,p,a)},async getChannelMenu(e,n,t,r){let o=await s.getChannelMenu(e,n,t,r);return P(o,h.default,p,a)},async getChannelMenuTimes(e,n,t){let r=await s.getChannelMenuTimes(e,n,t);return P(r,h.default,p,a)}}},Kr=function(a,s,e){let n=ue(a);return{getChannelCatalog(t,r,o,i){return n.getChannelCatalog(t,r,o,i).then(l=>l(e,s))},getChannelMenu(t,r,o,i){return n.getChannelMenu(t,r,o,i).then(l=>l(e,s))},getChannelMenuTimes(t,r,o){return n.getChannelMenuTimes(t,r,o).then(i=>i(e,s))}}},Ue=class extends V{getChannelCatalog(s,e,n,t){return ue(this.configuration).getChannelCatalog(s,e,n,t).then(r=>r(this.axios,this.basePath))}getChannelMenu(s,e,n,t){return ue(this.configuration).getChannelMenu(s,e,n,t).then(r=>r(this.axios,this.basePath))}getChannelMenuTimes(s,e,n){return ue(this.configuration).getChannelMenuTimes(s,e,n).then(t=>t(this.axios,this.basePath))}},Mt=function(a){return{configConfigureMunchiGiftCard:async(s,e,n,t={})=>{c("configConfigureMunchiGiftCard","businessId",s),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configGetProviders:async(s,e,n={})=>{c("configGetProviders","businessId",s),c("configGetProviders","xAppX",e);let t="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),e!=null&&(l["x-app-x"]=String(e)),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},configManualSync:async(s,e,n={})=>{c("configManualSync","businessId",s),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(s,e,n,t={})=>{c("configRemovePaymentOption","businessId",s),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await f(u,a),n!=null&&(u["x-app-x"]=String(n)),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(s,e,n={})=>{c("configUpsertBusiness","businessId",s),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(s,e,n,t={})=>{c("configUpsertChannelConfig","businessId",s),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(s,e,n,t={})=>{c("configUpsertGiftCard","businessId",s),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(s,e,n={})=>{c("configUpsertLoyalty","businessId",s),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},configUpsertNets:async(s,e,n,t={})=>{c("configUpsertNets","businessId",s),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(s,e,n,t={})=>{c("configUpsertPaymentOptions","businessId",s),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configUpsertProviders:async(s,e,n,t={})=>{c("configUpsertProviders","businessId",s),c("configUpsertProviders","xAppX",e),c("configUpsertProviders","upsertProvidersDto",n);let r="/api/v1/config-management/business/{businessId}/providers".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(s,e,n,t={})=>{c("configUpsertStripe","businessId",s),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},configUpsertViva:async(s,e,n,t={})=>{c("configUpsertViva","businessId",s),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}}}},k=function(a){let s=Mt(a);return{async configConfigureMunchiGiftCard(e,n,t,r){let o=await s.configConfigureMunchiGiftCard(e,n,t,r);return P(o,h.default,p,a)},async configGetProviders(e,n,t){let r=await s.configGetProviders(e,n,t);return P(r,h.default,p,a)},async configManualSync(e,n,t){let r=await s.configManualSync(e,n,t);return P(r,h.default,p,a)},async configRemovePaymentOption(e,n,t,r){let o=await s.configRemovePaymentOption(e,n,t,r);return P(o,h.default,p,a)},async configUpsertBusiness(e,n,t){let r=await s.configUpsertBusiness(e,n,t);return P(r,h.default,p,a)},async configUpsertChannelConfig(e,n,t,r){let o=await s.configUpsertChannelConfig(e,n,t,r);return P(o,h.default,p,a)},async configUpsertGiftCard(e,n,t,r){let o=await s.configUpsertGiftCard(e,n,t,r);return P(o,h.default,p,a)},async configUpsertLoyalty(e,n,t){let r=await s.configUpsertLoyalty(e,n,t);return P(r,h.default,p,a)},async configUpsertNets(e,n,t,r){let o=await s.configUpsertNets(e,n,t,r);return P(o,h.default,p,a)},async configUpsertPaymentOptions(e,n,t,r){let o=await s.configUpsertPaymentOptions(e,n,t,r);return P(o,h.default,p,a)},async configUpsertProviders(e,n,t,r){let o=await s.configUpsertProviders(e,n,t,r);return P(o,h.default,p,a)},async configUpsertStripe(e,n,t,r){let o=await s.configUpsertStripe(e,n,t,r);return P(o,h.default,p,a)},async configUpsertViva(e,n,t,r){let o=await s.configUpsertViva(e,n,t,r);return P(o,h.default,p,a)}}},Hr=function(a,s,e){let n=k(a);return{configConfigureMunchiGiftCard(t,r,o,i){return n.configConfigureMunchiGiftCard(t,r,o,i).then(l=>l(e,s))},configGetProviders(t,r,o){return n.configGetProviders(t,r,o).then(i=>i(e,s))},configManualSync(t,r,o){return n.configManualSync(t,r,o).then(i=>i(e,s))},configRemovePaymentOption(t,r,o,i){return n.configRemovePaymentOption(t,r,o,i).then(l=>l(e,s))},configUpsertBusiness(t,r,o){return n.configUpsertBusiness(t,r,o).then(i=>i(e,s))},configUpsertChannelConfig(t,r,o,i){return n.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,r,o,i){return n.configUpsertGiftCard(t,r,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,r,o){return n.configUpsertLoyalty(t,r,o).then(i=>i(e,s))},configUpsertNets(t,r,o,i){return n.configUpsertNets(t,r,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,r,o,i){return n.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,s))},configUpsertProviders(t,r,o,i){return n.configUpsertProviders(t,r,o,i).then(l=>l(e,s))},configUpsertStripe(t,r,o,i){return n.configUpsertStripe(t,r,o,i).then(l=>l(e,s))},configUpsertViva(t,r,o,i){return n.configUpsertViva(t,r,o,i).then(l=>l(e,s))}}},Ee=class extends V{configConfigureMunchiGiftCard(s,e,n,t){return k(this.configuration).configConfigureMunchiGiftCard(s,e,n,t).then(r=>r(this.axios,this.basePath))}configGetProviders(s,e,n){return k(this.configuration).configGetProviders(s,e,n).then(t=>t(this.axios,this.basePath))}configManualSync(s,e,n){return k(this.configuration).configManualSync(s,e,n).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,n,t){return k(this.configuration).configRemovePaymentOption(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(s,e,n){return k(this.configuration).configUpsertBusiness(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,n,t){return k(this.configuration).configUpsertChannelConfig(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(s,e,n,t){return k(this.configuration).configUpsertGiftCard(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(s,e,n){return k(this.configuration).configUpsertLoyalty(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,n,t){return k(this.configuration).configUpsertNets(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,n,t){return k(this.configuration).configUpsertPaymentOptions(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertProviders(s,e,n,t){return k(this.configuration).configUpsertProviders(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(s,e,n,t){return k(this.configuration).configUpsertStripe(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(s,e,n,t){return k(this.configuration).configUpsertViva(s,e,n,t).then(r=>r(this.axios,this.basePath))}},kt=function(a){return{getCourseConfig:async(s,e={})=>{c("getCourseConfig","businessId",s);let n="/api/v1/courses/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getCourses:async(s,e={})=>{c("getCourses","businessId",s);let n="/api/v1/courses/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},be=function(a){let s=kt(a);return{async getCourseConfig(e,n){let t=await s.getCourseConfig(e,n);return P(t,h.default,p,a)},async getCourses(e,n){let t=await s.getCourses(e,n);return P(t,h.default,p,a)}}},Qr=function(a,s,e){let n=be(a);return{getCourseConfig(t,r){return n.getCourseConfig(t,r).then(o=>o(e,s))},getCourses(t,r){return n.getCourses(t,r).then(o=>o(e,s))}}},Be=class extends V{getCourseConfig(s,e){return be(this.configuration).getCourseConfig(s,e).then(n=>n(this.axios,this.basePath))}getCourses(s,e){return be(this.configuration).getCourses(s,e).then(n=>n(this.axios,this.basePath))}},wt=function(a){return{init:async(s,e={})=>{let n="/api/v1/display/init",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},pair:async(s,e={})=>{c("pair","pairDisplayBodyDto",s);let n="/api/v1/display/pair",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},sessionToken:async(s,e={})=>{c("sessionToken","requestSessionTokenBodyDto",s);let n="/api/v1/display/session-token",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ce=function(a){let s=wt(a);return{async init(e,n){let t=await s.init(e,n);return P(t,h.default,p,a)},async pair(e,n){let t=await s.pair(e,n);return P(t,h.default,p,a)},async sessionToken(e,n){let t=await s.sessionToken(e,n);return P(t,h.default,p,a)}}},$r=function(a,s,e){let n=ce(a);return{init(t,r){return n.init(t,r).then(o=>o(e,s))},pair(t,r){return n.pair(t,r).then(o=>o(e,s))},sessionToken(t,r){return n.sessionToken(t,r).then(o=>o(e,s))}}},Me=class extends V{init(s,e){return ce(this.configuration).init(s,e).then(n=>n(this.axios,this.basePath))}pair(s,e){return ce(this.configuration).pair(s,e).then(n=>n(this.axios,this.basePath))}sessionToken(s,e){return ce(this.configuration).sessionToken(s,e).then(n=>n(this.axios,this.basePath))}},Ft=function(a){return{createAssignment:async(s,e,n={})=>{c("createAssignment","businessId",s),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},At=function(a){let s=Ft(a);return{async createAssignment(e,n,t){let r=await s.createAssignment(e,n,t);return P(r,h.default,p,a)}}},Yr=function(a,s,e){let n=At(a);return{createAssignment(t,r,o){return n.createAssignment(t,r,o).then(i=>i(e,s))}}},ke=class extends V{createAssignment(s,e,n){return At(this.configuration).createAssignment(s,e,n).then(t=>t(this.axios,this.basePath))}},_t=function(a){return{createDiningTable:async(s,e={})=>{c("createDiningTable","createDiningTableDto",s);let n="/api/v1/floor-plan/tables",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createFloorSection:async(s,e={})=>{c("createFloorSection","createFloorSectionDto",s);let n="/api/v1/floor-plan/sections",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},deleteDiningTable:async(s,e,n={})=>{c("deleteDiningTable","id",s),c("deleteDiningTable","businessId",e);let t="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},deleteFloorSection:async(s,e,n={})=>{c("deleteFloorSection","id",s),c("deleteFloorSection","businessId",e);let t="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},dissolveTableGroup:async(s,e,n={})=>{c("dissolveTableGroup","id",s),c("dissolveTableGroup","businessId",e);let t="/api/v1/floor-plan/table-groups/{id}/dissolve".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getFloorPlan:async(s,e={})=>{c("getFloorPlan","businessId",s);let n="/api/v1/floor-plan",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},joinTables:async(s,e,n={})=>{c("joinTables","businessId",s),c("joinTables","joinTablesDto",e);let t="/api/v1/floor-plan/table-groups/join",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},removeTableFromGroup:async(s,e,n={})=>{c("removeTableFromGroup","id",s),c("removeTableFromGroup","businessId",e);let t="/api/v1/floor-plan/tables/{id}/remove-from-group".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},transferTable:async(s,e,n,t={})=>{c("transferTable","id",s),c("transferTable","businessId",e),c("transferTable","transferTableDto",n);let r="/api/v1/floor-plan/tables/{id}/transfer".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},updateDiningTable:async(s,e,n,t={})=>{c("updateDiningTable","id",s),c("updateDiningTable","businessId",e),c("updateDiningTable","updateDiningTableDto",n);let r="/api/v1/floor-plan/tables/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},updateFloorSection:async(s,e,n,t={})=>{c("updateFloorSection","id",s),c("updateFloorSection","businessId",e),c("updateFloorSection","updateFloorSectionDto",n);let r="/api/v1/floor-plan/sections/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},updateTablePosition:async(s,e,n,t={})=>{c("updateTablePosition","id",s),c("updateTablePosition","businessId",e),c("updateTablePosition","updateTablePositionDto",n);let r="/api/v1/floor-plan/tables/{id}/position".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},updateTableStatus:async(s,e,n,t={})=>{c("updateTableStatus","id",s),c("updateTableStatus","businessId",e),c("updateTableStatus","updateTableStatusDto",n);let r="/api/v1/floor-plan/tables/{id}/status".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}}}},w=function(a){let s=_t(a);return{async createDiningTable(e,n){let t=await s.createDiningTable(e,n);return P(t,h.default,p,a)},async createFloorSection(e,n){let t=await s.createFloorSection(e,n);return P(t,h.default,p,a)},async deleteDiningTable(e,n,t){let r=await s.deleteDiningTable(e,n,t);return P(r,h.default,p,a)},async deleteFloorSection(e,n,t){let r=await s.deleteFloorSection(e,n,t);return P(r,h.default,p,a)},async dissolveTableGroup(e,n,t){let r=await s.dissolveTableGroup(e,n,t);return P(r,h.default,p,a)},async getFloorPlan(e,n){let t=await s.getFloorPlan(e,n);return P(t,h.default,p,a)},async joinTables(e,n,t){let r=await s.joinTables(e,n,t);return P(r,h.default,p,a)},async removeTableFromGroup(e,n,t){let r=await s.removeTableFromGroup(e,n,t);return P(r,h.default,p,a)},async transferTable(e,n,t,r){let o=await s.transferTable(e,n,t,r);return P(o,h.default,p,a)},async updateDiningTable(e,n,t,r){let o=await s.updateDiningTable(e,n,t,r);return P(o,h.default,p,a)},async updateFloorSection(e,n,t,r){let o=await s.updateFloorSection(e,n,t,r);return P(o,h.default,p,a)},async updateTablePosition(e,n,t,r){let o=await s.updateTablePosition(e,n,t,r);return P(o,h.default,p,a)},async updateTableStatus(e,n,t,r){let o=await s.updateTableStatus(e,n,t,r);return P(o,h.default,p,a)}}},zr=function(a,s,e){let n=w(a);return{createDiningTable(t,r){return n.createDiningTable(t,r).then(o=>o(e,s))},createFloorSection(t,r){return n.createFloorSection(t,r).then(o=>o(e,s))},deleteDiningTable(t,r,o){return n.deleteDiningTable(t,r,o).then(i=>i(e,s))},deleteFloorSection(t,r,o){return n.deleteFloorSection(t,r,o).then(i=>i(e,s))},dissolveTableGroup(t,r,o){return n.dissolveTableGroup(t,r,o).then(i=>i(e,s))},getFloorPlan(t,r){return n.getFloorPlan(t,r).then(o=>o(e,s))},joinTables(t,r,o){return n.joinTables(t,r,o).then(i=>i(e,s))},removeTableFromGroup(t,r,o){return n.removeTableFromGroup(t,r,o).then(i=>i(e,s))},transferTable(t,r,o,i){return n.transferTable(t,r,o,i).then(l=>l(e,s))},updateDiningTable(t,r,o,i){return n.updateDiningTable(t,r,o,i).then(l=>l(e,s))},updateFloorSection(t,r,o,i){return n.updateFloorSection(t,r,o,i).then(l=>l(e,s))},updateTablePosition(t,r,o,i){return n.updateTablePosition(t,r,o,i).then(l=>l(e,s))},updateTableStatus(t,r,o,i){return n.updateTableStatus(t,r,o,i).then(l=>l(e,s))}}},we=class extends V{createDiningTable(s,e){return w(this.configuration).createDiningTable(s,e).then(n=>n(this.axios,this.basePath))}createFloorSection(s,e){return w(this.configuration).createFloorSection(s,e).then(n=>n(this.axios,this.basePath))}deleteDiningTable(s,e,n){return w(this.configuration).deleteDiningTable(s,e,n).then(t=>t(this.axios,this.basePath))}deleteFloorSection(s,e,n){return w(this.configuration).deleteFloorSection(s,e,n).then(t=>t(this.axios,this.basePath))}dissolveTableGroup(s,e,n){return w(this.configuration).dissolveTableGroup(s,e,n).then(t=>t(this.axios,this.basePath))}getFloorPlan(s,e){return w(this.configuration).getFloorPlan(s,e).then(n=>n(this.axios,this.basePath))}joinTables(s,e,n){return w(this.configuration).joinTables(s,e,n).then(t=>t(this.axios,this.basePath))}removeTableFromGroup(s,e,n){return w(this.configuration).removeTableFromGroup(s,e,n).then(t=>t(this.axios,this.basePath))}transferTable(s,e,n,t){return w(this.configuration).transferTable(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateDiningTable(s,e,n,t){return w(this.configuration).updateDiningTable(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateFloorSection(s,e,n,t){return w(this.configuration).updateFloorSection(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateTablePosition(s,e,n,t){return w(this.configuration).updateTablePosition(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateTableStatus(s,e,n,t){return w(this.configuration).updateTableStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Lt=function(a){return{redeemGiftCard:async(s,e={})=>{c("redeemGiftCard","redeemGiftCardDto",s);let n="/api/v1/giftcard/redeem",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},validateGiftCard:async(s,e={})=>{c("validateGiftCard","validateGiftCardDto",s);let n="/api/v1/giftcard/validate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},xe=function(a){let s=Lt(a);return{async redeemGiftCard(e,n){let t=await s.redeemGiftCard(e,n);return P(t,h.default,p,a)},async validateGiftCard(e,n){let t=await s.validateGiftCard(e,n);return P(t,h.default,p,a)}}},Jr=function(a,s,e){let n=xe(a);return{redeemGiftCard(t,r){return n.redeemGiftCard(t,r).then(o=>o(e,s))},validateGiftCard(t,r){return n.validateGiftCard(t,r).then(o=>o(e,s))}}},Fe=class extends V{redeemGiftCard(s,e){return xe(this.configuration).redeemGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(s,e){return xe(this.configuration).validateGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},Nt=function(a){return{getInternalOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",s);let I="/api/v1/history/internal/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};e!==void 0&&(D.timeSpan=e),n!==void 0&&(D.start=n),t!==void 0&&(D.end=t),s&&(D.businessIds=s),r!==void 0&&(D.page=r),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}},getOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",s);let I="/api/v1/history/orders",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};e!==void 0&&(D.timeSpan=e),n!==void 0&&(D.start=n),t!==void 0&&(D.end=t),s&&(D.businessIds=s),r!==void 0&&(D.page=r),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}},getOrderHistoryPOSV5:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",s);let I="/api/v5/history/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),n!==void 0&&(D.start=n),t!==void 0&&(D.end=t),s&&(D.businessIds=s),r!==void 0&&(D.page=r),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}},getOrderHistoryPOSV5Internal:async(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",s);let I="/api/v5/history/internal/orders/pos",v=new URL(I,m),S;a&&(S=a.baseOptions);let q={method:"GET",...S,...O},W={},D={};await f(W,a),e!==void 0&&(D.timeSpan=e),n!==void 0&&(D.start=n),t!==void 0&&(D.end=t),s&&(D.businessIds=s),r!==void 0&&(D.page=r),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),A&&(D.orderType=A),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let Y=S&&S.headers?S.headers:{};return q.headers={...W,...Y,...O.headers},{url:y(v),options:q}}}},X=function(a){let s=Nt(a);return{async getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)},async getOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryOnline(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)},async getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)},async getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I){let v=await s.getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,d,A,x,R,C,O,I);return P(v,h.default,p,a)}}},Xr=function(a,s,e){let n=X(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getInternalOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))},getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getOrderHistoryOnline(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))},getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getOrderHistoryPOSV5(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S){return n.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,d,A,x,R,C,O,I,v,S).then(q=>q(e,s))}}},_e=class extends V{getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O){return X(this.configuration).getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(this.axios,this.basePath))}},jt=function(a){return{createInvoiceCompany:async(s,e,n={})=>{c("createInvoiceCompany","businessId",s),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(s,e,n={})=>{c("deleteInvoiceCompany","id",s),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getInvoiceCompanies:async(s,e={})=>{c("getInvoiceCompanies","businessId",s);let n="/api/v1/invoice-companies",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(s,e,n={})=>{c("getInvoiceCompanyById","id",s),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(s,e,n={})=>{c("searchInvoiceCompanies","businessId",s);let t="/api/v1/invoice-companies/search",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.search=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},updateInvoiceCompany:async(s,e,n,t={})=>{c("updateInvoiceCompany","id",s),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}}}},Q=function(a){let s=jt(a);return{async createInvoiceCompany(e,n,t){let r=await s.createInvoiceCompany(e,n,t);return P(r,h.default,p,a)},async deleteInvoiceCompany(e,n,t){let r=await s.deleteInvoiceCompany(e,n,t);return P(r,h.default,p,a)},async getInvoiceCompanies(e,n){let t=await s.getInvoiceCompanies(e,n);return P(t,h.default,p,a)},async getInvoiceCompanyById(e,n,t){let r=await s.getInvoiceCompanyById(e,n,t);return P(r,h.default,p,a)},async searchInvoiceCompanies(e,n,t){let r=await s.searchInvoiceCompanies(e,n,t);return P(r,h.default,p,a)},async updateInvoiceCompany(e,n,t,r){let o=await s.updateInvoiceCompany(e,n,t,r);return P(o,h.default,p,a)}}},Zr=function(a,s,e){let n=Q(a);return{createInvoiceCompany(t,r,o){return n.createInvoiceCompany(t,r,o).then(i=>i(e,s))},deleteInvoiceCompany(t,r,o){return n.deleteInvoiceCompany(t,r,o).then(i=>i(e,s))},getInvoiceCompanies(t,r){return n.getInvoiceCompanies(t,r).then(o=>o(e,s))},getInvoiceCompanyById(t,r,o){return n.getInvoiceCompanyById(t,r,o).then(i=>i(e,s))},searchInvoiceCompanies(t,r,o){return n.searchInvoiceCompanies(t,r,o).then(i=>i(e,s))},updateInvoiceCompany(t,r,o,i){return n.updateInvoiceCompany(t,r,o,i).then(l=>l(e,s))}}},Le=class extends V{createInvoiceCompany(s,e,n){return Q(this.configuration).createInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,n){return Q(this.configuration).deleteInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return Q(this.configuration).getInvoiceCompanies(s,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(s,e,n){return Q(this.configuration).getInvoiceCompanyById(s,e,n).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,n){return Q(this.configuration).searchInvoiceCompanies(s,e,n).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,n,t){return Q(this.configuration).updateInvoiceCompany(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Gt=function(a){return{kdsGetOrders:async(s,e,n,t,r,o,i,l,u,d,A,x={})=>{c("kdsGetOrders","status",s),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",n);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),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),n!==void 0&&(S.profileId=n),t!==void 0&&(S.page=t),r!==void 0&&(S.rowPerPage=r),o!==void 0&&(S.timeSpan=o),i!==void 0&&(S.start=i),l!==void 0&&(S.end=l),u!==void 0&&(S.timezone=u),d&&(S.provider=d),A&&(S.consumptionType=A),g(C,S);let q=O&&O.headers?O.headers:{};return I.headers={...v,...q,...x.headers},{url:y(C),options:I}},kdsGetProfiles:async(s,e={})=>{c("kdsGetProfiles","businessId",s);let n="/api/v1/kds/profiles",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(s,e={})=>{c("kdsMarkOrderReady","id",s);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(s,e={})=>{c("kdsRevertOrder","id",s);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Z=function(a){let s=Gt(a);return{async kdsGetOrders(e,n,t,r,o,i,l,u,d,A,x,R){let C=await s.kdsGetOrders(e,n,t,r,o,i,l,u,d,A,x,R);return P(C,h.default,p,a)},async kdsGetProfiles(e,n){let t=await s.kdsGetProfiles(e,n);return P(t,h.default,p,a)},async kdsMarkOrderReady(e,n){let t=await s.kdsMarkOrderReady(e,n);return P(t,h.default,p,a)},async kdsRevertOrder(e,n){let t=await s.kdsRevertOrder(e,n);return P(t,h.default,p,a)}}},eo=function(a,s,e){let n=Z(a);return{kdsGetOrders(t,r,o,i,l,u,d,A,x,R,C,O){return n.kdsGetOrders(t,r,o,i,l,u,d,A,x,R,C,O).then(I=>I(e,s))},kdsGetProfiles(t,r){return n.kdsGetProfiles(t,r).then(o=>o(e,s))},kdsMarkOrderReady(t,r){return n.kdsMarkOrderReady(t,r).then(o=>o(e,s))},kdsRevertOrder(t,r){return n.kdsRevertOrder(t,r).then(o=>o(e,s))}}},Ne=class extends V{kdsGetOrders(s,e,n,t,r,o,i,l,u,d,A,x){return Z(this.configuration).kdsGetOrders(s,e,n,t,r,o,i,l,u,d,A,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(s,e){return Z(this.configuration).kdsGetProfiles(s,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(s,e){return Z(this.configuration).kdsMarkOrderReady(s,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(s,e){return Z(this.configuration).kdsRevertOrder(s,e).then(n=>n(this.axios,this.basePath))}},Wt=function(a){return{getKioskOrder:async(s,e,n={})=>{c("getKioskOrder","orderId",s),c("getKioskOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getOrderStatus:async(s,e,n={})=>{c("getOrderStatus","orderId",s),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},recoverOrder:async(s,e,n={})=>{c("recoverOrder","orderId",s),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},syncKioskOrder:async(s,e={})=>{c("syncKioskOrder","syncKioskOrderDto",s);let n="/api/v1/kiosk/orders/sync",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},validate:async(s,e,n={})=>{c("validate","terminalId",s),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};s!==void 0&&(u.terminalId=s),e!==void 0&&(u.provider=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},z=function(a){let s=Wt(a);return{async getKioskOrder(e,n,t){let r=await s.getKioskOrder(e,n,t);return P(r,h.default,p,a)},async getOrderStatus(e,n,t){let r=await s.getOrderStatus(e,n,t);return P(r,h.default,p,a)},async recoverOrder(e,n,t){let r=await s.recoverOrder(e,n,t);return P(r,h.default,p,a)},async syncKioskOrder(e,n){let t=await s.syncKioskOrder(e,n);return P(t,h.default,p,a)},async validate(e,n,t){let r=await s.validate(e,n,t);return P(r,h.default,p,a)}}},to=function(a,s,e){let n=z(a);return{getKioskOrder(t,r,o){return n.getKioskOrder(t,r,o).then(i=>i(e,s))},getOrderStatus(t,r,o){return n.getOrderStatus(t,r,o).then(i=>i(e,s))},recoverOrder(t,r,o){return n.recoverOrder(t,r,o).then(i=>i(e,s))},syncKioskOrder(t,r){return n.syncKioskOrder(t,r).then(o=>o(e,s))},validate(t,r,o){return n.validate(t,r,o).then(i=>i(e,s))}}},je=class extends V{getKioskOrder(s,e,n){return z(this.configuration).getKioskOrder(s,e,n).then(t=>t(this.axios,this.basePath))}getOrderStatus(s,e,n){return z(this.configuration).getOrderStatus(s,e,n).then(t=>t(this.axios,this.basePath))}recoverOrder(s,e,n){return z(this.configuration).recoverOrder(s,e,n).then(t=>t(this.axios,this.basePath))}syncKioskOrder(s,e){return z(this.configuration).syncKioskOrder(s,e).then(n=>n(this.axios,this.basePath))}validate(s,e,n){return z(this.configuration).validate(s,e,n).then(t=>t(this.axios,this.basePath))}},Kt=function(a){return{activateKioskOffer:async(s,e={})=>{c("activateKioskOffer","activateKioskOfferDto",s);let n="/api/v1/loyalty/users/activate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},claimKioskOffer:async(s,e={})=>{c("claimKioskOffer","claimKioskOfferDto",s);let n="/api/v1/loyalty/users/claim",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createLoyaltyUser:async(s,e,n={})=>{c("createLoyaltyUser","businessId",s),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getAdminTransactions:async(s,e,n,t={})=>{c("getAdminTransactions","businessId",s);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.page=e),n!==void 0&&(d.limit=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(s,e={})=>{c("getLoyaltyInfo","businessId",s);let n="/api/v1/loyalty/info",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(s,e,n={})=>{c("getUserById","businessId",s),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getUserPerks:async(s,e,n={})=>{c("getUserPerks","businessId",s),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getUserWallet:async(s,e,n={})=>{c("getUserWallet","businessId",s),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},resolvePerks:async(s,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",s);let n="/api/v1/loyalty/resolve",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},searchUser:async(s,e,n,t,r={})=>{c("searchUser","businessId",s);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};await f(d,a),e!==void 0&&(A.phone=e),n!==void 0&&(A.country_code=n),t!==void 0&&(A.email=t),s!==void 0&&(A.businessId=s),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(s,e,n={})=>{c("updatePoints","businessId",s),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},validateWallet:async(s,e,n,t={})=>{c("validateWallet","businessId",s),c("validateWallet","loyaltyId",e),c("validateWallet","walletId",n);let r="/api/v1/loyalty/wallets/validate",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.loyaltyId=e),n!==void 0&&(d.walletId=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},F=function(a){let s=Kt(a);return{async activateKioskOffer(e,n){let t=await s.activateKioskOffer(e,n);return P(t,h.default,p,a)},async claimKioskOffer(e,n){let t=await s.claimKioskOffer(e,n);return P(t,h.default,p,a)},async createLoyaltyUser(e,n,t){let r=await s.createLoyaltyUser(e,n,t);return P(r,h.default,p,a)},async getAdminTransactions(e,n,t,r){let o=await s.getAdminTransactions(e,n,t,r);return P(o,h.default,p,a)},async getLoyaltyInfo(e,n){let t=await s.getLoyaltyInfo(e,n);return P(t,h.default,p,a)},async getUserById(e,n,t){let r=await s.getUserById(e,n,t);return P(r,h.default,p,a)},async getUserPerks(e,n,t){let r=await s.getUserPerks(e,n,t);return P(r,h.default,p,a)},async getUserWallet(e,n,t){let r=await s.getUserWallet(e,n,t);return P(r,h.default,p,a)},async resolvePerks(e,n){let t=await s.resolvePerks(e,n);return P(t,h.default,p,a)},async searchUser(e,n,t,r,o){let i=await s.searchUser(e,n,t,r,o);return P(i,h.default,p,a)},async updatePoints(e,n,t){let r=await s.updatePoints(e,n,t);return P(r,h.default,p,a)},async validateWallet(e,n,t,r){let o=await s.validateWallet(e,n,t,r);return P(o,h.default,p,a)}}},so=function(a,s,e){let n=F(a);return{activateKioskOffer(t,r){return n.activateKioskOffer(t,r).then(o=>o(e,s))},claimKioskOffer(t,r){return n.claimKioskOffer(t,r).then(o=>o(e,s))},createLoyaltyUser(t,r,o){return n.createLoyaltyUser(t,r,o).then(i=>i(e,s))},getAdminTransactions(t,r,o,i){return n.getAdminTransactions(t,r,o,i).then(l=>l(e,s))},getLoyaltyInfo(t,r){return n.getLoyaltyInfo(t,r).then(o=>o(e,s))},getUserById(t,r,o){return n.getUserById(t,r,o).then(i=>i(e,s))},getUserPerks(t,r,o){return n.getUserPerks(t,r,o).then(i=>i(e,s))},getUserWallet(t,r,o){return n.getUserWallet(t,r,o).then(i=>i(e,s))},resolvePerks(t,r){return n.resolvePerks(t,r).then(o=>o(e,s))},searchUser(t,r,o,i,l){return n.searchUser(t,r,o,i,l).then(u=>u(e,s))},updatePoints(t,r,o){return n.updatePoints(t,r,o).then(i=>i(e,s))},validateWallet(t,r,o,i){return n.validateWallet(t,r,o,i).then(l=>l(e,s))}}},Ge=class extends V{activateKioskOffer(s,e){return F(this.configuration).activateKioskOffer(s,e).then(n=>n(this.axios,this.basePath))}claimKioskOffer(s,e){return F(this.configuration).claimKioskOffer(s,e).then(n=>n(this.axios,this.basePath))}createLoyaltyUser(s,e,n){return F(this.configuration).createLoyaltyUser(s,e,n).then(t=>t(this.axios,this.basePath))}getAdminTransactions(s,e,n,t){return F(this.configuration).getAdminTransactions(s,e,n,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(s,e){return F(this.configuration).getLoyaltyInfo(s,e).then(n=>n(this.axios,this.basePath))}getUserById(s,e,n){return F(this.configuration).getUserById(s,e,n).then(t=>t(this.axios,this.basePath))}getUserPerks(s,e,n){return F(this.configuration).getUserPerks(s,e,n).then(t=>t(this.axios,this.basePath))}getUserWallet(s,e,n){return F(this.configuration).getUserWallet(s,e,n).then(t=>t(this.axios,this.basePath))}resolvePerks(s,e){return F(this.configuration).resolvePerks(s,e).then(n=>n(this.axios,this.basePath))}searchUser(s,e,n,t,r){return F(this.configuration).searchUser(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,n){return F(this.configuration).updatePoints(s,e,n).then(t=>t(this.axios,this.basePath))}validateWallet(s,e,n,t){return F(this.configuration).validateWallet(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Ht=function(a){return{editBusinessProduct:async(s,e,n={})=>{c("editBusinessProduct","businessId",s),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(s,e,n={})=>{c("editBusinessProductV2","businessId",s),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(s,e={})=>{c("getBusinessExtras","businessId",s);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(s,e,n={})=>{c("getProductsByCategoriesV2","businessId",s);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getProductsByCategoriesV3:async(s,e,n={})=>{c("getProductsByCategoriesV3","businessId",s);let t="/api/v3/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},resetProductEod:async(s,e={})=>{c("resetProductEod","resetEodDto",s);let n="/api/v1/menu/availability/reset-eod",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},$=function(a){let s=Ht(a);return{async editBusinessProduct(e,n,t){let r=await s.editBusinessProduct(e,n,t);return P(r,h.default,p,a)},async editBusinessProductV2(e,n,t){let r=await s.editBusinessProductV2(e,n,t);return P(r,h.default,p,a)},async getBusinessExtras(e,n){let t=await s.getBusinessExtras(e,n);return P(t,h.default,p,a)},async getProductsByCategoriesV2(e,n,t){let r=await s.getProductsByCategoriesV2(e,n,t);return P(r,h.default,p,a)},async getProductsByCategoriesV3(e,n,t){let r=await s.getProductsByCategoriesV3(e,n,t);return P(r,h.default,p,a)},async resetProductEod(e,n){let t=await s.resetProductEod(e,n);return P(t,h.default,p,a)}}},no=function(a,s,e){let n=$(a);return{editBusinessProduct(t,r,o){return n.editBusinessProduct(t,r,o).then(i=>i(e,s))},editBusinessProductV2(t,r,o){return n.editBusinessProductV2(t,r,o).then(i=>i(e,s))},getBusinessExtras(t,r){return n.getBusinessExtras(t,r).then(o=>o(e,s))},getProductsByCategoriesV2(t,r,o){return n.getProductsByCategoriesV2(t,r,o).then(i=>i(e,s))},getProductsByCategoriesV3(t,r,o){return n.getProductsByCategoriesV3(t,r,o).then(i=>i(e,s))},resetProductEod(t,r){return n.resetProductEod(t,r).then(o=>o(e,s))}}},We=class extends V{editBusinessProduct(s,e,n){return $(this.configuration).editBusinessProduct(s,e,n).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,n){return $(this.configuration).editBusinessProductV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return $(this.configuration).getBusinessExtras(s,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,n){return $(this.configuration).getProductsByCategoriesV2(s,e,n).then(t=>t(this.axios,this.basePath))}getProductsByCategoriesV3(s,e,n){return $(this.configuration).getProductsByCategoriesV3(s,e,n).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return $(this.configuration).resetProductEod(s,e).then(n=>n(this.axios,this.basePath))}},Qt=function(a){return{addBusinessesToMerchant:async(s,e,n={})=>{c("addBusinessesToMerchant","merchantId",s),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await f(l,a),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},createMerchant:async(s,e={})=>{c("createMerchant","createMerchantDto",s);let n="/api/v1/merchants",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(s,e,n={})=>{c("removeBusinessFromMerchant","merchantId",s),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await f(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},de=function(a){let s=Qt(a);return{async addBusinessesToMerchant(e,n,t){let r=await s.addBusinessesToMerchant(e,n,t);return P(r,h.default,p,a)},async createMerchant(e,n){let t=await s.createMerchant(e,n);return P(t,h.default,p,a)},async removeBusinessFromMerchant(e,n,t){let r=await s.removeBusinessFromMerchant(e,n,t);return P(r,h.default,p,a)}}},ro=function(a,s,e){let n=de(a);return{addBusinessesToMerchant(t,r,o){return n.addBusinessesToMerchant(t,r,o).then(i=>i(e,s))},createMerchant(t,r){return n.createMerchant(t,r).then(o=>o(e,s))},removeBusinessFromMerchant(t,r,o){return n.removeBusinessFromMerchant(t,r,o).then(i=>i(e,s))}}},Ke=class extends V{addBusinessesToMerchant(s,e,n){return de(this.configuration).addBusinessesToMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return de(this.configuration).createMerchant(s,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,n){return de(this.configuration).removeBusinessFromMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}},$t=function(a){return{createMunchiGiftCard:async(s,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",s);let n="/api/v1/munchi-giftcard/create",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(s,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",s);let n="/api/v1/munchi-giftcard/data",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(s,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",s);let n="/api/v1/munchi-giftcard/redeem",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(s,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",s);let n="/api/v1/munchi-giftcard/validate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ee=function(a){let s=$t(a);return{async createMunchiGiftCard(e,n){let t=await s.createMunchiGiftCard(e,n);return P(t,h.default,p,a)},async getMunchiGiftCardData(e,n){let t=await s.getMunchiGiftCardData(e,n);return P(t,h.default,p,a)},async redeemMunchiGiftCard(e,n){let t=await s.redeemMunchiGiftCard(e,n);return P(t,h.default,p,a)},async validateMunchiGiftCard(e,n){let t=await s.validateMunchiGiftCard(e,n);return P(t,h.default,p,a)}}},oo=function(a,s,e){let n=ee(a);return{createMunchiGiftCard(t,r){return n.createMunchiGiftCard(t,r).then(o=>o(e,s))},getMunchiGiftCardData(t,r){return n.getMunchiGiftCardData(t,r).then(o=>o(e,s))},redeemMunchiGiftCard(t,r){return n.redeemMunchiGiftCard(t,r).then(o=>o(e,s))},validateMunchiGiftCard(t,r){return n.validateMunchiGiftCard(t,r).then(o=>o(e,s))}}},He=class extends V{createMunchiGiftCard(s,e){return ee(this.configuration).createMunchiGiftCard(s,e).then(n=>n(this.axios,this.basePath))}getMunchiGiftCardData(s,e){return ee(this.configuration).getMunchiGiftCardData(s,e).then(n=>n(this.axios,this.basePath))}redeemMunchiGiftCard(s,e){return ee(this.configuration).redeemMunchiGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateMunchiGiftCard(s,e){return ee(this.configuration).validateMunchiGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},Yt=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",s);let n="/api/v2/notification/add-venue-subscriptions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",s);let n="/api/v2/notification/remove-venue-subscriptions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},fe=function(a){let s=Yt(a);return{async addVenueSubscriptionsV2(e,n){let t=await s.addVenueSubscriptionsV2(e,n);return P(t,h.default,p,a)},async removeVenueSubscriptionsV2(e,n){let t=await s.removeVenueSubscriptionsV2(e,n);return P(t,h.default,p,a)}}},ao=function(a,s,e){let n=fe(a);return{addVenueSubscriptionsV2(t,r){return n.addVenueSubscriptionsV2(t,r).then(o=>o(e,s))},removeVenueSubscriptionsV2(t,r){return n.removeVenueSubscriptionsV2(t,r).then(o=>o(e,s))}}},Qe=class extends V{addVenueSubscriptionsV2(s,e){return fe(this.configuration).addVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return fe(this.configuration).removeVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}},zt=function(a){return{findOneByExternalId:async(s,e={})=>{c("findOneByExternalId","externalId",s);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},bt=function(a){let s=zt(a);return{async findOneByExternalId(e,n){let t=await s.findOneByExternalId(e,n);return P(t,h.default,p,a)}}},io=function(a,s,e){let n=bt(a);return{findOneByExternalId(t,r){return n.findOneByExternalId(t,r).then(o=>o(e,s))}}},$e=class extends V{findOneByExternalId(s,e){return bt(this.configuration).findOneByExternalId(s,e).then(n=>n(this.axios,this.basePath))}},Jt=function(a){return{acceptOrder:async(s,e={})=>{c("acceptOrder","acceptOrderDto",s);let n="/api/v1/orders/accept",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},confirmPreOrder:async(s,e={})=>{c("confirmPreOrder","confirmPreorderDto",s);let n="/api/v1/orders/confirm/preOrder",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",s);let n="/api/v2/orders/pos/park",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},deliverOrder:async(s,e={})=>{c("deliverOrder","deliveredOrderDto",s);let n="/api/v1/orders/delivered",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},dispatchPosOrderV5:async(s,e={})=>{c("dispatchPosOrderV5","dispatchPosOrderDto",s);let n="/api/v5/orders/pos/dispatch",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getAllOrdersV2:async(s,e={})=>{c("getAllOrdersV2","businessIds",s);let n="/api/v2/orders",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessIds=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(s,e,n,t,r={})=>{c("getOrdersV2","status",s),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};e!==void 0&&(A.businessIds=e),n!==void 0&&(A.posBusinessId=n),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getOrdersV3:async(s,e,n,t,r={})=>{c("getOrdersV3","status",s),c("getOrdersV3","businessIds",e);let o="/api/v3/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};e!==void 0&&(A.businessIds=e),n!==void 0&&(A.posBusinessId=n),t!==void 0&&(A.extraProvider=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{c("getParkedPosOrderV2","businessId",s);let n="/api/v2/orders/pos/park",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosOrderById:async(s,e={})=>{c("getPosOrderById","getPosOrderDto",s);let n="/api/v1/orders/pos",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},markOrderAsReady:async(s,e={})=>{c("markOrderAsReady","readyOrderDto",s);let n="/api/v1/orders/ready",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},placePosOrderV4:async(s,e={})=>{c("placePosOrderV4","posOrderPayloadDto",s);let n="/api/v4/orders/pos/place",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},processPosOrderActions:async(s,e={})=>{c("processPosOrderActions","processOrderActionsDto",s);let n="/api/v4/orders/pos/actions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},rejectOrder:async(s,e={})=>{c("rejectOrder","rejectOrderDto",s);let n="/api/v1/orders/reject",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},syncPosOrder:async(s,e={})=>{c("syncPosOrder","syncPosOrderDto",s);let n="/api/v1/orders/pos/sync",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updatePosOrderV2:async(s,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",s);let n="/api/v2/orders/pos/update",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},B=function(a){let s=Jt(a);return{async acceptOrder(e,n){let t=await s.acceptOrder(e,n);return P(t,h.default,p,a)},async confirmPreOrder(e,n){let t=await s.confirmPreOrder(e,n);return P(t,h.default,p,a)},async deletePosParkedOrderV2(e,n){let t=await s.deletePosParkedOrderV2(e,n);return P(t,h.default,p,a)},async deliverOrder(e,n){let t=await s.deliverOrder(e,n);return P(t,h.default,p,a)},async dispatchPosOrderV5(e,n){let t=await s.dispatchPosOrderV5(e,n);return P(t,h.default,p,a)},async getAllOrdersV2(e,n){let t=await s.getAllOrdersV2(e,n);return P(t,h.default,p,a)},async getOrdersV2(e,n,t,r,o){let i=await s.getOrdersV2(e,n,t,r,o);return P(i,h.default,p,a)},async getOrdersV3(e,n,t,r,o){let i=await s.getOrdersV3(e,n,t,r,o);return P(i,h.default,p,a)},async getParkedPosOrderV2(e,n){let t=await s.getParkedPosOrderV2(e,n);return P(t,h.default,p,a)},async getPosOrderById(e,n){let t=await s.getPosOrderById(e,n);return P(t,h.default,p,a)},async markOrderAsReady(e,n){let t=await s.markOrderAsReady(e,n);return P(t,h.default,p,a)},async placePosOrderV4(e,n){let t=await s.placePosOrderV4(e,n);return P(t,h.default,p,a)},async processPosOrderActions(e,n){let t=await s.processPosOrderActions(e,n);return P(t,h.default,p,a)},async rejectOrder(e,n){let t=await s.rejectOrder(e,n);return P(t,h.default,p,a)},async syncPosOrder(e,n){let t=await s.syncPosOrder(e,n);return P(t,h.default,p,a)},async updatePosOrderV2(e,n){let t=await s.updatePosOrderV2(e,n);return P(t,h.default,p,a)}}},lo=function(a,s,e){let n=B(a);return{acceptOrder(t,r){return n.acceptOrder(t,r).then(o=>o(e,s))},confirmPreOrder(t,r){return n.confirmPreOrder(t,r).then(o=>o(e,s))},deletePosParkedOrderV2(t,r){return n.deletePosParkedOrderV2(t,r).then(o=>o(e,s))},deliverOrder(t,r){return n.deliverOrder(t,r).then(o=>o(e,s))},dispatchPosOrderV5(t,r){return n.dispatchPosOrderV5(t,r).then(o=>o(e,s))},getAllOrdersV2(t,r){return n.getAllOrdersV2(t,r).then(o=>o(e,s))},getOrdersV2(t,r,o,i,l){return n.getOrdersV2(t,r,o,i,l).then(u=>u(e,s))},getOrdersV3(t,r,o,i,l){return n.getOrdersV3(t,r,o,i,l).then(u=>u(e,s))},getParkedPosOrderV2(t,r){return n.getParkedPosOrderV2(t,r).then(o=>o(e,s))},getPosOrderById(t,r){return n.getPosOrderById(t,r).then(o=>o(e,s))},markOrderAsReady(t,r){return n.markOrderAsReady(t,r).then(o=>o(e,s))},placePosOrderV4(t,r){return n.placePosOrderV4(t,r).then(o=>o(e,s))},processPosOrderActions(t,r){return n.processPosOrderActions(t,r).then(o=>o(e,s))},rejectOrder(t,r){return n.rejectOrder(t,r).then(o=>o(e,s))},syncPosOrder(t,r){return n.syncPosOrder(t,r).then(o=>o(e,s))},updatePosOrderV2(t,r){return n.updatePosOrderV2(t,r).then(o=>o(e,s))}}},Ye=class extends V{acceptOrder(s,e){return B(this.configuration).acceptOrder(s,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(s,e){return B(this.configuration).confirmPreOrder(s,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return B(this.configuration).deletePosParkedOrderV2(s,e).then(n=>n(this.axios,this.basePath))}deliverOrder(s,e){return B(this.configuration).deliverOrder(s,e).then(n=>n(this.axios,this.basePath))}dispatchPosOrderV5(s,e){return B(this.configuration).dispatchPosOrderV5(s,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(s,e){return B(this.configuration).getAllOrdersV2(s,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(s,e,n,t,r){return B(this.configuration).getOrdersV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getOrdersV3(s,e,n,t,r){return B(this.configuration).getOrdersV3(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return B(this.configuration).getParkedPosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}getPosOrderById(s,e){return B(this.configuration).getPosOrderById(s,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(s,e){return B(this.configuration).markOrderAsReady(s,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(s,e){return B(this.configuration).placePosOrderV4(s,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(s,e){return B(this.configuration).processPosOrderActions(s,e).then(n=>n(this.axios,this.basePath))}rejectOrder(s,e){return B(this.configuration).rejectOrder(s,e).then(n=>n(this.axios,this.basePath))}syncPosOrder(s,e){return B(this.configuration).syncPosOrder(s,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(s,e){return B(this.configuration).updatePosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}},Xt=function(a){return{getPosSession:async(s,e={})=>{c("getPosSession","businessId",s);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(s,e={})=>{c("getPosSessionV2","businessId",s);let n="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Re=function(a){let s=Xt(a);return{async getPosSession(e,n){let t=await s.getPosSession(e,n);return P(t,h.default,p,a)},async getPosSessionV2(e,n){let t=await s.getPosSessionV2(e,n);return P(t,h.default,p,a)}}},uo=function(a,s,e){let n=Re(a);return{getPosSession(t,r){return n.getPosSession(t,r).then(o=>o(e,s))},getPosSessionV2(t,r){return n.getPosSessionV2(t,r).then(o=>o(e,s))}}},ze=class extends V{getPosSession(s,e){return Re(this.configuration).getPosSession(s,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(s,e){return Re(this.configuration).getPosSessionV2(s,e).then(n=>n(this.axios,this.basePath))}},Zt=function(a){return{payTerminalInit:async(s,e={})=>{c("payTerminalInit","payTerminalInitBodyDto",s);let n="/api/v1/pay-terminal/init",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},payTerminalPair:async(s,e={})=>{c("payTerminalPair","pairPayTerminalBodyDto",s);let n="/api/v1/pay-terminal/pair",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},payTerminalSessionToken:async(s,e={})=>{c("payTerminalSessionToken","payTerminalSessionTokenBodyDto",s);let n="/api/v1/pay-terminal/session-token",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},payTerminalUnpair:async(s,e={})=>{c("payTerminalUnpair","unpairPayTerminalBodyDto",s);let n="/api/v1/pay-terminal/unpair",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},te=function(a){let s=Zt(a);return{async payTerminalInit(e,n){let t=await s.payTerminalInit(e,n);return P(t,h.default,p,a)},async payTerminalPair(e,n){let t=await s.payTerminalPair(e,n);return P(t,h.default,p,a)},async payTerminalSessionToken(e,n){let t=await s.payTerminalSessionToken(e,n);return P(t,h.default,p,a)},async payTerminalUnpair(e,n){let t=await s.payTerminalUnpair(e,n);return P(t,h.default,p,a)}}},co=function(a,s,e){let n=te(a);return{payTerminalInit(t,r){return n.payTerminalInit(t,r).then(o=>o(e,s))},payTerminalPair(t,r){return n.payTerminalPair(t,r).then(o=>o(e,s))},payTerminalSessionToken(t,r){return n.payTerminalSessionToken(t,r).then(o=>o(e,s))},payTerminalUnpair(t,r){return n.payTerminalUnpair(t,r).then(o=>o(e,s))}}},Je=class extends V{payTerminalInit(s,e){return te(this.configuration).payTerminalInit(s,e).then(n=>n(this.axios,this.basePath))}payTerminalPair(s,e){return te(this.configuration).payTerminalPair(s,e).then(n=>n(this.axios,this.basePath))}payTerminalSessionToken(s,e){return te(this.configuration).payTerminalSessionToken(s,e).then(n=>n(this.axios,this.basePath))}payTerminalUnpair(s,e){return te(this.configuration).payTerminalUnpair(s,e).then(n=>n(this.axios,this.basePath))}},es=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",s);let n="/api/v3/payment/nets/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",s);let n="/api/v2/payment/viva/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{c("createNetsRefundTransaction","createRefundDto",s);let n="/api/v4/payment/nets/refund/transaction",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getPaymentReference:async(s,e={})=>{c("getPaymentReference","getPaymentReferenceDto",s);let n="/api/v1/payment/reference",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getPaymentStatus:async(s,e={})=>{c("getPaymentStatus","getPaymentStatusDto",s);let n="/api/v1/payment/status",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",s);let n="/api/v3/payment/nets/terminal/initiate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",s);let n="/api/v4/payment/viva/terminal/initiate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{c("processOnlineOrderRefund","orderResponseDto",s);let n="/api/v1/payment/online-orders/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{c("refundSingleVivaTransaction","createRefundDto",s);let n="/api/v4/payment/viva/refund/single",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},j=function(a){let s=es(a);return{async cancelNetsTerminalTransaction(e,n){let t=await s.cancelNetsTerminalTransaction(e,n);return P(t,h.default,p,a)},async cancelVivaTransactionV2(e,n){let t=await s.cancelVivaTransactionV2(e,n);return P(t,h.default,p,a)},async createNetsRefundTransaction(e,n){let t=await s.createNetsRefundTransaction(e,n);return P(t,h.default,p,a)},async getPaymentReference(e,n){let t=await s.getPaymentReference(e,n);return P(t,h.default,p,a)},async getPaymentStatus(e,n){let t=await s.getPaymentStatus(e,n);return P(t,h.default,p,a)},async initiateNetsTerminalTransaction(e,n){let t=await s.initiateNetsTerminalTransaction(e,n);return P(t,h.default,p,a)},async initiateTerminalTransaction(e,n){let t=await s.initiateTerminalTransaction(e,n);return P(t,h.default,p,a)},async processOnlineOrderRefund(e,n){let t=await s.processOnlineOrderRefund(e,n);return P(t,h.default,p,a)},async refundSingleVivaTransaction(e,n){let t=await s.refundSingleVivaTransaction(e,n);return P(t,h.default,p,a)}}},po=function(a,s,e){let n=j(a);return{cancelNetsTerminalTransaction(t,r){return n.cancelNetsTerminalTransaction(t,r).then(o=>o(e,s))},cancelVivaTransactionV2(t,r){return n.cancelVivaTransactionV2(t,r).then(o=>o(e,s))},createNetsRefundTransaction(t,r){return n.createNetsRefundTransaction(t,r).then(o=>o(e,s))},getPaymentReference(t,r){return n.getPaymentReference(t,r).then(o=>o(e,s))},getPaymentStatus(t,r){return n.getPaymentStatus(t,r).then(o=>o(e,s))},initiateNetsTerminalTransaction(t,r){return n.initiateNetsTerminalTransaction(t,r).then(o=>o(e,s))},initiateTerminalTransaction(t,r){return n.initiateTerminalTransaction(t,r).then(o=>o(e,s))},processOnlineOrderRefund(t,r){return n.processOnlineOrderRefund(t,r).then(o=>o(e,s))},refundSingleVivaTransaction(t,r){return n.refundSingleVivaTransaction(t,r).then(o=>o(e,s))}}},Xe=class extends V{cancelNetsTerminalTransaction(s,e){return j(this.configuration).cancelNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return j(this.configuration).cancelVivaTransactionV2(s,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return j(this.configuration).createNetsRefundTransaction(s,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(s,e){return j(this.configuration).getPaymentReference(s,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(s,e){return j(this.configuration).getPaymentStatus(s,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return j(this.configuration).initiateNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return j(this.configuration).initiateTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return j(this.configuration).processOnlineOrderRefund(s,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return j(this.configuration).refundSingleVivaTransaction(s,e).then(n=>n(this.axios,this.basePath))}},ts=function(a){return{createPaymentMethod:async(s,e,n,t={})=>{c("createPaymentMethod","businessId",s),c("createPaymentMethod","channel",e),c("createPaymentMethod","createPaymentMethodDto",n);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},deletePaymentMethodOption:async(s,e,n,t={})=>{c("deletePaymentMethodOption","businessId",s),c("deletePaymentMethodOption","channel",e),c("deletePaymentMethodOption","id",n);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getCatalog:async(s,e,n,t={})=>{c("getCatalog","businessId",s),c("getCatalog","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};n!==void 0&&(d.locale=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getGlobalCatalog:async(s,e={})=>{let n="/api/v1/payment-methods/catalog",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.locale=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPaymentMethods:async(s,e,n,t={})=>{c("getPaymentMethods","businessId",s),c("getPaymentMethods","channel",e);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};n!==void 0&&(d.locale=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getTypes:async(s={})=>{let e="/api/v1/payment-methods/types",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},reorder:async(s,e,n,t={})=>{c("reorder","businessId",s),c("reorder","channel",e),c("reorder","bulkRankDto",n);let r="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},updatePaymentMethodOption:async(s,e,n,t,r={})=>{c("updatePaymentMethodOption","businessId",s),c("updatePaymentMethodOption","channel",e),c("updatePaymentMethodOption","id",n),c("updatePaymentMethodOption","updatePaymentMethodOptionDto",t);let o="/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{channel}",encodeURIComponent(String(e))).replace("{id}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PATCH",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},G=function(a){let s=ts(a);return{async createPaymentMethod(e,n,t,r){let o=await s.createPaymentMethod(e,n,t,r);return P(o,h.default,p,a)},async deletePaymentMethodOption(e,n,t,r){let o=await s.deletePaymentMethodOption(e,n,t,r);return P(o,h.default,p,a)},async getCatalog(e,n,t,r){let o=await s.getCatalog(e,n,t,r);return P(o,h.default,p,a)},async getGlobalCatalog(e,n){let t=await s.getGlobalCatalog(e,n);return P(t,h.default,p,a)},async getPaymentMethods(e,n,t,r){let o=await s.getPaymentMethods(e,n,t,r);return P(o,h.default,p,a)},async getTypes(e){let n=await s.getTypes(e);return P(n,h.default,p,a)},async reorder(e,n,t,r){let o=await s.reorder(e,n,t,r);return P(o,h.default,p,a)},async updatePaymentMethodOption(e,n,t,r,o){let i=await s.updatePaymentMethodOption(e,n,t,r,o);return P(i,h.default,p,a)}}},mo=function(a,s,e){let n=G(a);return{createPaymentMethod(t,r,o,i){return n.createPaymentMethod(t,r,o,i).then(l=>l(e,s))},deletePaymentMethodOption(t,r,o,i){return n.deletePaymentMethodOption(t,r,o,i).then(l=>l(e,s))},getCatalog(t,r,o,i){return n.getCatalog(t,r,o,i).then(l=>l(e,s))},getGlobalCatalog(t,r){return n.getGlobalCatalog(t,r).then(o=>o(e,s))},getPaymentMethods(t,r,o,i){return n.getPaymentMethods(t,r,o,i).then(l=>l(e,s))},getTypes(t){return n.getTypes(t).then(r=>r(e,s))},reorder(t,r,o,i){return n.reorder(t,r,o,i).then(l=>l(e,s))},updatePaymentMethodOption(t,r,o,i,l){return n.updatePaymentMethodOption(t,r,o,i,l).then(u=>u(e,s))}}},Ze=class extends V{createPaymentMethod(s,e,n,t){return G(this.configuration).createPaymentMethod(s,e,n,t).then(r=>r(this.axios,this.basePath))}deletePaymentMethodOption(s,e,n,t){return G(this.configuration).deletePaymentMethodOption(s,e,n,t).then(r=>r(this.axios,this.basePath))}getCatalog(s,e,n,t){return G(this.configuration).getCatalog(s,e,n,t).then(r=>r(this.axios,this.basePath))}getGlobalCatalog(s,e){return G(this.configuration).getGlobalCatalog(s,e).then(n=>n(this.axios,this.basePath))}getPaymentMethods(s,e,n,t){return G(this.configuration).getPaymentMethods(s,e,n,t).then(r=>r(this.axios,this.basePath))}getTypes(s){return G(this.configuration).getTypes(s).then(e=>e(this.axios,this.basePath))}reorder(s,e,n,t){return G(this.configuration).reorder(s,e,n,t).then(r=>r(this.axios,this.basePath))}updatePaymentMethodOption(s,e,n,t,r){return G(this.configuration).updatePaymentMethodOption(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}},ss=function(a){return{cancelSession:async(s,e={})=>{c("cancelSession","clientToken",s);let n="/api/v1/payment-session/{clientToken}/cancel".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrderSettlementStatus:async(s,e,n,t={})=>{c("getOrderSettlementStatus","businessId",s),c("getOrderSettlementStatus","orderId",e);let r="/api/v1/payment-session/order-settlement/{businessId}/{orderId}".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},getPaymentSession:async(s,e={})=>{c("getPaymentSession","clientToken",s);let n="/api/v1/payment-session/{clientToken}".replace("{clientToken}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},initiateNetsSession:async(s,e,n={})=>{c("initiateNetsSession","initiateNetsSessionDto",s);let t="/api/v1/payment-session/nets/initiate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(s,i,a),{url:y(r),options:i}},initiateVivaA2aSession:async(s,e={})=>{c("initiateVivaA2aSession","initiateVivaA2aSessionDto",s);let n="/api/v1/payment-session/viva/a2a",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},initiateVivaSession:async(s,e,n={})=>{c("initiateVivaSession","initiateVivaSessionDto",s);let t="/api/v1/payment-session/viva/initiate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(s,i,a),{url:y(r),options:i}},initiateWorldlineSession:async(s,e,n={})=>{c("initiateWorldlineSession","initiateWorldlineSessionDto",s);let t="/api/v1/payment-session/worldline/initiate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};e!=null&&(l["X-Idempotency-Key"]=String(e)),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(s,i,a),{url:y(r),options:i}},paymentSessionGetChargeStatus:async(s,e={})=>{c("paymentSessionGetChargeStatus","chargeId",s);let n="/api/v1/payment-session/charge-status/{chargeId}".replace("{chargeId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},paymentSessionRegisterChargeMapping:async(s,e={})=>{c("paymentSessionRegisterChargeMapping","registerChargeMappingDto",s);let n="/api/v1/payment-session/charge-status/register",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},pollVivaSession:async(s,e={})=>{c("pollVivaSession","pollVivaSessionDto",s);let n="/api/v1/payment-session/poll",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},pollWorldlineSession:async(s,e={})=>{c("pollWorldlineSession","pollWorldlineSessionDto",s);let n="/api/v1/payment-session/worldline/poll",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},recordManualPayment:async(s,e={})=>{c("recordManualPayment","createManualSessionDto",s);let n="/api/v1/payment-session/manual",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundNetsSession:async(s,e={})=>{c("refundNetsSession","reverseSessionDto",s);let n="/api/v1/payment-session/nets/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundVivaSession:async(s,e={})=>{c("refundVivaSession","reverseSessionDto",s);let n="/api/v1/payment-session/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},refundWorldlineSession:async(s,e={})=>{c("refundWorldlineSession","reverseSessionDto",s);let n="/api/v1/payment-session/worldline/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},revertNetsSession:async(s,e={})=>{c("revertNetsSession","reverseSessionDto",s);let n="/api/v1/payment-session/nets/revert",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},revertVivaSession:async(s,e={})=>{c("revertVivaSession","reverseSessionDto",s);let n="/api/v1/payment-session/revert",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},revertWorldlineSession:async(s,e={})=>{c("revertWorldlineSession","reverseSessionDto",s);let n="/api/v1/payment-session/worldline/revert",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},voidManualPayment:async(s,e={})=>{c("voidManualPayment","voidManualSessionDto",s);let n="/api/v1/payment-session/void",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},E=function(a){let s=ss(a);return{async cancelSession(e,n){let t=await s.cancelSession(e,n);return P(t,h.default,p,a)},async getOrderSettlementStatus(e,n,t,r){let o=await s.getOrderSettlementStatus(e,n,t,r);return P(o,h.default,p,a)},async getPaymentSession(e,n){let t=await s.getPaymentSession(e,n);return P(t,h.default,p,a)},async initiateNetsSession(e,n,t){let r=await s.initiateNetsSession(e,n,t);return P(r,h.default,p,a)},async initiateVivaA2aSession(e,n){let t=await s.initiateVivaA2aSession(e,n);return P(t,h.default,p,a)},async initiateVivaSession(e,n,t){let r=await s.initiateVivaSession(e,n,t);return P(r,h.default,p,a)},async initiateWorldlineSession(e,n,t){let r=await s.initiateWorldlineSession(e,n,t);return P(r,h.default,p,a)},async paymentSessionGetChargeStatus(e,n){let t=await s.paymentSessionGetChargeStatus(e,n);return P(t,h.default,p,a)},async paymentSessionRegisterChargeMapping(e,n){let t=await s.paymentSessionRegisterChargeMapping(e,n);return P(t,h.default,p,a)},async pollVivaSession(e,n){let t=await s.pollVivaSession(e,n);return P(t,h.default,p,a)},async pollWorldlineSession(e,n){let t=await s.pollWorldlineSession(e,n);return P(t,h.default,p,a)},async recordManualPayment(e,n){let t=await s.recordManualPayment(e,n);return P(t,h.default,p,a)},async refundNetsSession(e,n){let t=await s.refundNetsSession(e,n);return P(t,h.default,p,a)},async refundVivaSession(e,n){let t=await s.refundVivaSession(e,n);return P(t,h.default,p,a)},async refundWorldlineSession(e,n){let t=await s.refundWorldlineSession(e,n);return P(t,h.default,p,a)},async revertNetsSession(e,n){let t=await s.revertNetsSession(e,n);return P(t,h.default,p,a)},async revertVivaSession(e,n){let t=await s.revertVivaSession(e,n);return P(t,h.default,p,a)},async revertWorldlineSession(e,n){let t=await s.revertWorldlineSession(e,n);return P(t,h.default,p,a)},async voidManualPayment(e,n){let t=await s.voidManualPayment(e,n);return P(t,h.default,p,a)}}},go=function(a,s,e){let n=E(a);return{cancelSession(t,r){return n.cancelSession(t,r).then(o=>o(e,s))},getOrderSettlementStatus(t,r,o,i){return n.getOrderSettlementStatus(t,r,o,i).then(l=>l(e,s))},getPaymentSession(t,r){return n.getPaymentSession(t,r).then(o=>o(e,s))},initiateNetsSession(t,r,o){return n.initiateNetsSession(t,r,o).then(i=>i(e,s))},initiateVivaA2aSession(t,r){return n.initiateVivaA2aSession(t,r).then(o=>o(e,s))},initiateVivaSession(t,r,o){return n.initiateVivaSession(t,r,o).then(i=>i(e,s))},initiateWorldlineSession(t,r,o){return n.initiateWorldlineSession(t,r,o).then(i=>i(e,s))},paymentSessionGetChargeStatus(t,r){return n.paymentSessionGetChargeStatus(t,r).then(o=>o(e,s))},paymentSessionRegisterChargeMapping(t,r){return n.paymentSessionRegisterChargeMapping(t,r).then(o=>o(e,s))},pollVivaSession(t,r){return n.pollVivaSession(t,r).then(o=>o(e,s))},pollWorldlineSession(t,r){return n.pollWorldlineSession(t,r).then(o=>o(e,s))},recordManualPayment(t,r){return n.recordManualPayment(t,r).then(o=>o(e,s))},refundNetsSession(t,r){return n.refundNetsSession(t,r).then(o=>o(e,s))},refundVivaSession(t,r){return n.refundVivaSession(t,r).then(o=>o(e,s))},refundWorldlineSession(t,r){return n.refundWorldlineSession(t,r).then(o=>o(e,s))},revertNetsSession(t,r){return n.revertNetsSession(t,r).then(o=>o(e,s))},revertVivaSession(t,r){return n.revertVivaSession(t,r).then(o=>o(e,s))},revertWorldlineSession(t,r){return n.revertWorldlineSession(t,r).then(o=>o(e,s))},voidManualPayment(t,r){return n.voidManualPayment(t,r).then(o=>o(e,s))}}},et=class extends V{cancelSession(s,e){return E(this.configuration).cancelSession(s,e).then(n=>n(this.axios,this.basePath))}getOrderSettlementStatus(s,e,n,t){return E(this.configuration).getOrderSettlementStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}getPaymentSession(s,e){return E(this.configuration).getPaymentSession(s,e).then(n=>n(this.axios,this.basePath))}initiateNetsSession(s,e,n){return E(this.configuration).initiateNetsSession(s,e,n).then(t=>t(this.axios,this.basePath))}initiateVivaA2aSession(s,e){return E(this.configuration).initiateVivaA2aSession(s,e).then(n=>n(this.axios,this.basePath))}initiateVivaSession(s,e,n){return E(this.configuration).initiateVivaSession(s,e,n).then(t=>t(this.axios,this.basePath))}initiateWorldlineSession(s,e,n){return E(this.configuration).initiateWorldlineSession(s,e,n).then(t=>t(this.axios,this.basePath))}paymentSessionGetChargeStatus(s,e){return E(this.configuration).paymentSessionGetChargeStatus(s,e).then(n=>n(this.axios,this.basePath))}paymentSessionRegisterChargeMapping(s,e){return E(this.configuration).paymentSessionRegisterChargeMapping(s,e).then(n=>n(this.axios,this.basePath))}pollVivaSession(s,e){return E(this.configuration).pollVivaSession(s,e).then(n=>n(this.axios,this.basePath))}pollWorldlineSession(s,e){return E(this.configuration).pollWorldlineSession(s,e).then(n=>n(this.axios,this.basePath))}recordManualPayment(s,e){return E(this.configuration).recordManualPayment(s,e).then(n=>n(this.axios,this.basePath))}refundNetsSession(s,e){return E(this.configuration).refundNetsSession(s,e).then(n=>n(this.axios,this.basePath))}refundVivaSession(s,e){return E(this.configuration).refundVivaSession(s,e).then(n=>n(this.axios,this.basePath))}refundWorldlineSession(s,e){return E(this.configuration).refundWorldlineSession(s,e).then(n=>n(this.axios,this.basePath))}revertNetsSession(s,e){return E(this.configuration).revertNetsSession(s,e).then(n=>n(this.axios,this.basePath))}revertVivaSession(s,e){return E(this.configuration).revertVivaSession(s,e).then(n=>n(this.axios,this.basePath))}revertWorldlineSession(s,e){return E(this.configuration).revertWorldlineSession(s,e).then(n=>n(this.axios,this.basePath))}voidManualPayment(s,e){return E(this.configuration).voidManualPayment(s,e).then(n=>n(this.axios,this.basePath))}},ns=function(a){return{deleteCategoryPolicy:async(s,e,n={})=>{c("deleteCategoryPolicy","businessId",s),c("deleteCategoryPolicy","categoryId",e);let t="/api/v1/printer/policies/category",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.categoryId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},deletePrinter:async(s,e,n={})=>{c("deletePrinter","id",s),c("deletePrinter","businessId",e);let t="/api/v1/printer/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},deletePrinterByAddress:async(s,e,n={})=>{c("deletePrinterByAddress","businessId",s),c("deletePrinterByAddress","address",e);let t="/api/v1/printer",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.address=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},deleteProductPolicy:async(s,e,n={})=>{c("deleteProductPolicy","businessId",s),c("deleteProductPolicy","productId",e);let t="/api/v1/printer/policies/product",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.productId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},listCategoryPolicies:async(s,e={})=>{c("listCategoryPolicies","businessId",s);let n="/api/v1/printer/policies/category",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listPrinters:async(s,e={})=>{c("listPrinters","businessId",s);let n="/api/v1/printer",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listProductPolicies:async(s,e={})=>{c("listProductPolicies","businessId",s);let n="/api/v1/printer/policies/product",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},upsertCategoryPolicy:async(s,e={})=>{c("upsertCategoryPolicy","upsertCategoryPrintPolicyDto",s);let n="/api/v1/printer/policies/category",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},upsertPrinter:async(s,e={})=>{c("upsertPrinter","upsertPrinterDto",s);let n="/api/v1/printer",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},upsertProductPolicy:async(s,e={})=>{c("upsertProductPolicy","upsertProductPrintPolicyDto",s);let n="/api/v1/printer/policies/product",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},_=function(a){let s=ns(a);return{async deleteCategoryPolicy(e,n,t){let r=await s.deleteCategoryPolicy(e,n,t);return P(r,h.default,p,a)},async deletePrinter(e,n,t){let r=await s.deletePrinter(e,n,t);return P(r,h.default,p,a)},async deletePrinterByAddress(e,n,t){let r=await s.deletePrinterByAddress(e,n,t);return P(r,h.default,p,a)},async deleteProductPolicy(e,n,t){let r=await s.deleteProductPolicy(e,n,t);return P(r,h.default,p,a)},async listCategoryPolicies(e,n){let t=await s.listCategoryPolicies(e,n);return P(t,h.default,p,a)},async listPrinters(e,n){let t=await s.listPrinters(e,n);return P(t,h.default,p,a)},async listProductPolicies(e,n){let t=await s.listProductPolicies(e,n);return P(t,h.default,p,a)},async upsertCategoryPolicy(e,n){let t=await s.upsertCategoryPolicy(e,n);return P(t,h.default,p,a)},async upsertPrinter(e,n){let t=await s.upsertPrinter(e,n);return P(t,h.default,p,a)},async upsertProductPolicy(e,n){let t=await s.upsertProductPolicy(e,n);return P(t,h.default,p,a)}}},yo=function(a,s,e){let n=_(a);return{deleteCategoryPolicy(t,r,o){return n.deleteCategoryPolicy(t,r,o).then(i=>i(e,s))},deletePrinter(t,r,o){return n.deletePrinter(t,r,o).then(i=>i(e,s))},deletePrinterByAddress(t,r,o){return n.deletePrinterByAddress(t,r,o).then(i=>i(e,s))},deleteProductPolicy(t,r,o){return n.deleteProductPolicy(t,r,o).then(i=>i(e,s))},listCategoryPolicies(t,r){return n.listCategoryPolicies(t,r).then(o=>o(e,s))},listPrinters(t,r){return n.listPrinters(t,r).then(o=>o(e,s))},listProductPolicies(t,r){return n.listProductPolicies(t,r).then(o=>o(e,s))},upsertCategoryPolicy(t,r){return n.upsertCategoryPolicy(t,r).then(o=>o(e,s))},upsertPrinter(t,r){return n.upsertPrinter(t,r).then(o=>o(e,s))},upsertProductPolicy(t,r){return n.upsertProductPolicy(t,r).then(o=>o(e,s))}}},tt=class extends V{deleteCategoryPolicy(s,e,n){return _(this.configuration).deleteCategoryPolicy(s,e,n).then(t=>t(this.axios,this.basePath))}deletePrinter(s,e,n){return _(this.configuration).deletePrinter(s,e,n).then(t=>t(this.axios,this.basePath))}deletePrinterByAddress(s,e,n){return _(this.configuration).deletePrinterByAddress(s,e,n).then(t=>t(this.axios,this.basePath))}deleteProductPolicy(s,e,n){return _(this.configuration).deleteProductPolicy(s,e,n).then(t=>t(this.axios,this.basePath))}listCategoryPolicies(s,e){return _(this.configuration).listCategoryPolicies(s,e).then(n=>n(this.axios,this.basePath))}listPrinters(s,e){return _(this.configuration).listPrinters(s,e).then(n=>n(this.axios,this.basePath))}listProductPolicies(s,e){return _(this.configuration).listProductPolicies(s,e).then(n=>n(this.axios,this.basePath))}upsertCategoryPolicy(s,e){return _(this.configuration).upsertCategoryPolicy(s,e).then(n=>n(this.axios,this.basePath))}upsertPrinter(s,e){return _(this.configuration).upsertPrinter(s,e).then(n=>n(this.axios,this.basePath))}upsertProductPolicy(s,e){return _(this.configuration).upsertProductPolicy(s,e).then(n=>n(this.axios,this.basePath))}},rs=function(a){return{generateProductSkuV2:async(s,e,n,t={})=>{c("generateProductSkuV2","businessId",s),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",n);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getChannelInventoryV2:async(s,e,n,t={})=>{c("getChannelInventoryV2","businessId",s),c("getChannelInventoryV2","categoryId",e),c("getChannelInventoryV2","productId",n);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(s,e,n,t,r={})=>{c("updateChannelInventoryV2","businessId",s),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",n),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},updateProductSkuV2:async(s,e,n,t,r={})=>{c("updateProductSkuV2","businessId",s),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",n),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}}}},se=function(a){let s=rs(a);return{async generateProductSkuV2(e,n,t,r){let o=await s.generateProductSkuV2(e,n,t,r);return P(o,h.default,p,a)},async getChannelInventoryV2(e,n,t,r){let o=await s.getChannelInventoryV2(e,n,t,r);return P(o,h.default,p,a)},async updateChannelInventoryV2(e,n,t,r,o){let i=await s.updateChannelInventoryV2(e,n,t,r,o);return P(i,h.default,p,a)},async updateProductSkuV2(e,n,t,r,o){let i=await s.updateProductSkuV2(e,n,t,r,o);return P(i,h.default,p,a)}}},Po=function(a,s,e){let n=se(a);return{generateProductSkuV2(t,r,o,i){return n.generateProductSkuV2(t,r,o,i).then(l=>l(e,s))},getChannelInventoryV2(t,r,o,i){return n.getChannelInventoryV2(t,r,o,i).then(l=>l(e,s))},updateChannelInventoryV2(t,r,o,i,l){return n.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,s))},updateProductSkuV2(t,r,o,i,l){return n.updateProductSkuV2(t,r,o,i,l).then(u=>u(e,s))}}},st=class extends V{generateProductSkuV2(s,e,n,t){return se(this.configuration).generateProductSkuV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}getChannelInventoryV2(s,e,n,t){return se(this.configuration).getChannelInventoryV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(s,e,n,t,r){return se(this.configuration).updateChannelInventoryV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(s,e,n,t,r){return se(this.configuration).updateProductSkuV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}},os=function(a){return{createOnboardingSession:async(s,e,n={})=>{c("createOnboardingSession","channel",s),c("createOnboardingSession","body",e);let t="/api/v1/provider/onboarding/{channel}/sessions".replace("{channel}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},disconnectOnboarding:async(s,e,n={})=>{c("disconnectOnboarding","channel",s),c("disconnectOnboarding","businessId",e);let t="/api/v1/provider/onboarding/{channel}/{businessId}".replace("{channel}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getMenuIntegrations:async(s,e={})=>{c("getMenuIntegrations","businessId",s);let n="/api/v1/provider/integrations/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOnboardingStatus:async(s,e,n={})=>{c("getOnboardingStatus","channel",s),c("getOnboardingStatus","businessId",e);let t="/api/v1/provider/onboarding/{channel}/status/{businessId}".replace("{channel}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getSupportedChannels:async(s,e={})=>{c("getSupportedChannels","businessId",s);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listOnboardingStores:async(s,e,n={})=>{c("listOnboardingStores","channel",s),c("listOnboardingStores","state",e);let t="/api/v1/provider/onboarding/{channel}/{state}/stores".replace("{channel}",encodeURIComponent(String(s))).replace("{state}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},provisionOnboardingStore:async(s,e,n,t={})=>{c("provisionOnboardingStore","channel",s),c("provisionOnboardingStore","state",e),c("provisionOnboardingStore","body",n);let r="/api/v1/provider/onboarding/{channel}/{state}/provision".replace("{channel}",encodeURIComponent(String(s))).replace("{state}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},registerCredential:async(s,e={})=>{c("registerCredential","body",s);let n="/api/v1/provider/credentials",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},registerProvider:async(s,e={})=>{c("registerProvider","body",s);let n="/api/v1/provider",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updateProviderSettings:async(s,e,n={})=>{c("updateProviderSettings","businessId",s),c("updateProviderSettings","body",e);let t="/api/v1/provider/{businessId}/settings".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},L=function(a){let s=os(a);return{async createOnboardingSession(e,n,t){let r=await s.createOnboardingSession(e,n,t);return P(r,h.default,p,a)},async disconnectOnboarding(e,n,t){let r=await s.disconnectOnboarding(e,n,t);return P(r,h.default,p,a)},async getMenuIntegrations(e,n){let t=await s.getMenuIntegrations(e,n);return P(t,h.default,p,a)},async getOnboardingStatus(e,n,t){let r=await s.getOnboardingStatus(e,n,t);return P(r,h.default,p,a)},async getSupportedChannels(e,n){let t=await s.getSupportedChannels(e,n);return P(t,h.default,p,a)},async listOnboardingStores(e,n,t){let r=await s.listOnboardingStores(e,n,t);return P(r,h.default,p,a)},async provisionOnboardingStore(e,n,t,r){let o=await s.provisionOnboardingStore(e,n,t,r);return P(o,h.default,p,a)},async registerCredential(e,n){let t=await s.registerCredential(e,n);return P(t,h.default,p,a)},async registerProvider(e,n){let t=await s.registerProvider(e,n);return P(t,h.default,p,a)},async updateProviderSettings(e,n,t){let r=await s.updateProviderSettings(e,n,t);return P(r,h.default,p,a)}}},ho=function(a,s,e){let n=L(a);return{createOnboardingSession(t,r,o){return n.createOnboardingSession(t,r,o).then(i=>i(e,s))},disconnectOnboarding(t,r,o){return n.disconnectOnboarding(t,r,o).then(i=>i(e,s))},getMenuIntegrations(t,r){return n.getMenuIntegrations(t,r).then(o=>o(e,s))},getOnboardingStatus(t,r,o){return n.getOnboardingStatus(t,r,o).then(i=>i(e,s))},getSupportedChannels(t,r){return n.getSupportedChannels(t,r).then(o=>o(e,s))},listOnboardingStores(t,r,o){return n.listOnboardingStores(t,r,o).then(i=>i(e,s))},provisionOnboardingStore(t,r,o,i){return n.provisionOnboardingStore(t,r,o,i).then(l=>l(e,s))},registerCredential(t,r){return n.registerCredential(t,r).then(o=>o(e,s))},registerProvider(t,r){return n.registerProvider(t,r).then(o=>o(e,s))},updateProviderSettings(t,r,o){return n.updateProviderSettings(t,r,o).then(i=>i(e,s))}}},nt=class extends V{createOnboardingSession(s,e,n){return L(this.configuration).createOnboardingSession(s,e,n).then(t=>t(this.axios,this.basePath))}disconnectOnboarding(s,e,n){return L(this.configuration).disconnectOnboarding(s,e,n).then(t=>t(this.axios,this.basePath))}getMenuIntegrations(s,e){return L(this.configuration).getMenuIntegrations(s,e).then(n=>n(this.axios,this.basePath))}getOnboardingStatus(s,e,n){return L(this.configuration).getOnboardingStatus(s,e,n).then(t=>t(this.axios,this.basePath))}getSupportedChannels(s,e){return L(this.configuration).getSupportedChannels(s,e).then(n=>n(this.axios,this.basePath))}listOnboardingStores(s,e,n){return L(this.configuration).listOnboardingStores(s,e,n).then(t=>t(this.axios,this.basePath))}provisionOnboardingStore(s,e,n,t){return L(this.configuration).provisionOnboardingStore(s,e,n,t).then(r=>r(this.axios,this.basePath))}registerCredential(s,e){return L(this.configuration).registerCredential(s,e).then(n=>n(this.axios,this.basePath))}registerProvider(s,e){return L(this.configuration).registerProvider(s,e).then(n=>n(this.axios,this.basePath))}updateProviderSettings(s,e,n){return L(this.configuration).updateProviderSettings(s,e,n).then(t=>t(this.axios,this.basePath))}},as=function(a){return{cancelPlan:async(s,e,n,t={})=>{c("cancelPlan","businessId",s),c("cancelPlan","orderId",e),c("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},cancelPlanV2:async(s,e,n,t={})=>{c("cancelPlanV2","businessId",s),c("cancelPlanV2","orderId",e),c("cancelPlanV2","refundId",n);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},createRefundPlan:async(s,e,n,t={})=>{c("createRefundPlan","businessId",s),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},createRefundPlanV2:async(s,e,n,t={})=>{c("createRefundPlanV2","businessId",s),c("createRefundPlanV2","orderId",e),c("createRefundPlanV2","createRefundPlanDto",n);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},getRefundPlan:async(s,e,n,t={})=>{c("getRefundPlan","businessId",s),c("getRefundPlan","orderId",e),c("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};n!==void 0&&(d.status=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},getRefundPlanV2:async(s,e,n,t={})=>{c("getRefundPlanV2","businessId",s),c("getRefundPlanV2","orderId",e),c("getRefundPlanV2","status",n);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};n!==void 0&&(d.status=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(s,e,n,t,r={})=>{c("recordRefundPlan","businessId",s),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",n),c("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},recordRefundPlanV2:async(s,e,n,t,r={})=>{c("recordRefundPlanV2","businessId",s),c("recordRefundPlanV2","orderId",e),c("recordRefundPlanV2","refundId",n),c("recordRefundPlanV2","completedStepDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(s,e,n,t={})=>{c("refundOnlineOrder","businessId",s),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};n!==void 0&&(d.provider=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},refundOnlineOrderV2:async(s,e,n,t={})=>{c("refundOnlineOrderV2","businessId",s),c("refundOnlineOrderV2","orderId",e),c("refundOnlineOrderV2","provider",n);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};n!==void 0&&(d.provider=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(s,e,n,t,r={})=>{c("resolveRefundChoice","businessId",s),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",n),c("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},resolveRefundChoiceV2:async(s,e,n,t,r={})=>{c("resolveRefundChoiceV2","businessId",s),c("resolveRefundChoiceV2","orderId",e),c("resolveRefundChoiceV2","refundId",n),c("resolveRefundChoiceV2","resolveChoiceDto",t);let o="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},d={},A={};d["Content-Type"]="application/json",g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=b(t,u,a),{url:y(i),options:u}},startProcessPlan:async(s,e,n,t={})=>{c("startProcessPlan","businessId",s),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},startProcessPlanV2:async(s,e,n,t={})=>{c("startProcessPlanV2","businessId",s),c("startProcessPlanV2","orderId",e),c("startProcessPlanV2","refundId",n);let r="/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},M=function(a){let s=as(a);return{async cancelPlan(e,n,t,r){let o=await s.cancelPlan(e,n,t,r);return P(o,h.default,p,a)},async cancelPlanV2(e,n,t,r){let o=await s.cancelPlanV2(e,n,t,r);return P(o,h.default,p,a)},async createRefundPlan(e,n,t,r){let o=await s.createRefundPlan(e,n,t,r);return P(o,h.default,p,a)},async createRefundPlanV2(e,n,t,r){let o=await s.createRefundPlanV2(e,n,t,r);return P(o,h.default,p,a)},async getRefundPlan(e,n,t,r){let o=await s.getRefundPlan(e,n,t,r);return P(o,h.default,p,a)},async getRefundPlanV2(e,n,t,r){let o=await s.getRefundPlanV2(e,n,t,r);return P(o,h.default,p,a)},async recordRefundPlan(e,n,t,r,o){let i=await s.recordRefundPlan(e,n,t,r,o);return P(i,h.default,p,a)},async recordRefundPlanV2(e,n,t,r,o){let i=await s.recordRefundPlanV2(e,n,t,r,o);return P(i,h.default,p,a)},async refundOnlineOrder(e,n,t,r){let o=await s.refundOnlineOrder(e,n,t,r);return P(o,h.default,p,a)},async refundOnlineOrderV2(e,n,t,r){let o=await s.refundOnlineOrderV2(e,n,t,r);return P(o,h.default,p,a)},async resolveRefundChoice(e,n,t,r,o){let i=await s.resolveRefundChoice(e,n,t,r,o);return P(i,h.default,p,a)},async resolveRefundChoiceV2(e,n,t,r,o){let i=await s.resolveRefundChoiceV2(e,n,t,r,o);return P(i,h.default,p,a)},async startProcessPlan(e,n,t,r){let o=await s.startProcessPlan(e,n,t,r);return P(o,h.default,p,a)},async startProcessPlanV2(e,n,t,r){let o=await s.startProcessPlanV2(e,n,t,r);return P(o,h.default,p,a)}}},Ao=function(a,s,e){let n=M(a);return{cancelPlan(t,r,o,i){return n.cancelPlan(t,r,o,i).then(l=>l(e,s))},cancelPlanV2(t,r,o,i){return n.cancelPlanV2(t,r,o,i).then(l=>l(e,s))},createRefundPlan(t,r,o,i){return n.createRefundPlan(t,r,o,i).then(l=>l(e,s))},createRefundPlanV2(t,r,o,i){return n.createRefundPlanV2(t,r,o,i).then(l=>l(e,s))},getRefundPlan(t,r,o,i){return n.getRefundPlan(t,r,o,i).then(l=>l(e,s))},getRefundPlanV2(t,r,o,i){return n.getRefundPlanV2(t,r,o,i).then(l=>l(e,s))},recordRefundPlan(t,r,o,i,l){return n.recordRefundPlan(t,r,o,i,l).then(u=>u(e,s))},recordRefundPlanV2(t,r,o,i,l){return n.recordRefundPlanV2(t,r,o,i,l).then(u=>u(e,s))},refundOnlineOrder(t,r,o,i){return n.refundOnlineOrder(t,r,o,i).then(l=>l(e,s))},refundOnlineOrderV2(t,r,o,i){return n.refundOnlineOrderV2(t,r,o,i).then(l=>l(e,s))},resolveRefundChoice(t,r,o,i,l){return n.resolveRefundChoice(t,r,o,i,l).then(u=>u(e,s))},resolveRefundChoiceV2(t,r,o,i,l){return n.resolveRefundChoiceV2(t,r,o,i,l).then(u=>u(e,s))},startProcessPlan(t,r,o,i){return n.startProcessPlan(t,r,o,i).then(l=>l(e,s))},startProcessPlanV2(t,r,o,i){return n.startProcessPlanV2(t,r,o,i).then(l=>l(e,s))}}},rt=class extends V{cancelPlan(s,e,n,t){return M(this.configuration).cancelPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}cancelPlanV2(s,e,n,t){return M(this.configuration).cancelPlanV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(s,e,n,t){return M(this.configuration).createRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}createRefundPlanV2(s,e,n,t){return M(this.configuration).createRefundPlanV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(s,e,n,t){return M(this.configuration).getRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}getRefundPlanV2(s,e,n,t){return M(this.configuration).getRefundPlanV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(s,e,n,t,r){return M(this.configuration).recordRefundPlan(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}recordRefundPlanV2(s,e,n,t,r){return M(this.configuration).recordRefundPlanV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,n,t){return M(this.configuration).refundOnlineOrder(s,e,n,t).then(r=>r(this.axios,this.basePath))}refundOnlineOrderV2(s,e,n,t){return M(this.configuration).refundOnlineOrderV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(s,e,n,t,r){return M(this.configuration).resolveRefundChoice(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}resolveRefundChoiceV2(s,e,n,t,r){return M(this.configuration).resolveRefundChoiceV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,n,t){return M(this.configuration).startProcessPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}startProcessPlanV2(s,e,n,t){return M(this.configuration).startProcessPlanV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}},is=function(a){return{getEndOfDayReportV5:async(s,e,n,t,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",s);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),t!==void 0&&(R.end=t),s&&(R.businessIds=s),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let C=d&&d.headers?d.headers:{};return A.headers={...x,...C,...i.headers},{url:y(u),options:A}},getPOSEndOfDayReportV4:async(s,e,n,t,r,o={})=>{c("getPOSEndOfDayReportV4","businessIds",s);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},A={},x={};e!==void 0&&(x.timeSpan=e),n!==void 0&&(x.start=n),t!==void 0&&(x.end=t),s&&(x.businessIds=s),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...A,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(s,e,n,t,r,o,i={})=>{c("sendReportEmailV4","businessIds",s),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",n);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let A={method:"POST",...d,...i},x={},R={};t!==void 0&&(R.timeSpan=t),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),s&&(R.businessIds=s),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(n,A,a),{url:y(u),options:A}},sendReportEmailV5:async(s,e,n,t,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",s),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",n);let u="/api/v5/report/email",d=new URL(u,m),A;a&&(A=a.baseOptions);let x={method:"POST",...A,...l},R={},C={};t!==void 0&&(C.timeSpan=t),r!==void 0&&(C.start=r),o!==void 0&&(C.end=o),s&&(C.businessIds=s),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(n,x,a),{url:y(d),options:x}}}},ne=function(a){let s=is(a);return{async getEndOfDayReportV5(e,n,t,r,o,i,l){let u=await s.getEndOfDayReportV5(e,n,t,r,o,i,l);return P(u,h.default,p,a)},async getPOSEndOfDayReportV4(e,n,t,r,o,i){let l=await s.getPOSEndOfDayReportV4(e,n,t,r,o,i);return P(l,h.default,p,a)},async sendReportEmailV4(e,n,t,r,o,i,l){let u=await s.sendReportEmailV4(e,n,t,r,o,i,l);return P(u,h.default,p,a)},async sendReportEmailV5(e,n,t,r,o,i,l,u){let d=await s.sendReportEmailV5(e,n,t,r,o,i,l,u);return P(d,h.default,p,a)}}},bo=function(a,s,e){let n=ne(a);return{getEndOfDayReportV5(t,r,o,i,l,u,d){return n.getEndOfDayReportV5(t,r,o,i,l,u,d).then(A=>A(e,s))},getPOSEndOfDayReportV4(t,r,o,i,l,u){return n.getPOSEndOfDayReportV4(t,r,o,i,l,u).then(d=>d(e,s))},sendReportEmailV4(t,r,o,i,l,u,d){return n.sendReportEmailV4(t,r,o,i,l,u,d).then(A=>A(e,s))},sendReportEmailV5(t,r,o,i,l,u,d,A){return n.sendReportEmailV5(t,r,o,i,l,u,d,A).then(x=>x(e,s))}}},ot=class extends V{getEndOfDayReportV5(s,e,n,t,r,o,i){return ne(this.configuration).getEndOfDayReportV5(s,e,n,t,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(s,e,n,t,r,o){return ne(this.configuration).getPOSEndOfDayReportV4(s,e,n,t,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(s,e,n,t,r,o,i){return ne(this.configuration).sendReportEmailV4(s,e,n,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(s,e,n,t,r,o,i,l){return ne(this.configuration).sendReportEmailV5(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},ls=function(a){return{createReservation:async(s,e={})=>{c("createReservation","createReservationDto",s);let n="/api/v1/reservations",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getReservationAvailability:async(s,e,n,t,r={})=>{c("getReservationAvailability","businessId",s),c("getReservationAvailability","date",e),c("getReservationAvailability","partySize",n);let o="/api/v1/reservations/availability",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},A={};await f(d,a),s!==void 0&&(A.businessId=s),e!==void 0&&(A.date=e),n!==void 0&&(A.partySize=n),t!==void 0&&(A.sectionId=t),g(i,A);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getReservationPolicy:async(s,e={})=>{c("getReservationPolicy","businessId",s);let n="/api/v1/reservations/policy",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},linkReservationIntegration:async(s,e={})=>{c("linkReservationIntegration","linkReservationIntegrationDto",s);let n="/api/v1/reservations/link",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},listReservations:async(s,e,n,t={})=>{c("listReservations","businessId",s);let r="/api/v1/reservations",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await f(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.date=e),n!==void 0&&(d.status=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}},reservationInboundWebhook:async(s,e={})=>{c("reservationInboundWebhook","inboundReservationWebhookDto",s);let n="/api/v1/reservations/webhook/inbound",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},unlinkReservationIntegration:async(s,e={})=>{c("unlinkReservationIntegration","businessId",s);let n="/api/v1/reservations/link",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await f(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateReservation:async(s,e,n,t={})=>{c("updateReservation","id",s),c("updateReservation","businessId",e),c("updateReservation","updateReservationDto",n);let r="/api/v1/reservations/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}},updateReservationPolicy:async(s,e={})=>{c("updateReservationPolicy","updateReservationPolicyDto",s);let n="/api/v1/reservations/policy",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await f(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updateReservationStatus:async(s,e,n,t={})=>{c("updateReservationStatus","id",s),c("updateReservationStatus","businessId",e),c("updateReservationStatus","updateReservationStatusDto",n);let r="/api/v1/reservations/{id}/status".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};await f(u,a),e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},l.data=b(n,l,a),{url:y(o),options:l}}}},N=function(a){let s=ls(a);return{async createReservation(e,n){let t=await s.createReservation(e,n);return P(t,h.default,p,a)},async getReservationAvailability(e,n,t,r,o){let i=await s.getReservationAvailability(e,n,t,r,o);return P(i,h.default,p,a)},async getReservationPolicy(e,n){let t=await s.getReservationPolicy(e,n);return P(t,h.default,p,a)},async linkReservationIntegration(e,n){let t=await s.linkReservationIntegration(e,n);return P(t,h.default,p,a)},async listReservations(e,n,t,r){let o=await s.listReservations(e,n,t,r);return P(o,h.default,p,a)},async reservationInboundWebhook(e,n){let t=await s.reservationInboundWebhook(e,n);return P(t,h.default,p,a)},async unlinkReservationIntegration(e,n){let t=await s.unlinkReservationIntegration(e,n);return P(t,h.default,p,a)},async updateReservation(e,n,t,r){let o=await s.updateReservation(e,n,t,r);return P(o,h.default,p,a)},async updateReservationPolicy(e,n){let t=await s.updateReservationPolicy(e,n);return P(t,h.default,p,a)},async updateReservationStatus(e,n,t,r){let o=await s.updateReservationStatus(e,n,t,r);return P(o,h.default,p,a)}}},xo=function(a,s,e){let n=N(a);return{createReservation(t,r){return n.createReservation(t,r).then(o=>o(e,s))},getReservationAvailability(t,r,o,i,l){return n.getReservationAvailability(t,r,o,i,l).then(u=>u(e,s))},getReservationPolicy(t,r){return n.getReservationPolicy(t,r).then(o=>o(e,s))},linkReservationIntegration(t,r){return n.linkReservationIntegration(t,r).then(o=>o(e,s))},listReservations(t,r,o,i){return n.listReservations(t,r,o,i).then(l=>l(e,s))},reservationInboundWebhook(t,r){return n.reservationInboundWebhook(t,r).then(o=>o(e,s))},unlinkReservationIntegration(t,r){return n.unlinkReservationIntegration(t,r).then(o=>o(e,s))},updateReservation(t,r,o,i){return n.updateReservation(t,r,o,i).then(l=>l(e,s))},updateReservationPolicy(t,r){return n.updateReservationPolicy(t,r).then(o=>o(e,s))},updateReservationStatus(t,r,o,i){return n.updateReservationStatus(t,r,o,i).then(l=>l(e,s))}}},at=class extends V{createReservation(s,e){return N(this.configuration).createReservation(s,e).then(n=>n(this.axios,this.basePath))}getReservationAvailability(s,e,n,t,r){return N(this.configuration).getReservationAvailability(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getReservationPolicy(s,e){return N(this.configuration).getReservationPolicy(s,e).then(n=>n(this.axios,this.basePath))}linkReservationIntegration(s,e){return N(this.configuration).linkReservationIntegration(s,e).then(n=>n(this.axios,this.basePath))}listReservations(s,e,n,t){return N(this.configuration).listReservations(s,e,n,t).then(r=>r(this.axios,this.basePath))}reservationInboundWebhook(s,e){return N(this.configuration).reservationInboundWebhook(s,e).then(n=>n(this.axios,this.basePath))}unlinkReservationIntegration(s,e){return N(this.configuration).unlinkReservationIntegration(s,e).then(n=>n(this.axios,this.basePath))}updateReservation(s,e,n,t){return N(this.configuration).updateReservation(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateReservationPolicy(s,e){return N(this.configuration).updateReservationPolicy(s,e).then(n=>n(this.axios,this.basePath))}updateReservationStatus(s,e,n,t){return N(this.configuration).updateReservationStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},us=function(a){return{clockIn:async(s,e,n={})=>{c("clockIn","businessId",s),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},clockOut:async(s,e,n={})=>{c("clockOut","businessId",s),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getTodayShift:async(s,e,n={})=>{c("getTodayShift","businessId",s),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},unlock:async(s,e,n={})=>{c("unlock","businessId",s),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}}}},re=function(a){let s=us(a);return{async clockIn(e,n,t){let r=await s.clockIn(e,n,t);return P(r,h.default,p,a)},async clockOut(e,n,t){let r=await s.clockOut(e,n,t);return P(r,h.default,p,a)},async getTodayShift(e,n,t){let r=await s.getTodayShift(e,n,t);return P(r,h.default,p,a)},async unlock(e,n,t){let r=await s.unlock(e,n,t);return P(r,h.default,p,a)}}},fo=function(a,s,e){let n=re(a);return{clockIn(t,r,o){return n.clockIn(t,r,o).then(i=>i(e,s))},clockOut(t,r,o){return n.clockOut(t,r,o).then(i=>i(e,s))},getTodayShift(t,r,o){return n.getTodayShift(t,r,o).then(i=>i(e,s))},unlock(t,r,o){return n.unlock(t,r,o).then(i=>i(e,s))}}},it=class extends V{clockIn(s,e,n){return re(this.configuration).clockIn(s,e,n).then(t=>t(this.axios,this.basePath))}clockOut(s,e,n){return re(this.configuration).clockOut(s,e,n).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,n){return re(this.configuration).getTodayShift(s,e,n).then(t=>t(this.axios,this.basePath))}unlock(s,e,n){return re(this.configuration).unlock(s,e,n).then(t=>t(this.axios,this.basePath))}},cs=function(a){return{deactivateStation:async(s={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getStation:async(s={})=>{let e="/api/v1/station",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},syncStation:async(s,e={})=>{c("syncStation","syncStationDto",s);let n="/api/v1/station/sync",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},pe=function(a){let s=cs(a);return{async deactivateStation(e){let n=await s.deactivateStation(e);return P(n,h.default,p,a)},async getStation(e){let n=await s.getStation(e);return P(n,h.default,p,a)},async syncStation(e,n){let t=await s.syncStation(e,n);return P(t,h.default,p,a)}}},Ro=function(a,s,e){let n=pe(a);return{deactivateStation(t){return n.deactivateStation(t).then(r=>r(e,s))},getStation(t){return n.getStation(t).then(r=>r(e,s))},syncStation(t,r){return n.syncStation(t,r).then(o=>o(e,s))}}},lt=class extends V{deactivateStation(s){return pe(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return pe(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return pe(this.configuration).syncStation(s,e).then(n=>n(this.axios,this.basePath))}},ds=function(a){return{connectTerminal:async(s,e={})=>{c("connectTerminal","connectTerminalDto",s);let n="/api/v1/terminal/connect",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},disconnectTerminal:async(s={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},discoverTerminal:async(s,e={})=>{c("discoverTerminal","discoverTerminalDto",s);let n="/api/v1/terminal/discover",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getTerminalStatus:async(s,e,n,t={})=>{c("getTerminalStatus","businessId",s),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.provider=e),n!==void 0&&(d.terminalId=n),g(o,d);let A=i&&i.headers?i.headers:{};return l.headers={...u,...A,...t.headers},{url:y(o),options:l}}}},oe=function(a){let s=ds(a);return{async connectTerminal(e,n){let t=await s.connectTerminal(e,n);return P(t,h.default,p,a)},async disconnectTerminal(e){let n=await s.disconnectTerminal(e);return P(n,h.default,p,a)},async discoverTerminal(e,n){let t=await s.discoverTerminal(e,n);return P(t,h.default,p,a)},async getTerminalStatus(e,n,t,r){let o=await s.getTerminalStatus(e,n,t,r);return P(o,h.default,p,a)}}},Co=function(a,s,e){let n=oe(a);return{connectTerminal(t,r){return n.connectTerminal(t,r).then(o=>o(e,s))},disconnectTerminal(t){return n.disconnectTerminal(t).then(r=>r(e,s))},discoverTerminal(t,r){return n.discoverTerminal(t,r).then(o=>o(e,s))},getTerminalStatus(t,r,o,i){return n.getTerminalStatus(t,r,o,i).then(l=>l(e,s))}}},ut=class extends V{connectTerminal(s,e){return oe(this.configuration).connectTerminal(s,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(s){return oe(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return oe(this.configuration).discoverTerminal(s,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(s,e,n,t){return oe(this.configuration).getTerminalStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},ps=function(a){return{getUserBusinessV1:async(s={})=>{let e="/api/v1/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await f(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await f(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserInfoV1:async(s={})=>{let e="/api/v1/user",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await f(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},me=function(a){let s=ps(a);return{async getUserBusinessV1(e){let n=await s.getUserBusinessV1(e);return P(n,h.default,p,a)},async getUserBusinessV2(e){let n=await s.getUserBusinessV2(e);return P(n,h.default,p,a)},async getUserInfoV1(e){let n=await s.getUserInfoV1(e);return P(n,h.default,p,a)}}},Do=function(a,s,e){let n=me(a);return{getUserBusinessV1(t){return n.getUserBusinessV1(t).then(r=>r(e,s))},getUserBusinessV2(t){return n.getUserBusinessV2(t).then(r=>r(e,s))},getUserInfoV1(t){return n.getUserInfoV1(t).then(r=>r(e,s))}}},ct=class extends V{getUserBusinessV1(s){return me(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return me(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return me(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},ms=function(a){return{upsert:async(s,e={})=>{c("upsert","body",s);let n="/api/v1/vendure/seller/upsert",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},xt=function(a){let s=ms(a);return{async upsert(e,n){let t=await s.upsert(e,n);return P(t,h.default,p,a)}}},Oo=function(a,s,e){let n=xt(a);return{upsert(t,r){return n.upsert(t,r).then(o=>o(e,s))}}},dt=class extends V{upsert(s,e){return xt(this.configuration).upsert(s,e).then(n=>n(this.axios,this.basePath))}},gs=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",s);let n="/api/v1/viva/a2a/create-payment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},getVivaSession:async(s,e={})=>{c("getVivaSession","id",s);let n="/api/v1/viva/sessions/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},listVivaSessions:async(s,e,n,t,r,o,i,l,u={})=>{c("listVivaSessions","businessId",s);let d="/api/v1/viva/sessions",A=new URL(d,m),x;a&&(x=a.baseOptions);let R={method:"GET",...x,...u},C={},O={};s!==void 0&&(O.businessId=s),e!==void 0&&(O.page=e),n!==void 0&&(O.rowPerPage=n),t!==void 0&&(O.terminalId=t),r!==void 0&&(O.timeSpan=r),o!==void 0&&(O.start=o),i!==void 0&&(O.end=i),l!==void 0&&(O.search=l),g(A,O);let I=x&&x.headers?x.headers:{};return R.headers={...C,...I,...u.headers},{url:y(A),options:R}},refundVivaPayment:async(s,e={})=>{c("refundVivaPayment","vivaA2aRefundDto",s);let n="/api/v1/viva/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ae=function(a){let s=gs(a);return{async createVivaAppToAppPayment(e,n){let t=await s.createVivaAppToAppPayment(e,n);return P(t,h.default,p,a)},async getVivaSession(e,n){let t=await s.getVivaSession(e,n);return P(t,h.default,p,a)},async listVivaSessions(e,n,t,r,o,i,l,u,d){let A=await s.listVivaSessions(e,n,t,r,o,i,l,u,d);return P(A,h.default,p,a)},async refundVivaPayment(e,n){let t=await s.refundVivaPayment(e,n);return P(t,h.default,p,a)}}},Vo=function(a,s,e){let n=ae(a);return{createVivaAppToAppPayment(t,r){return n.createVivaAppToAppPayment(t,r).then(o=>o(e,s))},getVivaSession(t,r){return n.getVivaSession(t,r).then(o=>o(e,s))},listVivaSessions(t,r,o,i,l,u,d,A,x){return n.listVivaSessions(t,r,o,i,l,u,d,A,x).then(R=>R(e,s))},refundVivaPayment(t,r){return n.refundVivaPayment(t,r).then(o=>o(e,s))}}},pt=class extends V{createVivaAppToAppPayment(s,e){return ae(this.configuration).createVivaAppToAppPayment(s,e).then(n=>n(this.axios,this.basePath))}getVivaSession(s,e){return ae(this.configuration).getVivaSession(s,e).then(n=>n(this.axios,this.basePath))}listVivaSessions(s,e,n,t,r,o,i,l,u){return ae(this.configuration).listVivaSessions(s,e,n,t,r,o,i,l,u).then(d=>d(this.axios,this.basePath))}refundVivaPayment(s,e){return ae(this.configuration).refundVivaPayment(s,e).then(n=>n(this.axios,this.basePath))}},ys=function(a){return{handleAssignmentWebhook:async(s={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleBusinessWebhook:async(s={})=>{let e="/api/webhook/add-business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleFoodoraEvent:async(s,e={})=>{c("handleFoodoraEvent","orderUpdateDto",s);let n="/api/webhook/order/event",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleLoadEmployee:async(s={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsEvents:async(s={})=>{let e="/api/webhook/nets",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsEventsV2:async(s={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsSessionEvents:async(s={})=>{let e="/api/webhook/nets/payments",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handlePreorderReminder:async(s,e={})=>{c("handlePreorderReminder","preOrderReminderDto",s);let n="/api/webhook/preorder-reminder",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleRoleWebhook:async(s={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleShiftWebhook:async(s={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleVivaEvents:async(s,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",s);let n="/api/webhook/viva/verification",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleVivaSessionEvents:async(s,e={})=>{c("handleVivaSessionEvents","vivaWebhookPayloadDto",s);let n="/api/webhook/viva/payments",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},handleWebhook:async(s={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(s={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(s,e={})=>{c("handleWoltDriveEventByCountry","country",s);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(s={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWorldlineSessionEvents:async(s={})=>{let e="/api/webhook/worldline/payments",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},processPosOrderActionsQueue:async(s,e={})=>{c("processPosOrderActionsQueue","processPosOrderActionsQueueDto",s);let n="/api/webhook/pos/order-actions/process",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},updateWoltProduct:async(s={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},verifyVivaSessionWebhook:async(s={})=>{let e="/api/webhook/viva/payments",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},verifyVivaWebhook:async(s={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},U=function(a){let s=ys(a);return{async handleAssignmentWebhook(e){let n=await s.handleAssignmentWebhook(e);return P(n,h.default,p,a)},async handleBusinessWebhook(e){let n=await s.handleBusinessWebhook(e);return P(n,h.default,p,a)},async handleFoodoraEvent(e,n){let t=await s.handleFoodoraEvent(e,n);return P(t,h.default,p,a)},async handleLoadEmployee(e){let n=await s.handleLoadEmployee(e);return P(n,h.default,p,a)},async handleNetsEvents(e){let n=await s.handleNetsEvents(e);return P(n,h.default,p,a)},async handleNetsEventsV2(e){let n=await s.handleNetsEventsV2(e);return P(n,h.default,p,a)},async handleNetsSessionEvents(e){let n=await s.handleNetsSessionEvents(e);return P(n,h.default,p,a)},async handlePreorderReminder(e,n){let t=await s.handlePreorderReminder(e,n);return P(t,h.default,p,a)},async handleRoleWebhook(e){let n=await s.handleRoleWebhook(e);return P(n,h.default,p,a)},async handleShiftWebhook(e){let n=await s.handleShiftWebhook(e);return P(n,h.default,p,a)},async handleVivaEvents(e,n){let t=await s.handleVivaEvents(e,n);return P(t,h.default,p,a)},async handleVivaSessionEvents(e,n){let t=await s.handleVivaSessionEvents(e,n);return P(t,h.default,p,a)},async handleWebhook(e){let n=await s.handleWebhook(e);return P(n,h.default,p,a)},async handleWoltDriveEvent(e){let n=await s.handleWoltDriveEvent(e);return P(n,h.default,p,a)},async handleWoltDriveEventByCountry(e,n){let t=await s.handleWoltDriveEventByCountry(e,n);return P(t,h.default,p,a)},async handleWorldlineEvents(e){let n=await s.handleWorldlineEvents(e);return P(n,h.default,p,a)},async handleWorldlineSessionEvents(e){let n=await s.handleWorldlineSessionEvents(e);return P(n,h.default,p,a)},async processPosOrderActionsQueue(e,n){let t=await s.processPosOrderActionsQueue(e,n);return P(t,h.default,p,a)},async updateWoltProduct(e){let n=await s.updateWoltProduct(e);return P(n,h.default,p,a)},async verifyVivaSessionWebhook(e){let n=await s.verifyVivaSessionWebhook(e);return P(n,h.default,p,a)},async verifyVivaWebhook(e){let n=await s.verifyVivaWebhook(e);return P(n,h.default,p,a)}}},So=function(a,s,e){let n=U(a);return{handleAssignmentWebhook(t){return n.handleAssignmentWebhook(t).then(r=>r(e,s))},handleBusinessWebhook(t){return n.handleBusinessWebhook(t).then(r=>r(e,s))},handleFoodoraEvent(t,r){return n.handleFoodoraEvent(t,r).then(o=>o(e,s))},handleLoadEmployee(t){return n.handleLoadEmployee(t).then(r=>r(e,s))},handleNetsEvents(t){return n.handleNetsEvents(t).then(r=>r(e,s))},handleNetsEventsV2(t){return n.handleNetsEventsV2(t).then(r=>r(e,s))},handleNetsSessionEvents(t){return n.handleNetsSessionEvents(t).then(r=>r(e,s))},handlePreorderReminder(t,r){return n.handlePreorderReminder(t,r).then(o=>o(e,s))},handleRoleWebhook(t){return n.handleRoleWebhook(t).then(r=>r(e,s))},handleShiftWebhook(t){return n.handleShiftWebhook(t).then(r=>r(e,s))},handleVivaEvents(t,r){return n.handleVivaEvents(t,r).then(o=>o(e,s))},handleVivaSessionEvents(t,r){return n.handleVivaSessionEvents(t,r).then(o=>o(e,s))},handleWebhook(t){return n.handleWebhook(t).then(r=>r(e,s))},handleWoltDriveEvent(t){return n.handleWoltDriveEvent(t).then(r=>r(e,s))},handleWoltDriveEventByCountry(t,r){return n.handleWoltDriveEventByCountry(t,r).then(o=>o(e,s))},handleWorldlineEvents(t){return n.handleWorldlineEvents(t).then(r=>r(e,s))},handleWorldlineSessionEvents(t){return n.handleWorldlineSessionEvents(t).then(r=>r(e,s))},processPosOrderActionsQueue(t,r){return n.processPosOrderActionsQueue(t,r).then(o=>o(e,s))},updateWoltProduct(t){return n.updateWoltProduct(t).then(r=>r(e,s))},verifyVivaSessionWebhook(t){return n.verifyVivaSessionWebhook(t).then(r=>r(e,s))},verifyVivaWebhook(t){return n.verifyVivaWebhook(t).then(r=>r(e,s))}}},mt=class extends V{handleAssignmentWebhook(s){return U(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return U(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return U(this.configuration).handleFoodoraEvent(s,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(s){return U(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return U(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return U(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsSessionEvents(s){return U(this.configuration).handleNetsSessionEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return U(this.configuration).handlePreorderReminder(s,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(s){return U(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return U(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return U(this.configuration).handleVivaEvents(s,e).then(n=>n(this.axios,this.basePath))}handleVivaSessionEvents(s,e){return U(this.configuration).handleVivaSessionEvents(s,e).then(n=>n(this.axios,this.basePath))}handleWebhook(s){return U(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return U(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return U(this.configuration).handleWoltDriveEventByCountry(s,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(s){return U(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}handleWorldlineSessionEvents(s){return U(this.configuration).handleWorldlineSessionEvents(s).then(e=>e(this.axios,this.basePath))}processPosOrderActionsQueue(s,e){return U(this.configuration).processPosOrderActionsQueue(s,e).then(n=>n(this.axios,this.basePath))}updateWoltProduct(s){return U(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaSessionWebhook(s){return U(this.configuration).verifyVivaSessionWebhook(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return U(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},Ps=function(a){return{cancelPayment:async(s,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",s);let n="/api/v1/worldline/payment/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createPayment:async(s,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",s);let n="/api/v1/worldline/payment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}},createRefund:async(s,e={})=>{c("createRefund","createWorldlineRefundDto",s);let n="/api/v1/worldline/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=b(s,o,a),{url:y(t),options:o}}}},ge=function(a){let s=Ps(a);return{async cancelPayment(e,n){let t=await s.cancelPayment(e,n);return P(t,h.default,p,a)},async createPayment(e,n){let t=await s.createPayment(e,n);return P(t,h.default,p,a)},async createRefund(e,n){let t=await s.createRefund(e,n);return P(t,h.default,p,a)}}},Io=function(a,s,e){let n=ge(a);return{cancelPayment(t,r){return n.cancelPayment(t,r).then(o=>o(e,s))},createPayment(t,r){return n.createPayment(t,r).then(o=>o(e,s))},createRefund(t,r){return n.createRefund(t,r).then(o=>o(e,s))}}},gt=class extends V{cancelPayment(s,e){return ge(this.configuration).cancelPayment(s,e).then(n=>n(this.axios,this.basePath))}createPayment(s,e){return ge(this.configuration).createPayment(s,e).then(n=>n(this.axios,this.basePath))}createRefund(s,e){return ge(this.configuration).createRefund(s,e).then(n=>n(this.axios,this.basePath))}},hs=function(a){return{createPaymentRequest:async(s,e,n={})=>{c("createPaymentRequest","terminalId",s),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},createRefundRequest:async(s,e,n={})=>{c("createRefundRequest","terminalId",s),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=b(e,i,a),{url:y(r),options:i}},getPaymentResult:async(s,e={})=>{c("getPaymentResult","operationId",s);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(s,e,n={})=>{c("getTerminalAuthContext","terminalId",s),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getTerminalContext:async(s,e,n={})=>{c("getTerminalContext","terminalId",s),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}},getTerminalState:async(s,e={})=>{c("getTerminalState","terminalId",s);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(s={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},K=function(a){let s=hs(a);return{async createPaymentRequest(e,n,t){let r=await s.createPaymentRequest(e,n,t);return P(r,h.default,p,a)},async createRefundRequest(e,n,t){let r=await s.createRefundRequest(e,n,t);return P(r,h.default,p,a)},async getPaymentResult(e,n){let t=await s.getPaymentResult(e,n);return P(t,h.default,p,a)},async getTerminalAuthContext(e,n,t){let r=await s.getTerminalAuthContext(e,n,t);return P(r,h.default,p,a)},async getTerminalContext(e,n,t){let r=await s.getTerminalContext(e,n,t);return P(r,h.default,p,a)},async getTerminalState(e,n){let t=await s.getTerminalState(e,n);return P(t,h.default,p,a)},async handleCallback(e){let n=await s.handleCallback(e);return P(n,h.default,p,a)}}},vo=function(a,s,e){let n=K(a);return{createPaymentRequest(t,r,o){return n.createPaymentRequest(t,r,o).then(i=>i(e,s))},createRefundRequest(t,r,o){return n.createRefundRequest(t,r,o).then(i=>i(e,s))},getPaymentResult(t,r){return n.getPaymentResult(t,r).then(o=>o(e,s))},getTerminalAuthContext(t,r,o){return n.getTerminalAuthContext(t,r,o).then(i=>i(e,s))},getTerminalContext(t,r,o){return n.getTerminalContext(t,r,o).then(i=>i(e,s))},getTerminalState(t,r){return n.getTerminalState(t,r).then(o=>o(e,s))},handleCallback(t){return n.handleCallback(t).then(r=>r(e,s))}}},yt=class extends V{createPaymentRequest(s,e,n){return K(this.configuration).createPaymentRequest(s,e,n).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,n){return K(this.configuration).createRefundRequest(s,e,n).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return K(this.configuration).getPaymentResult(s,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(s,e,n){return K(this.configuration).getTerminalAuthContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,n){return K(this.configuration).getTerminalContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return K(this.configuration).getTerminalState(s,e).then(n=>n(this.axios,this.basePath))}handleCallback(s){return K(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var ft=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(s={}){this.apiKey=s.apiKey,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.baseOptions=s.baseOptions,this.formDataCtor=s.formDataCtor}isJsonMime(s){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return s!==null&&(e.test(s)||s.toLowerCase()==="application/json-patch+json")}};var To={[ie.Eur]:2,[ie.Aed]:2,[ie.Usd]:2,[ie.Gbp]:2,BHD:3,JPY:0},qo={getMultiplier(a){let s=To[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};var ye=Ce(require("lodash")),Rt=a=>ye.default.orderBy(a,["rank","id"],["asc","asc"]),Uo=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},Eo=(a,s)=>({...a,colorCode:a.colorCode??s}),As=(a,s)=>ye.default.compact(a.map(e=>s.get(e))),Ct=(a,s)=>a.flatMap(e=>{let n=s[e];return n?[e,...Ct(n.childIds,s)]:[]}),Dt=(a,s)=>a.flatMap(e=>{let n=s[e];return n?.enabled?[e,...Dt(n.childIds,s)]:[]}),Bo=a=>{let s=new Map,e={},n={},t=Rt(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return s.set(d,Eo(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=Rt(Uo(R)).map(q=>A(q,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:I,childIds:S},O},x=Rt(i.subcategories??[]).map(R=>A(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},Mo=(a,s,e,n)=>{let t=s[a];if(!t)return[];let r=Dt(t.subcategoryIds,e),o=ye.default.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return As(o,n)},ko=(a,s,e)=>{let n=s[a];if(!n)return[];let t=Ct(n.subcategoryIds,e);return ye.default.compact(t.map(r=>e[r]))};var bs="1.9.103";0&&(module.exports={ABLYEVENT,AblyApi,AblyApiAxiosParamCreator,AblyApiFactory,AblyApiFp,ActionEnum,ActionPasscodesApi,ActionPasscodesApiAxiosParamCreator,ActionPasscodesApiFactory,ActionPasscodesApiFp,ActionsEnum,AuthApi,AuthApiAxiosParamCreator,AuthApiFactory,AuthApiFp,AutonomousVehicleType,BusinessApi,BusinessApiAxiosParamCreator,BusinessApiFactory,BusinessApiFp,BusinessBackgroundType,BusinessEventAction,BusinessEventType,BusinessPaymentIntegrationType,BusinessProviderPolicyApi,BusinessProviderPolicyApiAxiosParamCreator,BusinessProviderPolicyApiFactory,BusinessProviderPolicyApiFp,BusinessScheduleApi,BusinessScheduleApiAxiosParamCreator,BusinessScheduleApiFactory,BusinessScheduleApiFp,BusinessStatusEnum,CashLogReason,CashLogType,CashManagementApi,CashManagementApiAxiosParamCreator,CashManagementApiFactory,CashManagementApiFp,CashSessionDtoEnum,CashSessionStatus,ChannelEnum,ChannelMenuApi,ChannelMenuApiAxiosParamCreator,ChannelMenuApiFactory,ChannelMenuApiFp,ChargeStatusEnum,CheckoutModelEnum,ConditionType,ConfigManagementApi,ConfigManagementApiAxiosParamCreator,ConfigManagementApiFactory,ConfigManagementApiFp,Configuration,ConsumptionType,CoursesApi,CoursesApiAxiosParamCreator,CoursesApiFactory,CoursesApiFp,CurrencyCode,CurrencyRegistry,DayOfWeek,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,DiscountTypeEnum,DisplayApi,DisplayApiAxiosParamCreator,DisplayApiFactory,DisplayApiFp,EmployeesApi,EmployeesApiAxiosParamCreator,EmployeesApiFactory,EmployeesApiFp,EntityType,EntityTypeEnum,EventTypeEnum,EventTypeIdEnum,FeeType,FloorPlanApi,FloorPlanApiAxiosParamCreator,FloorPlanApiFactory,FloorPlanApiFp,GiftcardApi,GiftcardApiAxiosParamCreator,GiftcardApiFactory,GiftcardApiFp,HistoryApi,HistoryApiAxiosParamCreator,HistoryApiFactory,HistoryApiFp,IntegrationType,InvoiceCompaniesApi,InvoiceCompaniesApiAxiosParamCreator,InvoiceCompaniesApiFactory,InvoiceCompaniesApiFp,KDSApi,KDSApiAxiosParamCreator,KDSApiFactory,KDSApiFp,KDSEVENTNAME,KioskEventType,KioskLayout,KiosksApi,KiosksApiAxiosParamCreator,KiosksApiFactory,KiosksApiFp,KitchenItemStatus,KitchenStatus,LocatorType,LoyaltyActionKey,LoyaltyIntegerationsApi,LoyaltyIntegerationsApiAxiosParamCreator,LoyaltyIntegerationsApiFactory,LoyaltyIntegerationsApiFp,MUNCHI_CORE_VERSION,MenuApi,MenuApiAxiosParamCreator,MenuApiFactory,MenuApiFp,MenuTypeEnum,MerchantsApi,MerchantsApiAxiosParamCreator,MerchantsApiFactory,MerchantsApiFp,MunchiGiftCardApi,MunchiGiftCardApiAxiosParamCreator,MunchiGiftCardApiFactory,MunchiGiftCardApiFp,NameEnum,NetsRevertMethod,NotificationApi,NotificationApiAxiosParamCreator,NotificationApiFactory,NotificationApiFp,OperatingMode,OperatingModeEnum,OrderFormat,OrderInternalApi,OrderInternalApiAxiosParamCreator,OrderInternalApiFactory,OrderInternalApiFp,OrderMode,OrderRefundStatus,OrderSource,OrderStatus,OrderStatusEnum,OrderType,OrderTypePOS,OrdersApi,OrdersApiAxiosParamCreator,OrdersApiFactory,OrdersApiFp,POSSessionApi,POSSessionApiAxiosParamCreator,POSSessionApiFactory,POSSessionApiFp,PayTerminalApi,PayTerminalApiAxiosParamCreator,PayTerminalApiFactory,PayTerminalApiFp,PayTerminalSessionRole,PaymentApi,PaymentApiAxiosParamCreator,PaymentApiFactory,PaymentApiFp,PaymentCheckoutFlow,PaymentEventType,PaymentFailureCode,PaymentMethod,PaymentMethodsApi,PaymentMethodsApiAxiosParamCreator,PaymentMethodsApiFactory,PaymentMethodsApiFp,PaymentProvider,PaymentProviderEnum,PaymentReportingBucket,PaymentSessionApi,PaymentSessionApiAxiosParamCreator,PaymentSessionApiFactory,PaymentSessionApiFp,PaymentSessionPurpose,PaymentSessionStatus,PaymentStatus,PaymentTypeEnum,PosDiscountTargetType,PosDiscountType,PosPaymentStatus,PosPaymentType,PosPermission,PreorderStatus,PriceType,PrinterConnectionType,PrinterModelType,PrinterTypeEnum,PrintersApi,PrintersApiAxiosParamCreator,PrintersApiFactory,PrintersApiFp,ProductApi,ProductApiAxiosParamCreator,ProductApiFactory,ProductApiFp,ProductAvailability,ProductDetailLayout,ProductDetailLayoutEnum,PromotionDiscountType,ProviderApi,ProviderApiAxiosParamCreator,ProviderApiFactory,ProviderApiFp,ProviderEnum,PubSubAction,PubSubTarget,RecordManualStatus,RefundFailureReasonKey,RefundMode,RefundOverallStatus,RefundStatusEnum,RefundStepStatus,RefundsApi,RefundsApiAxiosParamCreator,RefundsApiFactory,RefundsApiFp,ReportApi,ReportApiAxiosParamCreator,ReportApiFactory,ReportApiFp,ReportLanguage,ReservationSource,ReservationStatus,ReservationsApi,ReservationsApiAxiosParamCreator,ReservationsApiFactory,ReservationsApiFp,RoleEnum,SYNCKEY,ScheduleType,ScopeEnum,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,StatusEnum,SystemProfileType,TableGroupType,TableShape,TableStatus,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,VendureSellerApi,VendureSellerApiAxiosParamCreator,VendureSellerApiFactory,VendureSellerApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WalletStatusEnum,WebhookApi,WebhookApiAxiosParamCreator,WebhookApiFactory,WebhookApiFp,WorldlineApi,WorldlineApiAxiosParamCreator,WorldlineApiFactory,WorldlineApiFp,WorldlineInternalApi,WorldlineInternalApiAxiosParamCreator,WorldlineInternalApiFactory,WorldlineInternalApiFp,WorldlineRevertMethod,buildPosCategoryIndex,collectEnabledSubcategoryIdsDepthFirst,collectSubcategoryIdsDepthFirst,getCategoryProductsIncludingSubcategories,getSubcategoriesForCategory,mapProductIdsToProducts});
|