@munchi_oy/core 1.9.10 → 1.9.11
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 +42 -65
- 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 +79 -110
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Xt=Object.create;var oe=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var ss=Object.getPrototypeOf,ns=Object.prototype.hasOwnProperty;var rs=(a,t)=>{for(var e in t)oe(a,e,{get:t[e],enumerable:!0})},dt=(a,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ts(t))!ns.call(a,s)&&s!==e&&oe(a,s,{get:()=>t[s],enumerable:!(n=es(t,s))||n.enumerable});return a};var ge=(a,t,e)=>(e=a!=null?Xt(ss(a)):{},dt(t||!a||!a.__esModule?oe(e,"default",{value:a,enumerable:!0}):e,a)),os=a=>dt(oe({},"__esModule",{value:!0}),a);var $r={};rs($r,{ABLYEVENT:()=>as,AblyApi:()=>he,AblyApiAxiosParamCreator:()=>mt,AblyApiFactory:()=>nr,AblyApiFp:()=>ie,ActionEnum:()=>is,ActionPasscodesApi:()=>Pe,ActionPasscodesApiAxiosParamCreator:()=>gt,ActionPasscodesApiFactory:()=>rr,ActionPasscodesApiFp:()=>Z,ActionsEnum:()=>pn,AuthApi:()=>fe,AuthApiAxiosParamCreator:()=>yt,AuthApiFactory:()=>or,AuthApiFp:()=>X,AutonomousVehicleType:()=>cs,BusinessApi:()=>Ae,BusinessApiAxiosParamCreator:()=>ht,BusinessApiFactory:()=>ar,BusinessApiFp:()=>T,BusinessBackgroundType:()=>ds,BusinessEventAction:()=>ms,BusinessEventType:()=>gs,BusinessPaymentIntegrationType:()=>ys,BusinessProviderPolicyApi:()=>xe,BusinessProviderPolicyApiAxiosParamCreator:()=>Pt,BusinessProviderPolicyApiFactory:()=>ir,BusinessProviderPolicyApiFp:()=>et,BusinessStatusEnum:()=>hs,CashLogReason:()=>Ps,CashLogType:()=>fs,CashManagementApi:()=>Re,CashManagementApiAxiosParamCreator:()=>ft,CashManagementApiFactory:()=>lr,CashManagementApiFp:()=>N,CashSessionDtoEnum:()=>As,CashSessionStatus:()=>xs,ChannelEnum:()=>Rs,CheckoutModelEnum:()=>bs,ConditionType:()=>Cs,ConfigManagementApi:()=>be,ConfigManagementApiAxiosParamCreator:()=>At,ConfigManagementApiFactory:()=>ur,ConfigManagementApiFp:()=>M,Configuration:()=>it,ConsumptionType:()=>Ds,CurrencyCode:()=>J,CurrencyCodeEnum:()=>Hn,CurrencyRegistry:()=>jr,DeliveryStatus:()=>Os,DeliveryType:()=>Vs,DeviceType:()=>Is,DiscountScope:()=>Ss,DiscountScopeType:()=>vs,DiscountSourceType:()=>Ts,DiscountType:()=>Es,EmployeesApi:()=>Ce,EmployeesApiAxiosParamCreator:()=>xt,EmployeesApiFactory:()=>cr,EmployeesApiFp:()=>tt,EntityType:()=>Us,EntityTypeEnum:()=>ls,EventTypeEnum:()=>us,EventTypeIdEnum:()=>Qn,FeeType:()=>qs,GiftcardApi:()=>De,GiftcardApiAxiosParamCreator:()=>Rt,GiftcardApiFactory:()=>dr,GiftcardApiFp:()=>le,HistoryApi:()=>Oe,HistoryApiAxiosParamCreator:()=>bt,HistoryApiFactory:()=>pr,HistoryApiFp:()=>K,IntegrationType:()=>Bs,InvoiceCompaniesApi:()=>Ve,InvoiceCompaniesApiAxiosParamCreator:()=>Ct,InvoiceCompaniesApiFactory:()=>mr,InvoiceCompaniesApiFp:()=>L,KDSApi:()=>Ie,KDSApiAxiosParamCreator:()=>Dt,KDSApiFactory:()=>gr,KDSApiFp:()=>H,KDSEVENTNAME:()=>Ms,KioskEventType:()=>ks,KioskLayout:()=>_s,KiosksApi:()=>Se,KiosksApiAxiosParamCreator:()=>Ot,KiosksApiFactory:()=>yr,KiosksApiFp:()=>ue,KitchenItemStatus:()=>ws,KitchenStatus:()=>Ns,LocatorType:()=>Ls,LoyaltyActionKey:()=>Fs,LoyaltyIntegerationsApi:()=>ve,LoyaltyIntegerationsApiAxiosParamCreator:()=>Vt,LoyaltyIntegerationsApiFactory:()=>hr,LoyaltyIntegerationsApiFp:()=>F,MApi:()=>Te,MApiAxiosParamCreator:()=>It,MApiFactory:()=>Pr,MApiFp:()=>st,MUNCHI_CORE_VERSION:()=>Zt,MenuApi:()=>Ee,MenuApiAxiosParamCreator:()=>St,MenuApiFactory:()=>fr,MenuApiFp:()=>G,MenuTypeEnum:()=>ps,MerchantsApi:()=>Ue,MerchantsApiAxiosParamCreator:()=>vt,MerchantsApiFactory:()=>Ar,MerchantsApiFp:()=>ee,MunchiGiftCardApi:()=>qe,MunchiGiftCardApiAxiosParamCreator:()=>Tt,MunchiGiftCardApiFactory:()=>xr,MunchiGiftCardApiFp:()=>Q,NameEnum:()=>Fn,NotificationApi:()=>Be,NotificationApiAxiosParamCreator:()=>Et,NotificationApiFactory:()=>Rr,NotificationApiFp:()=>ce,OperatingMode:()=>js,OperatingModeEnum:()=>Nn,OrderFormat:()=>Ws,OrderInternalApi:()=>Me,OrderInternalApiAxiosParamCreator:()=>Ut,OrderInternalApiFactory:()=>br,OrderInternalApiFp:()=>nt,OrderMode:()=>Gs,OrderRefundStatus:()=>Ks,OrderSource:()=>Hs,OrderStatus:()=>Qs,OrderStatusEnum:()=>$s,OrderType:()=>zs,OrderTypePOS:()=>Ys,OrderingCoApi:()=>ke,OrderingCoApiAxiosParamCreator:()=>qt,OrderingCoApiFactory:()=>Cr,OrderingCoApiFp:()=>rt,OrdersApi:()=>_e,OrdersApiAxiosParamCreator:()=>Bt,OrdersApiFactory:()=>Dr,OrdersApiFp:()=>B,POSSessionApi:()=>we,POSSessionApiAxiosParamCreator:()=>Mt,POSSessionApiFactory:()=>Or,POSSessionApiFp:()=>de,PaymentApi:()=>Ne,PaymentApiAxiosParamCreator:()=>kt,PaymentApiFactory:()=>Vr,PaymentApiFp:()=>q,PaymentEventType:()=>Js,PaymentFailureCode:()=>Zs,PaymentMethod:()=>Xs,PaymentProvider:()=>en,PaymentProviderEnum:()=>tn,PaymentStatus:()=>sn,PaymentTypeEnum:()=>nn,PluginApi:()=>Le,PluginApiAxiosParamCreator:()=>_t,PluginApiFactory:()=>Ir,PluginApiFp:()=>pe,PosDiscountTargetType:()=>rn,PosDiscountType:()=>on,PosPaymentStatus:()=>an,PosPaymentType:()=>ln,PosPermission:()=>un,PreorderStatus:()=>cn,PrinterTypeEnum:()=>dn,ProductApi:()=>Fe,ProductApiAxiosParamCreator:()=>wt,ProductApiFactory:()=>Sr,ProductApiFp:()=>ot,ProductAvailability:()=>mn,ProductDetailLayout:()=>gn,ProductDetailLayoutEnum:()=>Ln,PromotionDiscountType:()=>yn,ProviderApi:()=>je,ProviderApiAxiosParamCreator:()=>Nt,ProviderApiFactory:()=>vr,ProviderApiFp:()=>te,ProviderEnum:()=>hn,PubSubAction:()=>Pn,PubSubTarget:()=>fn,RefundFailureReasonKey:()=>An,RefundMode:()=>xn,RefundOverallStatus:()=>Rn,RefundStatusEnum:()=>bn,RefundStepStatus:()=>Cn,RefundsApi:()=>We,RefundsApiAxiosParamCreator:()=>Lt,RefundsApiFactory:()=>Tr,RefundsApiFp:()=>_,ReportApi:()=>Ge,ReportApiAxiosParamCreator:()=>Ft,ReportApiFactory:()=>Er,ReportApiFp:()=>$,ReportLanguage:()=>Dn,SYNCKEY:()=>On,SelectedPaymentProviderEnum:()=>wn,ShiftTrackingApi:()=>Ke,ShiftTrackingApiAxiosParamCreator:()=>jt,ShiftTrackingApiFactory:()=>Ur,ShiftTrackingApiFp:()=>z,SimplePaymentStatus:()=>Vn,SourceType:()=>In,StaffActivityActionType:()=>Sn,StationType:()=>vn,StationsApi:()=>He,StationsApiAxiosParamCreator:()=>Wt,StationsApiFactory:()=>qr,StationsApiFp:()=>se,Status:()=>Tn,SystemProfileType:()=>En,TerminalApi:()=>Qe,TerminalApiAxiosParamCreator:()=>Gt,TerminalApiFactory:()=>Br,TerminalApiFp:()=>Y,TerminalConnectionType:()=>Un,TimeSpan:()=>qn,TransactionEventType:()=>Bn,TransactionType:()=>Mn,Type:()=>kn,UpsellMode:()=>_n,UserApi:()=>$e,UserApiAxiosParamCreator:()=>Kt,UserApiFactory:()=>Mr,UserApiFp:()=>ne,UsersApi:()=>ze,UsersApiAxiosParamCreator:()=>Ht,UsersApiFactory:()=>kr,UsersApiFp:()=>me,VivaApi:()=>Ye,VivaApiAxiosParamCreator:()=>Qt,VivaApiFactory:()=>_r,VivaApiFp:()=>at,VivaAppToAppPaymentMethod:()=>jn,VivaCurrencyCode:()=>Wn,VivaErrorId:()=>Gn,VivaEventId:()=>Kn,WebhookApi:()=>Je,WebhookApiAxiosParamCreator:()=>$t,WebhookApiFactory:()=>wr,WebhookApiFp:()=>U,WorldlineApi:()=>Ze,WorldlineApiAxiosParamCreator:()=>zt,WorldlineApiFactory:()=>Nr,WorldlineApiFp:()=>j,WorldlineAuthorizationMethod:()=>$n,WorldlineAuthorizationResponder:()=>zn,WorldlineEntryMode:()=>Yn,WorldlineEventType:()=>Jn,WorldlineInternalApi:()=>Xe,WorldlineInternalApiAxiosParamCreator:()=>Yt,WorldlineInternalApiFactory:()=>Lr,WorldlineInternalApiFp:()=>w,WorldlineOutcomeDescription:()=>Zn,WorldlineResponseStatus:()=>Xn,WorldlineTransactionOutcome:()=>er,WorldlineTransactionType:()=>tr,WorldlineVerificationMethod:()=>sr,buildPosCategoryIndex:()=>Kr,collectEnabledSubcategoryIdsDepthFirst:()=>ct,collectSubcategoryIdsDepthFirst:()=>ut,getCategoryProductsIncludingSubcategories:()=>Hr,getSubcategoriesForCategory:()=>Qr,mapProductIdsToProducts:()=>Jt});module.exports=os($r);var P=ge(require("axios"));var pt=ge(require("axios")),p="http://localhost".replace(/\/+$/,"");var I=class{constructor(t,e=p,n=pt.default){this.basePath=e;this.axios=n;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},ae=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,t,e){if(e==null)throw new ae(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var D=async function(a,t){if(t&&t.accessToken){let e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;a.Authorization="Bearer "+e}};function ye(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>ye(a,n,e)):Object.keys(t).forEach(n=>ye(a,t[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,t):a.set(e,t))}var g=function(a,...t){let e=new URLSearchParams(a.search);ye(e,t),a.search=e.toString()},A=function(a,t,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},h=function(a,t,e,n){return(s=t,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return s.request(o)}};var as={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},is={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ls={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},us={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},cs={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},ds={Image:"image",Video:"video",Animation:"animation"},ps={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce"},ms={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},gs={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},ys={GiftCard:"GiftCard"},hs={Online:"ONLINE",Offline:"OFFLINE"},Ps={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"},fs={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},As={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},xs={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Rs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},bs={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Cs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Ds={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},J={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"},Os={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Vs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Is={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Ss={Item:"ITEM",Cart:"CART"},vs={Business:"BUSINESS",Owner:"OWNER"},Ts={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Es={Percentage:"PERCENTAGE",Fixed:"FIXED"},Us={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},qs={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Bs={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Ms={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},ks={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},_s={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},ws={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},Ns={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Ls={Table:"table",Indicator:"indicator"},Fs={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},js={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Ws={Open:"OPEN",Instant:"INSTANT"},Gs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Ks={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Hs={Platform:"PLATFORM",Pos:"POS"},Qs={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},$s={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"},zs={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Ys={DineIn:"dine_in",PickUp:"pick_up"},Js={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},Zs={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"},Xs={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"},en={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},tn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},sn={Paid:"paid",Pending:"pending"},nn={Cash:"cash",Card:"card"},rn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},on={Percentage:"percentage",Fixed:"fixed"},an={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},ln={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},un={AccessPosApp:"Access::PosApp",PagePos:"Page::Pos",PageOpenOrders:"Page::OpenOrders",PageOrders:"Page::Orders",PageTransactions:"Page::Transactions",PageProducts:"Page::Products",PageReports:"Page::Reports",PageSettings:"Page::Settings",Cart:"Cart::*",CartAddItem:"Cart::AddItem",CartRemoveItem:"Cart::RemoveItem",CartApplyDiscount:"Cart::ApplyDiscount",CartVoidItem:"Cart::VoidItem",CartClear:"Cart::Clear",Transaction:"Transaction::*",TransactionView:"Transaction::View",TransactionRefund:"Transaction::Refund",Shift:"Shift::*",ShiftForceClockOut:"Shift::ForceClockOut",Settings:"Settings::*",SettingsEditProfile:"Settings::EditProfile",OpenOrdersDelete:"OpenOrders::Delete"},cn={Waiting:"waiting",Confirm:"confirm"},dn={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},pn={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},mn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},gn={Modal:"MODAL",Screen:"SCREEN"},yn={Percentage:"PERCENTAGE",Fixed:"FIXED"},hn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},Pn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},fn={Kds:"KDS"},An={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"},xn={Full:"FULL",Item:"ITEM"},Rn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},bn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Cn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Dn={Fi:"fi",En:"en"},On={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",DiscountsV2:"DISCOUNTS_V2"},Vn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},In={Order:"ORDER",Ticket:"TICKET"},Sn={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"},vn={Kiosk:"KIOSK",Pos:"POS"},Tn={Active:"ACTIVE",Inactive:"INACTIVE"},En={NoStation:"NO_STATION"},Un={Network:"NETWORK"},qn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Bn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Mn={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},kn={Instant:"instant",Preorder:"preorder"},_n={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},wn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Nn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Ln={Modal:"MODAL",Screen:"SCREEN"},Fn={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"},jn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Wn={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},Gn={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},Kn={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},Hn={_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"},Qn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},$n={Online:"Online",Offline:"Offline"},zn={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},Yn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},Jn={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},Zn={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},Xn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},er={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},tr={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},sr={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},mt=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ie=function(a){let t=mt(a);return{async refreshConfig(e){let n=await t.refreshConfig(e);return h(n,P.default,p,a)},async requestSettings(e){let n=await t.requestSettings(e);return h(n,P.default,p,a)}}},nr=function(a,t,e){let n=ie(a);return{refreshConfig(s){return n.refreshConfig(s).then(r=>r(e,t))},requestSettings(s){return n.requestSettings(s).then(r=>r(e,t))}}},he=class extends I{refreshConfig(t){return ie(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return ie(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},gt=function(a){return{createActionPasscode:async(t,e={})=>{c("createActionPasscode","createActionPasscodeDto",t);let n="/api/v1/action-passcodes",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deleteActionPasscode:async(t,e={})=>{c("deleteActionPasscode","id",t);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},updateActionPasscode:async(t,e,n={})=>{c("updateActionPasscode","id",t),c("updateActionPasscode","updateActionPasscodeDto",e);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}}}},Z=function(a){let t=gt(a);return{async createActionPasscode(e,n){let s=await t.createActionPasscode(e,n);return h(s,P.default,p,a)},async deleteActionPasscode(e,n){let s=await t.deleteActionPasscode(e,n);return h(s,P.default,p,a)},async updateActionPasscode(e,n,s){let r=await t.updateActionPasscode(e,n,s);return h(r,P.default,p,a)}}},rr=function(a,t,e){let n=Z(a);return{createActionPasscode(s,r){return n.createActionPasscode(s,r).then(o=>o(e,t))},deleteActionPasscode(s,r){return n.deleteActionPasscode(s,r).then(o=>o(e,t))},updateActionPasscode(s,r,o){return n.updateActionPasscode(s,r,o).then(i=>i(e,t))}}},Pe=class extends I{createActionPasscode(t,e){return Z(this.configuration).createActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(t,e){return Z(this.configuration).deleteActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(t,e,n){return Z(this.configuration).updateActionPasscode(t,e,n).then(s=>s(this.axios,this.basePath))}},yt=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},logout:async(t={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},refreshToken:async(t,e={})=>{c("refreshToken","refreshTokenDto",t);let n="/api/v1/auth/refresh",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},X=function(a){let t=yt(a);return{async firebaseAuth(e){let n=await t.firebaseAuth(e);return h(n,P.default,p,a)},async logout(e){let n=await t.logout(e);return h(n,P.default,p,a)},async refreshToken(e,n){let s=await t.refreshToken(e,n);return h(s,P.default,p,a)}}},or=function(a,t,e){let n=X(a);return{firebaseAuth(s){return n.firebaseAuth(s).then(r=>r(e,t))},logout(s){return n.logout(s).then(r=>r(e,t))},refreshToken(s,r){return n.refreshToken(s,r).then(o=>o(e,t))}}},fe=class extends I{firebaseAuth(t){return X(this.configuration).firebaseAuth(t).then(e=>e(this.axios,this.basePath))}logout(t){return X(this.configuration).logout(t).then(e=>e(this.axios,this.basePath))}refreshToken(t,e){return X(this.configuration).refreshToken(t,e).then(n=>n(this.axios,this.basePath))}},ht=function(a){return{createBusinessPermission:async(t,e,n={})=>{c("createBusinessPermission","businessId",t),c("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(t,e,n={})=>{c("deleteBusinessPermission","permissionId",t),c("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(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(t,e={})=>{c("getAdvancedDiscounts","businessId",t);let n="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessCategoriesByMenuId:async(t,e,n={})=>{c("getBusinessCategoriesByMenuId","businessId",t),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(t,e,n={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",t),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(t,e,n={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",t),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let s="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(t,e,n={})=>{c("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessChannelConfigV2","businessId",t);let s="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessMenuByType","businessId",t),c("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessMenuByTypeV2","businessId",t),c("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessMenuByTypeV3","businessId",t),c("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e,n={})=>{c("getBusinessMenuByTypeV4","businessId",t),c("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t,e={})=>{c("getBusinessProviderStatus","businessId",t);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessProviderStatusExternal:async(t,e,n={})=>{c("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(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(t={})=>{let e="/api/v1/business/tax",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(t,e={})=>{c("getProvidersSupportedIntegrations","businessIds",t);let n="/api/v1/business/providers/supported-integrations",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSingleBusinessProviderStatus:async(t,e,n,s={})=>{c("getSingleBusinessProviderStatus","businessId",t),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={},d={};await D(u,a),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{c("getUnifiedDiscounts","businessId",t);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},setBusinessStatus:async(t,e,n={})=>{c("setBusinessStatus","businessId",t),c("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(t,e,n={})=>{c("setBusinessStatusSchedule","businessId",t),c("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(t,e,n,s={})=>{c("updateBusinessPermission","permissionId",t),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},d={};await D(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},validateBusiness:async(t,e={})=>{c("validateBusiness","businessId",t);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},T=function(a){let t=ht(a);return{async createBusinessPermission(e,n,s){let r=await t.createBusinessPermission(e,n,s);return h(r,P.default,p,a)},async deleteBusinessPermission(e,n,s){let r=await t.deleteBusinessPermission(e,n,s);return h(r,P.default,p,a)},async getAdvancedDiscounts(e,n){let s=await t.getAdvancedDiscounts(e,n);return h(s,P.default,p,a)},async getBusinessCategoriesByMenuId(e,n,s){let r=await t.getBusinessCategoriesByMenuId(e,n,s);return h(r,P.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV2(e,n,s);return h(r,P.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV3(e,n,s);return h(r,P.default,p,a)},async getBusinessChannelConfig(e,n,s){let r=await t.getBusinessChannelConfig(e,n,s);return h(r,P.default,p,a)},async getBusinessChannelConfigV2(e,n,s){let r=await t.getBusinessChannelConfigV2(e,n,s);return h(r,P.default,p,a)},async getBusinessConfig(e,n,s){let r=await t.getBusinessConfig(e,n,s);return h(r,P.default,p,a)},async getBusinessConfigById(e,n,s){let r=await t.getBusinessConfigById(e,n,s);return h(r,P.default,p,a)},async getBusinessConfigByIdV2(e,n,s){let r=await t.getBusinessConfigByIdV2(e,n,s);return h(r,P.default,p,a)},async getBusinessConfiguration(e,n,s){let r=await t.getBusinessConfiguration(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByType(e,n,s){let r=await t.getBusinessMenuByType(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByTypeV2(e,n,s){let r=await t.getBusinessMenuByTypeV2(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByTypeV3(e,n,s){let r=await t.getBusinessMenuByTypeV3(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByTypeV4(e,n,s){let r=await t.getBusinessMenuByTypeV4(e,n,s);return h(r,P.default,p,a)},async getBusinessProviderStatus(e,n){let s=await t.getBusinessProviderStatus(e,n);return h(s,P.default,p,a)},async getBusinessProviderStatusExternal(e,n,s){let r=await t.getBusinessProviderStatusExternal(e,n,s);return h(r,P.default,p,a)},async getBusinessTax(e){let n=await t.getBusinessTax(e);return h(n,P.default,p,a)},async getProvidersSupportedIntegrations(e,n){let s=await t.getProvidersSupportedIntegrations(e,n);return h(s,P.default,p,a)},async getSingleBusinessProviderStatus(e,n,s,r){let o=await t.getSingleBusinessProviderStatus(e,n,s,r);return h(o,P.default,p,a)},async getUnifiedDiscounts(e,n){let s=await t.getUnifiedDiscounts(e,n);return h(s,P.default,p,a)},async setBusinessStatus(e,n,s){let r=await t.setBusinessStatus(e,n,s);return h(r,P.default,p,a)},async setBusinessStatusSchedule(e,n,s){let r=await t.setBusinessStatusSchedule(e,n,s);return h(r,P.default,p,a)},async updateBusinessPermission(e,n,s,r){let o=await t.updateBusinessPermission(e,n,s,r);return h(o,P.default,p,a)},async validateBusiness(e,n){let s=await t.validateBusiness(e,n);return h(s,P.default,p,a)}}},ar=function(a,t,e){let n=T(a);return{createBusinessPermission(s,r,o){return n.createBusinessPermission(s,r,o).then(i=>i(e,t))},deleteBusinessPermission(s,r,o){return n.deleteBusinessPermission(s,r,o).then(i=>i(e,t))},getAdvancedDiscounts(s,r){return n.getAdvancedDiscounts(s,r).then(o=>o(e,t))},getBusinessCategoriesByMenuId(s,r,o){return n.getBusinessCategoriesByMenuId(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,r,o){return n.getBusinessCategoriesByMenuIdV2(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV3(s,r,o){return n.getBusinessCategoriesByMenuIdV3(s,r,o).then(i=>i(e,t))},getBusinessChannelConfig(s,r,o){return n.getBusinessChannelConfig(s,r,o).then(i=>i(e,t))},getBusinessChannelConfigV2(s,r,o){return n.getBusinessChannelConfigV2(s,r,o).then(i=>i(e,t))},getBusinessConfig(s,r,o){return n.getBusinessConfig(s,r,o).then(i=>i(e,t))},getBusinessConfigById(s,r,o){return n.getBusinessConfigById(s,r,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,r,o){return n.getBusinessConfigByIdV2(s,r,o).then(i=>i(e,t))},getBusinessConfiguration(s,r,o){return n.getBusinessConfiguration(s,r,o).then(i=>i(e,t))},getBusinessMenuByType(s,r,o){return n.getBusinessMenuByType(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,r,o){return n.getBusinessMenuByTypeV2(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,r,o){return n.getBusinessMenuByTypeV3(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,r,o){return n.getBusinessMenuByTypeV4(s,r,o).then(i=>i(e,t))},getBusinessProviderStatus(s,r){return n.getBusinessProviderStatus(s,r).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,r,o){return n.getBusinessProviderStatusExternal(s,r,o).then(i=>i(e,t))},getBusinessTax(s){return n.getBusinessTax(s).then(r=>r(e,t))},getProvidersSupportedIntegrations(s,r){return n.getProvidersSupportedIntegrations(s,r).then(o=>o(e,t))},getSingleBusinessProviderStatus(s,r,o,i){return n.getSingleBusinessProviderStatus(s,r,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,r){return n.getUnifiedDiscounts(s,r).then(o=>o(e,t))},setBusinessStatus(s,r,o){return n.setBusinessStatus(s,r,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,r,o){return n.setBusinessStatusSchedule(s,r,o).then(i=>i(e,t))},updateBusinessPermission(s,r,o,i){return n.updateBusinessPermission(s,r,o,i).then(l=>l(e,t))},validateBusiness(s,r){return n.validateBusiness(s,r).then(o=>o(e,t))}}},Ae=class extends I{createBusinessPermission(t,e,n){return T(this.configuration).createBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,n){return T(this.configuration).deleteBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}getAdvancedDiscounts(t,e){return T(this.configuration).getAdvancedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,n){return T(this.configuration).getBusinessChannelConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfigV2(t,e,n){return T(this.configuration).getBusinessChannelConfigV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,n){return T(this.configuration).getBusinessConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,n){return T(this.configuration).getBusinessConfigById(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,n){return T(this.configuration).getBusinessConfigByIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,n){return T(this.configuration).getBusinessConfiguration(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,n){return T(this.configuration).getBusinessMenuByType(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,n){return T(this.configuration).getBusinessMenuByTypeV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,n){return T(this.configuration).getBusinessMenuByTypeV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,n){return T(this.configuration).getBusinessMenuByTypeV4(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return T(this.configuration).getBusinessProviderStatus(t,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,n){return T(this.configuration).getBusinessProviderStatusExternal(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessTax(t){return T(this.configuration).getBusinessTax(t).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(t,e){return T(this.configuration).getProvidersSupportedIntegrations(t,e).then(n=>n(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,n,s){return T(this.configuration).getSingleBusinessProviderStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return T(this.configuration).getUnifiedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(t,e,n){return T(this.configuration).setBusinessStatus(t,e,n).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,n){return T(this.configuration).setBusinessStatusSchedule(t,e,n).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,n,s){return T(this.configuration).updateBusinessPermission(t,e,n,s).then(r=>r(this.axios,this.basePath))}validateBusiness(t,e){return T(this.configuration).validateBusiness(t,e).then(n=>n(this.axios,this.basePath))}},Pt=function(a){return{updatePosGlobalSettings:async(t,e,n={})=>{c("updatePosGlobalSettings","businessId",t),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let s="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}}}},et=function(a){let t=Pt(a);return{async updatePosGlobalSettings(e,n,s){let r=await t.updatePosGlobalSettings(e,n,s);return h(r,P.default,p,a)}}},ir=function(a,t,e){let n=et(a);return{updatePosGlobalSettings(s,r,o){return n.updatePosGlobalSettings(s,r,o).then(i=>i(e,t))}}},xe=class extends I{updatePosGlobalSettings(t,e,n){return et(this.configuration).updatePosGlobalSettings(t,e,n).then(s=>s(this.axios,this.basePath))}},ft=function(a){return{create:async(t,e,n={})=>{c("create","businessId",t),c("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},getCashLogs:async(t,e,n,s,r,o,i,l={})=>{c("getCashLogs","businessId",t),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(t))),d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"GET",...f,...l},R={},b={};n!==void 0&&(b.timeSpan=n),s!==void 0&&(b.start=s),r!==void 0&&(b.end=r),o!==void 0&&(b.page=o),i!==void 0&&(b.rowPerPage=i),e!==void 0&&(b.timezone=e),g(d,b);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(t,e={})=>{c("getCashSession","businessId",t);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSessionReport:async(t,e,n={})=>{c("getSessionReport","businessId",t),c("getSessionReport","sessionId",e);let s="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(s,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(t,e,n={})=>{c("recordCashLog","businessId",t),c("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},sendSessionReport:async(t,e,n,s={})=>{c("sendSessionReport","businessId",t),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},N=function(a){let t=ft(a);return{async create(e,n,s){let r=await t.create(e,n,s);return h(r,P.default,p,a)},async getCashLogs(e,n,s,r,o,i,l,u){let d=await t.getCashLogs(e,n,s,r,o,i,l,u);return h(d,P.default,p,a)},async getCashSession(e,n){let s=await t.getCashSession(e,n);return h(s,P.default,p,a)},async getSessionReport(e,n,s){let r=await t.getSessionReport(e,n,s);return h(r,P.default,p,a)},async recordCashLog(e,n,s){let r=await t.recordCashLog(e,n,s);return h(r,P.default,p,a)},async sendSessionReport(e,n,s,r){let o=await t.sendSessionReport(e,n,s,r);return h(o,P.default,p,a)}}},lr=function(a,t,e){let n=N(a);return{create(s,r,o){return n.create(s,r,o).then(i=>i(e,t))},getCashLogs(s,r,o,i,l,u,d,f){return n.getCashLogs(s,r,o,i,l,u,d,f).then(x=>x(e,t))},getCashSession(s,r){return n.getCashSession(s,r).then(o=>o(e,t))},getSessionReport(s,r,o){return n.getSessionReport(s,r,o).then(i=>i(e,t))},recordCashLog(s,r,o){return n.recordCashLog(s,r,o).then(i=>i(e,t))},sendSessionReport(s,r,o,i){return n.sendSessionReport(s,r,o,i).then(l=>l(e,t))}}},Re=class extends I{create(t,e,n){return N(this.configuration).create(t,e,n).then(s=>s(this.axios,this.basePath))}getCashLogs(t,e,n,s,r,o,i,l){return N(this.configuration).getCashLogs(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(t,e){return N(this.configuration).getCashSession(t,e).then(n=>n(this.axios,this.basePath))}getSessionReport(t,e,n){return N(this.configuration).getSessionReport(t,e,n).then(s=>s(this.axios,this.basePath))}recordCashLog(t,e,n){return N(this.configuration).recordCashLog(t,e,n).then(s=>s(this.axios,this.basePath))}sendSessionReport(t,e,n,s){return N(this.configuration).sendSessionReport(t,e,n,s).then(r=>r(this.axios,this.basePath))}},At=function(a){return{configConfigureMunchiGiftCard:async(t,e,n,s={})=>{c("configConfigureMunchiGiftCard","businessId",t),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configManualSync:async(t,e,n={})=>{c("configManualSync","businessId",t),c("configManualSync","manualSyncDto",e);let s="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(t,e,n,s={})=>{c("configRemovePaymentOption","businessId",t),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={},d={};await D(u,a),n!=null&&(u["x-app-x"]=String(n)),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},configUpsertBusiness:async(t,e,n={})=>{c("configUpsertBusiness","businessId",t),c("configUpsertBusiness","upsertBusinessDto",e);let s="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(t,e,n,s={})=>{c("configUpsertChannelConfig","businessId",t),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(t,e,n,s={})=>{c("configUpsertGiftCard","businessId",t),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(t,e,n={})=>{c("configUpsertLoyalty","businessId",t),c("configUpsertLoyalty","upsertLoyaltyDto",e);let s="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},configUpsertNets:async(t,e,n,s={})=>{c("configUpsertNets","businessId",t),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(t,e,n,s={})=>{c("configUpsertPaymentOptions","businessId",t),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(t,e,n,s={})=>{c("configUpsertStripe","businessId",t),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertViva:async(t,e,n,s={})=>{c("configUpsertViva","businessId",t),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},M=function(a){let t=At(a);return{async configConfigureMunchiGiftCard(e,n,s,r){let o=await t.configConfigureMunchiGiftCard(e,n,s,r);return h(o,P.default,p,a)},async configManualSync(e,n,s){let r=await t.configManualSync(e,n,s);return h(r,P.default,p,a)},async configRemovePaymentOption(e,n,s,r){let o=await t.configRemovePaymentOption(e,n,s,r);return h(o,P.default,p,a)},async configUpsertBusiness(e,n,s){let r=await t.configUpsertBusiness(e,n,s);return h(r,P.default,p,a)},async configUpsertChannelConfig(e,n,s,r){let o=await t.configUpsertChannelConfig(e,n,s,r);return h(o,P.default,p,a)},async configUpsertGiftCard(e,n,s,r){let o=await t.configUpsertGiftCard(e,n,s,r);return h(o,P.default,p,a)},async configUpsertLoyalty(e,n,s){let r=await t.configUpsertLoyalty(e,n,s);return h(r,P.default,p,a)},async configUpsertNets(e,n,s,r){let o=await t.configUpsertNets(e,n,s,r);return h(o,P.default,p,a)},async configUpsertPaymentOptions(e,n,s,r){let o=await t.configUpsertPaymentOptions(e,n,s,r);return h(o,P.default,p,a)},async configUpsertStripe(e,n,s,r){let o=await t.configUpsertStripe(e,n,s,r);return h(o,P.default,p,a)},async configUpsertViva(e,n,s,r){let o=await t.configUpsertViva(e,n,s,r);return h(o,P.default,p,a)}}},ur=function(a,t,e){let n=M(a);return{configConfigureMunchiGiftCard(s,r,o,i){return n.configConfigureMunchiGiftCard(s,r,o,i).then(l=>l(e,t))},configManualSync(s,r,o){return n.configManualSync(s,r,o).then(i=>i(e,t))},configRemovePaymentOption(s,r,o,i){return n.configRemovePaymentOption(s,r,o,i).then(l=>l(e,t))},configUpsertBusiness(s,r,o){return n.configUpsertBusiness(s,r,o).then(i=>i(e,t))},configUpsertChannelConfig(s,r,o,i){return n.configUpsertChannelConfig(s,r,o,i).then(l=>l(e,t))},configUpsertGiftCard(s,r,o,i){return n.configUpsertGiftCard(s,r,o,i).then(l=>l(e,t))},configUpsertLoyalty(s,r,o){return n.configUpsertLoyalty(s,r,o).then(i=>i(e,t))},configUpsertNets(s,r,o,i){return n.configUpsertNets(s,r,o,i).then(l=>l(e,t))},configUpsertPaymentOptions(s,r,o,i){return n.configUpsertPaymentOptions(s,r,o,i).then(l=>l(e,t))},configUpsertStripe(s,r,o,i){return n.configUpsertStripe(s,r,o,i).then(l=>l(e,t))},configUpsertViva(s,r,o,i){return n.configUpsertViva(s,r,o,i).then(l=>l(e,t))}}},be=class extends I{configConfigureMunchiGiftCard(t,e,n,s){return M(this.configuration).configConfigureMunchiGiftCard(t,e,n,s).then(r=>r(this.axios,this.basePath))}configManualSync(t,e,n){return M(this.configuration).configManualSync(t,e,n).then(s=>s(this.axios,this.basePath))}configRemovePaymentOption(t,e,n,s){return M(this.configuration).configRemovePaymentOption(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(t,e,n){return M(this.configuration).configUpsertBusiness(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertChannelConfig(t,e,n,s){return M(this.configuration).configUpsertChannelConfig(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(t,e,n,s){return M(this.configuration).configUpsertGiftCard(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(t,e,n){return M(this.configuration).configUpsertLoyalty(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertNets(t,e,n,s){return M(this.configuration).configUpsertNets(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(t,e,n,s){return M(this.configuration).configUpsertPaymentOptions(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertStripe(t,e,n,s){return M(this.configuration).configUpsertStripe(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertViva(t,e,n,s){return M(this.configuration).configUpsertViva(t,e,n,s).then(r=>r(this.axios,this.basePath))}},xt=function(a){return{createAssignment:async(t,e,n={})=>{c("createAssignment","businessId",t),c("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}}}},tt=function(a){let t=xt(a);return{async createAssignment(e,n,s){let r=await t.createAssignment(e,n,s);return h(r,P.default,p,a)}}},cr=function(a,t,e){let n=tt(a);return{createAssignment(s,r,o){return n.createAssignment(s,r,o).then(i=>i(e,t))}}},Ce=class extends I{createAssignment(t,e,n){return tt(this.configuration).createAssignment(t,e,n).then(s=>s(this.axios,this.basePath))}},Rt=function(a){return{redeemGiftCard:async(t,e={})=>{c("redeemGiftCard","redeemGiftCardDto",t);let n="/api/v1/giftcard/redeem",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateGiftCard:async(t,e={})=>{c("validateGiftCard","validateGiftCardDto",t);let n="/api/v1/giftcard/validate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},le=function(a){let t=Rt(a);return{async redeemGiftCard(e,n){let s=await t.redeemGiftCard(e,n);return h(s,P.default,p,a)},async validateGiftCard(e,n){let s=await t.validateGiftCard(e,n);return h(s,P.default,p,a)}}},dr=function(a,t,e){let n=le(a);return{redeemGiftCard(s,r){return n.redeemGiftCard(s,r).then(o=>o(e,t))},validateGiftCard(s,r){return n.validateGiftCard(s,r).then(o=>o(e,t))}}},De=class extends I{redeemGiftCard(t,e){return le(this.configuration).redeemGiftCard(t,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(t,e){return le(this.configuration).validateGiftCard(t,e).then(n=>n(this.axios,this.basePath))}},bt=function(a){return{getInternalOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O={})=>{c("getInternalOrderHistoryOnline","businessIds",t);let S="/api/v1/history/internal/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O={})=>{c("getOrderHistoryOnline","businessIds",t);let S="/api/v1/history/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O={})=>{c("getOrderHistoryPOSV5","businessIds",t);let S="/api/v5/history/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",t);let S="/api/v5/history/internal/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),d&&(C.paymentStatus=d),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}}}},K=function(a){let t=bt(a);return{async getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S){let v=await t.getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S);return h(v,P.default,p,a)},async getOrderHistoryOnline(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S){let v=await t.getOrderHistoryOnline(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S);return h(v,P.default,p,a)},async getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S){let v=await t.getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S);return h(v,P.default,p,a)},async getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S){let v=await t.getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,d,f,x,R,b,O,S);return h(v,P.default,p,a)}}},pr=function(a,t,e){let n=K(a);return{getInternalOrderHistoryOnline(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V){return n.getInternalOrderHistoryOnline(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryOnline(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V){return n.getOrderHistoryOnline(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5Internal(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5Internal(s,r,o,i,l,u,d,f,x,R,b,O,S,v,V).then(E=>E(e,t))}}},Oe=class extends I{getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O){return K(this.configuration).getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O){return K(this.configuration).getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O){return K(this.configuration).getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O){return K(this.configuration).getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,d,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}},Ct=function(a){return{createInvoiceCompany:async(t,e,n={})=>{c("createInvoiceCompany","businessId",t),c("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(t,e,n={})=>{c("deleteInvoiceCompany","id",t),c("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{c("getInvoiceCompanies","businessId",t);let n="/api/v1/invoice-companies",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getInvoiceCompanyById:async(t,e,n={})=>{c("getInvoiceCompanyById","id",t),c("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{c("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),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(t,e,n,s={})=>{c("updateInvoiceCompany","id",t),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},L=function(a){let t=Ct(a);return{async createInvoiceCompany(e,n,s){let r=await t.createInvoiceCompany(e,n,s);return h(r,P.default,p,a)},async deleteInvoiceCompany(e,n,s){let r=await t.deleteInvoiceCompany(e,n,s);return h(r,P.default,p,a)},async getInvoiceCompanies(e,n){let s=await t.getInvoiceCompanies(e,n);return h(s,P.default,p,a)},async getInvoiceCompanyById(e,n,s){let r=await t.getInvoiceCompanyById(e,n,s);return h(r,P.default,p,a)},async searchInvoiceCompanies(e,n,s){let r=await t.searchInvoiceCompanies(e,n,s);return h(r,P.default,p,a)},async updateInvoiceCompany(e,n,s,r){let o=await t.updateInvoiceCompany(e,n,s,r);return h(o,P.default,p,a)}}},mr=function(a,t,e){let n=L(a);return{createInvoiceCompany(s,r,o){return n.createInvoiceCompany(s,r,o).then(i=>i(e,t))},deleteInvoiceCompany(s,r,o){return n.deleteInvoiceCompany(s,r,o).then(i=>i(e,t))},getInvoiceCompanies(s,r){return n.getInvoiceCompanies(s,r).then(o=>o(e,t))},getInvoiceCompanyById(s,r,o){return n.getInvoiceCompanyById(s,r,o).then(i=>i(e,t))},searchInvoiceCompanies(s,r,o){return n.searchInvoiceCompanies(s,r,o).then(i=>i(e,t))},updateInvoiceCompany(s,r,o,i){return n.updateInvoiceCompany(s,r,o,i).then(l=>l(e,t))}}},Ve=class extends I{createInvoiceCompany(t,e,n){return L(this.configuration).createInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,n){return L(this.configuration).deleteInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return L(this.configuration).getInvoiceCompanies(t,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(t,e,n){return L(this.configuration).getInvoiceCompanyById(t,e,n).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,n){return L(this.configuration).searchInvoiceCompanies(t,e,n).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,n,s){return L(this.configuration).updateInvoiceCompany(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Dt=function(a){return{kdsGetOrders:async(t,e,n,s,r,o,i,l,u,d,f,x={})=>{c("kdsGetOrders","status",t),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",n);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(t))),b=new URL(R,m),O;a&&(O=a.baseOptions);let S={method:"GET",...O,...x},v={},V={};await D(v,a),e!==void 0&&(V.businessIds=e),n!==void 0&&(V.profileId=n),s!==void 0&&(V.page=s),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),d&&(V.provider=d),f&&(V.consumptionType=f),g(b,V);let E=O&&O.headers?O.headers:{};return S.headers={...v,...E,...x.headers},{url:y(b),options:S}},kdsGetProfiles:async(t,e={})=>{c("kdsGetProfiles","businessId",t);let n="/api/v1/kds/profiles",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsMarkOrderReady:async(t,e={})=>{c("kdsMarkOrderReady","id",t);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsRevertOrder:async(t,e={})=>{c("kdsRevertOrder","id",t);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},H=function(a){let t=Dt(a);return{async kdsGetOrders(e,n,s,r,o,i,l,u,d,f,x,R){let b=await t.kdsGetOrders(e,n,s,r,o,i,l,u,d,f,x,R);return h(b,P.default,p,a)},async kdsGetProfiles(e,n){let s=await t.kdsGetProfiles(e,n);return h(s,P.default,p,a)},async kdsMarkOrderReady(e,n){let s=await t.kdsMarkOrderReady(e,n);return h(s,P.default,p,a)},async kdsRevertOrder(e,n){let s=await t.kdsRevertOrder(e,n);return h(s,P.default,p,a)}}},gr=function(a,t,e){let n=H(a);return{kdsGetOrders(s,r,o,i,l,u,d,f,x,R,b,O){return n.kdsGetOrders(s,r,o,i,l,u,d,f,x,R,b,O).then(S=>S(e,t))},kdsGetProfiles(s,r){return n.kdsGetProfiles(s,r).then(o=>o(e,t))},kdsMarkOrderReady(s,r){return n.kdsMarkOrderReady(s,r).then(o=>o(e,t))},kdsRevertOrder(s,r){return n.kdsRevertOrder(s,r).then(o=>o(e,t))}}},Ie=class extends I{kdsGetOrders(t,e,n,s,r,o,i,l,u,d,f,x){return H(this.configuration).kdsGetOrders(t,e,n,s,r,o,i,l,u,d,f,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(t,e){return H(this.configuration).kdsGetProfiles(t,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(t,e){return H(this.configuration).kdsMarkOrderReady(t,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(t,e){return H(this.configuration).kdsRevertOrder(t,e).then(n=>n(this.axios,this.basePath))}},Ot=function(a){return{getOrderStatus:async(t,e,n={})=>{c("getOrderStatus","orderId",t),c("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,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}},validate:async(t,e,n={})=>{c("validate","terminalId",t),c("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.terminalId=t),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}}}},ue=function(a){let t=Ot(a);return{async getOrderStatus(e,n,s){let r=await t.getOrderStatus(e,n,s);return h(r,P.default,p,a)},async validate(e,n,s){let r=await t.validate(e,n,s);return h(r,P.default,p,a)}}},yr=function(a,t,e){let n=ue(a);return{getOrderStatus(s,r,o){return n.getOrderStatus(s,r,o).then(i=>i(e,t))},validate(s,r,o){return n.validate(s,r,o).then(i=>i(e,t))}}},Se=class extends I{getOrderStatus(t,e,n){return ue(this.configuration).getOrderStatus(t,e,n).then(s=>s(this.axios,this.basePath))}validate(t,e,n){return ue(this.configuration).validate(t,e,n).then(s=>s(this.axios,this.basePath))}},Vt=function(a){return{createLoyaltyUser:async(t,e,n={})=>{c("createLoyaltyUser","businessId",t),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let s="/api/v1/loyalty/users/create",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getAdminTransactions:async(t,e,n,s={})=>{c("getAdminTransactions","businessId",t);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};await D(u,a),t!==void 0&&(d.businessId=t),e!==void 0&&(d.page=e),n!==void 0&&(d.limit=n),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getLoyaltyInfo:async(t,e={})=>{c("getLoyaltyInfo","businessId",t);let n="/api/v1/loyalty/info",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getUserById:async(t,e,n={})=>{c("getUserById","businessId",t),c("getUserById","userId",e);let s="/api/v1/loyalty/users/info",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),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}},searchUser:async(t,e,n,s,r={})=>{c("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},f={};await D(d,a),e!==void 0&&(f.phone=e),n!==void 0&&(f.country_code=n),s!==void 0&&(f.email=s),t!==void 0&&(f.businessId=t),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(t,e,n={})=>{c("updatePoints","businessId",t),c("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},F=function(a){let t=Vt(a);return{async createLoyaltyUser(e,n,s){let r=await t.createLoyaltyUser(e,n,s);return h(r,P.default,p,a)},async getAdminTransactions(e,n,s,r){let o=await t.getAdminTransactions(e,n,s,r);return h(o,P.default,p,a)},async getLoyaltyInfo(e,n){let s=await t.getLoyaltyInfo(e,n);return h(s,P.default,p,a)},async getUserById(e,n,s){let r=await t.getUserById(e,n,s);return h(r,P.default,p,a)},async searchUser(e,n,s,r,o){let i=await t.searchUser(e,n,s,r,o);return h(i,P.default,p,a)},async updatePoints(e,n,s){let r=await t.updatePoints(e,n,s);return h(r,P.default,p,a)}}},hr=function(a,t,e){let n=F(a);return{createLoyaltyUser(s,r,o){return n.createLoyaltyUser(s,r,o).then(i=>i(e,t))},getAdminTransactions(s,r,o,i){return n.getAdminTransactions(s,r,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,r){return n.getLoyaltyInfo(s,r).then(o=>o(e,t))},getUserById(s,r,o){return n.getUserById(s,r,o).then(i=>i(e,t))},searchUser(s,r,o,i,l){return n.searchUser(s,r,o,i,l).then(u=>u(e,t))},updatePoints(s,r,o){return n.updatePoints(s,r,o).then(i=>i(e,t))}}},ve=class extends I{createLoyaltyUser(t,e,n){return F(this.configuration).createLoyaltyUser(t,e,n).then(s=>s(this.axios,this.basePath))}getAdminTransactions(t,e,n,s){return F(this.configuration).getAdminTransactions(t,e,n,s).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(t,e){return F(this.configuration).getLoyaltyInfo(t,e).then(n=>n(this.axios,this.basePath))}getUserById(t,e,n){return F(this.configuration).getUserById(t,e,n).then(s=>s(this.axios,this.basePath))}searchUser(t,e,n,s,r){return F(this.configuration).searchUser(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,n){return F(this.configuration).updatePoints(t,e,n).then(s=>s(this.axios,this.basePath))}},It=function(a){return{munchiLogin:async(t={})=>{let e="/api/v1/auth/login",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},st=function(a){let t=It(a);return{async munchiLogin(e){let n=await t.munchiLogin(e);return h(n,P.default,p,a)}}},Pr=function(a,t,e){let n=st(a);return{munchiLogin(s){return n.munchiLogin(s).then(r=>r(e,t))}}},Te=class extends I{munchiLogin(t){return st(this.configuration).munchiLogin(t).then(e=>e(this.axios,this.basePath))}},St=function(a){return{editBusinessProduct:async(t,e,n={})=>{c("editBusinessProduct","businessId",t),c("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(t,e,n={})=>{c("editBusinessProductV2","businessId",t),c("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(t,e={})=>{c("getBusinessExtras","businessId",t);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getProductsByCategoriesV2:async(t,e,n={})=>{c("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{c("resetProductEod","resetEodDto",t);let n="/api/v1/menu/availability/reset-eod",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},G=function(a){let t=St(a);return{async editBusinessProduct(e,n,s){let r=await t.editBusinessProduct(e,n,s);return h(r,P.default,p,a)},async editBusinessProductV2(e,n,s){let r=await t.editBusinessProductV2(e,n,s);return h(r,P.default,p,a)},async getBusinessExtras(e,n){let s=await t.getBusinessExtras(e,n);return h(s,P.default,p,a)},async getProductsByCategoriesV2(e,n,s){let r=await t.getProductsByCategoriesV2(e,n,s);return h(r,P.default,p,a)},async resetProductEod(e,n){let s=await t.resetProductEod(e,n);return h(s,P.default,p,a)}}},fr=function(a,t,e){let n=G(a);return{editBusinessProduct(s,r,o){return n.editBusinessProduct(s,r,o).then(i=>i(e,t))},editBusinessProductV2(s,r,o){return n.editBusinessProductV2(s,r,o).then(i=>i(e,t))},getBusinessExtras(s,r){return n.getBusinessExtras(s,r).then(o=>o(e,t))},getProductsByCategoriesV2(s,r,o){return n.getProductsByCategoriesV2(s,r,o).then(i=>i(e,t))},resetProductEod(s,r){return n.resetProductEod(s,r).then(o=>o(e,t))}}},Ee=class extends I{editBusinessProduct(t,e,n){return G(this.configuration).editBusinessProduct(t,e,n).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,n){return G(this.configuration).editBusinessProductV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return G(this.configuration).getBusinessExtras(t,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,n){return G(this.configuration).getProductsByCategoriesV2(t,e,n).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return G(this.configuration).resetProductEod(t,e).then(n=>n(this.axios,this.basePath))}},vt=function(a){return{addBusinessesToMerchant:async(t,e,n={})=>{c("addBusinessesToMerchant","merchantId",t),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let s="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(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=A(e,i,a),{url:y(r),options:i}},createMerchant:async(t,e={})=>{c("createMerchant","createMerchantDto",t);let n="/api/v1/merchants",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeBusinessFromMerchant:async(t,e,n={})=>{c("removeBusinessFromMerchant","merchantId",t),c("removeBusinessFromMerchant","businessId",e);let s="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...n.headers},{url:y(r),options:i}}}},ee=function(a){let t=vt(a);return{async addBusinessesToMerchant(e,n,s){let r=await t.addBusinessesToMerchant(e,n,s);return h(r,P.default,p,a)},async createMerchant(e,n){let s=await t.createMerchant(e,n);return h(s,P.default,p,a)},async removeBusinessFromMerchant(e,n,s){let r=await t.removeBusinessFromMerchant(e,n,s);return h(r,P.default,p,a)}}},Ar=function(a,t,e){let n=ee(a);return{addBusinessesToMerchant(s,r,o){return n.addBusinessesToMerchant(s,r,o).then(i=>i(e,t))},createMerchant(s,r){return n.createMerchant(s,r).then(o=>o(e,t))},removeBusinessFromMerchant(s,r,o){return n.removeBusinessFromMerchant(s,r,o).then(i=>i(e,t))}}},Ue=class extends I{addBusinessesToMerchant(t,e,n){return ee(this.configuration).addBusinessesToMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}createMerchant(t,e){return ee(this.configuration).createMerchant(t,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(t,e,n){return ee(this.configuration).removeBusinessFromMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}},Tt=function(a){return{createMunchiGiftCard:async(t,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",t);let n="/api/v1/munchi-giftcard/create",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getMunchiGiftCardData:async(t,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",t);let n="/api/v1/munchi-giftcard/data",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},redeemMunchiGiftCard:async(t,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",t);let n="/api/v1/munchi-giftcard/redeem",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateMunchiGiftCard:async(t,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",t);let n="/api/v1/munchi-giftcard/validate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},Q=function(a){let t=Tt(a);return{async createMunchiGiftCard(e,n){let s=await t.createMunchiGiftCard(e,n);return h(s,P.default,p,a)},async getMunchiGiftCardData(e,n){let s=await t.getMunchiGiftCardData(e,n);return h(s,P.default,p,a)},async redeemMunchiGiftCard(e,n){let s=await t.redeemMunchiGiftCard(e,n);return h(s,P.default,p,a)},async validateMunchiGiftCard(e,n){let s=await t.validateMunchiGiftCard(e,n);return h(s,P.default,p,a)}}},xr=function(a,t,e){let n=Q(a);return{createMunchiGiftCard(s,r){return n.createMunchiGiftCard(s,r).then(o=>o(e,t))},getMunchiGiftCardData(s,r){return n.getMunchiGiftCardData(s,r).then(o=>o(e,t))},redeemMunchiGiftCard(s,r){return n.redeemMunchiGiftCard(s,r).then(o=>o(e,t))},validateMunchiGiftCard(s,r){return n.validateMunchiGiftCard(s,r).then(o=>o(e,t))}}},qe=class extends I{createMunchiGiftCard(t,e){return Q(this.configuration).createMunchiGiftCard(t,e).then(n=>n(this.axios,this.basePath))}getMunchiGiftCardData(t,e){return Q(this.configuration).getMunchiGiftCardData(t,e).then(n=>n(this.axios,this.basePath))}redeemMunchiGiftCard(t,e){return Q(this.configuration).redeemMunchiGiftCard(t,e).then(n=>n(this.axios,this.basePath))}validateMunchiGiftCard(t,e){return Q(this.configuration).validateMunchiGiftCard(t,e).then(n=>n(this.axios,this.basePath))}},Et=function(a){return{addVenueSubscriptionsV2:async(t,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/add-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/remove-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},ce=function(a){let t=Et(a);return{async addVenueSubscriptionsV2(e,n){let s=await t.addVenueSubscriptionsV2(e,n);return h(s,P.default,p,a)},async removeVenueSubscriptionsV2(e,n){let s=await t.removeVenueSubscriptionsV2(e,n);return h(s,P.default,p,a)}}},Rr=function(a,t,e){let n=ce(a);return{addVenueSubscriptionsV2(s,r){return n.addVenueSubscriptionsV2(s,r).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,r){return n.removeVenueSubscriptionsV2(s,r).then(o=>o(e,t))}}},Be=class extends I{addVenueSubscriptionsV2(t,e){return ce(this.configuration).addVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return ce(this.configuration).removeVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}},Ut=function(a){return{findOneByExternalId:async(t,e={})=>{c("findOneByExternalId","externalId",t);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},nt=function(a){let t=Ut(a);return{async findOneByExternalId(e,n){let s=await t.findOneByExternalId(e,n);return h(s,P.default,p,a)}}},br=function(a,t,e){let n=nt(a);return{findOneByExternalId(s,r){return n.findOneByExternalId(s,r).then(o=>o(e,t))}}},Me=class extends I{findOneByExternalId(t,e){return nt(this.configuration).findOneByExternalId(t,e).then(n=>n(this.axios,this.basePath))}},qt=function(a){return{updateTaxRate:async(t,e={})=>{c("updateTaxRate","body",t);let n="/api/v1/ordering/update-tax-rate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},rt=function(a){let t=qt(a);return{async updateTaxRate(e,n){let s=await t.updateTaxRate(e,n);return h(s,P.default,p,a)}}},Cr=function(a,t,e){let n=rt(a);return{updateTaxRate(s,r){return n.updateTaxRate(s,r).then(o=>o(e,t))}}},ke=class extends I{updateTaxRate(t,e){return rt(this.configuration).updateTaxRate(t,e).then(n=>n(this.axios,this.basePath))}},Bt=function(a){return{acceptOrder:async(t,e={})=>{c("acceptOrder","acceptOrderDto",t);let n="/api/v1/orders/accept",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},confirmPreOrder:async(t,e={})=>{c("confirmPreOrder","confirmPreorderDto",t);let n="/api/v1/orders/confirm/preOrder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deliverOrder:async(t,e={})=>{c("deliverOrder","deliveredOrderDto",t);let n="/api/v1/orders/delivered",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getAllOrdersV2:async(t,e={})=>{c("getAllOrdersV2","businessIds",t);let n="/api/v2/orders",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getOrdersV2:async(t,e,n,s,r={})=>{c("getOrdersV2","status",t),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},f={};e!==void 0&&(f.businessIds=e),n!==void 0&&(f.posBusinessId=n),s!==void 0&&(f.extraProvider=s),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{c("getParkedPosOrderV2","businessId",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},markOrderAsReady:async(t,e={})=>{c("markOrderAsReady","readyOrderDto",t);let n="/api/v1/orders/ready",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},placePosOrderV4:async(t,e={})=>{c("placePosOrderV4","posOrderPayloadDto",t);let n="/api/v4/orders/pos/place",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processPosOrderActions:async(t,e={})=>{c("processPosOrderActions","processOrderActionsDto",t);let n="/api/v4/orders/pos/actions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},rejectOrder:async(t,e={})=>{c("rejectOrder","rejectOrderDto",t);let n="/api/v1/orders/reject",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updatePosOrderV2:async(t,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",t);let n="/api/v2/orders/pos/update",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},B=function(a){let t=Bt(a);return{async acceptOrder(e,n){let s=await t.acceptOrder(e,n);return h(s,P.default,p,a)},async confirmPreOrder(e,n){let s=await t.confirmPreOrder(e,n);return h(s,P.default,p,a)},async deletePosParkedOrderV2(e,n){let s=await t.deletePosParkedOrderV2(e,n);return h(s,P.default,p,a)},async deliverOrder(e,n){let s=await t.deliverOrder(e,n);return h(s,P.default,p,a)},async getAllOrdersV2(e,n){let s=await t.getAllOrdersV2(e,n);return h(s,P.default,p,a)},async getOrdersV2(e,n,s,r,o){let i=await t.getOrdersV2(e,n,s,r,o);return h(i,P.default,p,a)},async getParkedPosOrderV2(e,n){let s=await t.getParkedPosOrderV2(e,n);return h(s,P.default,p,a)},async markOrderAsReady(e,n){let s=await t.markOrderAsReady(e,n);return h(s,P.default,p,a)},async placePosOrderV4(e,n){let s=await t.placePosOrderV4(e,n);return h(s,P.default,p,a)},async processPosOrderActions(e,n){let s=await t.processPosOrderActions(e,n);return h(s,P.default,p,a)},async rejectOrder(e,n){let s=await t.rejectOrder(e,n);return h(s,P.default,p,a)},async updatePosOrderV2(e,n){let s=await t.updatePosOrderV2(e,n);return h(s,P.default,p,a)}}},Dr=function(a,t,e){let n=B(a);return{acceptOrder(s,r){return n.acceptOrder(s,r).then(o=>o(e,t))},confirmPreOrder(s,r){return n.confirmPreOrder(s,r).then(o=>o(e,t))},deletePosParkedOrderV2(s,r){return n.deletePosParkedOrderV2(s,r).then(o=>o(e,t))},deliverOrder(s,r){return n.deliverOrder(s,r).then(o=>o(e,t))},getAllOrdersV2(s,r){return n.getAllOrdersV2(s,r).then(o=>o(e,t))},getOrdersV2(s,r,o,i,l){return n.getOrdersV2(s,r,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,r){return n.getParkedPosOrderV2(s,r).then(o=>o(e,t))},markOrderAsReady(s,r){return n.markOrderAsReady(s,r).then(o=>o(e,t))},placePosOrderV4(s,r){return n.placePosOrderV4(s,r).then(o=>o(e,t))},processPosOrderActions(s,r){return n.processPosOrderActions(s,r).then(o=>o(e,t))},rejectOrder(s,r){return n.rejectOrder(s,r).then(o=>o(e,t))},updatePosOrderV2(s,r){return n.updatePosOrderV2(s,r).then(o=>o(e,t))}}},_e=class extends I{acceptOrder(t,e){return B(this.configuration).acceptOrder(t,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(t,e){return B(this.configuration).confirmPreOrder(t,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return B(this.configuration).deletePosParkedOrderV2(t,e).then(n=>n(this.axios,this.basePath))}deliverOrder(t,e){return B(this.configuration).deliverOrder(t,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(t,e){return B(this.configuration).getAllOrdersV2(t,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(t,e,n,s,r){return B(this.configuration).getOrdersV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return B(this.configuration).getParkedPosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(t,e){return B(this.configuration).markOrderAsReady(t,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(t,e){return B(this.configuration).placePosOrderV4(t,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(t,e){return B(this.configuration).processPosOrderActions(t,e).then(n=>n(this.axios,this.basePath))}rejectOrder(t,e){return B(this.configuration).rejectOrder(t,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(t,e){return B(this.configuration).updatePosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}},Mt=function(a){return{getPosSession:async(t,e={})=>{c("getPosSession","businessId",t);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getPosSessionV2:async(t,e={})=>{c("getPosSessionV2","businessId",t);let n="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},de=function(a){let t=Mt(a);return{async getPosSession(e,n){let s=await t.getPosSession(e,n);return h(s,P.default,p,a)},async getPosSessionV2(e,n){let s=await t.getPosSessionV2(e,n);return h(s,P.default,p,a)}}},Or=function(a,t,e){let n=de(a);return{getPosSession(s,r){return n.getPosSession(s,r).then(o=>o(e,t))},getPosSessionV2(s,r){return n.getPosSessionV2(s,r).then(o=>o(e,t))}}},we=class extends I{getPosSession(t,e){return de(this.configuration).getPosSession(t,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(t,e){return de(this.configuration).getPosSessionV2(t,e).then(n=>n(this.axios,this.basePath))}},kt=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let n="/api/v3/payment/nets/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let n="/api/v2/payment/viva/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{c("createNetsRefundTransaction","createRefundDto",t);let n="/api/v4/payment/nets/refund/transaction",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentReference:async(t,e={})=>{c("getPaymentReference","getPaymentReferenceDto",t);let n="/api/v1/payment/reference",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentStatus:async(t,e={})=>{c("getPaymentStatus","getPaymentStatusDto",t);let n="/api/v1/payment/status",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let n="/api/v3/payment/nets/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",t);let n="/api/v4/payment/viva/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{c("processOnlineOrderRefund","orderResponseDto",t);let n="/api/v1/payment/online-orders/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundCashPaymentV3:async(t,e={})=>{c("refundCashPaymentV3","cashRefundPayload",t);let n="/api/v3/payment/cash/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundManualPaymentV3:async(t,e={})=>{c("refundManualPaymentV3","manualRefundPayload",t);let n="/api/v3/payment/manual/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{c("refundNetsTransactionV3","refundPayloadDtoV4",t);let n="/api/v3/payment/nets/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{c("refundSingleVivaTransaction","createRefundDto",t);let n="/api/v4/payment/viva/refund/single",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{c("refundVivaTransactionV3","refundPayloadDto",t);let n="/api/v3/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{c("refundVivaTransactionV4","refundPayloadDtoV4",t);let n="/api/v4/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},q=function(a){let t=kt(a);return{async cancelNetsTerminalTransaction(e,n){let s=await t.cancelNetsTerminalTransaction(e,n);return h(s,P.default,p,a)},async cancelVivaTransactionV2(e,n){let s=await t.cancelVivaTransactionV2(e,n);return h(s,P.default,p,a)},async createNetsRefundTransaction(e,n){let s=await t.createNetsRefundTransaction(e,n);return h(s,P.default,p,a)},async getPaymentReference(e,n){let s=await t.getPaymentReference(e,n);return h(s,P.default,p,a)},async getPaymentStatus(e,n){let s=await t.getPaymentStatus(e,n);return h(s,P.default,p,a)},async initiateNetsTerminalTransaction(e,n){let s=await t.initiateNetsTerminalTransaction(e,n);return h(s,P.default,p,a)},async initiateTerminalTransaction(e,n){let s=await t.initiateTerminalTransaction(e,n);return h(s,P.default,p,a)},async processOnlineOrderRefund(e,n){let s=await t.processOnlineOrderRefund(e,n);return h(s,P.default,p,a)},async refundCashPaymentV3(e,n){let s=await t.refundCashPaymentV3(e,n);return h(s,P.default,p,a)},async refundManualPaymentV3(e,n){let s=await t.refundManualPaymentV3(e,n);return h(s,P.default,p,a)},async refundNetsTransactionV3(e,n){let s=await t.refundNetsTransactionV3(e,n);return h(s,P.default,p,a)},async refundSingleVivaTransaction(e,n){let s=await t.refundSingleVivaTransaction(e,n);return h(s,P.default,p,a)},async refundVivaTransactionV3(e,n){let s=await t.refundVivaTransactionV3(e,n);return h(s,P.default,p,a)},async refundVivaTransactionV4(e,n){let s=await t.refundVivaTransactionV4(e,n);return h(s,P.default,p,a)}}},Vr=function(a,t,e){let n=q(a);return{cancelNetsTerminalTransaction(s,r){return n.cancelNetsTerminalTransaction(s,r).then(o=>o(e,t))},cancelVivaTransactionV2(s,r){return n.cancelVivaTransactionV2(s,r).then(o=>o(e,t))},createNetsRefundTransaction(s,r){return n.createNetsRefundTransaction(s,r).then(o=>o(e,t))},getPaymentReference(s,r){return n.getPaymentReference(s,r).then(o=>o(e,t))},getPaymentStatus(s,r){return n.getPaymentStatus(s,r).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,r){return n.initiateNetsTerminalTransaction(s,r).then(o=>o(e,t))},initiateTerminalTransaction(s,r){return n.initiateTerminalTransaction(s,r).then(o=>o(e,t))},processOnlineOrderRefund(s,r){return n.processOnlineOrderRefund(s,r).then(o=>o(e,t))},refundCashPaymentV3(s,r){return n.refundCashPaymentV3(s,r).then(o=>o(e,t))},refundManualPaymentV3(s,r){return n.refundManualPaymentV3(s,r).then(o=>o(e,t))},refundNetsTransactionV3(s,r){return n.refundNetsTransactionV3(s,r).then(o=>o(e,t))},refundSingleVivaTransaction(s,r){return n.refundSingleVivaTransaction(s,r).then(o=>o(e,t))},refundVivaTransactionV3(s,r){return n.refundVivaTransactionV3(s,r).then(o=>o(e,t))},refundVivaTransactionV4(s,r){return n.refundVivaTransactionV4(s,r).then(o=>o(e,t))}}},Ne=class extends I{cancelNetsTerminalTransaction(t,e){return q(this.configuration).cancelNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return q(this.configuration).cancelVivaTransactionV2(t,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return q(this.configuration).createNetsRefundTransaction(t,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(t,e){return q(this.configuration).getPaymentReference(t,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(t,e){return q(this.configuration).getPaymentStatus(t,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return q(this.configuration).initiateNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return q(this.configuration).initiateTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return q(this.configuration).processOnlineOrderRefund(t,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(t,e){return q(this.configuration).refundCashPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(t,e){return q(this.configuration).refundManualPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return q(this.configuration).refundNetsTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return q(this.configuration).refundSingleVivaTransaction(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return q(this.configuration).refundVivaTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return q(this.configuration).refundVivaTransactionV4(t,e).then(n=>n(this.axios,this.basePath))}},_t=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},pe=function(a){let t=_t(a);return{async loadConfigFile(e){let n=await t.loadConfigFile(e);return h(n,P.default,p,a)},async upsertBusiness(e){let n=await t.upsertBusiness(e);return h(n,P.default,p,a)}}},Ir=function(a,t,e){let n=pe(a);return{loadConfigFile(s){return n.loadConfigFile(s).then(r=>r(e,t))},upsertBusiness(s){return n.upsertBusiness(s).then(r=>r(e,t))}}},Le=class extends I{loadConfigFile(t){return pe(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return pe(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},wt=function(a){return{updateChannelInventoryV2:async(t,e,n,s,r={})=>{c("updateChannelInventoryV2","businessId",t),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",n),c("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).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={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=A(s,u,a),{url:y(i),options:u}}}},ot=function(a){let t=wt(a);return{async updateChannelInventoryV2(e,n,s,r,o){let i=await t.updateChannelInventoryV2(e,n,s,r,o);return h(i,P.default,p,a)}}},Sr=function(a,t,e){let n=ot(a);return{updateChannelInventoryV2(s,r,o,i,l){return n.updateChannelInventoryV2(s,r,o,i,l).then(u=>u(e,t))}}},Fe=class extends I{updateChannelInventoryV2(t,e,n,s,r){return ot(this.configuration).updateChannelInventoryV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}},Nt=function(a){return{getSupportedChannels:async(t,e={})=>{c("getSupportedChannels","businessId",t);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},registerCredential:async(t,e={})=>{c("registerCredential","body",t);let n="/api/v1/provider/credentials",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},registerProvider:async(t,e={})=>{c("registerProvider","body",t);let n="/api/v1/provider",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},te=function(a){let t=Nt(a);return{async getSupportedChannels(e,n){let s=await t.getSupportedChannels(e,n);return h(s,P.default,p,a)},async registerCredential(e,n){let s=await t.registerCredential(e,n);return h(s,P.default,p,a)},async registerProvider(e,n){let s=await t.registerProvider(e,n);return h(s,P.default,p,a)}}},vr=function(a,t,e){let n=te(a);return{getSupportedChannels(s,r){return n.getSupportedChannels(s,r).then(o=>o(e,t))},registerCredential(s,r){return n.registerCredential(s,r).then(o=>o(e,t))},registerProvider(s,r){return n.registerProvider(s,r).then(o=>o(e,t))}}},je=class extends I{getSupportedChannels(t,e){return te(this.configuration).getSupportedChannels(t,e).then(n=>n(this.axios,this.basePath))}registerCredential(t,e){return te(this.configuration).registerCredential(t,e).then(n=>n(this.axios,this.basePath))}registerProvider(t,e){return te(this.configuration).registerProvider(t,e).then(n=>n(this.axios,this.basePath))}},Lt=function(a){return{cancelPlan:async(t,e,n,s={})=>{c("cancelPlan","businessId",t),c("cancelPlan","orderId",e),c("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},createRefundPlan:async(t,e,n,s={})=>{c("createRefundPlan","businessId",t),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},getRefundPlan:async(t,e,n,s={})=>{c("getRefundPlan","businessId",t),c("getRefundPlan","orderId",e),c("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};n!==void 0&&(d.status=n),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},recordRefundPlan:async(t,e,n,s,r={})=>{c("recordRefundPlan","businessId",t),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",n),c("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).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={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=A(s,u,a),{url:y(i),options:u}},refundOnlineOrder:async(t,e,n,s={})=>{c("refundOnlineOrder","businessId",t),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};n!==void 0&&(d.provider=n),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},resolveRefundChoice:async(t,e,n,s,r={})=>{c("resolveRefundChoice","businessId",t),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",n),c("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).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={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},u.data=A(s,u,a),{url:y(i),options:u}},startProcessPlan:async(t,e,n,s={})=>{c("startProcessPlan","businessId",t),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},_=function(a){let t=Lt(a);return{async cancelPlan(e,n,s,r){let o=await t.cancelPlan(e,n,s,r);return h(o,P.default,p,a)},async createRefundPlan(e,n,s,r){let o=await t.createRefundPlan(e,n,s,r);return h(o,P.default,p,a)},async getRefundPlan(e,n,s,r){let o=await t.getRefundPlan(e,n,s,r);return h(o,P.default,p,a)},async recordRefundPlan(e,n,s,r,o){let i=await t.recordRefundPlan(e,n,s,r,o);return h(i,P.default,p,a)},async refundOnlineOrder(e,n,s,r){let o=await t.refundOnlineOrder(e,n,s,r);return h(o,P.default,p,a)},async resolveRefundChoice(e,n,s,r,o){let i=await t.resolveRefundChoice(e,n,s,r,o);return h(i,P.default,p,a)},async startProcessPlan(e,n,s,r){let o=await t.startProcessPlan(e,n,s,r);return h(o,P.default,p,a)}}},Tr=function(a,t,e){let n=_(a);return{cancelPlan(s,r,o,i){return n.cancelPlan(s,r,o,i).then(l=>l(e,t))},createRefundPlan(s,r,o,i){return n.createRefundPlan(s,r,o,i).then(l=>l(e,t))},getRefundPlan(s,r,o,i){return n.getRefundPlan(s,r,o,i).then(l=>l(e,t))},recordRefundPlan(s,r,o,i,l){return n.recordRefundPlan(s,r,o,i,l).then(u=>u(e,t))},refundOnlineOrder(s,r,o,i){return n.refundOnlineOrder(s,r,o,i).then(l=>l(e,t))},resolveRefundChoice(s,r,o,i,l){return n.resolveRefundChoice(s,r,o,i,l).then(u=>u(e,t))},startProcessPlan(s,r,o,i){return n.startProcessPlan(s,r,o,i).then(l=>l(e,t))}}},We=class extends I{cancelPlan(t,e,n,s){return _(this.configuration).cancelPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}createRefundPlan(t,e,n,s){return _(this.configuration).createRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}getRefundPlan(t,e,n,s){return _(this.configuration).getRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}recordRefundPlan(t,e,n,s,r){return _(this.configuration).recordRefundPlan(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(t,e,n,s){return _(this.configuration).refundOnlineOrder(t,e,n,s).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(t,e,n,s,r){return _(this.configuration).resolveRefundChoice(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,n,s){return _(this.configuration).startProcessPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Ft=function(a){return{getEndOfDayReportV5:async(t,e,n,s,r,o,i={})=>{c("getEndOfDayReportV5","businessIds",t);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),s!==void 0&&(R.end=s),t&&(R.businessIds=t),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let b=d&&d.headers?d.headers:{};return f.headers={...x,...b,...i.headers},{url:y(u),options:f}},getPOSEndOfDayReportV4:async(t,e,n,s,r,o={})=>{c("getPOSEndOfDayReportV4","businessIds",t);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},f={},x={};e!==void 0&&(x.timeSpan=e),n!==void 0&&(x.start=n),s!==void 0&&(x.end=s),t&&(x.businessIds=t),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...f,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(t,e,n,s,r,o,i={})=>{c("sendReportEmailV4","businessIds",t),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 f={method:"POST",...d,...i},x={},R={};s!==void 0&&(R.timeSpan=s),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),t&&(R.businessIds=t),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let b=d&&d.headers?d.headers:{};return f.headers={...x,...b,...i.headers},f.data=A(n,f,a),{url:y(u),options:f}},sendReportEmailV5:async(t,e,n,s,r,o,i,l={})=>{c("sendReportEmailV5","businessIds",t),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",n);let u="/api/v5/report/email",d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"POST",...f,...l},R={},b={};s!==void 0&&(b.timeSpan=s),r!==void 0&&(b.start=r),o!==void 0&&(b.end=o),t&&(b.businessIds=t),e!==void 0&&(b.timezone=e),i!==void 0&&(b.provider=i),R["Content-Type"]="application/json",g(d,b);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},x.data=A(n,x,a),{url:y(d),options:x}}}},$=function(a){let t=Ft(a);return{async getEndOfDayReportV5(e,n,s,r,o,i,l){let u=await t.getEndOfDayReportV5(e,n,s,r,o,i,l);return h(u,P.default,p,a)},async getPOSEndOfDayReportV4(e,n,s,r,o,i){let l=await t.getPOSEndOfDayReportV4(e,n,s,r,o,i);return h(l,P.default,p,a)},async sendReportEmailV4(e,n,s,r,o,i,l){let u=await t.sendReportEmailV4(e,n,s,r,o,i,l);return h(u,P.default,p,a)},async sendReportEmailV5(e,n,s,r,o,i,l,u){let d=await t.sendReportEmailV5(e,n,s,r,o,i,l,u);return h(d,P.default,p,a)}}},Er=function(a,t,e){let n=$(a);return{getEndOfDayReportV5(s,r,o,i,l,u,d){return n.getEndOfDayReportV5(s,r,o,i,l,u,d).then(f=>f(e,t))},getPOSEndOfDayReportV4(s,r,o,i,l,u){return n.getPOSEndOfDayReportV4(s,r,o,i,l,u).then(d=>d(e,t))},sendReportEmailV4(s,r,o,i,l,u,d){return n.sendReportEmailV4(s,r,o,i,l,u,d).then(f=>f(e,t))},sendReportEmailV5(s,r,o,i,l,u,d,f){return n.sendReportEmailV5(s,r,o,i,l,u,d,f).then(x=>x(e,t))}}},Ge=class extends I{getEndOfDayReportV5(t,e,n,s,r,o,i){return $(this.configuration).getEndOfDayReportV5(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,n,s,r,o){return $(this.configuration).getPOSEndOfDayReportV4(t,e,n,s,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,n,s,r,o,i){return $(this.configuration).sendReportEmailV4(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,n,s,r,o,i,l){return $(this.configuration).sendReportEmailV5(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}},jt=function(a){return{clockIn:async(t,e,n={})=>{c("clockIn","businessId",t),c("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},clockOut:async(t,e,n={})=>{c("clockOut","businessId",t),c("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},getTodayShift:async(t,e,n={})=>{c("getTodayShift","businessId",t),c("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{c("unlock","businessId",t),c("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}}}},z=function(a){let t=jt(a);return{async clockIn(e,n,s){let r=await t.clockIn(e,n,s);return h(r,P.default,p,a)},async clockOut(e,n,s){let r=await t.clockOut(e,n,s);return h(r,P.default,p,a)},async getTodayShift(e,n,s){let r=await t.getTodayShift(e,n,s);return h(r,P.default,p,a)},async unlock(e,n,s){let r=await t.unlock(e,n,s);return h(r,P.default,p,a)}}},Ur=function(a,t,e){let n=z(a);return{clockIn(s,r,o){return n.clockIn(s,r,o).then(i=>i(e,t))},clockOut(s,r,o){return n.clockOut(s,r,o).then(i=>i(e,t))},getTodayShift(s,r,o){return n.getTodayShift(s,r,o).then(i=>i(e,t))},unlock(s,r,o){return n.unlock(s,r,o).then(i=>i(e,t))}}},Ke=class extends I{clockIn(t,e,n){return z(this.configuration).clockIn(t,e,n).then(s=>s(this.axios,this.basePath))}clockOut(t,e,n){return z(this.configuration).clockOut(t,e,n).then(s=>s(this.axios,this.basePath))}getTodayShift(t,e,n){return z(this.configuration).getTodayShift(t,e,n).then(s=>s(this.axios,this.basePath))}unlock(t,e,n){return z(this.configuration).unlock(t,e,n).then(s=>s(this.axios,this.basePath))}},Wt=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getStation:async(t={})=>{let e="/api/v1/station",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},syncStation:async(t,e={})=>{c("syncStation","syncStationDto",t);let n="/api/v1/station/sync",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},se=function(a){let t=Wt(a);return{async deactivateStation(e){let n=await t.deactivateStation(e);return h(n,P.default,p,a)},async getStation(e){let n=await t.getStation(e);return h(n,P.default,p,a)},async syncStation(e,n){let s=await t.syncStation(e,n);return h(s,P.default,p,a)}}},qr=function(a,t,e){let n=se(a);return{deactivateStation(s){return n.deactivateStation(s).then(r=>r(e,t))},getStation(s){return n.getStation(s).then(r=>r(e,t))},syncStation(s,r){return n.syncStation(s,r).then(o=>o(e,t))}}},He=class extends I{deactivateStation(t){return se(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return se(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return se(this.configuration).syncStation(t,e).then(n=>n(this.axios,this.basePath))}},Gt=function(a){return{connectTerminal:async(t,e={})=>{c("connectTerminal","connectTerminalDto",t);let n="/api/v1/terminal/connect",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},discoverTerminal:async(t,e={})=>{c("discoverTerminal","discoverTerminalDto",t);let n="/api/v1/terminal/discover",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getTerminalStatus:async(t,e,n,s={})=>{c("getTerminalStatus","businessId",t),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},d={};e!==void 0&&(d.provider=e),n!==void 0&&(d.terminalId=n),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},Y=function(a){let t=Gt(a);return{async connectTerminal(e,n){let s=await t.connectTerminal(e,n);return h(s,P.default,p,a)},async disconnectTerminal(e){let n=await t.disconnectTerminal(e);return h(n,P.default,p,a)},async discoverTerminal(e,n){let s=await t.discoverTerminal(e,n);return h(s,P.default,p,a)},async getTerminalStatus(e,n,s,r){let o=await t.getTerminalStatus(e,n,s,r);return h(o,P.default,p,a)}}},Br=function(a,t,e){let n=Y(a);return{connectTerminal(s,r){return n.connectTerminal(s,r).then(o=>o(e,t))},disconnectTerminal(s){return n.disconnectTerminal(s).then(r=>r(e,t))},discoverTerminal(s,r){return n.discoverTerminal(s,r).then(o=>o(e,t))},getTerminalStatus(s,r,o,i){return n.getTerminalStatus(s,r,o,i).then(l=>l(e,t))}}},Qe=class extends I{connectTerminal(t,e){return Y(this.configuration).connectTerminal(t,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(t){return Y(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return Y(this.configuration).discoverTerminal(t,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(t,e,n,s){return Y(this.configuration).getTerminalStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Kt=function(a){return{getUserBusinessV1:async(t={})=>{let e="/api/v1/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserBusinessV2:async(t={})=>{let e="/api/v2/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserInfoV1:async(t={})=>{let e="/api/v1/user",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ne=function(a){let t=Kt(a);return{async getUserBusinessV1(e){let n=await t.getUserBusinessV1(e);return h(n,P.default,p,a)},async getUserBusinessV2(e){let n=await t.getUserBusinessV2(e);return h(n,P.default,p,a)},async getUserInfoV1(e){let n=await t.getUserInfoV1(e);return h(n,P.default,p,a)}}},Mr=function(a,t,e){let n=ne(a);return{getUserBusinessV1(s){return n.getUserBusinessV1(s).then(r=>r(e,t))},getUserBusinessV2(s){return n.getUserBusinessV2(s).then(r=>r(e,t))},getUserInfoV1(s){return n.getUserInfoV1(s).then(r=>r(e,t))}}},$e=class extends I{getUserBusinessV1(t){return ne(this.configuration).getUserBusinessV1(t).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(t){return ne(this.configuration).getUserBusinessV2(t).then(e=>e(this.axios,this.basePath))}getUserInfoV1(t){return ne(this.configuration).getUserInfoV1(t).then(e=>e(this.axios,this.basePath))}},Ht=function(a){return{getUser:async(t,e={})=>{c("getUser","userValidation",t);let n="/api/v1/users",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updateUserRewardPoints:async(t,e,n,s={})=>{c("updateUserRewardPoints","userId",t),c("updateUserRewardPoints","walletId",e),c("updateUserRewardPoints","rewardPointPayload",n);let r="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},d={};await D(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},me=function(a){let t=Ht(a);return{async getUser(e,n){let s=await t.getUser(e,n);return h(s,P.default,p,a)},async updateUserRewardPoints(e,n,s,r){let o=await t.updateUserRewardPoints(e,n,s,r);return h(o,P.default,p,a)}}},kr=function(a,t,e){let n=me(a);return{getUser(s,r){return n.getUser(s,r).then(o=>o(e,t))},updateUserRewardPoints(s,r,o,i){return n.updateUserRewardPoints(s,r,o,i).then(l=>l(e,t))}}},ze=class extends I{getUser(t,e){return me(this.configuration).getUser(t,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(t,e,n,s){return me(this.configuration).updateUserRewardPoints(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Qt=function(a){return{createVivaAppToAppPayment:async(t,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",t);let n="/api/v1/viva/a2a/create-payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},at=function(a){let t=Qt(a);return{async createVivaAppToAppPayment(e,n){let s=await t.createVivaAppToAppPayment(e,n);return h(s,P.default,p,a)}}},_r=function(a,t,e){let n=at(a);return{createVivaAppToAppPayment(s,r){return n.createVivaAppToAppPayment(s,r).then(o=>o(e,t))}}},Ye=class extends I{createVivaAppToAppPayment(t,e){return at(this.configuration).createVivaAppToAppPayment(t,e).then(n=>n(this.axios,this.basePath))}},$t=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleFoodoraEvent:async(t,e={})=>{c("handleFoodoraEvent","orderUpdateDto",t);let n="/api/webhook/order/event",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handlePreorderReminder:async(t,e={})=>{c("handlePreorderReminder","preOrderReminderDto",t);let n="/api/webhook/preorder-reminder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleVivaEvents:async(t,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",t);let n="/api/webhook/viva/verification",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(t,e={})=>{c("handleWoltDriveEventByCountry","country",t);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleWorldlineEvents:async(t={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},U=function(a){let t=$t(a);return{async handleAssignmentWebhook(e){let n=await t.handleAssignmentWebhook(e);return h(n,P.default,p,a)},async handleBusinessWebhook(e){let n=await t.handleBusinessWebhook(e);return h(n,P.default,p,a)},async handleFoodoraEvent(e,n){let s=await t.handleFoodoraEvent(e,n);return h(s,P.default,p,a)},async handleLoadEmployee(e){let n=await t.handleLoadEmployee(e);return h(n,P.default,p,a)},async handleNetsEvents(e){let n=await t.handleNetsEvents(e);return h(n,P.default,p,a)},async handleNetsEventsV2(e){let n=await t.handleNetsEventsV2(e);return h(n,P.default,p,a)},async handleNetsRefundEvents(e){let n=await t.handleNetsRefundEvents(e);return h(n,P.default,p,a)},async handlePreorderReminder(e,n){let s=await t.handlePreorderReminder(e,n);return h(s,P.default,p,a)},async handleRoleWebhook(e){let n=await t.handleRoleWebhook(e);return h(n,P.default,p,a)},async handleShiftWebhook(e){let n=await t.handleShiftWebhook(e);return h(n,P.default,p,a)},async handleVivaEvents(e,n){let s=await t.handleVivaEvents(e,n);return h(s,P.default,p,a)},async handleWebhook(e){let n=await t.handleWebhook(e);return h(n,P.default,p,a)},async handleWoltDriveEvent(e){let n=await t.handleWoltDriveEvent(e);return h(n,P.default,p,a)},async handleWoltDriveEventByCountry(e,n){let s=await t.handleWoltDriveEventByCountry(e,n);return h(s,P.default,p,a)},async handleWorldlineEvents(e){let n=await t.handleWorldlineEvents(e);return h(n,P.default,p,a)},async updateWoltProduct(e){let n=await t.updateWoltProduct(e);return h(n,P.default,p,a)},async verifyVivaWebhook(e){let n=await t.verifyVivaWebhook(e);return h(n,P.default,p,a)}}},wr=function(a,t,e){let n=U(a);return{handleAssignmentWebhook(s){return n.handleAssignmentWebhook(s).then(r=>r(e,t))},handleBusinessWebhook(s){return n.handleBusinessWebhook(s).then(r=>r(e,t))},handleFoodoraEvent(s,r){return n.handleFoodoraEvent(s,r).then(o=>o(e,t))},handleLoadEmployee(s){return n.handleLoadEmployee(s).then(r=>r(e,t))},handleNetsEvents(s){return n.handleNetsEvents(s).then(r=>r(e,t))},handleNetsEventsV2(s){return n.handleNetsEventsV2(s).then(r=>r(e,t))},handleNetsRefundEvents(s){return n.handleNetsRefundEvents(s).then(r=>r(e,t))},handlePreorderReminder(s,r){return n.handlePreorderReminder(s,r).then(o=>o(e,t))},handleRoleWebhook(s){return n.handleRoleWebhook(s).then(r=>r(e,t))},handleShiftWebhook(s){return n.handleShiftWebhook(s).then(r=>r(e,t))},handleVivaEvents(s,r){return n.handleVivaEvents(s,r).then(o=>o(e,t))},handleWebhook(s){return n.handleWebhook(s).then(r=>r(e,t))},handleWoltDriveEvent(s){return n.handleWoltDriveEvent(s).then(r=>r(e,t))},handleWoltDriveEventByCountry(s,r){return n.handleWoltDriveEventByCountry(s,r).then(o=>o(e,t))},handleWorldlineEvents(s){return n.handleWorldlineEvents(s).then(r=>r(e,t))},updateWoltProduct(s){return n.updateWoltProduct(s).then(r=>r(e,t))},verifyVivaWebhook(s){return n.verifyVivaWebhook(s).then(r=>r(e,t))}}},Je=class extends I{handleAssignmentWebhook(t){return U(this.configuration).handleAssignmentWebhook(t).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(t){return U(this.configuration).handleBusinessWebhook(t).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(t,e){return U(this.configuration).handleFoodoraEvent(t,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(t){return U(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return U(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return U(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return U(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return U(this.configuration).handlePreorderReminder(t,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(t){return U(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return U(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return U(this.configuration).handleVivaEvents(t,e).then(n=>n(this.axios,this.basePath))}handleWebhook(t){return U(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return U(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return U(this.configuration).handleWoltDriveEventByCountry(t,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(t){return U(this.configuration).handleWorldlineEvents(t).then(e=>e(this.axios,this.basePath))}updateWoltProduct(t){return U(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return U(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}},zt=function(a){return{cancelPayment:async(t,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",t);let n="/api/v1/worldline/payment/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createPayment:async(t,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",t);let n="/api/v1/worldline/payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createRefund:async(t,e={})=>{c("createRefund","createWorldlineRefundDto",t);let n="/api/v1/worldline/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getNextRequest:async(t,e,n,s,r={})=>{c("getNextRequest","terminalId",t),c("getNextRequest","authorization",e),c("getNextRequest","sessionID",n),c("getNextRequest","protocolVersion",s);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},d={},f={};e!=null&&(d.Authorization=String(e)),n!=null&&(d["Session-ID"]=String(n)),s!=null&&(d["Protocol-Version"]=String(s)),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...r.headers},{url:y(i),options:u}},submitEvent:async(t,e,n={})=>{c("submitEvent","terminalId",t),c("submitEvent","worldlineEventEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},submitResponse:async(t,e,n={})=>{c("submitResponse","terminalId",t),c("submitResponse","worldlineResponseEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}}}},j=function(a){let t=zt(a);return{async cancelPayment(e,n){let s=await t.cancelPayment(e,n);return h(s,P.default,p,a)},async createPayment(e,n){let s=await t.createPayment(e,n);return h(s,P.default,p,a)},async createRefund(e,n){let s=await t.createRefund(e,n);return h(s,P.default,p,a)},async getNextRequest(e,n,s,r,o){let i=await t.getNextRequest(e,n,s,r,o);return h(i,P.default,p,a)},async submitEvent(e,n,s){let r=await t.submitEvent(e,n,s);return h(r,P.default,p,a)},async submitResponse(e,n,s){let r=await t.submitResponse(e,n,s);return h(r,P.default,p,a)}}},Nr=function(a,t,e){let n=j(a);return{cancelPayment(s,r){return n.cancelPayment(s,r).then(o=>o(e,t))},createPayment(s,r){return n.createPayment(s,r).then(o=>o(e,t))},createRefund(s,r){return n.createRefund(s,r).then(o=>o(e,t))},getNextRequest(s,r,o,i,l){return n.getNextRequest(s,r,o,i,l).then(u=>u(e,t))},submitEvent(s,r,o){return n.submitEvent(s,r,o).then(i=>i(e,t))},submitResponse(s,r,o){return n.submitResponse(s,r,o).then(i=>i(e,t))}}},Ze=class extends I{cancelPayment(t,e){return j(this.configuration).cancelPayment(t,e).then(n=>n(this.axios,this.basePath))}createPayment(t,e){return j(this.configuration).createPayment(t,e).then(n=>n(this.axios,this.basePath))}createRefund(t,e){return j(this.configuration).createRefund(t,e).then(n=>n(this.axios,this.basePath))}getNextRequest(t,e,n,s,r){return j(this.configuration).getNextRequest(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}submitEvent(t,e,n){return j(this.configuration).submitEvent(t,e,n).then(s=>s(this.axios,this.basePath))}submitResponse(t,e,n){return j(this.configuration).submitResponse(t,e,n).then(s=>s(this.axios,this.basePath))}},Yt=function(a){return{createPaymentRequest:async(t,e,n={})=>{c("createPaymentRequest","terminalId",t),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},createRefundRequest:async(t,e,n={})=>{c("createRefundRequest","terminalId",t),c("createRefundRequest","worldlineRefundRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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=A(e,i,a),{url:y(r),options:i}},getPaymentResult:async(t,e={})=>{c("getPaymentResult","operationId",t);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getTerminalAuthContext:async(t,e,n={})=>{c("getTerminalAuthContext","terminalId",t),c("getTerminalAuthContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e,n={})=>{c("getTerminalContext","terminalId",t),c("getTerminalContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,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(t,e={})=>{c("getTerminalState","terminalId",t);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleCallback:async(t={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},w=function(a){let t=Yt(a);return{async createPaymentRequest(e,n,s){let r=await t.createPaymentRequest(e,n,s);return h(r,P.default,p,a)},async createRefundRequest(e,n,s){let r=await t.createRefundRequest(e,n,s);return h(r,P.default,p,a)},async getPaymentResult(e,n){let s=await t.getPaymentResult(e,n);return h(s,P.default,p,a)},async getTerminalAuthContext(e,n,s){let r=await t.getTerminalAuthContext(e,n,s);return h(r,P.default,p,a)},async getTerminalContext(e,n,s){let r=await t.getTerminalContext(e,n,s);return h(r,P.default,p,a)},async getTerminalState(e,n){let s=await t.getTerminalState(e,n);return h(s,P.default,p,a)},async handleCallback(e){let n=await t.handleCallback(e);return h(n,P.default,p,a)}}},Lr=function(a,t,e){let n=w(a);return{createPaymentRequest(s,r,o){return n.createPaymentRequest(s,r,o).then(i=>i(e,t))},createRefundRequest(s,r,o){return n.createRefundRequest(s,r,o).then(i=>i(e,t))},getPaymentResult(s,r){return n.getPaymentResult(s,r).then(o=>o(e,t))},getTerminalAuthContext(s,r,o){return n.getTerminalAuthContext(s,r,o).then(i=>i(e,t))},getTerminalContext(s,r,o){return n.getTerminalContext(s,r,o).then(i=>i(e,t))},getTerminalState(s,r){return n.getTerminalState(s,r).then(o=>o(e,t))},handleCallback(s){return n.handleCallback(s).then(r=>r(e,t))}}},Xe=class extends I{createPaymentRequest(t,e,n){return w(this.configuration).createPaymentRequest(t,e,n).then(s=>s(this.axios,this.basePath))}createRefundRequest(t,e,n){return w(this.configuration).createRefundRequest(t,e,n).then(s=>s(this.axios,this.basePath))}getPaymentResult(t,e){return w(this.configuration).getPaymentResult(t,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(t,e,n){return w(this.configuration).getTerminalAuthContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalContext(t,e,n){return w(this.configuration).getTerminalContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalState(t,e){return w(this.configuration).getTerminalState(t,e).then(n=>n(this.axios,this.basePath))}handleCallback(t){return w(this.configuration).handleCallback(t).then(e=>e(this.axios,this.basePath))}};var it=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}};var Fr={[J.Eur]:2,[J.Aed]:2,[J.Usd]:2,[J.Gbp]:2,BHD:3,JPY:0},jr={getMultiplier(a){let t=Fr[a.toUpperCase()];return typeof t!="number"?100:Math.round(10**t)}};var re=ge(require("lodash")),lt=a=>re.default.orderBy(a,["rank","id"],["asc","asc"]),Wr=a=>{let t=a.subcategories;return Array.isArray(t)?t:[]},Gr=(a,t)=>({...a,colorCode:a.colorCode??t}),Jt=(a,t)=>re.default.compact(a.map(e=>t.get(e))),ut=(a,t)=>a.flatMap(e=>{let n=t[e];return n?[e,...ut(n.childIds,t)]:[]}),ct=(a,t)=>a.flatMap(e=>{let n=t[e];return n?.enabled?[e,...ct(n.childIds,t)]:[]}),Kr=a=>{let t=new Map,e={},n={},s=lt(a),r=s.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return t.set(d,Gr(u,l)),d});return s.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),f=(R,b)=>{let O=String(R.id),S=o(R.products,u),V=lt(Wr(R)).map(E=>f(E,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:b,productIds:S,childIds:V},O},x=lt(i.subcategories??[]).map(R=>f(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:s,productMap:t,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},Hr=(a,t,e,n)=>{let s=t[a];if(!s)return[];let r=ct(s.subcategoryIds,e),o=re.default.uniq([...s.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return Jt(o,n)},Qr=(a,t,e)=>{let n=t[a];if(!n)return[];let s=ut(n.subcategoryIds,e);return re.default.compact(s.map(r=>e[r]))};var Zt="1.9.10";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,BusinessStatusEnum,CashLogReason,CashLogType,CashManagementApi,CashManagementApiAxiosParamCreator,CashManagementApiFactory,CashManagementApiFp,CashSessionDtoEnum,CashSessionStatus,ChannelEnum,CheckoutModelEnum,ConditionType,ConfigManagementApi,ConfigManagementApiAxiosParamCreator,ConfigManagementApiFactory,ConfigManagementApiFp,Configuration,ConsumptionType,CurrencyCode,CurrencyCodeEnum,CurrencyRegistry,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,EmployeesApi,EmployeesApiAxiosParamCreator,EmployeesApiFactory,EmployeesApiFp,EntityType,EntityTypeEnum,EventTypeEnum,EventTypeIdEnum,FeeType,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,MApi,MApiAxiosParamCreator,MApiFactory,MApiFp,MUNCHI_CORE_VERSION,MenuApi,MenuApiAxiosParamCreator,MenuApiFactory,MenuApiFp,MenuTypeEnum,MerchantsApi,MerchantsApiAxiosParamCreator,MerchantsApiFactory,MerchantsApiFp,MunchiGiftCardApi,MunchiGiftCardApiAxiosParamCreator,MunchiGiftCardApiFactory,MunchiGiftCardApiFp,NameEnum,NotificationApi,NotificationApiAxiosParamCreator,NotificationApiFactory,NotificationApiFp,OperatingMode,OperatingModeEnum,OrderFormat,OrderInternalApi,OrderInternalApiAxiosParamCreator,OrderInternalApiFactory,OrderInternalApiFp,OrderMode,OrderRefundStatus,OrderSource,OrderStatus,OrderStatusEnum,OrderType,OrderTypePOS,OrderingCoApi,OrderingCoApiAxiosParamCreator,OrderingCoApiFactory,OrderingCoApiFp,OrdersApi,OrdersApiAxiosParamCreator,OrdersApiFactory,OrdersApiFp,POSSessionApi,POSSessionApiAxiosParamCreator,POSSessionApiFactory,POSSessionApiFp,PaymentApi,PaymentApiAxiosParamCreator,PaymentApiFactory,PaymentApiFp,PaymentEventType,PaymentFailureCode,PaymentMethod,PaymentProvider,PaymentProviderEnum,PaymentStatus,PaymentTypeEnum,PluginApi,PluginApiAxiosParamCreator,PluginApiFactory,PluginApiFp,PosDiscountTargetType,PosDiscountType,PosPaymentStatus,PosPaymentType,PosPermission,PreorderStatus,PrinterTypeEnum,ProductApi,ProductApiAxiosParamCreator,ProductApiFactory,ProductApiFp,ProductAvailability,ProductDetailLayout,ProductDetailLayoutEnum,PromotionDiscountType,ProviderApi,ProviderApiAxiosParamCreator,ProviderApiFactory,ProviderApiFp,ProviderEnum,PubSubAction,PubSubTarget,RefundFailureReasonKey,RefundMode,RefundOverallStatus,RefundStatusEnum,RefundStepStatus,RefundsApi,RefundsApiAxiosParamCreator,RefundsApiFactory,RefundsApiFp,ReportApi,ReportApiAxiosParamCreator,ReportApiFactory,ReportApiFp,ReportLanguage,SYNCKEY,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,SystemProfileType,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,UsersApi,UsersApiAxiosParamCreator,UsersApiFactory,UsersApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WebhookApi,WebhookApiAxiosParamCreator,WebhookApiFactory,WebhookApiFp,WorldlineApi,WorldlineApiAxiosParamCreator,WorldlineApiFactory,WorldlineApiFp,WorldlineAuthorizationMethod,WorldlineAuthorizationResponder,WorldlineEntryMode,WorldlineEventType,WorldlineInternalApi,WorldlineInternalApiAxiosParamCreator,WorldlineInternalApiFactory,WorldlineInternalApiFp,WorldlineOutcomeDescription,WorldlineResponseStatus,WorldlineTransactionOutcome,WorldlineTransactionType,WorldlineVerificationMethod,buildPosCategoryIndex,collectEnabledSubcategoryIdsDepthFirst,collectSubcategoryIdsDepthFirst,getCategoryProductsIncludingSubcategories,getSubcategoriesForCategory,mapProductIdsToProducts});
|
|
1
|
+
var Yt=Object.create;var oe=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Zt=Object.getOwnPropertyNames;var Xt=Object.getPrototypeOf,es=Object.prototype.hasOwnProperty;var ts=(a,t)=>{for(var e in t)oe(a,e,{get:t[e],enumerable:!0})},ut=(a,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Zt(t))!es.call(a,s)&&s!==e&&oe(a,s,{get:()=>t[s],enumerable:!(n=Jt(t,s))||n.enumerable});return a};var ge=(a,t,e)=>(e=a!=null?Yt(Xt(a)):{},ut(t||!a||!a.__esModule?oe(e,"default",{value:a,enumerable:!0}):e,a)),ss=a=>ut(oe({},"__esModule",{value:!0}),a);var Gr={};ts(Gr,{ABLYEVENT:()=>ns,AblyApi:()=>he,AblyApiAxiosParamCreator:()=>ct,AblyApiFactory:()=>er,AblyApiFp:()=>ie,ActionEnum:()=>rs,ActionPasscodesApi:()=>Pe,ActionPasscodesApiAxiosParamCreator:()=>pt,ActionPasscodesApiFactory:()=>tr,ActionPasscodesApiFp:()=>X,ActionsEnum:()=>un,AuthApi:()=>fe,AuthApiAxiosParamCreator:()=>mt,AuthApiFactory:()=>sr,AuthApiFp:()=>K,AutonomousVehicleType:()=>is,BusinessApi:()=>Ae,BusinessApiAxiosParamCreator:()=>gt,BusinessApiFactory:()=>nr,BusinessApiFp:()=>T,BusinessBackgroundType:()=>ls,BusinessEventAction:()=>ds,BusinessEventType:()=>cs,BusinessPaymentIntegrationType:()=>ps,BusinessProviderPolicyApi:()=>xe,BusinessProviderPolicyApiAxiosParamCreator:()=>yt,BusinessProviderPolicyApiFactory:()=>rr,BusinessProviderPolicyApiFp:()=>Xe,BusinessStatusEnum:()=>ms,CashLogReason:()=>gs,CashLogType:()=>ys,CashManagementApi:()=>Re,CashManagementApiAxiosParamCreator:()=>ht,CashManagementApiFactory:()=>or,CashManagementApiFp:()=>N,CashSessionDtoEnum:()=>hs,CashSessionStatus:()=>Ps,ChannelEnum:()=>fs,CheckoutModelEnum:()=>As,ConditionType:()=>xs,ConfigManagementApi:()=>be,ConfigManagementApiAxiosParamCreator:()=>Pt,ConfigManagementApiFactory:()=>ar,ConfigManagementApiFp:()=>M,Configuration:()=>ot,ConsumptionType:()=>Rs,CurrencyCode:()=>Z,CurrencyCodeEnum:()=>Wn,CurrencyRegistry:()=>wr,DeliveryStatus:()=>bs,DeliveryType:()=>Cs,DeviceType:()=>Ds,DiscountScope:()=>Os,DiscountScopeType:()=>Vs,DiscountSourceType:()=>Is,DiscountType:()=>Ss,EmployeesApi:()=>Ce,EmployeesApiAxiosParamCreator:()=>ft,EmployeesApiFactory:()=>ir,EmployeesApiFp:()=>et,EntityType:()=>vs,EntityTypeEnum:()=>os,EventTypeEnum:()=>as,EventTypeIdEnum:()=>Gn,FeeType:()=>Ts,GiftcardApi:()=>De,GiftcardApiAxiosParamCreator:()=>At,GiftcardApiFactory:()=>lr,GiftcardApiFp:()=>le,HistoryApi:()=>Oe,HistoryApiAxiosParamCreator:()=>xt,HistoryApiFactory:()=>ur,HistoryApiFp:()=>H,IntegrationType:()=>Es,InvoiceCompaniesApi:()=>Ve,InvoiceCompaniesApiAxiosParamCreator:()=>Rt,InvoiceCompaniesApiFactory:()=>dr,InvoiceCompaniesApiFp:()=>L,KDSApi:()=>Ie,KDSApiAxiosParamCreator:()=>bt,KDSApiFactory:()=>cr,KDSApiFp:()=>Q,KDSEVENTNAME:()=>Us,KioskEventType:()=>qs,KioskLayout:()=>Bs,KiosksApi:()=>Se,KiosksApiAxiosParamCreator:()=>Ct,KiosksApiFactory:()=>pr,KiosksApiFp:()=>ue,KitchenItemStatus:()=>Ms,KitchenStatus:()=>ks,LocatorType:()=>_s,LoyaltyActionKey:()=>ws,LoyaltyIntegerationsApi:()=>ve,LoyaltyIntegerationsApiAxiosParamCreator:()=>Dt,LoyaltyIntegerationsApiFactory:()=>mr,LoyaltyIntegerationsApiFp:()=>F,MUNCHI_CORE_VERSION:()=>zt,MenuApi:()=>Te,MenuApiAxiosParamCreator:()=>Ot,MenuApiFactory:()=>gr,MenuApiFp:()=>G,MenuTypeEnum:()=>us,MerchantsApi:()=>Ee,MerchantsApiAxiosParamCreator:()=>Vt,MerchantsApiFactory:()=>yr,MerchantsApiFp:()=>ee,MunchiGiftCardApi:()=>Ue,MunchiGiftCardApiAxiosParamCreator:()=>It,MunchiGiftCardApiFactory:()=>hr,MunchiGiftCardApiFp:()=>$,NameEnum:()=>wn,NotificationApi:()=>qe,NotificationApiAxiosParamCreator:()=>St,NotificationApiFactory:()=>Pr,NotificationApiFp:()=>de,OperatingMode:()=>Ns,OperatingModeEnum:()=>kn,OrderFormat:()=>Ls,OrderInternalApi:()=>Be,OrderInternalApiAxiosParamCreator:()=>vt,OrderInternalApiFactory:()=>fr,OrderInternalApiFp:()=>tt,OrderMode:()=>Fs,OrderRefundStatus:()=>js,OrderSource:()=>Ws,OrderStatus:()=>Gs,OrderStatusEnum:()=>Ks,OrderType:()=>Hs,OrderTypePOS:()=>Qs,OrderingCoApi:()=>Me,OrderingCoApiAxiosParamCreator:()=>Tt,OrderingCoApiFactory:()=>Ar,OrderingCoApiFp:()=>st,OrdersApi:()=>ke,OrdersApiAxiosParamCreator:()=>Et,OrdersApiFactory:()=>xr,OrdersApiFp:()=>B,POSSessionApi:()=>_e,POSSessionApiAxiosParamCreator:()=>Ut,POSSessionApiFactory:()=>Rr,POSSessionApiFp:()=>ce,PaymentApi:()=>we,PaymentApiAxiosParamCreator:()=>qt,PaymentApiFactory:()=>br,PaymentApiFp:()=>q,PaymentEventType:()=>$s,PaymentFailureCode:()=>zs,PaymentMethod:()=>Ys,PaymentProvider:()=>Js,PaymentProviderEnum:()=>Zs,PaymentStatus:()=>Xs,PaymentTypeEnum:()=>en,PluginApi:()=>Ne,PluginApiAxiosParamCreator:()=>Bt,PluginApiFactory:()=>Cr,PluginApiFp:()=>pe,PosDiscountTargetType:()=>tn,PosDiscountType:()=>sn,PosPaymentStatus:()=>nn,PosPaymentType:()=>rn,PosPermission:()=>on,PreorderStatus:()=>an,PrinterTypeEnum:()=>ln,ProductApi:()=>Le,ProductApiAxiosParamCreator:()=>Mt,ProductApiFactory:()=>Dr,ProductApiFp:()=>nt,ProductAvailability:()=>dn,ProductDetailLayout:()=>cn,ProductDetailLayoutEnum:()=>_n,PromotionDiscountType:()=>pn,ProviderApi:()=>Fe,ProviderApiAxiosParamCreator:()=>kt,ProviderApiFactory:()=>Or,ProviderApiFp:()=>te,ProviderEnum:()=>mn,PubSubAction:()=>gn,PubSubTarget:()=>yn,RefundFailureReasonKey:()=>hn,RefundMode:()=>Pn,RefundOverallStatus:()=>fn,RefundStatusEnum:()=>An,RefundStepStatus:()=>xn,RefundsApi:()=>je,RefundsApiAxiosParamCreator:()=>_t,RefundsApiFactory:()=>Vr,RefundsApiFp:()=>_,ReportApi:()=>We,ReportApiAxiosParamCreator:()=>wt,ReportApiFactory:()=>Ir,ReportApiFp:()=>z,ReportLanguage:()=>Rn,SYNCKEY:()=>bn,SelectedPaymentProviderEnum:()=>Mn,ShiftTrackingApi:()=>Ge,ShiftTrackingApiAxiosParamCreator:()=>Nt,ShiftTrackingApiFactory:()=>Sr,ShiftTrackingApiFp:()=>Y,SimplePaymentStatus:()=>Cn,SourceType:()=>Dn,StaffActivityActionType:()=>On,StationType:()=>Vn,StationsApi:()=>Ke,StationsApiAxiosParamCreator:()=>Lt,StationsApiFactory:()=>vr,StationsApiFp:()=>se,Status:()=>In,SystemProfileType:()=>Sn,TerminalApi:()=>He,TerminalApiAxiosParamCreator:()=>Ft,TerminalApiFactory:()=>Tr,TerminalApiFp:()=>J,TerminalConnectionType:()=>vn,TimeSpan:()=>Tn,TransactionEventType:()=>En,TransactionType:()=>Un,Type:()=>qn,UpsellMode:()=>Bn,UserApi:()=>Qe,UserApiAxiosParamCreator:()=>jt,UserApiFactory:()=>Er,UserApiFp:()=>ne,UsersApi:()=>$e,UsersApiAxiosParamCreator:()=>Wt,UsersApiFactory:()=>Ur,UsersApiFp:()=>me,VivaApi:()=>ze,VivaApiAxiosParamCreator:()=>Gt,VivaApiFactory:()=>qr,VivaApiFp:()=>rt,VivaAppToAppPaymentMethod:()=>Nn,VivaCurrencyCode:()=>Ln,VivaErrorId:()=>Fn,VivaEventId:()=>jn,WebhookApi:()=>Ye,WebhookApiAxiosParamCreator:()=>Kt,WebhookApiFactory:()=>Br,WebhookApiFp:()=>U,WorldlineApi:()=>Je,WorldlineApiAxiosParamCreator:()=>Ht,WorldlineApiFactory:()=>Mr,WorldlineApiFp:()=>j,WorldlineAuthorizationMethod:()=>Kn,WorldlineAuthorizationResponder:()=>Hn,WorldlineEntryMode:()=>Qn,WorldlineEventType:()=>$n,WorldlineInternalApi:()=>Ze,WorldlineInternalApiAxiosParamCreator:()=>Qt,WorldlineInternalApiFactory:()=>kr,WorldlineInternalApiFp:()=>w,WorldlineOutcomeDescription:()=>zn,WorldlineResponseStatus:()=>Yn,WorldlineTransactionOutcome:()=>Jn,WorldlineTransactionType:()=>Zn,WorldlineVerificationMethod:()=>Xn,buildPosCategoryIndex:()=>Fr,collectEnabledSubcategoryIdsDepthFirst:()=>lt,collectSubcategoryIdsDepthFirst:()=>it,getCategoryProductsIncludingSubcategories:()=>jr,getSubcategoriesForCategory:()=>Wr,mapProductIdsToProducts:()=>$t});module.exports=ss(Gr);var P=ge(require("axios"));var dt=ge(require("axios")),p="http://localhost".replace(/\/+$/,"");var I=class{constructor(t,e=p,n=dt.default){this.basePath=e;this.axios=n;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},ae=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",d=function(a,t,e){if(e==null)throw new ae(t,`Required parameter ${t} was null or undefined when calling ${a}.`)};var D=async function(a,t){if(t&&t.accessToken){let e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;a.Authorization="Bearer "+e}};function ye(a,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>ye(a,n,e)):Object.keys(t).forEach(n=>ye(a,t[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,t):a.set(e,t))}var g=function(a,...t){let e=new URLSearchParams(a.search);ye(e,t),a.search=e.toString()},A=function(a,t,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},h=function(a,t,e,n){return(s=t,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return s.request(o)}};var ns={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},rs={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},os={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},as={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},is={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},ls={Image:"image",Video:"video",Animation:"animation"},us={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce"},ds={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},cs={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},ps={GiftCard:"GiftCard"},ms={Online:"ONLINE",Offline:"OFFLINE"},gs={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"},ys={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},hs={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Ps={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},fs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},As={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},xs={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Rs={Delivery:"DELIVERY",Pickup:"PICKUP",DineIn:"DINE_IN"},Z={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"},bs={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Cs={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Ds={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Os={Item:"ITEM",Cart:"CART"},Vs={Business:"BUSINESS",Owner:"OWNER"},Is={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},Ss={Percentage:"PERCENTAGE",Fixed:"FIXED"},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={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Es={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Us={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},qs={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Bs={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Ms={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},ks={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},_s={Table:"table",Indicator:"indicator"},ws={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Ns={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Ls={Open:"OPEN",Instant:"INSTANT"},Fs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},js={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Ws={Platform:"PLATFORM",Pos:"POS"},Gs={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Ks={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"},Hs={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Qs={DineIn:"dine_in",PickUp:"pick_up"},$s={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},zs={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"},Ys={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"},Js={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Zs={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Xs={Paid:"paid",Pending:"pending"},en={Cash:"cash",Card:"card"},tn={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},sn={Percentage:"percentage",Fixed:"fixed"},nn={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},rn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},on={AccessPosApp:"Access::PosApp",PagePos:"Page::Pos",PageOpenOrders:"Page::OpenOrders",PageOrders:"Page::Orders",PageTransactions:"Page::Transactions",PageProducts:"Page::Products",PageReports:"Page::Reports",PageSettings:"Page::Settings",Cart:"Cart::*",CartAddItem:"Cart::AddItem",CartRemoveItem:"Cart::RemoveItem",CartApplyDiscount:"Cart::ApplyDiscount",CartVoidItem:"Cart::VoidItem",CartClear:"Cart::Clear",Transaction:"Transaction::*",TransactionView:"Transaction::View",TransactionRefund:"Transaction::Refund",Shift:"Shift::*",ShiftForceClockOut:"Shift::ForceClockOut",Settings:"Settings::*",SettingsEditProfile:"Settings::EditProfile",OpenOrdersDelete:"OpenOrders::Delete"},an={Waiting:"waiting",Confirm:"confirm"},ln={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},un={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},dn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},cn={Modal:"MODAL",Screen:"SCREEN"},pn={Percentage:"PERCENTAGE",Fixed:"FIXED"},mn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},gn={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},yn={Kds:"KDS"},hn={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"},Pn={Full:"FULL",Item:"ITEM"},fn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},An={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},xn={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Rn={Fi:"fi",En:"en"},bn={Menu:"MENU",Products:"PRODUCTS",Discounts:"DISCOUNTS",LoyaltySettings:"LOYALTY_SETTINGS",BusinessConfig:"BUSINESS_CONFIG",PosSession:"POS_SESSION",InvoiceCompanies:"INVOICE_COMPANIES",BusinessTax:"BUSINESS_TAX",Transaction:"TRANSACTION",DiscountsV2:"DISCOUNTS_V2"},Cn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Dn={Order:"ORDER",Ticket:"TICKET"},On={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"},Vn={Kiosk:"KIOSK",Pos:"POS"},In={Active:"ACTIVE",Inactive:"INACTIVE"},Sn={NoStation:"NO_STATION"},vn={Network:"NETWORK"},Tn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},En={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},Un={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},qn={Instant:"instant",Preorder:"preorder"},Bn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Mn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},kn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},_n={Modal:"MODAL",Screen:"SCREEN"},wn={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"},Nn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Ln={_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"},Fn={NUMBER_1000:1e3,NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1009:1009,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1047:1047,NUMBER_1048:1048,NUMBER_1049:1049,NUMBER_1050:1050,NUMBER_1051:1051,NUMBER_1052:1052,NUMBER_1053:1053,NUMBER_1054:1054,NUMBER_1055:1055,NUMBER_1056:1056,NUMBER_1057:1057,NUMBER_1058:1058,NUMBER_1059:1059,NUMBER_1060:1060,NUMBER_1061:1061,NUMBER_1062:1062,NUMBER_1063:1063,NUMBER_1064:1064,NUMBER_1065:1065,NUMBER_1066:1066,NUMBER_1067:1067,NUMBER_1068:1068,NUMBER_1069:1069,NUMBER_1070:1070,NUMBER_1071:1071,NUMBER_1072:1072,NUMBER_1074:1074,NUMBER_1075:1075,NUMBER_1076:1076,NUMBER_1077:1077,NUMBER_1079:1079,NUMBER_1080:1080,NUMBER_1081:1081,NUMBER_1082:1082,NUMBER_1083:1083,NUMBER_1099:1099,NUMBER_1100:1100,NUMBER_1101:1101,NUMBER_1102:1102,NUMBER_1110:1110,NUMBER_1301:1301,NUMBER_1302:1302,NUMBER_1303:1303,NUMBER_2000:2e3,NUMBER_3000:3e3,NUMBER_3001:3001,NUMBER_3002:3002,NUMBER_3099:3099,NUMBER_4000:4e3,NUMBER_5000:5e3,NUMBER_5001:5001,NUMBER_5002:5002,NUMBER_5003:5003,NUMBER_5004:5004,NUMBER_5005:5005,NUMBER_5006:5006,NUMBER_6000:6e3,NUMBER_6102:6102,NUMBER_6201:6201,NUMBER_7001:7001,NUMBER_7002:7002,NUMBER_7003:7003,NUMBER_7004:7004,NUMBER_7005:7005},jn={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},Wn={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},Gn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Kn={Online:"Online",Offline:"Offline"},Hn={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},Qn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},$n={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},zn={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},Yn={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},Jn={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},Zn={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},Xn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},ct=function(a){return{refreshConfig:async(t={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},requestSettings:async(t={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ie=function(a){let t=ct(a);return{async refreshConfig(e){let n=await t.refreshConfig(e);return h(n,P.default,p,a)},async requestSettings(e){let n=await t.requestSettings(e);return h(n,P.default,p,a)}}},er=function(a,t,e){let n=ie(a);return{refreshConfig(s){return n.refreshConfig(s).then(r=>r(e,t))},requestSettings(s){return n.requestSettings(s).then(r=>r(e,t))}}},he=class extends I{refreshConfig(t){return ie(this.configuration).refreshConfig(t).then(e=>e(this.axios,this.basePath))}requestSettings(t){return ie(this.configuration).requestSettings(t).then(e=>e(this.axios,this.basePath))}},pt=function(a){return{createActionPasscode:async(t,e={})=>{d("createActionPasscode","createActionPasscodeDto",t);let n="/api/v1/action-passcodes",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deleteActionPasscode:async(t,e={})=>{d("deleteActionPasscode","id",t);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},updateActionPasscode:async(t,e,n={})=>{d("updateActionPasscode","id",t),d("updateActionPasscode","updateActionPasscodeDto",e);let s="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},X=function(a){let t=pt(a);return{async createActionPasscode(e,n){let s=await t.createActionPasscode(e,n);return h(s,P.default,p,a)},async deleteActionPasscode(e,n){let s=await t.deleteActionPasscode(e,n);return h(s,P.default,p,a)},async updateActionPasscode(e,n,s){let r=await t.updateActionPasscode(e,n,s);return h(r,P.default,p,a)}}},tr=function(a,t,e){let n=X(a);return{createActionPasscode(s,r){return n.createActionPasscode(s,r).then(o=>o(e,t))},deleteActionPasscode(s,r){return n.deleteActionPasscode(s,r).then(o=>o(e,t))},updateActionPasscode(s,r,o){return n.updateActionPasscode(s,r,o).then(i=>i(e,t))}}},Pe=class extends I{createActionPasscode(t,e){return X(this.configuration).createActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(t,e){return X(this.configuration).deleteActionPasscode(t,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(t,e,n){return X(this.configuration).updateActionPasscode(t,e,n).then(s=>s(this.axios,this.basePath))}},mt=function(a){return{firebaseAuth:async(t={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},login:async(t,e={})=>{d("login","credentialDto",t);let n="/api/v1/auth/login",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},logout:async(t={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},refreshToken:async(t,e={})=>{d("refreshToken","refreshTokenDto",t);let n="/api/v1/auth/refresh",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},K=function(a){let t=mt(a);return{async firebaseAuth(e){let n=await t.firebaseAuth(e);return h(n,P.default,p,a)},async login(e,n){let s=await t.login(e,n);return h(s,P.default,p,a)},async logout(e){let n=await t.logout(e);return h(n,P.default,p,a)},async refreshToken(e,n){let s=await t.refreshToken(e,n);return h(s,P.default,p,a)}}},sr=function(a,t,e){let n=K(a);return{firebaseAuth(s){return n.firebaseAuth(s).then(r=>r(e,t))},login(s,r){return n.login(s,r).then(o=>o(e,t))},logout(s){return n.logout(s).then(r=>r(e,t))},refreshToken(s,r){return n.refreshToken(s,r).then(o=>o(e,t))}}},fe=class extends I{firebaseAuth(t){return K(this.configuration).firebaseAuth(t).then(e=>e(this.axios,this.basePath))}login(t,e){return K(this.configuration).login(t,e).then(n=>n(this.axios,this.basePath))}logout(t){return K(this.configuration).logout(t).then(e=>e(this.axios,this.basePath))}refreshToken(t,e){return K(this.configuration).refreshToken(t,e).then(n=>n(this.axios,this.basePath))}},gt=function(a){return{createBusinessPermission:async(t,e,n={})=>{d("createBusinessPermission","businessId",t),d("createBusinessPermission","permissionDto",e);let s="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},deleteBusinessPermission:async(t,e,n={})=>{d("deleteBusinessPermission","permissionId",t),d("deleteBusinessPermission","businessId",e);let s="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getAdvancedDiscounts:async(t,e={})=>{d("getAdvancedDiscounts","businessId",t);let n="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessCategoriesByMenuId:async(t,e,n={})=>{d("getBusinessCategoriesByMenuId","businessId",t),d("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let s="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV2:async(t,e,n={})=>{d("getBusinessCategoriesByMenuIdV2","businessId",t),d("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let s="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getBusinessCategoriesByMenuIdV3:async(t,e,n={})=>{d("getBusinessCategoriesByMenuIdV3","businessId",t),d("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let s="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getBusinessChannelConfig:async(t,e,n={})=>{d("getBusinessChannelConfig","businessId",t);let s="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessChannelConfigV2:async(t,e,n={})=>{d("getBusinessChannelConfigV2","businessId",t);let s="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfig:async(t,e,n={})=>{d("getBusinessConfig","businessId",t);let s="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigById:async(t,e,n={})=>{d("getBusinessConfigById","businessId",t);let s="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfigByIdV2:async(t,e,n={})=>{d("getBusinessConfigByIdV2","businessId",t);let s="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessConfiguration:async(t,e,n={})=>{d("getBusinessConfiguration","businessId",t);let s="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.lang=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByType:async(t,e,n={})=>{d("getBusinessMenuByType","businessId",t),d("getBusinessMenuByType","menuType",e);let s="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV2:async(t,e,n={})=>{d("getBusinessMenuByTypeV2","businessId",t),d("getBusinessMenuByTypeV2","menuType",e);let s="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV3:async(t,e,n={})=>{d("getBusinessMenuByTypeV3","businessId",t),d("getBusinessMenuByTypeV3","menuType",e);let s="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessMenuByTypeV4:async(t,e,n={})=>{d("getBusinessMenuByTypeV4","businessId",t),d("getBusinessMenuByTypeV4","menuType",e);let s="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(t))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessProviderStatus:async(t,e={})=>{d("getBusinessProviderStatus","businessId",t);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getBusinessProviderStatusExternal:async(t,e,n={})=>{d("getBusinessProviderStatusExternal","businessId",t);let s="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getBusinessTax:async(t={})=>{let e="/api/v1/business/tax",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(t,e={})=>{d("getProvidersSupportedIntegrations","businessIds",t);let n="/api/v1/business/providers/supported-integrations",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSingleBusinessProviderStatus:async(t,e,n,s={})=>{d("getSingleBusinessProviderStatus","businessId",t),d("getSingleBusinessProviderStatus","provider",e),d("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={},c={};await D(u,a),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(t,e={})=>{d("getUnifiedDiscounts","businessId",t);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},setBusinessStatus:async(t,e,n={})=>{d("setBusinessStatus","businessId",t),d("setBusinessStatus","businessStatusDto",e);let s="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},setBusinessStatusSchedule:async(t,e,n={})=>{d("setBusinessStatusSchedule","businessId",t),d("setBusinessStatusSchedule","businessStatusDto",e);let s="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},updateBusinessPermission:async(t,e,n,s={})=>{d("updateBusinessPermission","permissionId",t),d("updateBusinessPermission","businessId",e),d("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...s},u={},c={};await D(u,a),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},validateBusiness:async(t,e={})=>{d("validateBusiness","businessId",t);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},T=function(a){let t=gt(a);return{async createBusinessPermission(e,n,s){let r=await t.createBusinessPermission(e,n,s);return h(r,P.default,p,a)},async deleteBusinessPermission(e,n,s){let r=await t.deleteBusinessPermission(e,n,s);return h(r,P.default,p,a)},async getAdvancedDiscounts(e,n){let s=await t.getAdvancedDiscounts(e,n);return h(s,P.default,p,a)},async getBusinessCategoriesByMenuId(e,n,s){let r=await t.getBusinessCategoriesByMenuId(e,n,s);return h(r,P.default,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV2(e,n,s);return h(r,P.default,p,a)},async getBusinessCategoriesByMenuIdV3(e,n,s){let r=await t.getBusinessCategoriesByMenuIdV3(e,n,s);return h(r,P.default,p,a)},async getBusinessChannelConfig(e,n,s){let r=await t.getBusinessChannelConfig(e,n,s);return h(r,P.default,p,a)},async getBusinessChannelConfigV2(e,n,s){let r=await t.getBusinessChannelConfigV2(e,n,s);return h(r,P.default,p,a)},async getBusinessConfig(e,n,s){let r=await t.getBusinessConfig(e,n,s);return h(r,P.default,p,a)},async getBusinessConfigById(e,n,s){let r=await t.getBusinessConfigById(e,n,s);return h(r,P.default,p,a)},async getBusinessConfigByIdV2(e,n,s){let r=await t.getBusinessConfigByIdV2(e,n,s);return h(r,P.default,p,a)},async getBusinessConfiguration(e,n,s){let r=await t.getBusinessConfiguration(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByType(e,n,s){let r=await t.getBusinessMenuByType(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByTypeV2(e,n,s){let r=await t.getBusinessMenuByTypeV2(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByTypeV3(e,n,s){let r=await t.getBusinessMenuByTypeV3(e,n,s);return h(r,P.default,p,a)},async getBusinessMenuByTypeV4(e,n,s){let r=await t.getBusinessMenuByTypeV4(e,n,s);return h(r,P.default,p,a)},async getBusinessProviderStatus(e,n){let s=await t.getBusinessProviderStatus(e,n);return h(s,P.default,p,a)},async getBusinessProviderStatusExternal(e,n,s){let r=await t.getBusinessProviderStatusExternal(e,n,s);return h(r,P.default,p,a)},async getBusinessTax(e){let n=await t.getBusinessTax(e);return h(n,P.default,p,a)},async getProvidersSupportedIntegrations(e,n){let s=await t.getProvidersSupportedIntegrations(e,n);return h(s,P.default,p,a)},async getSingleBusinessProviderStatus(e,n,s,r){let o=await t.getSingleBusinessProviderStatus(e,n,s,r);return h(o,P.default,p,a)},async getUnifiedDiscounts(e,n){let s=await t.getUnifiedDiscounts(e,n);return h(s,P.default,p,a)},async setBusinessStatus(e,n,s){let r=await t.setBusinessStatus(e,n,s);return h(r,P.default,p,a)},async setBusinessStatusSchedule(e,n,s){let r=await t.setBusinessStatusSchedule(e,n,s);return h(r,P.default,p,a)},async updateBusinessPermission(e,n,s,r){let o=await t.updateBusinessPermission(e,n,s,r);return h(o,P.default,p,a)},async validateBusiness(e,n){let s=await t.validateBusiness(e,n);return h(s,P.default,p,a)}}},nr=function(a,t,e){let n=T(a);return{createBusinessPermission(s,r,o){return n.createBusinessPermission(s,r,o).then(i=>i(e,t))},deleteBusinessPermission(s,r,o){return n.deleteBusinessPermission(s,r,o).then(i=>i(e,t))},getAdvancedDiscounts(s,r){return n.getAdvancedDiscounts(s,r).then(o=>o(e,t))},getBusinessCategoriesByMenuId(s,r,o){return n.getBusinessCategoriesByMenuId(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV2(s,r,o){return n.getBusinessCategoriesByMenuIdV2(s,r,o).then(i=>i(e,t))},getBusinessCategoriesByMenuIdV3(s,r,o){return n.getBusinessCategoriesByMenuIdV3(s,r,o).then(i=>i(e,t))},getBusinessChannelConfig(s,r,o){return n.getBusinessChannelConfig(s,r,o).then(i=>i(e,t))},getBusinessChannelConfigV2(s,r,o){return n.getBusinessChannelConfigV2(s,r,o).then(i=>i(e,t))},getBusinessConfig(s,r,o){return n.getBusinessConfig(s,r,o).then(i=>i(e,t))},getBusinessConfigById(s,r,o){return n.getBusinessConfigById(s,r,o).then(i=>i(e,t))},getBusinessConfigByIdV2(s,r,o){return n.getBusinessConfigByIdV2(s,r,o).then(i=>i(e,t))},getBusinessConfiguration(s,r,o){return n.getBusinessConfiguration(s,r,o).then(i=>i(e,t))},getBusinessMenuByType(s,r,o){return n.getBusinessMenuByType(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV2(s,r,o){return n.getBusinessMenuByTypeV2(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV3(s,r,o){return n.getBusinessMenuByTypeV3(s,r,o).then(i=>i(e,t))},getBusinessMenuByTypeV4(s,r,o){return n.getBusinessMenuByTypeV4(s,r,o).then(i=>i(e,t))},getBusinessProviderStatus(s,r){return n.getBusinessProviderStatus(s,r).then(o=>o(e,t))},getBusinessProviderStatusExternal(s,r,o){return n.getBusinessProviderStatusExternal(s,r,o).then(i=>i(e,t))},getBusinessTax(s){return n.getBusinessTax(s).then(r=>r(e,t))},getProvidersSupportedIntegrations(s,r){return n.getProvidersSupportedIntegrations(s,r).then(o=>o(e,t))},getSingleBusinessProviderStatus(s,r,o,i){return n.getSingleBusinessProviderStatus(s,r,o,i).then(l=>l(e,t))},getUnifiedDiscounts(s,r){return n.getUnifiedDiscounts(s,r).then(o=>o(e,t))},setBusinessStatus(s,r,o){return n.setBusinessStatus(s,r,o).then(i=>i(e,t))},setBusinessStatusSchedule(s,r,o){return n.setBusinessStatusSchedule(s,r,o).then(i=>i(e,t))},updateBusinessPermission(s,r,o,i){return n.updateBusinessPermission(s,r,o,i).then(l=>l(e,t))},validateBusiness(s,r){return n.validateBusiness(s,r).then(o=>o(e,t))}}},Ae=class extends I{createBusinessPermission(t,e,n){return T(this.configuration).createBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}deleteBusinessPermission(t,e,n){return T(this.configuration).deleteBusinessPermission(t,e,n).then(s=>s(this.axios,this.basePath))}getAdvancedDiscounts(t,e){return T(this.configuration).getAdvancedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}getBusinessCategoriesByMenuId(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(t,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfig(t,e,n){return T(this.configuration).getBusinessChannelConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessChannelConfigV2(t,e,n){return T(this.configuration).getBusinessChannelConfigV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfig(t,e,n){return T(this.configuration).getBusinessConfig(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigById(t,e,n){return T(this.configuration).getBusinessConfigById(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfigByIdV2(t,e,n){return T(this.configuration).getBusinessConfigByIdV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessConfiguration(t,e,n){return T(this.configuration).getBusinessConfiguration(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByType(t,e,n){return T(this.configuration).getBusinessMenuByType(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV2(t,e,n){return T(this.configuration).getBusinessMenuByTypeV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV3(t,e,n){return T(this.configuration).getBusinessMenuByTypeV3(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessMenuByTypeV4(t,e,n){return T(this.configuration).getBusinessMenuByTypeV4(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessProviderStatus(t,e){return T(this.configuration).getBusinessProviderStatus(t,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(t,e,n){return T(this.configuration).getBusinessProviderStatusExternal(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessTax(t){return T(this.configuration).getBusinessTax(t).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(t,e){return T(this.configuration).getProvidersSupportedIntegrations(t,e).then(n=>n(this.axios,this.basePath))}getSingleBusinessProviderStatus(t,e,n,s){return T(this.configuration).getSingleBusinessProviderStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(t,e){return T(this.configuration).getUnifiedDiscounts(t,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(t,e,n){return T(this.configuration).setBusinessStatus(t,e,n).then(s=>s(this.axios,this.basePath))}setBusinessStatusSchedule(t,e,n){return T(this.configuration).setBusinessStatusSchedule(t,e,n).then(s=>s(this.axios,this.basePath))}updateBusinessPermission(t,e,n,s){return T(this.configuration).updateBusinessPermission(t,e,n,s).then(r=>r(this.axios,this.basePath))}validateBusiness(t,e){return T(this.configuration).validateBusiness(t,e).then(n=>n(this.axios,this.basePath))}},yt=function(a){return{updatePosGlobalSettings:async(t,e,n={})=>{d("updatePosGlobalSettings","businessId",t),d("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let s="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},Xe=function(a){let t=yt(a);return{async updatePosGlobalSettings(e,n,s){let r=await t.updatePosGlobalSettings(e,n,s);return h(r,P.default,p,a)}}},rr=function(a,t,e){let n=Xe(a);return{updatePosGlobalSettings(s,r,o){return n.updatePosGlobalSettings(s,r,o).then(i=>i(e,t))}}},xe=class extends I{updatePosGlobalSettings(t,e,n){return Xe(this.configuration).updatePosGlobalSettings(t,e,n).then(s=>s(this.axios,this.basePath))}},ht=function(a){return{create:async(t,e,n={})=>{d("create","businessId",t),d("create","cashSessionDto",e);let s="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getCashLogs:async(t,e,n,s,r,o,i,l={})=>{d("getCashLogs","businessId",t),d("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(t))),c=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"GET",...f,...l},R={},b={};n!==void 0&&(b.timeSpan=n),s!==void 0&&(b.start=s),r!==void 0&&(b.end=r),o!==void 0&&(b.page=o),i!==void 0&&(b.rowPerPage=i),e!==void 0&&(b.timezone=e),g(c,b);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},{url:y(c),options:x}},getCashSession:async(t,e={})=>{d("getCashSession","businessId",t);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getSessionReport:async(t,e,n={})=>{d("getSessionReport","businessId",t),d("getSessionReport","sessionId",e);let s="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},recordCashLog:async(t,e,n={})=>{d("recordCashLog","businessId",t),d("recordCashLog","cashLogDto",e);let s="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},sendSessionReport:async(t,e,n,s={})=>{d("sendSessionReport","businessId",t),d("sendSessionReport","sessionId",e),d("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(t))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},N=function(a){let t=ht(a);return{async create(e,n,s){let r=await t.create(e,n,s);return h(r,P.default,p,a)},async getCashLogs(e,n,s,r,o,i,l,u){let c=await t.getCashLogs(e,n,s,r,o,i,l,u);return h(c,P.default,p,a)},async getCashSession(e,n){let s=await t.getCashSession(e,n);return h(s,P.default,p,a)},async getSessionReport(e,n,s){let r=await t.getSessionReport(e,n,s);return h(r,P.default,p,a)},async recordCashLog(e,n,s){let r=await t.recordCashLog(e,n,s);return h(r,P.default,p,a)},async sendSessionReport(e,n,s,r){let o=await t.sendSessionReport(e,n,s,r);return h(o,P.default,p,a)}}},or=function(a,t,e){let n=N(a);return{create(s,r,o){return n.create(s,r,o).then(i=>i(e,t))},getCashLogs(s,r,o,i,l,u,c,f){return n.getCashLogs(s,r,o,i,l,u,c,f).then(x=>x(e,t))},getCashSession(s,r){return n.getCashSession(s,r).then(o=>o(e,t))},getSessionReport(s,r,o){return n.getSessionReport(s,r,o).then(i=>i(e,t))},recordCashLog(s,r,o){return n.recordCashLog(s,r,o).then(i=>i(e,t))},sendSessionReport(s,r,o,i){return n.sendSessionReport(s,r,o,i).then(l=>l(e,t))}}},Re=class extends I{create(t,e,n){return N(this.configuration).create(t,e,n).then(s=>s(this.axios,this.basePath))}getCashLogs(t,e,n,s,r,o,i,l){return N(this.configuration).getCashLogs(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(t,e){return N(this.configuration).getCashSession(t,e).then(n=>n(this.axios,this.basePath))}getSessionReport(t,e,n){return N(this.configuration).getSessionReport(t,e,n).then(s=>s(this.axios,this.basePath))}recordCashLog(t,e,n){return N(this.configuration).recordCashLog(t,e,n).then(s=>s(this.axios,this.basePath))}sendSessionReport(t,e,n,s){return N(this.configuration).sendSessionReport(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Pt=function(a){return{configConfigureMunchiGiftCard:async(t,e,n,s={})=>{d("configConfigureMunchiGiftCard","businessId",t),d("configConfigureMunchiGiftCard","xAppX",e),d("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configManualSync:async(t,e,n={})=>{d("configManualSync","businessId",t),d("configManualSync","manualSyncDto",e);let s="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},configRemovePaymentOption:async(t,e,n,s={})=>{d("configRemovePaymentOption","businessId",t),d("configRemovePaymentOption","id",e),d("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...s},u={},c={};await D(u,a),n!=null&&(u["x-app-x"]=String(n)),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},configUpsertBusiness:async(t,e,n={})=>{d("configUpsertBusiness","businessId",t),d("configUpsertBusiness","upsertBusinessDto",e);let s="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},configUpsertChannelConfig:async(t,e,n,s={})=>{d("configUpsertChannelConfig","businessId",t),d("configUpsertChannelConfig","xAppX",e),d("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(t,e,n,s={})=>{d("configUpsertGiftCard","businessId",t),d("configUpsertGiftCard","xAppX",e),d("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(t,e,n={})=>{d("configUpsertLoyalty","businessId",t),d("configUpsertLoyalty","upsertLoyaltyDto",e);let s="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},configUpsertNets:async(t,e,n,s={})=>{d("configUpsertNets","businessId",t),d("configUpsertNets","xAppX",e),d("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(t,e,n,s={})=>{d("configUpsertPaymentOptions","businessId",t),d("configUpsertPaymentOptions","xAppX",e),d("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(t,e,n,s={})=>{d("configUpsertStripe","businessId",t),d("configUpsertStripe","xAppX",e),d("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertViva:async(t,e,n,s={})=>{d("configUpsertViva","businessId",t),d("configUpsertViva","xAppX",e),d("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),e!=null&&(u["x-app-x"]=String(e)),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},M=function(a){let t=Pt(a);return{async configConfigureMunchiGiftCard(e,n,s,r){let o=await t.configConfigureMunchiGiftCard(e,n,s,r);return h(o,P.default,p,a)},async configManualSync(e,n,s){let r=await t.configManualSync(e,n,s);return h(r,P.default,p,a)},async configRemovePaymentOption(e,n,s,r){let o=await t.configRemovePaymentOption(e,n,s,r);return h(o,P.default,p,a)},async configUpsertBusiness(e,n,s){let r=await t.configUpsertBusiness(e,n,s);return h(r,P.default,p,a)},async configUpsertChannelConfig(e,n,s,r){let o=await t.configUpsertChannelConfig(e,n,s,r);return h(o,P.default,p,a)},async configUpsertGiftCard(e,n,s,r){let o=await t.configUpsertGiftCard(e,n,s,r);return h(o,P.default,p,a)},async configUpsertLoyalty(e,n,s){let r=await t.configUpsertLoyalty(e,n,s);return h(r,P.default,p,a)},async configUpsertNets(e,n,s,r){let o=await t.configUpsertNets(e,n,s,r);return h(o,P.default,p,a)},async configUpsertPaymentOptions(e,n,s,r){let o=await t.configUpsertPaymentOptions(e,n,s,r);return h(o,P.default,p,a)},async configUpsertStripe(e,n,s,r){let o=await t.configUpsertStripe(e,n,s,r);return h(o,P.default,p,a)},async configUpsertViva(e,n,s,r){let o=await t.configUpsertViva(e,n,s,r);return h(o,P.default,p,a)}}},ar=function(a,t,e){let n=M(a);return{configConfigureMunchiGiftCard(s,r,o,i){return n.configConfigureMunchiGiftCard(s,r,o,i).then(l=>l(e,t))},configManualSync(s,r,o){return n.configManualSync(s,r,o).then(i=>i(e,t))},configRemovePaymentOption(s,r,o,i){return n.configRemovePaymentOption(s,r,o,i).then(l=>l(e,t))},configUpsertBusiness(s,r,o){return n.configUpsertBusiness(s,r,o).then(i=>i(e,t))},configUpsertChannelConfig(s,r,o,i){return n.configUpsertChannelConfig(s,r,o,i).then(l=>l(e,t))},configUpsertGiftCard(s,r,o,i){return n.configUpsertGiftCard(s,r,o,i).then(l=>l(e,t))},configUpsertLoyalty(s,r,o){return n.configUpsertLoyalty(s,r,o).then(i=>i(e,t))},configUpsertNets(s,r,o,i){return n.configUpsertNets(s,r,o,i).then(l=>l(e,t))},configUpsertPaymentOptions(s,r,o,i){return n.configUpsertPaymentOptions(s,r,o,i).then(l=>l(e,t))},configUpsertStripe(s,r,o,i){return n.configUpsertStripe(s,r,o,i).then(l=>l(e,t))},configUpsertViva(s,r,o,i){return n.configUpsertViva(s,r,o,i).then(l=>l(e,t))}}},be=class extends I{configConfigureMunchiGiftCard(t,e,n,s){return M(this.configuration).configConfigureMunchiGiftCard(t,e,n,s).then(r=>r(this.axios,this.basePath))}configManualSync(t,e,n){return M(this.configuration).configManualSync(t,e,n).then(s=>s(this.axios,this.basePath))}configRemovePaymentOption(t,e,n,s){return M(this.configuration).configRemovePaymentOption(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(t,e,n){return M(this.configuration).configUpsertBusiness(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertChannelConfig(t,e,n,s){return M(this.configuration).configUpsertChannelConfig(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(t,e,n,s){return M(this.configuration).configUpsertGiftCard(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(t,e,n){return M(this.configuration).configUpsertLoyalty(t,e,n).then(s=>s(this.axios,this.basePath))}configUpsertNets(t,e,n,s){return M(this.configuration).configUpsertNets(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(t,e,n,s){return M(this.configuration).configUpsertPaymentOptions(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertStripe(t,e,n,s){return M(this.configuration).configUpsertStripe(t,e,n,s).then(r=>r(this.axios,this.basePath))}configUpsertViva(t,e,n,s){return M(this.configuration).configUpsertViva(t,e,n,s).then(r=>r(this.axios,this.basePath))}},ft=function(a){return{createAssignment:async(t,e,n={})=>{d("createAssignment","businessId",t),d("createAssignment","createEmployeeAssignmentDto",e);let s="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},et=function(a){let t=ft(a);return{async createAssignment(e,n,s){let r=await t.createAssignment(e,n,s);return h(r,P.default,p,a)}}},ir=function(a,t,e){let n=et(a);return{createAssignment(s,r,o){return n.createAssignment(s,r,o).then(i=>i(e,t))}}},Ce=class extends I{createAssignment(t,e,n){return et(this.configuration).createAssignment(t,e,n).then(s=>s(this.axios,this.basePath))}},At=function(a){return{redeemGiftCard:async(t,e={})=>{d("redeemGiftCard","redeemGiftCardDto",t);let n="/api/v1/giftcard/redeem",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateGiftCard:async(t,e={})=>{d("validateGiftCard","validateGiftCardDto",t);let n="/api/v1/giftcard/validate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},le=function(a){let t=At(a);return{async redeemGiftCard(e,n){let s=await t.redeemGiftCard(e,n);return h(s,P.default,p,a)},async validateGiftCard(e,n){let s=await t.validateGiftCard(e,n);return h(s,P.default,p,a)}}},lr=function(a,t,e){let n=le(a);return{redeemGiftCard(s,r){return n.redeemGiftCard(s,r).then(o=>o(e,t))},validateGiftCard(s,r){return n.validateGiftCard(s,r).then(o=>o(e,t))}}},De=class extends I{redeemGiftCard(t,e){return le(this.configuration).redeemGiftCard(t,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(t,e){return le(this.configuration).validateGiftCard(t,e).then(n=>n(this.axios,this.basePath))}},xt=function(a){return{getInternalOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getInternalOrderHistoryOnline","businessIds",t);let S="/api/v1/history/internal/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getOrderHistoryOnline","businessIds",t);let S="/api/v1/history/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getOrderHistoryPOSV5","businessIds",t);let S="/api/v5/history/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getOrderHistoryPOSV5Internal","businessIds",t);let S="/api/v5/history/internal/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},k={},C={};await D(k,a),e!==void 0&&(C.timeSpan=e),n!==void 0&&(C.start=n),s!==void 0&&(C.end=s),t&&(C.businessIds=t),r!==void 0&&(C.page=r),o!==void 0&&(C.rowPerPage=o),i&&(C.provider=i),l&&(C.paymentType=l),u&&(C.orderStatus=u),c&&(C.paymentStatus=c),f&&(C.orderType=f),x&&(C.paymentTypePos=x),R!==void 0&&(C.invoiceCompanyId=R),b!==void 0&&(C.timezone=b),g(v,C);let W=V&&V.headers?V.headers:{};return E.headers={...k,...W,...O.headers},{url:y(v),options:E}}}},H=function(a){let t=xt(a);return{async getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S){let v=await t.getInternalOrderHistoryOnline(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P.default,p,a)},async getOrderHistoryOnline(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S){let v=await t.getOrderHistoryOnline(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P.default,p,a)},async getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S){let v=await t.getOrderHistoryPOSV5(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P.default,p,a)},async getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S){let v=await t.getOrderHistoryPOSV5Internal(e,n,s,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P.default,p,a)}}},ur=function(a,t,e){let n=H(a);return{getInternalOrderHistoryOnline(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getInternalOrderHistoryOnline(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryOnline(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getOrderHistoryOnline(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,t))},getOrderHistoryPOSV5Internal(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5Internal(s,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,t))}}},Oe=class extends I{getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getInternalOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getOrderHistoryOnline(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getOrderHistoryPOSV5(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getOrderHistoryPOSV5Internal(t,e,n,s,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}},Rt=function(a){return{createInvoiceCompany:async(t,e,n={})=>{d("createInvoiceCompany","businessId",t),d("createInvoiceCompany","createInvoiceCompanyDto",e);let s="/api/v1/invoice-companies",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},deleteInvoiceCompany:async(t,e,n={})=>{d("deleteInvoiceCompany","id",t),d("deleteInvoiceCompany","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getInvoiceCompanies:async(t,e={})=>{d("getInvoiceCompanies","businessId",t);let n="/api/v1/invoice-companies",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getInvoiceCompanyById:async(t,e,n={})=>{d("getInvoiceCompanyById","id",t),d("getInvoiceCompanyById","businessId",e);let s="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(t,e,n={})=>{d("searchInvoiceCompanies","businessId",t);let s="/api/v1/invoice-companies/search",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.businessId=t),e!==void 0&&(u.search=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},updateInvoiceCompany:async(t,e,n,s={})=>{d("updateInvoiceCompany","id",t),d("updateInvoiceCompany","businessId",e),d("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...s},u={},c={};e!==void 0&&(c.businessId=e),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},L=function(a){let t=Rt(a);return{async createInvoiceCompany(e,n,s){let r=await t.createInvoiceCompany(e,n,s);return h(r,P.default,p,a)},async deleteInvoiceCompany(e,n,s){let r=await t.deleteInvoiceCompany(e,n,s);return h(r,P.default,p,a)},async getInvoiceCompanies(e,n){let s=await t.getInvoiceCompanies(e,n);return h(s,P.default,p,a)},async getInvoiceCompanyById(e,n,s){let r=await t.getInvoiceCompanyById(e,n,s);return h(r,P.default,p,a)},async searchInvoiceCompanies(e,n,s){let r=await t.searchInvoiceCompanies(e,n,s);return h(r,P.default,p,a)},async updateInvoiceCompany(e,n,s,r){let o=await t.updateInvoiceCompany(e,n,s,r);return h(o,P.default,p,a)}}},dr=function(a,t,e){let n=L(a);return{createInvoiceCompany(s,r,o){return n.createInvoiceCompany(s,r,o).then(i=>i(e,t))},deleteInvoiceCompany(s,r,o){return n.deleteInvoiceCompany(s,r,o).then(i=>i(e,t))},getInvoiceCompanies(s,r){return n.getInvoiceCompanies(s,r).then(o=>o(e,t))},getInvoiceCompanyById(s,r,o){return n.getInvoiceCompanyById(s,r,o).then(i=>i(e,t))},searchInvoiceCompanies(s,r,o){return n.searchInvoiceCompanies(s,r,o).then(i=>i(e,t))},updateInvoiceCompany(s,r,o,i){return n.updateInvoiceCompany(s,r,o,i).then(l=>l(e,t))}}},Ve=class extends I{createInvoiceCompany(t,e,n){return L(this.configuration).createInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}deleteInvoiceCompany(t,e,n){return L(this.configuration).deleteInvoiceCompany(t,e,n).then(s=>s(this.axios,this.basePath))}getInvoiceCompanies(t,e){return L(this.configuration).getInvoiceCompanies(t,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(t,e,n){return L(this.configuration).getInvoiceCompanyById(t,e,n).then(s=>s(this.axios,this.basePath))}searchInvoiceCompanies(t,e,n){return L(this.configuration).searchInvoiceCompanies(t,e,n).then(s=>s(this.axios,this.basePath))}updateInvoiceCompany(t,e,n,s){return L(this.configuration).updateInvoiceCompany(t,e,n,s).then(r=>r(this.axios,this.basePath))}},bt=function(a){return{kdsGetOrders:async(t,e,n,s,r,o,i,l,u,c,f,x={})=>{d("kdsGetOrders","status",t),d("kdsGetOrders","businessIds",e),d("kdsGetOrders","profileId",n);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(t))),b=new URL(R,m),O;a&&(O=a.baseOptions);let S={method:"GET",...O,...x},v={},V={};await D(v,a),e!==void 0&&(V.businessIds=e),n!==void 0&&(V.profileId=n),s!==void 0&&(V.page=s),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),c&&(V.provider=c),f&&(V.consumptionType=f),g(b,V);let E=O&&O.headers?O.headers:{};return S.headers={...v,...E,...x.headers},{url:y(b),options:S}},kdsGetProfiles:async(t,e={})=>{d("kdsGetProfiles","businessId",t);let n="/api/v1/kds/profiles",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsMarkOrderReady:async(t,e={})=>{d("kdsMarkOrderReady","id",t);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},kdsRevertOrder:async(t,e={})=>{d("kdsRevertOrder","id",t);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},Q=function(a){let t=bt(a);return{async kdsGetOrders(e,n,s,r,o,i,l,u,c,f,x,R){let b=await t.kdsGetOrders(e,n,s,r,o,i,l,u,c,f,x,R);return h(b,P.default,p,a)},async kdsGetProfiles(e,n){let s=await t.kdsGetProfiles(e,n);return h(s,P.default,p,a)},async kdsMarkOrderReady(e,n){let s=await t.kdsMarkOrderReady(e,n);return h(s,P.default,p,a)},async kdsRevertOrder(e,n){let s=await t.kdsRevertOrder(e,n);return h(s,P.default,p,a)}}},cr=function(a,t,e){let n=Q(a);return{kdsGetOrders(s,r,o,i,l,u,c,f,x,R,b,O){return n.kdsGetOrders(s,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(e,t))},kdsGetProfiles(s,r){return n.kdsGetProfiles(s,r).then(o=>o(e,t))},kdsMarkOrderReady(s,r){return n.kdsMarkOrderReady(s,r).then(o=>o(e,t))},kdsRevertOrder(s,r){return n.kdsRevertOrder(s,r).then(o=>o(e,t))}}},Ie=class extends I{kdsGetOrders(t,e,n,s,r,o,i,l,u,c,f,x){return Q(this.configuration).kdsGetOrders(t,e,n,s,r,o,i,l,u,c,f,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(t,e){return Q(this.configuration).kdsGetProfiles(t,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(t,e){return Q(this.configuration).kdsMarkOrderReady(t,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(t,e){return Q(this.configuration).kdsRevertOrder(t,e).then(n=>n(this.axios,this.basePath))}},Ct=function(a){return{getOrderStatus:async(t,e,n={})=>{d("getOrderStatus","orderId",t),d("getOrderStatus","businessId",e);let s="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},validate:async(t,e,n={})=>{d("validate","terminalId",t),d("validate","provider",e);let s="/api/v1/kiosk/terminal/validate",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};t!==void 0&&(u.terminalId=t),e!==void 0&&(u.provider=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}}}},ue=function(a){let t=Ct(a);return{async getOrderStatus(e,n,s){let r=await t.getOrderStatus(e,n,s);return h(r,P.default,p,a)},async validate(e,n,s){let r=await t.validate(e,n,s);return h(r,P.default,p,a)}}},pr=function(a,t,e){let n=ue(a);return{getOrderStatus(s,r,o){return n.getOrderStatus(s,r,o).then(i=>i(e,t))},validate(s,r,o){return n.validate(s,r,o).then(i=>i(e,t))}}},Se=class extends I{getOrderStatus(t,e,n){return ue(this.configuration).getOrderStatus(t,e,n).then(s=>s(this.axios,this.basePath))}validate(t,e,n){return ue(this.configuration).validate(t,e,n).then(s=>s(this.axios,this.basePath))}},Dt=function(a){return{createLoyaltyUser:async(t,e,n={})=>{d("createLoyaltyUser","businessId",t),d("createLoyaltyUser","createLoyaltyProgramUserDto",e);let s="/api/v1/loyalty/users/create",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getAdminTransactions:async(t,e,n,s={})=>{d("getAdminTransactions","businessId",t);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};await D(u,a),t!==void 0&&(c.businessId=t),e!==void 0&&(c.page=e),n!==void 0&&(c.limit=n),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},getLoyaltyInfo:async(t,e={})=>{d("getLoyaltyInfo","businessId",t);let n="/api/v1/loyalty/info",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getUserById:async(t,e,n={})=>{d("getUserById","businessId",t),d("getUserById","userId",e);let s="/api/v1/loyalty/users/info",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),e!==void 0&&(u.userId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},searchUser:async(t,e,n,s,r={})=>{d("searchUser","businessId",t);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},f={};await D(c,a),e!==void 0&&(f.phone=e),n!==void 0&&(f.country_code=n),s!==void 0&&(f.email=s),t!==void 0&&(f.businessId=t),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(t,e,n={})=>{d("updatePoints","businessId",t),d("updatePoints","pointsUpdatePayloadDto",e);let s="/api/v1/loyalty/update-user-points",r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),t!==void 0&&(u.businessId=t),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},F=function(a){let t=Dt(a);return{async createLoyaltyUser(e,n,s){let r=await t.createLoyaltyUser(e,n,s);return h(r,P.default,p,a)},async getAdminTransactions(e,n,s,r){let o=await t.getAdminTransactions(e,n,s,r);return h(o,P.default,p,a)},async getLoyaltyInfo(e,n){let s=await t.getLoyaltyInfo(e,n);return h(s,P.default,p,a)},async getUserById(e,n,s){let r=await t.getUserById(e,n,s);return h(r,P.default,p,a)},async searchUser(e,n,s,r,o){let i=await t.searchUser(e,n,s,r,o);return h(i,P.default,p,a)},async updatePoints(e,n,s){let r=await t.updatePoints(e,n,s);return h(r,P.default,p,a)}}},mr=function(a,t,e){let n=F(a);return{createLoyaltyUser(s,r,o){return n.createLoyaltyUser(s,r,o).then(i=>i(e,t))},getAdminTransactions(s,r,o,i){return n.getAdminTransactions(s,r,o,i).then(l=>l(e,t))},getLoyaltyInfo(s,r){return n.getLoyaltyInfo(s,r).then(o=>o(e,t))},getUserById(s,r,o){return n.getUserById(s,r,o).then(i=>i(e,t))},searchUser(s,r,o,i,l){return n.searchUser(s,r,o,i,l).then(u=>u(e,t))},updatePoints(s,r,o){return n.updatePoints(s,r,o).then(i=>i(e,t))}}},ve=class extends I{createLoyaltyUser(t,e,n){return F(this.configuration).createLoyaltyUser(t,e,n).then(s=>s(this.axios,this.basePath))}getAdminTransactions(t,e,n,s){return F(this.configuration).getAdminTransactions(t,e,n,s).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(t,e){return F(this.configuration).getLoyaltyInfo(t,e).then(n=>n(this.axios,this.basePath))}getUserById(t,e,n){return F(this.configuration).getUserById(t,e,n).then(s=>s(this.axios,this.basePath))}searchUser(t,e,n,s,r){return F(this.configuration).searchUser(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}updatePoints(t,e,n){return F(this.configuration).updatePoints(t,e,n).then(s=>s(this.axios,this.basePath))}},Ot=function(a){return{editBusinessProduct:async(t,e,n={})=>{d("editBusinessProduct","businessId",t),d("editBusinessProduct","menuProductDto",e);let s="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},editBusinessProductV2:async(t,e,n={})=>{d("editBusinessProductV2","businessId",t),d("editBusinessProductV2","menuProductDtoV2",e);let s="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getBusinessExtras:async(t,e={})=>{d("getBusinessExtras","businessId",t);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getProductsByCategoriesV2:async(t,e,n={})=>{d("getProductsByCategoriesV2","businessId",t);let s="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},resetProductEod:async(t,e={})=>{d("resetProductEod","resetEodDto",t);let n="/api/v1/menu/availability/reset-eod",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},G=function(a){let t=Ot(a);return{async editBusinessProduct(e,n,s){let r=await t.editBusinessProduct(e,n,s);return h(r,P.default,p,a)},async editBusinessProductV2(e,n,s){let r=await t.editBusinessProductV2(e,n,s);return h(r,P.default,p,a)},async getBusinessExtras(e,n){let s=await t.getBusinessExtras(e,n);return h(s,P.default,p,a)},async getProductsByCategoriesV2(e,n,s){let r=await t.getProductsByCategoriesV2(e,n,s);return h(r,P.default,p,a)},async resetProductEod(e,n){let s=await t.resetProductEod(e,n);return h(s,P.default,p,a)}}},gr=function(a,t,e){let n=G(a);return{editBusinessProduct(s,r,o){return n.editBusinessProduct(s,r,o).then(i=>i(e,t))},editBusinessProductV2(s,r,o){return n.editBusinessProductV2(s,r,o).then(i=>i(e,t))},getBusinessExtras(s,r){return n.getBusinessExtras(s,r).then(o=>o(e,t))},getProductsByCategoriesV2(s,r,o){return n.getProductsByCategoriesV2(s,r,o).then(i=>i(e,t))},resetProductEod(s,r){return n.resetProductEod(s,r).then(o=>o(e,t))}}},Te=class extends I{editBusinessProduct(t,e,n){return G(this.configuration).editBusinessProduct(t,e,n).then(s=>s(this.axios,this.basePath))}editBusinessProductV2(t,e,n){return G(this.configuration).editBusinessProductV2(t,e,n).then(s=>s(this.axios,this.basePath))}getBusinessExtras(t,e){return G(this.configuration).getBusinessExtras(t,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(t,e,n){return G(this.configuration).getProductsByCategoriesV2(t,e,n).then(s=>s(this.axios,this.basePath))}resetProductEod(t,e){return G(this.configuration).resetProductEod(t,e).then(n=>n(this.axios,this.basePath))}},Vt=function(a){return{addBusinessesToMerchant:async(t,e,n={})=>{d("addBusinessesToMerchant","merchantId",t),d("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let s="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},createMerchant:async(t,e={})=>{d("createMerchant","createMerchantDto",t);let n="/api/v1/merchants",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeBusinessFromMerchant:async(t,e,n={})=>{d("removeBusinessFromMerchant","merchantId",t),d("removeBusinessFromMerchant","businessId",e);let s="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(t))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await D(l,a),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}}}},ee=function(a){let t=Vt(a);return{async addBusinessesToMerchant(e,n,s){let r=await t.addBusinessesToMerchant(e,n,s);return h(r,P.default,p,a)},async createMerchant(e,n){let s=await t.createMerchant(e,n);return h(s,P.default,p,a)},async removeBusinessFromMerchant(e,n,s){let r=await t.removeBusinessFromMerchant(e,n,s);return h(r,P.default,p,a)}}},yr=function(a,t,e){let n=ee(a);return{addBusinessesToMerchant(s,r,o){return n.addBusinessesToMerchant(s,r,o).then(i=>i(e,t))},createMerchant(s,r){return n.createMerchant(s,r).then(o=>o(e,t))},removeBusinessFromMerchant(s,r,o){return n.removeBusinessFromMerchant(s,r,o).then(i=>i(e,t))}}},Ee=class extends I{addBusinessesToMerchant(t,e,n){return ee(this.configuration).addBusinessesToMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}createMerchant(t,e){return ee(this.configuration).createMerchant(t,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(t,e,n){return ee(this.configuration).removeBusinessFromMerchant(t,e,n).then(s=>s(this.axios,this.basePath))}},It=function(a){return{createMunchiGiftCard:async(t,e={})=>{d("createMunchiGiftCard","createMunchiGiftCardDto",t);let n="/api/v1/munchi-giftcard/create",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getMunchiGiftCardData:async(t,e={})=>{d("getMunchiGiftCardData","getMunchiGiftCardDataDto",t);let n="/api/v1/munchi-giftcard/data",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},redeemMunchiGiftCard:async(t,e={})=>{d("redeemMunchiGiftCard","redeemGiftCardDto",t);let n="/api/v1/munchi-giftcard/redeem",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},validateMunchiGiftCard:async(t,e={})=>{d("validateMunchiGiftCard","validateGiftCardDto",t);let n="/api/v1/munchi-giftcard/validate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},$=function(a){let t=It(a);return{async createMunchiGiftCard(e,n){let s=await t.createMunchiGiftCard(e,n);return h(s,P.default,p,a)},async getMunchiGiftCardData(e,n){let s=await t.getMunchiGiftCardData(e,n);return h(s,P.default,p,a)},async redeemMunchiGiftCard(e,n){let s=await t.redeemMunchiGiftCard(e,n);return h(s,P.default,p,a)},async validateMunchiGiftCard(e,n){let s=await t.validateMunchiGiftCard(e,n);return h(s,P.default,p,a)}}},hr=function(a,t,e){let n=$(a);return{createMunchiGiftCard(s,r){return n.createMunchiGiftCard(s,r).then(o=>o(e,t))},getMunchiGiftCardData(s,r){return n.getMunchiGiftCardData(s,r).then(o=>o(e,t))},redeemMunchiGiftCard(s,r){return n.redeemMunchiGiftCard(s,r).then(o=>o(e,t))},validateMunchiGiftCard(s,r){return n.validateMunchiGiftCard(s,r).then(o=>o(e,t))}}},Ue=class extends I{createMunchiGiftCard(t,e){return $(this.configuration).createMunchiGiftCard(t,e).then(n=>n(this.axios,this.basePath))}getMunchiGiftCardData(t,e){return $(this.configuration).getMunchiGiftCardData(t,e).then(n=>n(this.axios,this.basePath))}redeemMunchiGiftCard(t,e){return $(this.configuration).redeemMunchiGiftCard(t,e).then(n=>n(this.axios,this.basePath))}validateMunchiGiftCard(t,e){return $(this.configuration).validateMunchiGiftCard(t,e).then(n=>n(this.axios,this.basePath))}},St=function(a){return{addVenueSubscriptionsV2:async(t,e={})=>{d("addVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/add-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},removeVenueSubscriptionsV2:async(t,e={})=>{d("removeVenueSubscriptionsV2","deviceSubscriptionDto",t);let n="/api/v2/notification/remove-venue-subscriptions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},de=function(a){let t=St(a);return{async addVenueSubscriptionsV2(e,n){let s=await t.addVenueSubscriptionsV2(e,n);return h(s,P.default,p,a)},async removeVenueSubscriptionsV2(e,n){let s=await t.removeVenueSubscriptionsV2(e,n);return h(s,P.default,p,a)}}},Pr=function(a,t,e){let n=de(a);return{addVenueSubscriptionsV2(s,r){return n.addVenueSubscriptionsV2(s,r).then(o=>o(e,t))},removeVenueSubscriptionsV2(s,r){return n.removeVenueSubscriptionsV2(s,r).then(o=>o(e,t))}}},qe=class extends I{addVenueSubscriptionsV2(t,e){return de(this.configuration).addVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(t,e){return de(this.configuration).removeVenueSubscriptionsV2(t,e).then(n=>n(this.axios,this.basePath))}},vt=function(a){return{findOneByExternalId:async(t,e={})=>{d("findOneByExternalId","externalId",t);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},tt=function(a){let t=vt(a);return{async findOneByExternalId(e,n){let s=await t.findOneByExternalId(e,n);return h(s,P.default,p,a)}}},fr=function(a,t,e){let n=tt(a);return{findOneByExternalId(s,r){return n.findOneByExternalId(s,r).then(o=>o(e,t))}}},Be=class extends I{findOneByExternalId(t,e){return tt(this.configuration).findOneByExternalId(t,e).then(n=>n(this.axios,this.basePath))}},Tt=function(a){return{updateTaxRate:async(t,e={})=>{d("updateTaxRate","body",t);let n="/api/v1/ordering/update-tax-rate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},st=function(a){let t=Tt(a);return{async updateTaxRate(e,n){let s=await t.updateTaxRate(e,n);return h(s,P.default,p,a)}}},Ar=function(a,t,e){let n=st(a);return{updateTaxRate(s,r){return n.updateTaxRate(s,r).then(o=>o(e,t))}}},Me=class extends I{updateTaxRate(t,e){return st(this.configuration).updateTaxRate(t,e).then(n=>n(this.axios,this.basePath))}},Et=function(a){return{acceptOrder:async(t,e={})=>{d("acceptOrder","acceptOrderDto",t);let n="/api/v1/orders/accept",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},confirmPreOrder:async(t,e={})=>{d("confirmPreOrder","confirmPreorderDto",t);let n="/api/v1/orders/confirm/preOrder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deletePosParkedOrderV2:async(t,e={})=>{d("deletePosParkedOrderV2","deletePosOrderDto",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},deliverOrder:async(t,e={})=>{d("deliverOrder","deliveredOrderDto",t);let n="/api/v1/orders/delivered",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getAllOrdersV2:async(t,e={})=>{d("getAllOrdersV2","businessIds",t);let n="/api/v2/orders",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessIds=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getOrdersV2:async(t,e,n,s,r={})=>{d("getOrdersV2","status",t),d("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},f={};e!==void 0&&(f.businessIds=e),n!==void 0&&(f.posBusinessId=n),s!==void 0&&(f.extraProvider=s),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(t,e={})=>{d("getParkedPosOrderV2","businessId",t);let n="/api/v2/orders/pos/park",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};t!==void 0&&(l.businessId=t),g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},markOrderAsReady:async(t,e={})=>{d("markOrderAsReady","readyOrderDto",t);let n="/api/v1/orders/ready",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},placePosOrderV4:async(t,e={})=>{d("placePosOrderV4","posOrderPayloadDto",t);let n="/api/v4/orders/pos/place",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processPosOrderActions:async(t,e={})=>{d("processPosOrderActions","processOrderActionsDto",t);let n="/api/v4/orders/pos/actions",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},rejectOrder:async(t,e={})=>{d("rejectOrder","rejectOrderDto",t);let n="/api/v1/orders/reject",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updatePosOrderV2:async(t,e={})=>{d("updatePosOrderV2","posUpdateOrderDto",t);let n="/api/v2/orders/pos/update",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},B=function(a){let t=Et(a);return{async acceptOrder(e,n){let s=await t.acceptOrder(e,n);return h(s,P.default,p,a)},async confirmPreOrder(e,n){let s=await t.confirmPreOrder(e,n);return h(s,P.default,p,a)},async deletePosParkedOrderV2(e,n){let s=await t.deletePosParkedOrderV2(e,n);return h(s,P.default,p,a)},async deliverOrder(e,n){let s=await t.deliverOrder(e,n);return h(s,P.default,p,a)},async getAllOrdersV2(e,n){let s=await t.getAllOrdersV2(e,n);return h(s,P.default,p,a)},async getOrdersV2(e,n,s,r,o){let i=await t.getOrdersV2(e,n,s,r,o);return h(i,P.default,p,a)},async getParkedPosOrderV2(e,n){let s=await t.getParkedPosOrderV2(e,n);return h(s,P.default,p,a)},async markOrderAsReady(e,n){let s=await t.markOrderAsReady(e,n);return h(s,P.default,p,a)},async placePosOrderV4(e,n){let s=await t.placePosOrderV4(e,n);return h(s,P.default,p,a)},async processPosOrderActions(e,n){let s=await t.processPosOrderActions(e,n);return h(s,P.default,p,a)},async rejectOrder(e,n){let s=await t.rejectOrder(e,n);return h(s,P.default,p,a)},async updatePosOrderV2(e,n){let s=await t.updatePosOrderV2(e,n);return h(s,P.default,p,a)}}},xr=function(a,t,e){let n=B(a);return{acceptOrder(s,r){return n.acceptOrder(s,r).then(o=>o(e,t))},confirmPreOrder(s,r){return n.confirmPreOrder(s,r).then(o=>o(e,t))},deletePosParkedOrderV2(s,r){return n.deletePosParkedOrderV2(s,r).then(o=>o(e,t))},deliverOrder(s,r){return n.deliverOrder(s,r).then(o=>o(e,t))},getAllOrdersV2(s,r){return n.getAllOrdersV2(s,r).then(o=>o(e,t))},getOrdersV2(s,r,o,i,l){return n.getOrdersV2(s,r,o,i,l).then(u=>u(e,t))},getParkedPosOrderV2(s,r){return n.getParkedPosOrderV2(s,r).then(o=>o(e,t))},markOrderAsReady(s,r){return n.markOrderAsReady(s,r).then(o=>o(e,t))},placePosOrderV4(s,r){return n.placePosOrderV4(s,r).then(o=>o(e,t))},processPosOrderActions(s,r){return n.processPosOrderActions(s,r).then(o=>o(e,t))},rejectOrder(s,r){return n.rejectOrder(s,r).then(o=>o(e,t))},updatePosOrderV2(s,r){return n.updatePosOrderV2(s,r).then(o=>o(e,t))}}},ke=class extends I{acceptOrder(t,e){return B(this.configuration).acceptOrder(t,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(t,e){return B(this.configuration).confirmPreOrder(t,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(t,e){return B(this.configuration).deletePosParkedOrderV2(t,e).then(n=>n(this.axios,this.basePath))}deliverOrder(t,e){return B(this.configuration).deliverOrder(t,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(t,e){return B(this.configuration).getAllOrdersV2(t,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(t,e,n,s,r){return B(this.configuration).getOrdersV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(t,e){return B(this.configuration).getParkedPosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(t,e){return B(this.configuration).markOrderAsReady(t,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(t,e){return B(this.configuration).placePosOrderV4(t,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(t,e){return B(this.configuration).processPosOrderActions(t,e).then(n=>n(this.axios,this.basePath))}rejectOrder(t,e){return B(this.configuration).rejectOrder(t,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(t,e){return B(this.configuration).updatePosOrderV2(t,e).then(n=>n(this.axios,this.basePath))}},Ut=function(a){return{getPosSession:async(t,e={})=>{d("getPosSession","businessId",t);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getPosSessionV2:async(t,e={})=>{d("getPosSessionV2","businessId",t);let n="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}}}},ce=function(a){let t=Ut(a);return{async getPosSession(e,n){let s=await t.getPosSession(e,n);return h(s,P.default,p,a)},async getPosSessionV2(e,n){let s=await t.getPosSessionV2(e,n);return h(s,P.default,p,a)}}},Rr=function(a,t,e){let n=ce(a);return{getPosSession(s,r){return n.getPosSession(s,r).then(o=>o(e,t))},getPosSessionV2(s,r){return n.getPosSessionV2(s,r).then(o=>o(e,t))}}},_e=class extends I{getPosSession(t,e){return ce(this.configuration).getPosSession(t,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(t,e){return ce(this.configuration).getPosSessionV2(t,e).then(n=>n(this.axios,this.basePath))}},qt=function(a){return{cancelNetsTerminalTransaction:async(t,e={})=>{d("cancelNetsTerminalTransaction","netsCancelTransactionDto",t);let n="/api/v3/payment/nets/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},cancelVivaTransactionV2:async(t,e={})=>{d("cancelVivaTransactionV2","vivaCancelTransactionDto",t);let n="/api/v2/payment/viva/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createNetsRefundTransaction:async(t,e={})=>{d("createNetsRefundTransaction","createRefundDto",t);let n="/api/v4/payment/nets/refund/transaction",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentReference:async(t,e={})=>{d("getPaymentReference","getPaymentReferenceDto",t);let n="/api/v1/payment/reference",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getPaymentStatus:async(t,e={})=>{d("getPaymentStatus","getPaymentStatusDto",t);let n="/api/v1/payment/status",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateNetsTerminalTransaction:async(t,e={})=>{d("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",t);let n="/api/v3/payment/nets/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},initiateTerminalTransaction:async(t,e={})=>{d("initiateTerminalTransaction","createTerminalPaymentDto",t);let n="/api/v4/payment/viva/terminal/initiate",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},processOnlineOrderRefund:async(t,e={})=>{d("processOnlineOrderRefund","orderResponseDto",t);let n="/api/v1/payment/online-orders/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundCashPaymentV3:async(t,e={})=>{d("refundCashPaymentV3","cashRefundPayload",t);let n="/api/v3/payment/cash/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundManualPaymentV3:async(t,e={})=>{d("refundManualPaymentV3","manualRefundPayload",t);let n="/api/v3/payment/manual/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundNetsTransactionV3:async(t,e={})=>{d("refundNetsTransactionV3","refundPayloadDtoV4",t);let n="/api/v3/payment/nets/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundSingleVivaTransaction:async(t,e={})=>{d("refundSingleVivaTransaction","createRefundDto",t);let n="/api/v4/payment/viva/refund/single",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV3:async(t,e={})=>{d("refundVivaTransactionV3","refundPayloadDto",t);let n="/api/v3/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},refundVivaTransactionV4:async(t,e={})=>{d("refundVivaTransactionV4","refundPayloadDtoV4",t);let n="/api/v4/payment/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},q=function(a){let t=qt(a);return{async cancelNetsTerminalTransaction(e,n){let s=await t.cancelNetsTerminalTransaction(e,n);return h(s,P.default,p,a)},async cancelVivaTransactionV2(e,n){let s=await t.cancelVivaTransactionV2(e,n);return h(s,P.default,p,a)},async createNetsRefundTransaction(e,n){let s=await t.createNetsRefundTransaction(e,n);return h(s,P.default,p,a)},async getPaymentReference(e,n){let s=await t.getPaymentReference(e,n);return h(s,P.default,p,a)},async getPaymentStatus(e,n){let s=await t.getPaymentStatus(e,n);return h(s,P.default,p,a)},async initiateNetsTerminalTransaction(e,n){let s=await t.initiateNetsTerminalTransaction(e,n);return h(s,P.default,p,a)},async initiateTerminalTransaction(e,n){let s=await t.initiateTerminalTransaction(e,n);return h(s,P.default,p,a)},async processOnlineOrderRefund(e,n){let s=await t.processOnlineOrderRefund(e,n);return h(s,P.default,p,a)},async refundCashPaymentV3(e,n){let s=await t.refundCashPaymentV3(e,n);return h(s,P.default,p,a)},async refundManualPaymentV3(e,n){let s=await t.refundManualPaymentV3(e,n);return h(s,P.default,p,a)},async refundNetsTransactionV3(e,n){let s=await t.refundNetsTransactionV3(e,n);return h(s,P.default,p,a)},async refundSingleVivaTransaction(e,n){let s=await t.refundSingleVivaTransaction(e,n);return h(s,P.default,p,a)},async refundVivaTransactionV3(e,n){let s=await t.refundVivaTransactionV3(e,n);return h(s,P.default,p,a)},async refundVivaTransactionV4(e,n){let s=await t.refundVivaTransactionV4(e,n);return h(s,P.default,p,a)}}},br=function(a,t,e){let n=q(a);return{cancelNetsTerminalTransaction(s,r){return n.cancelNetsTerminalTransaction(s,r).then(o=>o(e,t))},cancelVivaTransactionV2(s,r){return n.cancelVivaTransactionV2(s,r).then(o=>o(e,t))},createNetsRefundTransaction(s,r){return n.createNetsRefundTransaction(s,r).then(o=>o(e,t))},getPaymentReference(s,r){return n.getPaymentReference(s,r).then(o=>o(e,t))},getPaymentStatus(s,r){return n.getPaymentStatus(s,r).then(o=>o(e,t))},initiateNetsTerminalTransaction(s,r){return n.initiateNetsTerminalTransaction(s,r).then(o=>o(e,t))},initiateTerminalTransaction(s,r){return n.initiateTerminalTransaction(s,r).then(o=>o(e,t))},processOnlineOrderRefund(s,r){return n.processOnlineOrderRefund(s,r).then(o=>o(e,t))},refundCashPaymentV3(s,r){return n.refundCashPaymentV3(s,r).then(o=>o(e,t))},refundManualPaymentV3(s,r){return n.refundManualPaymentV3(s,r).then(o=>o(e,t))},refundNetsTransactionV3(s,r){return n.refundNetsTransactionV3(s,r).then(o=>o(e,t))},refundSingleVivaTransaction(s,r){return n.refundSingleVivaTransaction(s,r).then(o=>o(e,t))},refundVivaTransactionV3(s,r){return n.refundVivaTransactionV3(s,r).then(o=>o(e,t))},refundVivaTransactionV4(s,r){return n.refundVivaTransactionV4(s,r).then(o=>o(e,t))}}},we=class extends I{cancelNetsTerminalTransaction(t,e){return q(this.configuration).cancelNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(t,e){return q(this.configuration).cancelVivaTransactionV2(t,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(t,e){return q(this.configuration).createNetsRefundTransaction(t,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(t,e){return q(this.configuration).getPaymentReference(t,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(t,e){return q(this.configuration).getPaymentStatus(t,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(t,e){return q(this.configuration).initiateNetsTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(t,e){return q(this.configuration).initiateTerminalTransaction(t,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(t,e){return q(this.configuration).processOnlineOrderRefund(t,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(t,e){return q(this.configuration).refundCashPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(t,e){return q(this.configuration).refundManualPaymentV3(t,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(t,e){return q(this.configuration).refundNetsTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(t,e){return q(this.configuration).refundSingleVivaTransaction(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(t,e){return q(this.configuration).refundVivaTransactionV3(t,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(t,e){return q(this.configuration).refundVivaTransactionV4(t,e).then(n=>n(this.axios,this.basePath))}},Bt=function(a){return{loadConfigFile:async(t={})=>{let e="/api/plugin/config.json",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},upsertBusiness:async(t={})=>{let e="/api/plugin/business/upsert",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},pe=function(a){let t=Bt(a);return{async loadConfigFile(e){let n=await t.loadConfigFile(e);return h(n,P.default,p,a)},async upsertBusiness(e){let n=await t.upsertBusiness(e);return h(n,P.default,p,a)}}},Cr=function(a,t,e){let n=pe(a);return{loadConfigFile(s){return n.loadConfigFile(s).then(r=>r(e,t))},upsertBusiness(s){return n.upsertBusiness(s).then(r=>r(e,t))}}},Ne=class extends I{loadConfigFile(t){return pe(this.configuration).loadConfigFile(t).then(e=>e(this.axios,this.basePath))}upsertBusiness(t){return pe(this.configuration).upsertBusiness(t).then(e=>e(this.axios,this.basePath))}},Mt=function(a){return{updateChannelInventoryV2:async(t,e,n,s,r={})=>{d("updateChannelInventoryV2","businessId",t),d("updateChannelInventoryV2","categoryId",e),d("updateChannelInventoryV2","productId",n),d("updateChannelInventoryV2","updateChannelInventoryDto",s);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(t))).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},c={},f={};c["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},u.data=A(s,u,a),{url:y(i),options:u}}}},nt=function(a){let t=Mt(a);return{async updateChannelInventoryV2(e,n,s,r,o){let i=await t.updateChannelInventoryV2(e,n,s,r,o);return h(i,P.default,p,a)}}},Dr=function(a,t,e){let n=nt(a);return{updateChannelInventoryV2(s,r,o,i,l){return n.updateChannelInventoryV2(s,r,o,i,l).then(u=>u(e,t))}}},Le=class extends I{updateChannelInventoryV2(t,e,n,s,r){return nt(this.configuration).updateChannelInventoryV2(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}},kt=function(a){return{getSupportedChannels:async(t,e={})=>{d("getSupportedChannels","businessId",t);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},registerCredential:async(t,e={})=>{d("registerCredential","body",t);let n="/api/v1/provider/credentials",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},registerProvider:async(t,e={})=>{d("registerProvider","body",t);let n="/api/v1/provider",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},te=function(a){let t=kt(a);return{async getSupportedChannels(e,n){let s=await t.getSupportedChannels(e,n);return h(s,P.default,p,a)},async registerCredential(e,n){let s=await t.registerCredential(e,n);return h(s,P.default,p,a)},async registerProvider(e,n){let s=await t.registerProvider(e,n);return h(s,P.default,p,a)}}},Or=function(a,t,e){let n=te(a);return{getSupportedChannels(s,r){return n.getSupportedChannels(s,r).then(o=>o(e,t))},registerCredential(s,r){return n.registerCredential(s,r).then(o=>o(e,t))},registerProvider(s,r){return n.registerProvider(s,r).then(o=>o(e,t))}}},Fe=class extends I{getSupportedChannels(t,e){return te(this.configuration).getSupportedChannels(t,e).then(n=>n(this.axios,this.basePath))}registerCredential(t,e){return te(this.configuration).registerCredential(t,e).then(n=>n(this.axios,this.basePath))}registerProvider(t,e){return te(this.configuration).registerProvider(t,e).then(n=>n(this.axios,this.basePath))}},_t=function(a){return{cancelPlan:async(t,e,n,s={})=>{d("cancelPlan","businessId",t),d("cancelPlan","orderId",e),d("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},createRefundPlan:async(t,e,n,s={})=>{d("createRefundPlan","businessId",t),d("createRefundPlan","orderId",e),d("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}},getRefundPlan:async(t,e,n,s={})=>{d("getRefundPlan","businessId",t),d("getRefundPlan","orderId",e),d("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};n!==void 0&&(c.status=n),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},recordRefundPlan:async(t,e,n,s,r={})=>{d("recordRefundPlan","businessId",t),d("recordRefundPlan","orderId",e),d("recordRefundPlan","refundId",n),d("recordRefundPlan","completedStepDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(t))).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},c={},f={};c["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},u.data=A(s,u,a),{url:y(i),options:u}},refundOnlineOrder:async(t,e,n,s={})=>{d("refundOnlineOrder","businessId",t),d("refundOnlineOrder","orderId",e),d("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(t))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};n!==void 0&&(c.provider=n),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}},resolveRefundChoice:async(t,e,n,s,r={})=>{d("resolveRefundChoice","businessId",t),d("resolveRefundChoice","orderId",e),d("resolveRefundChoice","refundId",n),d("resolveRefundChoice","resolveChoiceDto",s);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(t))).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},c={},f={};c["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},u.data=A(s,u,a),{url:y(i),options:u}},startProcessPlan:async(t,e,n,s={})=>{d("startProcessPlan","businessId",t),d("startProcessPlan","orderId",e),d("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(t))).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,...s},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},_=function(a){let t=_t(a);return{async cancelPlan(e,n,s,r){let o=await t.cancelPlan(e,n,s,r);return h(o,P.default,p,a)},async createRefundPlan(e,n,s,r){let o=await t.createRefundPlan(e,n,s,r);return h(o,P.default,p,a)},async getRefundPlan(e,n,s,r){let o=await t.getRefundPlan(e,n,s,r);return h(o,P.default,p,a)},async recordRefundPlan(e,n,s,r,o){let i=await t.recordRefundPlan(e,n,s,r,o);return h(i,P.default,p,a)},async refundOnlineOrder(e,n,s,r){let o=await t.refundOnlineOrder(e,n,s,r);return h(o,P.default,p,a)},async resolveRefundChoice(e,n,s,r,o){let i=await t.resolveRefundChoice(e,n,s,r,o);return h(i,P.default,p,a)},async startProcessPlan(e,n,s,r){let o=await t.startProcessPlan(e,n,s,r);return h(o,P.default,p,a)}}},Vr=function(a,t,e){let n=_(a);return{cancelPlan(s,r,o,i){return n.cancelPlan(s,r,o,i).then(l=>l(e,t))},createRefundPlan(s,r,o,i){return n.createRefundPlan(s,r,o,i).then(l=>l(e,t))},getRefundPlan(s,r,o,i){return n.getRefundPlan(s,r,o,i).then(l=>l(e,t))},recordRefundPlan(s,r,o,i,l){return n.recordRefundPlan(s,r,o,i,l).then(u=>u(e,t))},refundOnlineOrder(s,r,o,i){return n.refundOnlineOrder(s,r,o,i).then(l=>l(e,t))},resolveRefundChoice(s,r,o,i,l){return n.resolveRefundChoice(s,r,o,i,l).then(u=>u(e,t))},startProcessPlan(s,r,o,i){return n.startProcessPlan(s,r,o,i).then(l=>l(e,t))}}},je=class extends I{cancelPlan(t,e,n,s){return _(this.configuration).cancelPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}createRefundPlan(t,e,n,s){return _(this.configuration).createRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}getRefundPlan(t,e,n,s){return _(this.configuration).getRefundPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}recordRefundPlan(t,e,n,s,r){return _(this.configuration).recordRefundPlan(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(t,e,n,s){return _(this.configuration).refundOnlineOrder(t,e,n,s).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(t,e,n,s,r){return _(this.configuration).resolveRefundChoice(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(t,e,n,s){return _(this.configuration).startProcessPlan(t,e,n,s).then(r=>r(this.axios,this.basePath))}},wt=function(a){return{getEndOfDayReportV5:async(t,e,n,s,r,o,i={})=>{d("getEndOfDayReportV5","businessIds",t);let l="/api/v5/report/end-of-day",u=new URL(l,m),c;a&&(c=a.baseOptions);let f={method:"GET",...c,...i},x={},R={};e!==void 0&&(R.timeSpan=e),n!==void 0&&(R.start=n),s!==void 0&&(R.end=s),t&&(R.businessIds=t),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let b=c&&c.headers?c.headers:{};return f.headers={...x,...b,...i.headers},{url:y(u),options:f}},getPOSEndOfDayReportV4:async(t,e,n,s,r,o={})=>{d("getPOSEndOfDayReportV4","businessIds",t);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let c={method:"GET",...u,...o},f={},x={};e!==void 0&&(x.timeSpan=e),n!==void 0&&(x.start=n),s!==void 0&&(x.end=s),t&&(x.businessIds=t),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return c.headers={...f,...R,...o.headers},{url:y(l),options:c}},sendReportEmailV4:async(t,e,n,s,r,o,i={})=>{d("sendReportEmailV4","businessIds",t),d("sendReportEmailV4","timezone",e),d("sendReportEmailV4","sendReportEmailDto",n);let l="/api/v4/report/email",u=new URL(l,m),c;a&&(c=a.baseOptions);let f={method:"POST",...c,...i},x={},R={};s!==void 0&&(R.timeSpan=s),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),t&&(R.businessIds=t),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let b=c&&c.headers?c.headers:{};return f.headers={...x,...b,...i.headers},f.data=A(n,f,a),{url:y(u),options:f}},sendReportEmailV5:async(t,e,n,s,r,o,i,l={})=>{d("sendReportEmailV5","businessIds",t),d("sendReportEmailV5","timezone",e),d("sendReportEmailV5","sendReportEmailDto",n);let u="/api/v5/report/email",c=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"POST",...f,...l},R={},b={};s!==void 0&&(b.timeSpan=s),r!==void 0&&(b.start=r),o!==void 0&&(b.end=o),t&&(b.businessIds=t),e!==void 0&&(b.timezone=e),i!==void 0&&(b.provider=i),R["Content-Type"]="application/json",g(c,b);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},x.data=A(n,x,a),{url:y(c),options:x}}}},z=function(a){let t=wt(a);return{async getEndOfDayReportV5(e,n,s,r,o,i,l){let u=await t.getEndOfDayReportV5(e,n,s,r,o,i,l);return h(u,P.default,p,a)},async getPOSEndOfDayReportV4(e,n,s,r,o,i){let l=await t.getPOSEndOfDayReportV4(e,n,s,r,o,i);return h(l,P.default,p,a)},async sendReportEmailV4(e,n,s,r,o,i,l){let u=await t.sendReportEmailV4(e,n,s,r,o,i,l);return h(u,P.default,p,a)},async sendReportEmailV5(e,n,s,r,o,i,l,u){let c=await t.sendReportEmailV5(e,n,s,r,o,i,l,u);return h(c,P.default,p,a)}}},Ir=function(a,t,e){let n=z(a);return{getEndOfDayReportV5(s,r,o,i,l,u,c){return n.getEndOfDayReportV5(s,r,o,i,l,u,c).then(f=>f(e,t))},getPOSEndOfDayReportV4(s,r,o,i,l,u){return n.getPOSEndOfDayReportV4(s,r,o,i,l,u).then(c=>c(e,t))},sendReportEmailV4(s,r,o,i,l,u,c){return n.sendReportEmailV4(s,r,o,i,l,u,c).then(f=>f(e,t))},sendReportEmailV5(s,r,o,i,l,u,c,f){return n.sendReportEmailV5(s,r,o,i,l,u,c,f).then(x=>x(e,t))}}},We=class extends I{getEndOfDayReportV5(t,e,n,s,r,o,i){return z(this.configuration).getEndOfDayReportV5(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(t,e,n,s,r,o){return z(this.configuration).getPOSEndOfDayReportV4(t,e,n,s,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(t,e,n,s,r,o,i){return z(this.configuration).sendReportEmailV4(t,e,n,s,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(t,e,n,s,r,o,i,l){return z(this.configuration).sendReportEmailV5(t,e,n,s,r,o,i,l).then(u=>u(this.axios,this.basePath))}},Nt=function(a){return{clockIn:async(t,e,n={})=>{d("clockIn","businessId",t),d("clockIn","clockInRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},clockOut:async(t,e,n={})=>{d("clockOut","businessId",t),d("clockOut","clockOutRequestDto",e);let s="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getTodayShift:async(t,e,n={})=>{d("getTodayShift","businessId",t),d("getTodayShift","employeeId",e);let s="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},unlock:async(t,e,n={})=>{d("unlock","businessId",t),d("unlock","unlockTerminalDto",e);let s="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},Y=function(a){let t=Nt(a);return{async clockIn(e,n,s){let r=await t.clockIn(e,n,s);return h(r,P.default,p,a)},async clockOut(e,n,s){let r=await t.clockOut(e,n,s);return h(r,P.default,p,a)},async getTodayShift(e,n,s){let r=await t.getTodayShift(e,n,s);return h(r,P.default,p,a)},async unlock(e,n,s){let r=await t.unlock(e,n,s);return h(r,P.default,p,a)}}},Sr=function(a,t,e){let n=Y(a);return{clockIn(s,r,o){return n.clockIn(s,r,o).then(i=>i(e,t))},clockOut(s,r,o){return n.clockOut(s,r,o).then(i=>i(e,t))},getTodayShift(s,r,o){return n.getTodayShift(s,r,o).then(i=>i(e,t))},unlock(s,r,o){return n.unlock(s,r,o).then(i=>i(e,t))}}},Ge=class extends I{clockIn(t,e,n){return Y(this.configuration).clockIn(t,e,n).then(s=>s(this.axios,this.basePath))}clockOut(t,e,n){return Y(this.configuration).clockOut(t,e,n).then(s=>s(this.axios,this.basePath))}getTodayShift(t,e,n){return Y(this.configuration).getTodayShift(t,e,n).then(s=>s(this.axios,this.basePath))}unlock(t,e,n){return Y(this.configuration).unlock(t,e,n).then(s=>s(this.axios,this.basePath))}},Lt=function(a){return{deactivateStation:async(t={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getStation:async(t={})=>{let e="/api/v1/station",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},syncStation:async(t,e={})=>{d("syncStation","syncStationDto",t);let n="/api/v1/station/sync",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},se=function(a){let t=Lt(a);return{async deactivateStation(e){let n=await t.deactivateStation(e);return h(n,P.default,p,a)},async getStation(e){let n=await t.getStation(e);return h(n,P.default,p,a)},async syncStation(e,n){let s=await t.syncStation(e,n);return h(s,P.default,p,a)}}},vr=function(a,t,e){let n=se(a);return{deactivateStation(s){return n.deactivateStation(s).then(r=>r(e,t))},getStation(s){return n.getStation(s).then(r=>r(e,t))},syncStation(s,r){return n.syncStation(s,r).then(o=>o(e,t))}}},Ke=class extends I{deactivateStation(t){return se(this.configuration).deactivateStation(t).then(e=>e(this.axios,this.basePath))}getStation(t){return se(this.configuration).getStation(t).then(e=>e(this.axios,this.basePath))}syncStation(t,e){return se(this.configuration).syncStation(t,e).then(n=>n(this.axios,this.basePath))}},Ft=function(a){return{connectTerminal:async(t,e={})=>{d("connectTerminal","connectTerminalDto",t);let n="/api/v1/terminal/connect",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},disconnectTerminal:async(t={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},discoverTerminal:async(t,e={})=>{d("discoverTerminal","discoverTerminalDto",t);let n="/api/v1/terminal/discover",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getTerminalStatus:async(t,e,n,s={})=>{d("getTerminalStatus","businessId",t),d("getTerminalStatus","provider",e),d("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(t))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...s},u={},c={};e!==void 0&&(c.provider=e),n!==void 0&&(c.terminalId=n),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},{url:y(o),options:l}}}},J=function(a){let t=Ft(a);return{async connectTerminal(e,n){let s=await t.connectTerminal(e,n);return h(s,P.default,p,a)},async disconnectTerminal(e){let n=await t.disconnectTerminal(e);return h(n,P.default,p,a)},async discoverTerminal(e,n){let s=await t.discoverTerminal(e,n);return h(s,P.default,p,a)},async getTerminalStatus(e,n,s,r){let o=await t.getTerminalStatus(e,n,s,r);return h(o,P.default,p,a)}}},Tr=function(a,t,e){let n=J(a);return{connectTerminal(s,r){return n.connectTerminal(s,r).then(o=>o(e,t))},disconnectTerminal(s){return n.disconnectTerminal(s).then(r=>r(e,t))},discoverTerminal(s,r){return n.discoverTerminal(s,r).then(o=>o(e,t))},getTerminalStatus(s,r,o,i){return n.getTerminalStatus(s,r,o,i).then(l=>l(e,t))}}},He=class extends I{connectTerminal(t,e){return J(this.configuration).connectTerminal(t,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(t){return J(this.configuration).disconnectTerminal(t).then(e=>e(this.axios,this.basePath))}discoverTerminal(t,e){return J(this.configuration).discoverTerminal(t,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(t,e,n,s){return J(this.configuration).getTerminalStatus(t,e,n,s).then(r=>r(this.axios,this.basePath))}},jt=function(a){return{getUserBusinessV1:async(t={})=>{let e="/api/v1/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserBusinessV2:async(t={})=>{let e="/api/v2/user/business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},getUserInfoV1:async(t={})=>{let e="/api/v1/user",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={},i={};await D(o,a),g(n,i);let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},ne=function(a){let t=jt(a);return{async getUserBusinessV1(e){let n=await t.getUserBusinessV1(e);return h(n,P.default,p,a)},async getUserBusinessV2(e){let n=await t.getUserBusinessV2(e);return h(n,P.default,p,a)},async getUserInfoV1(e){let n=await t.getUserInfoV1(e);return h(n,P.default,p,a)}}},Er=function(a,t,e){let n=ne(a);return{getUserBusinessV1(s){return n.getUserBusinessV1(s).then(r=>r(e,t))},getUserBusinessV2(s){return n.getUserBusinessV2(s).then(r=>r(e,t))},getUserInfoV1(s){return n.getUserInfoV1(s).then(r=>r(e,t))}}},Qe=class extends I{getUserBusinessV1(t){return ne(this.configuration).getUserBusinessV1(t).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(t){return ne(this.configuration).getUserBusinessV2(t).then(e=>e(this.axios,this.basePath))}getUserInfoV1(t){return ne(this.configuration).getUserInfoV1(t).then(e=>e(this.axios,this.basePath))}},Wt=function(a){return{getUser:async(t,e={})=>{d("getUser","userValidation",t);let n="/api/v1/users",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},updateUserRewardPoints:async(t,e,n,s={})=>{d("updateUserRewardPoints","userId",t),d("updateUserRewardPoints","walletId",e),d("updateUserRewardPoints","rewardPointPayload",n);let r="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(t))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...s},u={},c={};await D(u,a),u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...s.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},me=function(a){let t=Wt(a);return{async getUser(e,n){let s=await t.getUser(e,n);return h(s,P.default,p,a)},async updateUserRewardPoints(e,n,s,r){let o=await t.updateUserRewardPoints(e,n,s,r);return h(o,P.default,p,a)}}},Ur=function(a,t,e){let n=me(a);return{getUser(s,r){return n.getUser(s,r).then(o=>o(e,t))},updateUserRewardPoints(s,r,o,i){return n.updateUserRewardPoints(s,r,o,i).then(l=>l(e,t))}}},$e=class extends I{getUser(t,e){return me(this.configuration).getUser(t,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(t,e,n,s){return me(this.configuration).updateUserRewardPoints(t,e,n,s).then(r=>r(this.axios,this.basePath))}},Gt=function(a){return{createVivaAppToAppPayment:async(t,e={})=>{d("createVivaAppToAppPayment","createTerminalPaymentDto",t);let n="/api/v1/viva/a2a/create-payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}}}},rt=function(a){let t=Gt(a);return{async createVivaAppToAppPayment(e,n){let s=await t.createVivaAppToAppPayment(e,n);return h(s,P.default,p,a)}}},qr=function(a,t,e){let n=rt(a);return{createVivaAppToAppPayment(s,r){return n.createVivaAppToAppPayment(s,r).then(o=>o(e,t))}}},ze=class extends I{createVivaAppToAppPayment(t,e){return rt(this.configuration).createVivaAppToAppPayment(t,e).then(n=>n(this.axios,this.basePath))}},Kt=function(a){return{handleAssignmentWebhook:async(t={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleBusinessWebhook:async(t={})=>{let e="/api/webhook/add-business",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleFoodoraEvent:async(t,e={})=>{d("handleFoodoraEvent","orderUpdateDto",t);let n="/api/webhook/order/event",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleLoadEmployee:async(t={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEvents:async(t={})=>{let e="/api/webhook/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsEventsV2:async(t={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleNetsRefundEvents:async(t={})=>{let e="/api/webhook/nets/refund",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handlePreorderReminder:async(t,e={})=>{d("handlePreorderReminder","preOrderReminderDto",t);let n="/api/webhook/preorder-reminder",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleRoleWebhook:async(t={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleShiftWebhook:async(t={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleVivaEvents:async(t,e={})=>{d("handleVivaEvents","vivaWebhookPayloadDto",t);let n="/api/webhook/viva/verification",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},handleWebhook:async(t={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(t={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(t,e={})=>{d("handleWoltDriveEventByCountry","country",t);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleWorldlineEvents:async(t={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},updateWoltProduct:async(t={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}},verifyVivaWebhook:async(t={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"GET",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},U=function(a){let t=Kt(a);return{async handleAssignmentWebhook(e){let n=await t.handleAssignmentWebhook(e);return h(n,P.default,p,a)},async handleBusinessWebhook(e){let n=await t.handleBusinessWebhook(e);return h(n,P.default,p,a)},async handleFoodoraEvent(e,n){let s=await t.handleFoodoraEvent(e,n);return h(s,P.default,p,a)},async handleLoadEmployee(e){let n=await t.handleLoadEmployee(e);return h(n,P.default,p,a)},async handleNetsEvents(e){let n=await t.handleNetsEvents(e);return h(n,P.default,p,a)},async handleNetsEventsV2(e){let n=await t.handleNetsEventsV2(e);return h(n,P.default,p,a)},async handleNetsRefundEvents(e){let n=await t.handleNetsRefundEvents(e);return h(n,P.default,p,a)},async handlePreorderReminder(e,n){let s=await t.handlePreorderReminder(e,n);return h(s,P.default,p,a)},async handleRoleWebhook(e){let n=await t.handleRoleWebhook(e);return h(n,P.default,p,a)},async handleShiftWebhook(e){let n=await t.handleShiftWebhook(e);return h(n,P.default,p,a)},async handleVivaEvents(e,n){let s=await t.handleVivaEvents(e,n);return h(s,P.default,p,a)},async handleWebhook(e){let n=await t.handleWebhook(e);return h(n,P.default,p,a)},async handleWoltDriveEvent(e){let n=await t.handleWoltDriveEvent(e);return h(n,P.default,p,a)},async handleWoltDriveEventByCountry(e,n){let s=await t.handleWoltDriveEventByCountry(e,n);return h(s,P.default,p,a)},async handleWorldlineEvents(e){let n=await t.handleWorldlineEvents(e);return h(n,P.default,p,a)},async updateWoltProduct(e){let n=await t.updateWoltProduct(e);return h(n,P.default,p,a)},async verifyVivaWebhook(e){let n=await t.verifyVivaWebhook(e);return h(n,P.default,p,a)}}},Br=function(a,t,e){let n=U(a);return{handleAssignmentWebhook(s){return n.handleAssignmentWebhook(s).then(r=>r(e,t))},handleBusinessWebhook(s){return n.handleBusinessWebhook(s).then(r=>r(e,t))},handleFoodoraEvent(s,r){return n.handleFoodoraEvent(s,r).then(o=>o(e,t))},handleLoadEmployee(s){return n.handleLoadEmployee(s).then(r=>r(e,t))},handleNetsEvents(s){return n.handleNetsEvents(s).then(r=>r(e,t))},handleNetsEventsV2(s){return n.handleNetsEventsV2(s).then(r=>r(e,t))},handleNetsRefundEvents(s){return n.handleNetsRefundEvents(s).then(r=>r(e,t))},handlePreorderReminder(s,r){return n.handlePreorderReminder(s,r).then(o=>o(e,t))},handleRoleWebhook(s){return n.handleRoleWebhook(s).then(r=>r(e,t))},handleShiftWebhook(s){return n.handleShiftWebhook(s).then(r=>r(e,t))},handleVivaEvents(s,r){return n.handleVivaEvents(s,r).then(o=>o(e,t))},handleWebhook(s){return n.handleWebhook(s).then(r=>r(e,t))},handleWoltDriveEvent(s){return n.handleWoltDriveEvent(s).then(r=>r(e,t))},handleWoltDriveEventByCountry(s,r){return n.handleWoltDriveEventByCountry(s,r).then(o=>o(e,t))},handleWorldlineEvents(s){return n.handleWorldlineEvents(s).then(r=>r(e,t))},updateWoltProduct(s){return n.updateWoltProduct(s).then(r=>r(e,t))},verifyVivaWebhook(s){return n.verifyVivaWebhook(s).then(r=>r(e,t))}}},Ye=class extends I{handleAssignmentWebhook(t){return U(this.configuration).handleAssignmentWebhook(t).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(t){return U(this.configuration).handleBusinessWebhook(t).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(t,e){return U(this.configuration).handleFoodoraEvent(t,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(t){return U(this.configuration).handleLoadEmployee(t).then(e=>e(this.axios,this.basePath))}handleNetsEvents(t){return U(this.configuration).handleNetsEvents(t).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(t){return U(this.configuration).handleNetsEventsV2(t).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(t){return U(this.configuration).handleNetsRefundEvents(t).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(t,e){return U(this.configuration).handlePreorderReminder(t,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(t){return U(this.configuration).handleRoleWebhook(t).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(t){return U(this.configuration).handleShiftWebhook(t).then(e=>e(this.axios,this.basePath))}handleVivaEvents(t,e){return U(this.configuration).handleVivaEvents(t,e).then(n=>n(this.axios,this.basePath))}handleWebhook(t){return U(this.configuration).handleWebhook(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(t){return U(this.configuration).handleWoltDriveEvent(t).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(t,e){return U(this.configuration).handleWoltDriveEventByCountry(t,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(t){return U(this.configuration).handleWorldlineEvents(t).then(e=>e(this.axios,this.basePath))}updateWoltProduct(t){return U(this.configuration).updateWoltProduct(t).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(t){return U(this.configuration).verifyVivaWebhook(t).then(e=>e(this.axios,this.basePath))}},Ht=function(a){return{cancelPayment:async(t,e={})=>{d("cancelPayment","cancelWorldlinePaymentDto",t);let n="/api/v1/worldline/payment/cancel",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createPayment:async(t,e={})=>{d("createPayment","createWorldlineTerminalPaymentDto",t);let n="/api/v1/worldline/payment",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},createRefund:async(t,e={})=>{d("createRefund","createWorldlineRefundDto",t);let n="/api/v1/worldline/refund",s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(s,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(t,o,a),{url:y(s),options:o}},getNextRequest:async(t,e,n,s,r={})=>{d("getNextRequest","terminalId",t),d("getNextRequest","authorization",e),d("getNextRequest","sessionID",n),d("getNextRequest","protocolVersion",s);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(t))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},f={};e!=null&&(c.Authorization=String(e)),n!=null&&(c["Session-ID"]=String(n)),s!=null&&(c["Protocol-Version"]=String(s)),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},submitEvent:async(t,e,n={})=>{d("submitEvent","terminalId",t),d("submitEvent","worldlineEventEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},submitResponse:async(t,e,n={})=>{d("submitResponse","terminalId",t),d("submitResponse","worldlineResponseEnvelopeDto",e);let s="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},j=function(a){let t=Ht(a);return{async cancelPayment(e,n){let s=await t.cancelPayment(e,n);return h(s,P.default,p,a)},async createPayment(e,n){let s=await t.createPayment(e,n);return h(s,P.default,p,a)},async createRefund(e,n){let s=await t.createRefund(e,n);return h(s,P.default,p,a)},async getNextRequest(e,n,s,r,o){let i=await t.getNextRequest(e,n,s,r,o);return h(i,P.default,p,a)},async submitEvent(e,n,s){let r=await t.submitEvent(e,n,s);return h(r,P.default,p,a)},async submitResponse(e,n,s){let r=await t.submitResponse(e,n,s);return h(r,P.default,p,a)}}},Mr=function(a,t,e){let n=j(a);return{cancelPayment(s,r){return n.cancelPayment(s,r).then(o=>o(e,t))},createPayment(s,r){return n.createPayment(s,r).then(o=>o(e,t))},createRefund(s,r){return n.createRefund(s,r).then(o=>o(e,t))},getNextRequest(s,r,o,i,l){return n.getNextRequest(s,r,o,i,l).then(u=>u(e,t))},submitEvent(s,r,o){return n.submitEvent(s,r,o).then(i=>i(e,t))},submitResponse(s,r,o){return n.submitResponse(s,r,o).then(i=>i(e,t))}}},Je=class extends I{cancelPayment(t,e){return j(this.configuration).cancelPayment(t,e).then(n=>n(this.axios,this.basePath))}createPayment(t,e){return j(this.configuration).createPayment(t,e).then(n=>n(this.axios,this.basePath))}createRefund(t,e){return j(this.configuration).createRefund(t,e).then(n=>n(this.axios,this.basePath))}getNextRequest(t,e,n,s,r){return j(this.configuration).getNextRequest(t,e,n,s,r).then(o=>o(this.axios,this.basePath))}submitEvent(t,e,n){return j(this.configuration).submitEvent(t,e,n).then(s=>s(this.axios,this.basePath))}submitResponse(t,e,n){return j(this.configuration).submitResponse(t,e,n).then(s=>s(this.axios,this.basePath))}},Qt=function(a){return{createPaymentRequest:async(t,e,n={})=>{d("createPaymentRequest","terminalId",t),d("createPaymentRequest","worldlinePaymentRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},createRefundRequest:async(t,e,n={})=>{d("createRefundRequest","terminalId",t),d("createRefundRequest","worldlineRefundRequestDataDto",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}},getPaymentResult:async(t,e={})=>{d("getPaymentResult","operationId",t);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},getTerminalAuthContext:async(t,e,n={})=>{d("getTerminalAuthContext","terminalId",t),d("getTerminalAuthContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getTerminalContext:async(t,e,n={})=>{d("getTerminalContext","terminalId",t),d("getTerminalContext","channel",e);let s="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(t))),r=new URL(s,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getTerminalState:async(t,e={})=>{d("getTerminalState","terminalId",t);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(t))),s=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(s,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(s),options:o}},handleCallback:async(t={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),s;a&&(s=a.baseOptions);let r={method:"POST",...s,...t},o={};g(n,{});let l=s&&s.headers?s.headers:{};return r.headers={...o,...l,...t.headers},{url:y(n),options:r}}}},w=function(a){let t=Qt(a);return{async createPaymentRequest(e,n,s){let r=await t.createPaymentRequest(e,n,s);return h(r,P.default,p,a)},async createRefundRequest(e,n,s){let r=await t.createRefundRequest(e,n,s);return h(r,P.default,p,a)},async getPaymentResult(e,n){let s=await t.getPaymentResult(e,n);return h(s,P.default,p,a)},async getTerminalAuthContext(e,n,s){let r=await t.getTerminalAuthContext(e,n,s);return h(r,P.default,p,a)},async getTerminalContext(e,n,s){let r=await t.getTerminalContext(e,n,s);return h(r,P.default,p,a)},async getTerminalState(e,n){let s=await t.getTerminalState(e,n);return h(s,P.default,p,a)},async handleCallback(e){let n=await t.handleCallback(e);return h(n,P.default,p,a)}}},kr=function(a,t,e){let n=w(a);return{createPaymentRequest(s,r,o){return n.createPaymentRequest(s,r,o).then(i=>i(e,t))},createRefundRequest(s,r,o){return n.createRefundRequest(s,r,o).then(i=>i(e,t))},getPaymentResult(s,r){return n.getPaymentResult(s,r).then(o=>o(e,t))},getTerminalAuthContext(s,r,o){return n.getTerminalAuthContext(s,r,o).then(i=>i(e,t))},getTerminalContext(s,r,o){return n.getTerminalContext(s,r,o).then(i=>i(e,t))},getTerminalState(s,r){return n.getTerminalState(s,r).then(o=>o(e,t))},handleCallback(s){return n.handleCallback(s).then(r=>r(e,t))}}},Ze=class extends I{createPaymentRequest(t,e,n){return w(this.configuration).createPaymentRequest(t,e,n).then(s=>s(this.axios,this.basePath))}createRefundRequest(t,e,n){return w(this.configuration).createRefundRequest(t,e,n).then(s=>s(this.axios,this.basePath))}getPaymentResult(t,e){return w(this.configuration).getPaymentResult(t,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(t,e,n){return w(this.configuration).getTerminalAuthContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalContext(t,e,n){return w(this.configuration).getTerminalContext(t,e,n).then(s=>s(this.axios,this.basePath))}getTerminalState(t,e){return w(this.configuration).getTerminalState(t,e).then(n=>n(this.axios,this.basePath))}handleCallback(t){return w(this.configuration).handleCallback(t).then(e=>e(this.axios,this.basePath))}};var ot=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}};var _r={[Z.Eur]:2,[Z.Aed]:2,[Z.Usd]:2,[Z.Gbp]:2,BHD:3,JPY:0},wr={getMultiplier(a){let t=_r[a.toUpperCase()];return typeof t!="number"?100:Math.round(10**t)}};var re=ge(require("lodash")),at=a=>re.default.orderBy(a,["rank","id"],["asc","asc"]),Nr=a=>{let t=a.subcategories;return Array.isArray(t)?t:[]},Lr=(a,t)=>({...a,colorCode:a.colorCode??t}),$t=(a,t)=>re.default.compact(a.map(e=>t.get(e))),it=(a,t)=>a.flatMap(e=>{let n=t[e];return n?[e,...it(n.childIds,t)]:[]}),lt=(a,t)=>a.flatMap(e=>{let n=t[e];return n?.enabled?[e,...lt(n.childIds,t)]:[]}),Fr=a=>{let t=new Map,e={},n={},s=at(a),r=s.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let c=String(u.id);return t.set(c,Lr(u,l)),c});return s.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,c=o(i.products,u),f=(R,b)=>{let O=String(R.id),S=o(R.products,u),V=at(Nr(R)).map(E=>f(E,O));return n[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:b,productIds:S,childIds:V},O},x=at(i.subcategories??[]).map(R=>f(R,null));e[l]={...i,productIds:c,subcategoryIds:x}}),{sortedCategories:s,productMap:t,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},jr=(a,t,e,n)=>{let s=t[a];if(!s)return[];let r=lt(s.subcategoryIds,e),o=re.default.uniq([...s.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return $t(o,n)},Wr=(a,t,e)=>{let n=t[a];if(!n)return[];let s=it(n.subcategoryIds,e);return re.default.compact(s.map(r=>e[r]))};var zt="1.9.11";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,BusinessStatusEnum,CashLogReason,CashLogType,CashManagementApi,CashManagementApiAxiosParamCreator,CashManagementApiFactory,CashManagementApiFp,CashSessionDtoEnum,CashSessionStatus,ChannelEnum,CheckoutModelEnum,ConditionType,ConfigManagementApi,ConfigManagementApiAxiosParamCreator,ConfigManagementApiFactory,ConfigManagementApiFp,Configuration,ConsumptionType,CurrencyCode,CurrencyCodeEnum,CurrencyRegistry,DeliveryStatus,DeliveryType,DeviceType,DiscountScope,DiscountScopeType,DiscountSourceType,DiscountType,EmployeesApi,EmployeesApiAxiosParamCreator,EmployeesApiFactory,EmployeesApiFp,EntityType,EntityTypeEnum,EventTypeEnum,EventTypeIdEnum,FeeType,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,NotificationApi,NotificationApiAxiosParamCreator,NotificationApiFactory,NotificationApiFp,OperatingMode,OperatingModeEnum,OrderFormat,OrderInternalApi,OrderInternalApiAxiosParamCreator,OrderInternalApiFactory,OrderInternalApiFp,OrderMode,OrderRefundStatus,OrderSource,OrderStatus,OrderStatusEnum,OrderType,OrderTypePOS,OrderingCoApi,OrderingCoApiAxiosParamCreator,OrderingCoApiFactory,OrderingCoApiFp,OrdersApi,OrdersApiAxiosParamCreator,OrdersApiFactory,OrdersApiFp,POSSessionApi,POSSessionApiAxiosParamCreator,POSSessionApiFactory,POSSessionApiFp,PaymentApi,PaymentApiAxiosParamCreator,PaymentApiFactory,PaymentApiFp,PaymentEventType,PaymentFailureCode,PaymentMethod,PaymentProvider,PaymentProviderEnum,PaymentStatus,PaymentTypeEnum,PluginApi,PluginApiAxiosParamCreator,PluginApiFactory,PluginApiFp,PosDiscountTargetType,PosDiscountType,PosPaymentStatus,PosPaymentType,PosPermission,PreorderStatus,PrinterTypeEnum,ProductApi,ProductApiAxiosParamCreator,ProductApiFactory,ProductApiFp,ProductAvailability,ProductDetailLayout,ProductDetailLayoutEnum,PromotionDiscountType,ProviderApi,ProviderApiAxiosParamCreator,ProviderApiFactory,ProviderApiFp,ProviderEnum,PubSubAction,PubSubTarget,RefundFailureReasonKey,RefundMode,RefundOverallStatus,RefundStatusEnum,RefundStepStatus,RefundsApi,RefundsApiAxiosParamCreator,RefundsApiFactory,RefundsApiFp,ReportApi,ReportApiAxiosParamCreator,ReportApiFactory,ReportApiFp,ReportLanguage,SYNCKEY,SelectedPaymentProviderEnum,ShiftTrackingApi,ShiftTrackingApiAxiosParamCreator,ShiftTrackingApiFactory,ShiftTrackingApiFp,SimplePaymentStatus,SourceType,StaffActivityActionType,StationType,StationsApi,StationsApiAxiosParamCreator,StationsApiFactory,StationsApiFp,Status,SystemProfileType,TerminalApi,TerminalApiAxiosParamCreator,TerminalApiFactory,TerminalApiFp,TerminalConnectionType,TimeSpan,TransactionEventType,TransactionType,Type,UpsellMode,UserApi,UserApiAxiosParamCreator,UserApiFactory,UserApiFp,UsersApi,UsersApiAxiosParamCreator,UsersApiFactory,UsersApiFp,VivaApi,VivaApiAxiosParamCreator,VivaApiFactory,VivaApiFp,VivaAppToAppPaymentMethod,VivaCurrencyCode,VivaErrorId,VivaEventId,WebhookApi,WebhookApiAxiosParamCreator,WebhookApiFactory,WebhookApiFp,WorldlineApi,WorldlineApiAxiosParamCreator,WorldlineApiFactory,WorldlineApiFp,WorldlineAuthorizationMethod,WorldlineAuthorizationResponder,WorldlineEntryMode,WorldlineEventType,WorldlineInternalApi,WorldlineInternalApiAxiosParamCreator,WorldlineInternalApiFactory,WorldlineInternalApiFp,WorldlineOutcomeDescription,WorldlineResponseStatus,WorldlineTransactionOutcome,WorldlineTransactionType,WorldlineVerificationMethod,buildPosCategoryIndex,collectEnabledSubcategoryIdsDepthFirst,collectSubcategoryIdsDepthFirst,getCategoryProductsIncludingSubcategories,getSubcategoriesForCategory,mapProductIdsToProducts});
|