@munchi_oy/core 1.9.17 → 1.9.19
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 +859 -161
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +1214 -164
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import P from"axios";import it from"axios";var p="http://localhost".replace(/\/+$/,"");var I=class{constructor(s,e=p,n=it){this.basePath=e;this.axios=n;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},X=class extends Error{constructor(e,n){super(n);this.field=e;this.name="RequiredError"}};var m="https://example.com",d=function(a,s,e){if(e==null)throw new X(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var D=async function(a,s){if(s&&s.accessToken){let e=typeof s.accessToken=="function"?await s.accessToken():await s.accessToken;a.Authorization="Bearer "+e}};function ie(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(n=>ie(a,n,e)):Object.keys(s).forEach(n=>ie(a,s[n],`${e}${e!==""?".":""}${n}`)):a.has(e)?a.append(e,s):a.set(e,s))}var g=function(a,...s){let e=new URLSearchParams(a.search);ie(e,s),a.search=e.toString()},A=function(a,s,e){let n=typeof a!="string";return(n&&e&&e.isJsonMime?e.isJsonMime(s.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},h=function(a,s,e,n){return(t=s,r=e)=>{let o={...a.options,url:(n?.basePath||r)+a.url};return t.request(o)}};var ls={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},us={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ds={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},cs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ps={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},ms={Image:"image",Video:"video",Animation:"animation"},gs={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce"},ys={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},hs={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},Ps={GiftCard:"GiftCard"},fs={Online:"ONLINE",Offline:"OFFLINE"},As={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"},xs={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Rs={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},bs={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Cs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},Ds={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Os={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},Vs={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"},Is={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Ss={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},vs={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},Ts={Item:"ITEM",Cart:"CART"},Es={Business:"BUSINESS",Owner:"OWNER"},Us={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},qs={Percentage:"PERCENTAGE",Fixed:"FIXED"},Bs={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},Ms={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},ks={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},_s={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},ws={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},Ns={Vertical:"VERTICAL",Horizontal:"HORIZONTAL"},Ls={NotApplicable:"NOT_APPLICABLE",Pending:"PENDING",OnHold:"ON_HOLD",SentToOm:"SENT_TO_OM",DispatchedToKitchen:"DISPATCHED_TO_KITCHEN",Completed:"COMPLETED",Cancelled:"CANCELLED",Ready:"READY"},Fs={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},js={Table:"table",Indicator:"indicator"},Ws={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Gs={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Ks={Open:"OPEN",Instant:"INSTANT"},Hs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Qs={None:"NONE",Partial:"PARTIAL",Full:"FULL"},$s={Platform:"PLATFORM",Pos:"POS"},zs={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Ys={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"},Js={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},Zs={DineIn:"dine_in",PickUp:"pick_up"},Xs={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},en={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"},tn={Cash:"Cash",Card:"Card",Voucher:"Voucher",EPassi:"EPassi",Edenred:"Edenred",Munchi:"Munchi",Flatpay:"Flatpay",GiftUp:"GiftUp",MobilePay:"MobilePay",CardManual:"CardManual",EdenredManual:"EdenredManual",EmployeeDiscount:"EmployeeDiscount",LunchVoucher:"LunchVoucher",EdenredVoucher:"EdenredVoucher",SmartumVoucher:"SmartumVoucher",Invoice:"Invoice",Smartum:"Smartum",GiftCard:"GiftCard",Debit:"Debit",Credit:"Credit",GiftCardManual:"GiftCardManual",WoltBenefit:"WoltBenefit",Fundis:"Fundis",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},sn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},nn={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},rn={Paid:"paid",Pending:"pending"},on={Cash:"cash",Card:"card"},an={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},ln={Percentage:"percentage",Fixed:"fixed"},un={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},dn={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},cn={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"},pn={Waiting:"waiting",Confirm:"confirm"},mn={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},gn={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},yn={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},hn={Modal:"MODAL",Screen:"SCREEN"},Pn={Percentage:"PERCENTAGE",Fixed:"FIXED"},fn={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront"},An={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},xn={Kds:"KDS"},Rn={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},bn={Full:"FULL",Item:"ITEM"},Cn={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Dn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},On={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Vn={Fi:"fi",En:"en"},In={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"},Sn={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},vn={Order:"ORDER",Ticket:"TICKET"},Tn={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"},En={Kiosk:"KIOSK",Pos:"POS"},Un={Active:"ACTIVE",Inactive:"INACTIVE"},qn={NoStation:"NO_STATION"},Bn={Network:"NETWORK"},Mn={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},kn={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},_n={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},wn={Instant:"instant",Preorder:"preorder"},Nn={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Ln={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Fn={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},jn={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",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},Gn={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Kn={_978:"978",_840:"840",_826:"826",_392:"392",_036:"036",_124:"124",_756:"756",_156:"156",_344:"344",_554:"554",_752:"752",_410:"410",_702:"702",_578:"578",_484:"484",_356:"356",_643:"643",_710:"710",_949:"949",_986:"986",_901:"901",_208:"208",_985:"985",_764:"764",_360:"360",_348:"348",_203:"203",_376:"376",_152:"152",_608:"608",_784:"784",_170:"170",_682:"682",_458:"458",_946:"946"},Hn={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},Qn={NUMBER_1000:1e3,NUMBER_1001:1001,NUMBER_1002:1002,NUMBER_1003:1003,NUMBER_1004:1004,NUMBER_1006:1006,NUMBER_1007:1007,NUMBER_1008:1008,NUMBER_1009:1009,NUMBER_1010:1010,NUMBER_1011:1011,NUMBER_1012:1012,NUMBER_1013:1013,NUMBER_1014:1014,NUMBER_1016:1016,NUMBER_1017:1017,NUMBER_1018:1018,NUMBER_1019:1019,NUMBER_1020:1020,NUMBER_1021:1021,NUMBER_1047:1047,NUMBER_1048:1048,NUMBER_1049:1049,NUMBER_1050:1050,NUMBER_1051:1051,NUMBER_1052:1052,NUMBER_1053:1053,NUMBER_1054:1054,NUMBER_1055:1055,NUMBER_1056:1056,NUMBER_1057:1057,NUMBER_1058:1058,NUMBER_1059:1059,NUMBER_1060:1060,NUMBER_1061:1061,NUMBER_1062:1062,NUMBER_1063:1063,NUMBER_1064:1064,NUMBER_1065:1065,NUMBER_1066:1066,NUMBER_1067:1067,NUMBER_1068:1068,NUMBER_1069:1069,NUMBER_1070:1070,NUMBER_1071:1071,NUMBER_1072:1072,NUMBER_1074:1074,NUMBER_1075:1075,NUMBER_1076:1076,NUMBER_1077:1077,NUMBER_1079:1079,NUMBER_1080:1080,NUMBER_1081:1081,NUMBER_1082:1082,NUMBER_1083:1083,NUMBER_1099:1099,NUMBER_1100:1100,NUMBER_1101:1101,NUMBER_1102:1102,NUMBER_1110:1110,NUMBER_1301:1301,NUMBER_1302:1302,NUMBER_1303:1303,NUMBER_2000:2e3,NUMBER_3000:3e3,NUMBER_3001:3001,NUMBER_3002:3002,NUMBER_3099:3099,NUMBER_4000:4e3,NUMBER_5000:5e3,NUMBER_5001:5001,NUMBER_5002:5002,NUMBER_5003:5003,NUMBER_5004:5004,NUMBER_5005:5005,NUMBER_5006:5006,NUMBER_6000:6e3,NUMBER_6102:6102,NUMBER_6201:6201,NUMBER_7001:7001,NUMBER_7002:7002,NUMBER_7003:7003,NUMBER_7004:7004,NUMBER_7005:7005},$n={_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"},zn={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},Yn={Online:"Online",Offline:"Offline"},Jn={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},Zn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},Xn={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},er={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},tr={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},sr={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},nr={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},rr={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},lt=function(a){return{refreshConfig:async(s={})=>{let e="/api/v1/ably/refresh-config",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},requestSettings:async(s={})=>{let e="/api/v1/ably/request-settings",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},le=function(a){let s=lt(a);return{async refreshConfig(e){let n=await s.refreshConfig(e);return h(n,P,p,a)},async requestSettings(e){let n=await s.requestSettings(e);return h(n,P,p,a)}}},or=function(a,s,e){let n=le(a);return{refreshConfig(t){return n.refreshConfig(t).then(r=>r(e,s))},requestSettings(t){return n.requestSettings(t).then(r=>r(e,s))}}},he=class extends I{refreshConfig(s){return le(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return le(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},ut=function(a){return{createActionPasscode:async(s,e={})=>{d("createActionPasscode","createActionPasscodeDto",s);let n="/api/v1/action-passcodes",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},deleteActionPasscode:async(s,e={})=>{d("deleteActionPasscode","id",s);let n="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(s,e,n={})=>{d("updateActionPasscode","id",s),d("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await 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}}}},ee=function(a){let s=ut(a);return{async createActionPasscode(e,n){let t=await s.createActionPasscode(e,n);return h(t,P,p,a)},async deleteActionPasscode(e,n){let t=await s.deleteActionPasscode(e,n);return h(t,P,p,a)},async updateActionPasscode(e,n,t){let r=await s.updateActionPasscode(e,n,t);return h(r,P,p,a)}}},ar=function(a,s,e){let n=ee(a);return{createActionPasscode(t,r){return n.createActionPasscode(t,r).then(o=>o(e,s))},deleteActionPasscode(t,r){return n.deleteActionPasscode(t,r).then(o=>o(e,s))},updateActionPasscode(t,r,o){return n.updateActionPasscode(t,r,o).then(i=>i(e,s))}}},Pe=class extends I{createActionPasscode(s,e){return ee(this.configuration).createActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}deleteActionPasscode(s,e){return ee(this.configuration).deleteActionPasscode(s,e).then(n=>n(this.axios,this.basePath))}updateActionPasscode(s,e,n){return ee(this.configuration).updateActionPasscode(s,e,n).then(t=>t(this.axios,this.basePath))}},dt=function(a){return{firebaseAuth:async(s={})=>{let e="/api/v1/auth/firebase-login",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},login:async(s,e={})=>{d("login","credentialDto",s);let n="/api/v1/auth/login",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},logout:async(s={})=>{let e="/api/v1/auth/logout",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},refreshToken:async(s,e={})=>{d("refreshToken","refreshTokenDto",s);let n="/api/v1/auth/refresh",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},K=function(a){let s=dt(a);return{async firebaseAuth(e){let n=await s.firebaseAuth(e);return h(n,P,p,a)},async login(e,n){let t=await s.login(e,n);return h(t,P,p,a)},async logout(e){let n=await s.logout(e);return h(n,P,p,a)},async refreshToken(e,n){let t=await s.refreshToken(e,n);return h(t,P,p,a)}}},ir=function(a,s,e){let n=K(a);return{firebaseAuth(t){return n.firebaseAuth(t).then(r=>r(e,s))},login(t,r){return n.login(t,r).then(o=>o(e,s))},logout(t){return n.logout(t).then(r=>r(e,s))},refreshToken(t,r){return n.refreshToken(t,r).then(o=>o(e,s))}}},fe=class extends I{firebaseAuth(s){return K(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return K(this.configuration).login(s,e).then(n=>n(this.axios,this.basePath))}logout(s){return K(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return K(this.configuration).refreshToken(s,e).then(n=>n(this.axios,this.basePath))}},ct=function(a){return{createBusinessPermission:async(s,e,n={})=>{d("createBusinessPermission","businessId",s),d("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n={})=>{d("deleteBusinessPermission","permissionId",s),d("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await 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(s,e={})=>{d("getAdvancedDiscounts","businessId",s);let n="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessCategoriesByMenuId:async(s,e,n={})=>{d("getBusinessCategoriesByMenuId","businessId",s),d("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessCategoriesByMenuIdV2","businessId",s),d("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessCategoriesByMenuIdV3","businessId",s),d("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessChannelConfig","businessId",s);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessChannelConfigV2","businessId",s);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessConfig","businessId",s);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessConfigById","businessId",s);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessConfigByIdV2","businessId",s);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessConfiguration","businessId",s);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessMenuByType","businessId",s),d("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessMenuByTypeV2","businessId",s),d("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessMenuByTypeV3","businessId",s),d("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e,n={})=>{d("getBusinessMenuByTypeV4","businessId",s),d("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s,e={})=>{d("getBusinessProviderStatus","businessId",s);let n="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(s,e,n={})=>{d("getBusinessProviderStatusExternal","businessId",s);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await 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(s={})=>{let e="/api/v1/business/tax",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getProvidersSupportedIntegrations:async(s,e={})=>{d("getProvidersSupportedIntegrations","businessIds",s);let n="/api/v1/business/providers/supported-integrations",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),s&&(l.businessIds=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(s,e,n,t={})=>{d("getSingleBusinessProviderStatus","businessId",s),d("getSingleBusinessProviderStatus","provider",e),d("getSingleBusinessProviderStatus","externalId",n);let r="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(s))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await D(u,a),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(s,e={})=>{d("getUnifiedDiscounts","businessId",s);let n="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(s,e,n={})=>{d("setBusinessStatus","businessId",s),d("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await 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(s,e,n={})=>{d("setBusinessStatusSchedule","businessId",s),d("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await 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(s,e,n,t={})=>{d("updateBusinessPermission","permissionId",s),d("updateBusinessPermission","businessId",e),d("updateBusinessPermission","updatePermissionDto",n);let r="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},validateBusiness:async(s,e={})=>{d("validateBusiness","businessId",s);let n="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let s=ct(a);return{async createBusinessPermission(e,n,t){let r=await s.createBusinessPermission(e,n,t);return h(r,P,p,a)},async deleteBusinessPermission(e,n,t){let r=await s.deleteBusinessPermission(e,n,t);return h(r,P,p,a)},async getAdvancedDiscounts(e,n){let t=await s.getAdvancedDiscounts(e,n);return h(t,P,p,a)},async getBusinessCategoriesByMenuId(e,n,t){let r=await s.getBusinessCategoriesByMenuId(e,n,t);return h(r,P,p,a)},async getBusinessCategoriesByMenuIdV2(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV2(e,n,t);return h(r,P,p,a)},async getBusinessCategoriesByMenuIdV3(e,n,t){let r=await s.getBusinessCategoriesByMenuIdV3(e,n,t);return h(r,P,p,a)},async getBusinessChannelConfig(e,n,t){let r=await s.getBusinessChannelConfig(e,n,t);return h(r,P,p,a)},async getBusinessChannelConfigV2(e,n,t){let r=await s.getBusinessChannelConfigV2(e,n,t);return h(r,P,p,a)},async getBusinessConfig(e,n,t){let r=await s.getBusinessConfig(e,n,t);return h(r,P,p,a)},async getBusinessConfigById(e,n,t){let r=await s.getBusinessConfigById(e,n,t);return h(r,P,p,a)},async getBusinessConfigByIdV2(e,n,t){let r=await s.getBusinessConfigByIdV2(e,n,t);return h(r,P,p,a)},async getBusinessConfiguration(e,n,t){let r=await s.getBusinessConfiguration(e,n,t);return h(r,P,p,a)},async getBusinessMenuByType(e,n,t){let r=await s.getBusinessMenuByType(e,n,t);return h(r,P,p,a)},async getBusinessMenuByTypeV2(e,n,t){let r=await s.getBusinessMenuByTypeV2(e,n,t);return h(r,P,p,a)},async getBusinessMenuByTypeV3(e,n,t){let r=await s.getBusinessMenuByTypeV3(e,n,t);return h(r,P,p,a)},async getBusinessMenuByTypeV4(e,n,t){let r=await s.getBusinessMenuByTypeV4(e,n,t);return h(r,P,p,a)},async getBusinessProviderStatus(e,n){let t=await s.getBusinessProviderStatus(e,n);return h(t,P,p,a)},async getBusinessProviderStatusExternal(e,n,t){let r=await s.getBusinessProviderStatusExternal(e,n,t);return h(r,P,p,a)},async getBusinessTax(e){let n=await s.getBusinessTax(e);return h(n,P,p,a)},async getProvidersSupportedIntegrations(e,n){let t=await s.getProvidersSupportedIntegrations(e,n);return h(t,P,p,a)},async getSingleBusinessProviderStatus(e,n,t,r){let o=await s.getSingleBusinessProviderStatus(e,n,t,r);return h(o,P,p,a)},async getUnifiedDiscounts(e,n){let t=await s.getUnifiedDiscounts(e,n);return h(t,P,p,a)},async setBusinessStatus(e,n,t){let r=await s.setBusinessStatus(e,n,t);return h(r,P,p,a)},async setBusinessStatusSchedule(e,n,t){let r=await s.setBusinessStatusSchedule(e,n,t);return h(r,P,p,a)},async updateBusinessPermission(e,n,t,r){let o=await s.updateBusinessPermission(e,n,t,r);return h(o,P,p,a)},async validateBusiness(e,n){let t=await s.validateBusiness(e,n);return h(t,P,p,a)}}},lr=function(a,s,e){let n=T(a);return{createBusinessPermission(t,r,o){return n.createBusinessPermission(t,r,o).then(i=>i(e,s))},deleteBusinessPermission(t,r,o){return n.deleteBusinessPermission(t,r,o).then(i=>i(e,s))},getAdvancedDiscounts(t,r){return n.getAdvancedDiscounts(t,r).then(o=>o(e,s))},getBusinessCategoriesByMenuId(t,r,o){return n.getBusinessCategoriesByMenuId(t,r,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV2(t,r,o){return n.getBusinessCategoriesByMenuIdV2(t,r,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV3(t,r,o){return n.getBusinessCategoriesByMenuIdV3(t,r,o).then(i=>i(e,s))},getBusinessChannelConfig(t,r,o){return n.getBusinessChannelConfig(t,r,o).then(i=>i(e,s))},getBusinessChannelConfigV2(t,r,o){return n.getBusinessChannelConfigV2(t,r,o).then(i=>i(e,s))},getBusinessConfig(t,r,o){return n.getBusinessConfig(t,r,o).then(i=>i(e,s))},getBusinessConfigById(t,r,o){return n.getBusinessConfigById(t,r,o).then(i=>i(e,s))},getBusinessConfigByIdV2(t,r,o){return n.getBusinessConfigByIdV2(t,r,o).then(i=>i(e,s))},getBusinessConfiguration(t,r,o){return n.getBusinessConfiguration(t,r,o).then(i=>i(e,s))},getBusinessMenuByType(t,r,o){return n.getBusinessMenuByType(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV2(t,r,o){return n.getBusinessMenuByTypeV2(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV3(t,r,o){return n.getBusinessMenuByTypeV3(t,r,o).then(i=>i(e,s))},getBusinessMenuByTypeV4(t,r,o){return n.getBusinessMenuByTypeV4(t,r,o).then(i=>i(e,s))},getBusinessProviderStatus(t,r){return n.getBusinessProviderStatus(t,r).then(o=>o(e,s))},getBusinessProviderStatusExternal(t,r,o){return n.getBusinessProviderStatusExternal(t,r,o).then(i=>i(e,s))},getBusinessTax(t){return n.getBusinessTax(t).then(r=>r(e,s))},getProvidersSupportedIntegrations(t,r){return n.getProvidersSupportedIntegrations(t,r).then(o=>o(e,s))},getSingleBusinessProviderStatus(t,r,o,i){return n.getSingleBusinessProviderStatus(t,r,o,i).then(l=>l(e,s))},getUnifiedDiscounts(t,r){return n.getUnifiedDiscounts(t,r).then(o=>o(e,s))},setBusinessStatus(t,r,o){return n.setBusinessStatus(t,r,o).then(i=>i(e,s))},setBusinessStatusSchedule(t,r,o){return n.setBusinessStatusSchedule(t,r,o).then(i=>i(e,s))},updateBusinessPermission(t,r,o,i){return n.updateBusinessPermission(t,r,o,i).then(l=>l(e,s))},validateBusiness(t,r){return n.validateBusiness(t,r).then(o=>o(e,s))}}},Ae=class extends I{createBusinessPermission(s,e,n){return T(this.configuration).createBusinessPermission(s,e,n).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(s,e,n){return T(this.configuration).deleteBusinessPermission(s,e,n).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(s,e){return T(this.configuration).getAdvancedDiscounts(s,e).then(n=>n(this.axios,this.basePath))}getBusinessCategoriesByMenuId(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuId(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(s,e,n){return T(this.configuration).getBusinessCategoriesByMenuIdV3(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(s,e,n){return T(this.configuration).getBusinessChannelConfig(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(s,e,n){return T(this.configuration).getBusinessChannelConfigV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfig(s,e,n){return T(this.configuration).getBusinessConfig(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(s,e,n){return T(this.configuration).getBusinessConfigById(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(s,e,n){return T(this.configuration).getBusinessConfigByIdV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(s,e,n){return T(this.configuration).getBusinessConfiguration(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(s,e,n){return T(this.configuration).getBusinessMenuByType(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(s,e,n){return T(this.configuration).getBusinessMenuByTypeV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(s,e,n){return T(this.configuration).getBusinessMenuByTypeV3(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(s,e,n){return T(this.configuration).getBusinessMenuByTypeV4(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(s,e){return T(this.configuration).getBusinessProviderStatus(s,e).then(n=>n(this.axios,this.basePath))}getBusinessProviderStatusExternal(s,e,n){return T(this.configuration).getBusinessProviderStatusExternal(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessTax(s){return T(this.configuration).getBusinessTax(s).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(s,e){return T(this.configuration).getProvidersSupportedIntegrations(s,e).then(n=>n(this.axios,this.basePath))}getSingleBusinessProviderStatus(s,e,n,t){return T(this.configuration).getSingleBusinessProviderStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}getUnifiedDiscounts(s,e){return T(this.configuration).getUnifiedDiscounts(s,e).then(n=>n(this.axios,this.basePath))}setBusinessStatus(s,e,n){return T(this.configuration).setBusinessStatus(s,e,n).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(s,e,n){return T(this.configuration).setBusinessStatusSchedule(s,e,n).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(s,e,n,t){return T(this.configuration).updateBusinessPermission(s,e,n,t).then(r=>r(this.axios,this.basePath))}validateBusiness(s,e){return T(this.configuration).validateBusiness(s,e).then(n=>n(this.axios,this.basePath))}},pt=function(a){return{updatePosGlobalSettings:async(s,e,n={})=>{d("updatePosGlobalSettings","businessId",s),d("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};await 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 s=pt(a);return{async updatePosGlobalSettings(e,n,t){let r=await s.updatePosGlobalSettings(e,n,t);return h(r,P,p,a)}}},ur=function(a,s,e){let n=Xe(a);return{updatePosGlobalSettings(t,r,o){return n.updatePosGlobalSettings(t,r,o).then(i=>i(e,s))}}},xe=class extends I{updatePosGlobalSettings(s,e,n){return Xe(this.configuration).updatePosGlobalSettings(s,e,n).then(t=>t(this.axios,this.basePath))}},mt=function(a){return{create:async(s,e,n={})=>{d("create","businessId",s),d("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n,t,r,o,i,l={})=>{d("getCashLogs","businessId",s),d("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),c=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"GET",...f,...l},R={},b={};n!==void 0&&(b.timeSpan=n),t!==void 0&&(b.start=t),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(s,e={})=>{d("getCashSession","businessId",s);let n="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(s,e,n={})=>{d("getSessionReport","businessId",s),d("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},recordCashLog:async(s,e,n={})=>{d("recordCashLog","businessId",s),d("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n,t={})=>{d("sendSessionReport","businessId",s),d("sendSessionReport","sessionId",e),d("sendSessionReport","sendCashReportDto",n);let r="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},L=function(a){let s=mt(a);return{async create(e,n,t){let r=await s.create(e,n,t);return h(r,P,p,a)},async getCashLogs(e,n,t,r,o,i,l,u){let c=await s.getCashLogs(e,n,t,r,o,i,l,u);return h(c,P,p,a)},async getCashSession(e,n){let t=await s.getCashSession(e,n);return h(t,P,p,a)},async getSessionReport(e,n,t){let r=await s.getSessionReport(e,n,t);return h(r,P,p,a)},async recordCashLog(e,n,t){let r=await s.recordCashLog(e,n,t);return h(r,P,p,a)},async sendSessionReport(e,n,t,r){let o=await s.sendSessionReport(e,n,t,r);return h(o,P,p,a)}}},dr=function(a,s,e){let n=L(a);return{create(t,r,o){return n.create(t,r,o).then(i=>i(e,s))},getCashLogs(t,r,o,i,l,u,c,f){return n.getCashLogs(t,r,o,i,l,u,c,f).then(x=>x(e,s))},getCashSession(t,r){return n.getCashSession(t,r).then(o=>o(e,s))},getSessionReport(t,r,o){return n.getSessionReport(t,r,o).then(i=>i(e,s))},recordCashLog(t,r,o){return n.recordCashLog(t,r,o).then(i=>i(e,s))},sendSessionReport(t,r,o,i){return n.sendSessionReport(t,r,o,i).then(l=>l(e,s))}}},Re=class extends I{create(s,e,n){return L(this.configuration).create(s,e,n).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,n,t,r,o,i,l){return L(this.configuration).getCashLogs(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(s,e){return L(this.configuration).getCashSession(s,e).then(n=>n(this.axios,this.basePath))}getSessionReport(s,e,n){return L(this.configuration).getSessionReport(s,e,n).then(t=>t(this.axios,this.basePath))}recordCashLog(s,e,n){return L(this.configuration).recordCashLog(s,e,n).then(t=>t(this.axios,this.basePath))}sendSessionReport(s,e,n,t){return L(this.configuration).sendSessionReport(s,e,n,t).then(r=>r(this.axios,this.basePath))}},gt=function(a){return{configConfigureMunchiGiftCard:async(s,e,n,t={})=>{d("configConfigureMunchiGiftCard","businessId",s),d("configConfigureMunchiGiftCard","xAppX",e),d("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},configManualSync:async(s,e,n={})=>{d("configManualSync","businessId",s),d("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n,t={})=>{d("configRemovePaymentOption","businessId",s),d("configRemovePaymentOption","id",e),d("configRemovePaymentOption","xAppX",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},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,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(s,e,n={})=>{d("configUpsertBusiness","businessId",s),d("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n,t={})=>{d("configUpsertChannelConfig","businessId",s),d("configUpsertChannelConfig","xAppX",e),d("configUpsertChannelConfig","upsertConfigDto",n);let r="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(s,e,n,t={})=>{d("configUpsertGiftCard","businessId",s),d("configUpsertGiftCard","xAppX",e),d("configUpsertGiftCard","upsertGiftCardDto",n);let r="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(s,e,n={})=>{d("configUpsertLoyalty","businessId",s),d("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e,n,t={})=>{d("configUpsertNets","businessId",s),d("configUpsertNets","xAppX",e),d("configUpsertNets","upsertNetsDto",n);let r="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(s,e,n,t={})=>{d("configUpsertPaymentOptions","businessId",s),d("configUpsertPaymentOptions","xAppX",e),d("configUpsertPaymentOptions","upsertPaymentOptionsDto",n);let r="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertStripe:async(s,e,n,t={})=>{d("configUpsertStripe","businessId",s),d("configUpsertStripe","xAppX",e),d("configUpsertStripe","upsertStripeDto",n);let r="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},configUpsertViva:async(s,e,n,t={})=>{d("configUpsertViva","businessId",s),d("configUpsertViva","xAppX",e),d("configUpsertViva","upsertVivaDto",n);let r="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},M=function(a){let s=gt(a);return{async configConfigureMunchiGiftCard(e,n,t,r){let o=await s.configConfigureMunchiGiftCard(e,n,t,r);return h(o,P,p,a)},async configManualSync(e,n,t){let r=await s.configManualSync(e,n,t);return h(r,P,p,a)},async configRemovePaymentOption(e,n,t,r){let o=await s.configRemovePaymentOption(e,n,t,r);return h(o,P,p,a)},async configUpsertBusiness(e,n,t){let r=await s.configUpsertBusiness(e,n,t);return h(r,P,p,a)},async configUpsertChannelConfig(e,n,t,r){let o=await s.configUpsertChannelConfig(e,n,t,r);return h(o,P,p,a)},async configUpsertGiftCard(e,n,t,r){let o=await s.configUpsertGiftCard(e,n,t,r);return h(o,P,p,a)},async configUpsertLoyalty(e,n,t){let r=await s.configUpsertLoyalty(e,n,t);return h(r,P,p,a)},async configUpsertNets(e,n,t,r){let o=await s.configUpsertNets(e,n,t,r);return h(o,P,p,a)},async configUpsertPaymentOptions(e,n,t,r){let o=await s.configUpsertPaymentOptions(e,n,t,r);return h(o,P,p,a)},async configUpsertStripe(e,n,t,r){let o=await s.configUpsertStripe(e,n,t,r);return h(o,P,p,a)},async configUpsertViva(e,n,t,r){let o=await s.configUpsertViva(e,n,t,r);return h(o,P,p,a)}}},cr=function(a,s,e){let n=M(a);return{configConfigureMunchiGiftCard(t,r,o,i){return n.configConfigureMunchiGiftCard(t,r,o,i).then(l=>l(e,s))},configManualSync(t,r,o){return n.configManualSync(t,r,o).then(i=>i(e,s))},configRemovePaymentOption(t,r,o,i){return n.configRemovePaymentOption(t,r,o,i).then(l=>l(e,s))},configUpsertBusiness(t,r,o){return n.configUpsertBusiness(t,r,o).then(i=>i(e,s))},configUpsertChannelConfig(t,r,o,i){return n.configUpsertChannelConfig(t,r,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,r,o,i){return n.configUpsertGiftCard(t,r,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,r,o){return n.configUpsertLoyalty(t,r,o).then(i=>i(e,s))},configUpsertNets(t,r,o,i){return n.configUpsertNets(t,r,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,r,o,i){return n.configUpsertPaymentOptions(t,r,o,i).then(l=>l(e,s))},configUpsertStripe(t,r,o,i){return n.configUpsertStripe(t,r,o,i).then(l=>l(e,s))},configUpsertViva(t,r,o,i){return n.configUpsertViva(t,r,o,i).then(l=>l(e,s))}}},be=class extends I{configConfigureMunchiGiftCard(s,e,n,t){return M(this.configuration).configConfigureMunchiGiftCard(s,e,n,t).then(r=>r(this.axios,this.basePath))}configManualSync(s,e,n){return M(this.configuration).configManualSync(s,e,n).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,n,t){return M(this.configuration).configRemovePaymentOption(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertBusiness(s,e,n){return M(this.configuration).configUpsertBusiness(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,n,t){return M(this.configuration).configUpsertChannelConfig(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertGiftCard(s,e,n,t){return M(this.configuration).configUpsertGiftCard(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertLoyalty(s,e,n){return M(this.configuration).configUpsertLoyalty(s,e,n).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,n,t){return M(this.configuration).configUpsertNets(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,n,t){return M(this.configuration).configUpsertPaymentOptions(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertStripe(s,e,n,t){return M(this.configuration).configUpsertStripe(s,e,n,t).then(r=>r(this.axios,this.basePath))}configUpsertViva(s,e,n,t){return M(this.configuration).configUpsertViva(s,e,n,t).then(r=>r(this.axios,this.basePath))}},yt=function(a){return{createAssignment:async(s,e,n={})=>{d("createAssignment","businessId",s),d("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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 s=yt(a);return{async createAssignment(e,n,t){let r=await s.createAssignment(e,n,t);return h(r,P,p,a)}}},pr=function(a,s,e){let n=et(a);return{createAssignment(t,r,o){return n.createAssignment(t,r,o).then(i=>i(e,s))}}},Ce=class extends I{createAssignment(s,e,n){return et(this.configuration).createAssignment(s,e,n).then(t=>t(this.axios,this.basePath))}},ht=function(a){return{redeemGiftCard:async(s,e={})=>{d("redeemGiftCard","redeemGiftCardDto",s);let n="/api/v1/giftcard/redeem",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},validateGiftCard:async(s,e={})=>{d("validateGiftCard","validateGiftCardDto",s);let n="/api/v1/giftcard/validate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},ue=function(a){let s=ht(a);return{async redeemGiftCard(e,n){let t=await s.redeemGiftCard(e,n);return h(t,P,p,a)},async validateGiftCard(e,n){let t=await s.validateGiftCard(e,n);return h(t,P,p,a)}}},mr=function(a,s,e){let n=ue(a);return{redeemGiftCard(t,r){return n.redeemGiftCard(t,r).then(o=>o(e,s))},validateGiftCard(t,r){return n.validateGiftCard(t,r).then(o=>o(e,s))}}},De=class extends I{redeemGiftCard(s,e){return ue(this.configuration).redeemGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateGiftCard(s,e){return ue(this.configuration).validateGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},Pt=function(a){return{getInternalOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getInternalOrderHistoryOnline","businessIds",s);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),t!==void 0&&(C.end=t),s&&(C.businessIds=s),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 N=V&&V.headers?V.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getOrderHistoryOnline","businessIds",s);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),t!==void 0&&(C.end=t),s&&(C.businessIds=s),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 N=V&&V.headers?V.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getOrderHistoryPOSV5","businessIds",s);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),t!==void 0&&(C.end=t),s&&(C.businessIds=s),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 N=V&&V.headers?V.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O={})=>{d("getOrderHistoryPOSV5Internal","businessIds",s);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),t!==void 0&&(C.end=t),s&&(C.businessIds=s),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 N=V&&V.headers?V.headers:{};return E.headers={...k,...N,...O.headers},{url:y(v),options:E}}}},H=function(a){let s=Pt(a);return{async getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S){let v=await s.getInternalOrderHistoryOnline(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P,p,a)},async getOrderHistoryOnline(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S){let v=await s.getOrderHistoryOnline(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P,p,a)},async getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S){let v=await s.getOrderHistoryPOSV5(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P,p,a)},async getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S){let v=await s.getOrderHistoryPOSV5Internal(e,n,t,r,o,i,l,u,c,f,x,R,b,O,S);return h(v,P,p,a)}}},gr=function(a,s,e){let n=H(a);return{getInternalOrderHistoryOnline(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getInternalOrderHistoryOnline(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,s))},getOrderHistoryOnline(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getOrderHistoryOnline(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,s))},getOrderHistoryPOSV5(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,s))},getOrderHistoryPOSV5Internal(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V){return n.getOrderHistoryPOSV5Internal(t,r,o,i,l,u,c,f,x,R,b,O,S,v,V).then(E=>E(e,s))}}},Oe=class extends I{getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getInternalOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getOrderHistoryOnline(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getOrderHistoryPOSV5(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O){return H(this.configuration).getOrderHistoryPOSV5Internal(s,e,n,t,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(this.axios,this.basePath))}},ft=function(a){return{createInvoiceCompany:async(s,e,n={})=>{d("createInvoiceCompany","businessId",s),d("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(r,u);let 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(s,e,n={})=>{d("deleteInvoiceCompany","id",s),d("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getInvoiceCompanies:async(s,e={})=>{d("getInvoiceCompanies","businessId",s);let n="/api/v1/invoice-companies",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(s,e,n={})=>{d("getInvoiceCompanyById","id",s),d("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.businessId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},searchInvoiceCompanies:async(s,e,n={})=>{d("searchInvoiceCompanies","businessId",s);let t="/api/v1/invoice-companies/search",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.search=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},updateInvoiceCompany:async(s,e,n,t={})=>{d("updateInvoiceCompany","id",s),d("updateInvoiceCompany","businessId",e),d("updateInvoiceCompany","updateInvoiceCompanyDto",n);let r="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},F=function(a){let s=ft(a);return{async createInvoiceCompany(e,n,t){let r=await s.createInvoiceCompany(e,n,t);return h(r,P,p,a)},async deleteInvoiceCompany(e,n,t){let r=await s.deleteInvoiceCompany(e,n,t);return h(r,P,p,a)},async getInvoiceCompanies(e,n){let t=await s.getInvoiceCompanies(e,n);return h(t,P,p,a)},async getInvoiceCompanyById(e,n,t){let r=await s.getInvoiceCompanyById(e,n,t);return h(r,P,p,a)},async searchInvoiceCompanies(e,n,t){let r=await s.searchInvoiceCompanies(e,n,t);return h(r,P,p,a)},async updateInvoiceCompany(e,n,t,r){let o=await s.updateInvoiceCompany(e,n,t,r);return h(o,P,p,a)}}},yr=function(a,s,e){let n=F(a);return{createInvoiceCompany(t,r,o){return n.createInvoiceCompany(t,r,o).then(i=>i(e,s))},deleteInvoiceCompany(t,r,o){return n.deleteInvoiceCompany(t,r,o).then(i=>i(e,s))},getInvoiceCompanies(t,r){return n.getInvoiceCompanies(t,r).then(o=>o(e,s))},getInvoiceCompanyById(t,r,o){return n.getInvoiceCompanyById(t,r,o).then(i=>i(e,s))},searchInvoiceCompanies(t,r,o){return n.searchInvoiceCompanies(t,r,o).then(i=>i(e,s))},updateInvoiceCompany(t,r,o,i){return n.updateInvoiceCompany(t,r,o,i).then(l=>l(e,s))}}},Ve=class extends I{createInvoiceCompany(s,e,n){return F(this.configuration).createInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,n){return F(this.configuration).deleteInvoiceCompany(s,e,n).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return F(this.configuration).getInvoiceCompanies(s,e).then(n=>n(this.axios,this.basePath))}getInvoiceCompanyById(s,e,n){return F(this.configuration).getInvoiceCompanyById(s,e,n).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,n){return F(this.configuration).searchInvoiceCompanies(s,e,n).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,n,t){return F(this.configuration).updateInvoiceCompany(s,e,n,t).then(r=>r(this.axios,this.basePath))}},At=function(a){return{kdsGetOrders:async(s,e,n,t,r,o,i,l,u,c,f,x={})=>{d("kdsGetOrders","status",s),d("kdsGetOrders","businessIds",e),d("kdsGetOrders","profileId",n);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),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),t!==void 0&&(V.page=t),r!==void 0&&(V.rowPerPage=r),o!==void 0&&(V.timeSpan=o),i!==void 0&&(V.start=i),l!==void 0&&(V.end=l),u!==void 0&&(V.timezone=u),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(s,e={})=>{d("kdsGetProfiles","businessId",s);let n="/api/v1/kds/profiles",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(s,e={})=>{d("kdsMarkOrderReady","id",s);let n="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(s,e={})=>{d("kdsRevertOrder","id",s);let n="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PATCH",...r,...e},i={},l={};await D(i,a),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Q=function(a){let s=At(a);return{async kdsGetOrders(e,n,t,r,o,i,l,u,c,f,x,R){let b=await s.kdsGetOrders(e,n,t,r,o,i,l,u,c,f,x,R);return h(b,P,p,a)},async kdsGetProfiles(e,n){let t=await s.kdsGetProfiles(e,n);return h(t,P,p,a)},async kdsMarkOrderReady(e,n){let t=await s.kdsMarkOrderReady(e,n);return h(t,P,p,a)},async kdsRevertOrder(e,n){let t=await s.kdsRevertOrder(e,n);return h(t,P,p,a)}}},hr=function(a,s,e){let n=Q(a);return{kdsGetOrders(t,r,o,i,l,u,c,f,x,R,b,O){return n.kdsGetOrders(t,r,o,i,l,u,c,f,x,R,b,O).then(S=>S(e,s))},kdsGetProfiles(t,r){return n.kdsGetProfiles(t,r).then(o=>o(e,s))},kdsMarkOrderReady(t,r){return n.kdsMarkOrderReady(t,r).then(o=>o(e,s))},kdsRevertOrder(t,r){return n.kdsRevertOrder(t,r).then(o=>o(e,s))}}},Ie=class extends I{kdsGetOrders(s,e,n,t,r,o,i,l,u,c,f,x){return Q(this.configuration).kdsGetOrders(s,e,n,t,r,o,i,l,u,c,f,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(s,e){return Q(this.configuration).kdsGetProfiles(s,e).then(n=>n(this.axios,this.basePath))}kdsMarkOrderReady(s,e){return Q(this.configuration).kdsMarkOrderReady(s,e).then(n=>n(this.axios,this.basePath))}kdsRevertOrder(s,e){return Q(this.configuration).kdsRevertOrder(s,e).then(n=>n(this.axios,this.basePath))}},xt=function(a){return{getOrderStatus:async(s,e,n={})=>{d("getOrderStatus","orderId",s),d("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={};g(r,{});let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},validate:async(s,e,n={})=>{d("validate","terminalId",s),d("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};s!==void 0&&(u.terminalId=s),e!==void 0&&(u.provider=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}}}},de=function(a){let s=xt(a);return{async getOrderStatus(e,n,t){let r=await s.getOrderStatus(e,n,t);return h(r,P,p,a)},async validate(e,n,t){let r=await s.validate(e,n,t);return h(r,P,p,a)}}},Pr=function(a,s,e){let n=de(a);return{getOrderStatus(t,r,o){return n.getOrderStatus(t,r,o).then(i=>i(e,s))},validate(t,r,o){return n.validate(t,r,o).then(i=>i(e,s))}}},Se=class extends I{getOrderStatus(s,e,n){return de(this.configuration).getOrderStatus(s,e,n).then(t=>t(this.axios,this.basePath))}validate(s,e,n){return de(this.configuration).validate(s,e,n).then(t=>t(this.axios,this.basePath))}},Rt=function(a){return{createLoyaltyUser:async(s,e,n={})=>{d("createLoyaltyUser","businessId",s),d("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),s!==void 0&&(u.businessId=s),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(s,e,n,t={})=>{d("getAdminTransactions","businessId",s);let r="/api/v1/loyalty/admin/transactions",o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};await D(u,a),s!==void 0&&(c.businessId=s),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,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(s,e={})=>{d("getLoyaltyInfo","businessId",s);let n="/api/v1/loyalty/info",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};await D(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(s,e,n={})=>{d("getUserById","businessId",s),d("getUserById","userId",e);let t="/api/v1/loyalty/users/info",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};await D(l,a),s!==void 0&&(u.businessId=s),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(s,e,n,t,r={})=>{d("searchUser","businessId",s);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},f={};await D(c,a),e!==void 0&&(f.phone=e),n!==void 0&&(f.country_code=n),t!==void 0&&(f.email=t),s!==void 0&&(f.businessId=s),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},updatePoints:async(s,e,n={})=>{d("updatePoints","businessId",s),d("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await D(l,a),s!==void 0&&(u.businessId=s),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 s=Rt(a);return{async createLoyaltyUser(e,n,t){let r=await s.createLoyaltyUser(e,n,t);return h(r,P,p,a)},async getAdminTransactions(e,n,t,r){let o=await s.getAdminTransactions(e,n,t,r);return h(o,P,p,a)},async getLoyaltyInfo(e,n){let t=await s.getLoyaltyInfo(e,n);return h(t,P,p,a)},async getUserById(e,n,t){let r=await s.getUserById(e,n,t);return h(r,P,p,a)},async searchUser(e,n,t,r,o){let i=await s.searchUser(e,n,t,r,o);return h(i,P,p,a)},async updatePoints(e,n,t){let r=await s.updatePoints(e,n,t);return h(r,P,p,a)}}},fr=function(a,s,e){let n=j(a);return{createLoyaltyUser(t,r,o){return n.createLoyaltyUser(t,r,o).then(i=>i(e,s))},getAdminTransactions(t,r,o,i){return n.getAdminTransactions(t,r,o,i).then(l=>l(e,s))},getLoyaltyInfo(t,r){return n.getLoyaltyInfo(t,r).then(o=>o(e,s))},getUserById(t,r,o){return n.getUserById(t,r,o).then(i=>i(e,s))},searchUser(t,r,o,i,l){return n.searchUser(t,r,o,i,l).then(u=>u(e,s))},updatePoints(t,r,o){return n.updatePoints(t,r,o).then(i=>i(e,s))}}},ve=class extends I{createLoyaltyUser(s,e,n){return j(this.configuration).createLoyaltyUser(s,e,n).then(t=>t(this.axios,this.basePath))}getAdminTransactions(s,e,n,t){return j(this.configuration).getAdminTransactions(s,e,n,t).then(r=>r(this.axios,this.basePath))}getLoyaltyInfo(s,e){return j(this.configuration).getLoyaltyInfo(s,e).then(n=>n(this.axios,this.basePath))}getUserById(s,e,n){return j(this.configuration).getUserById(s,e,n).then(t=>t(this.axios,this.basePath))}searchUser(s,e,n,t,r){return j(this.configuration).searchUser(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,n){return j(this.configuration).updatePoints(s,e,n).then(t=>t(this.axios,this.basePath))}},bt=function(a){return{editBusinessProduct:async(s,e,n={})=>{d("editBusinessProduct","businessId",s),d("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n={})=>{d("editBusinessProductV2","businessId",s),d("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e={})=>{d("getBusinessExtras","businessId",s);let n="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(s,e,n={})=>{d("getProductsByCategoriesV2","businessId",s);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.filter=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},resetProductEod:async(s,e={})=>{d("resetProductEod","resetEodDto",s);let n="/api/v1/menu/availability/reset-eod",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},G=function(a){let s=bt(a);return{async editBusinessProduct(e,n,t){let r=await s.editBusinessProduct(e,n,t);return h(r,P,p,a)},async editBusinessProductV2(e,n,t){let r=await s.editBusinessProductV2(e,n,t);return h(r,P,p,a)},async getBusinessExtras(e,n){let t=await s.getBusinessExtras(e,n);return h(t,P,p,a)},async getProductsByCategoriesV2(e,n,t){let r=await s.getProductsByCategoriesV2(e,n,t);return h(r,P,p,a)},async resetProductEod(e,n){let t=await s.resetProductEod(e,n);return h(t,P,p,a)}}},Ar=function(a,s,e){let n=G(a);return{editBusinessProduct(t,r,o){return n.editBusinessProduct(t,r,o).then(i=>i(e,s))},editBusinessProductV2(t,r,o){return n.editBusinessProductV2(t,r,o).then(i=>i(e,s))},getBusinessExtras(t,r){return n.getBusinessExtras(t,r).then(o=>o(e,s))},getProductsByCategoriesV2(t,r,o){return n.getProductsByCategoriesV2(t,r,o).then(i=>i(e,s))},resetProductEod(t,r){return n.resetProductEod(t,r).then(o=>o(e,s))}}},Te=class extends I{editBusinessProduct(s,e,n){return G(this.configuration).editBusinessProduct(s,e,n).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,n){return G(this.configuration).editBusinessProductV2(s,e,n).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return G(this.configuration).getBusinessExtras(s,e).then(n=>n(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,n){return G(this.configuration).getProductsByCategoriesV2(s,e,n).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return G(this.configuration).resetProductEod(s,e).then(n=>n(this.axios,this.basePath))}},Ct=function(a){return{addBusinessesToMerchant:async(s,e,n={})=>{d("addBusinessesToMerchant","merchantId",s),d("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};await 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(s,e={})=>{d("createMerchant","createMerchantDto",s);let n="/api/v1/merchants",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};await D(i,a),i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(s,e,n={})=>{d("removeBusinessFromMerchant","merchantId",s),d("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...n},l={},u={};await 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}}}},te=function(a){let s=Ct(a);return{async addBusinessesToMerchant(e,n,t){let r=await s.addBusinessesToMerchant(e,n,t);return h(r,P,p,a)},async createMerchant(e,n){let t=await s.createMerchant(e,n);return h(t,P,p,a)},async removeBusinessFromMerchant(e,n,t){let r=await s.removeBusinessFromMerchant(e,n,t);return h(r,P,p,a)}}},xr=function(a,s,e){let n=te(a);return{addBusinessesToMerchant(t,r,o){return n.addBusinessesToMerchant(t,r,o).then(i=>i(e,s))},createMerchant(t,r){return n.createMerchant(t,r).then(o=>o(e,s))},removeBusinessFromMerchant(t,r,o){return n.removeBusinessFromMerchant(t,r,o).then(i=>i(e,s))}}},Ee=class extends I{addBusinessesToMerchant(s,e,n){return te(this.configuration).addBusinessesToMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return te(this.configuration).createMerchant(s,e).then(n=>n(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,n){return te(this.configuration).removeBusinessFromMerchant(s,e,n).then(t=>t(this.axios,this.basePath))}},Dt=function(a){return{createMunchiGiftCard:async(s,e={})=>{d("createMunchiGiftCard","createMunchiGiftCardDto",s);let n="/api/v1/munchi-giftcard/create",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(s,e={})=>{d("getMunchiGiftCardData","getMunchiGiftCardDataDto",s);let n="/api/v1/munchi-giftcard/data",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(s,e={})=>{d("redeemMunchiGiftCard","redeemGiftCardDto",s);let n="/api/v1/munchi-giftcard/redeem",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(s,e={})=>{d("validateMunchiGiftCard","validateGiftCardDto",s);let n="/api/v1/munchi-giftcard/validate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},$=function(a){let s=Dt(a);return{async createMunchiGiftCard(e,n){let t=await s.createMunchiGiftCard(e,n);return h(t,P,p,a)},async getMunchiGiftCardData(e,n){let t=await s.getMunchiGiftCardData(e,n);return h(t,P,p,a)},async redeemMunchiGiftCard(e,n){let t=await s.redeemMunchiGiftCard(e,n);return h(t,P,p,a)},async validateMunchiGiftCard(e,n){let t=await s.validateMunchiGiftCard(e,n);return h(t,P,p,a)}}},Rr=function(a,s,e){let n=$(a);return{createMunchiGiftCard(t,r){return n.createMunchiGiftCard(t,r).then(o=>o(e,s))},getMunchiGiftCardData(t,r){return n.getMunchiGiftCardData(t,r).then(o=>o(e,s))},redeemMunchiGiftCard(t,r){return n.redeemMunchiGiftCard(t,r).then(o=>o(e,s))},validateMunchiGiftCard(t,r){return n.validateMunchiGiftCard(t,r).then(o=>o(e,s))}}},Ue=class extends I{createMunchiGiftCard(s,e){return $(this.configuration).createMunchiGiftCard(s,e).then(n=>n(this.axios,this.basePath))}getMunchiGiftCardData(s,e){return $(this.configuration).getMunchiGiftCardData(s,e).then(n=>n(this.axios,this.basePath))}redeemMunchiGiftCard(s,e){return $(this.configuration).redeemMunchiGiftCard(s,e).then(n=>n(this.axios,this.basePath))}validateMunchiGiftCard(s,e){return $(this.configuration).validateMunchiGiftCard(s,e).then(n=>n(this.axios,this.basePath))}},Ot=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{d("addVenueSubscriptionsV2","deviceSubscriptionDto",s);let n="/api/v2/notification/add-venue-subscriptions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{d("removeVenueSubscriptionsV2","deviceSubscriptionDto",s);let n="/api/v2/notification/remove-venue-subscriptions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},ce=function(a){let s=Ot(a);return{async addVenueSubscriptionsV2(e,n){let t=await s.addVenueSubscriptionsV2(e,n);return h(t,P,p,a)},async removeVenueSubscriptionsV2(e,n){let t=await s.removeVenueSubscriptionsV2(e,n);return h(t,P,p,a)}}},br=function(a,s,e){let n=ce(a);return{addVenueSubscriptionsV2(t,r){return n.addVenueSubscriptionsV2(t,r).then(o=>o(e,s))},removeVenueSubscriptionsV2(t,r){return n.removeVenueSubscriptionsV2(t,r).then(o=>o(e,s))}}},qe=class extends I{addVenueSubscriptionsV2(s,e){return ce(this.configuration).addVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return ce(this.configuration).removeVenueSubscriptionsV2(s,e).then(n=>n(this.axios,this.basePath))}},Vt=function(a){return{findOneByExternalId:async(s,e={})=>{d("findOneByExternalId","externalId",s);let n="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},tt=function(a){let s=Vt(a);return{async findOneByExternalId(e,n){let t=await s.findOneByExternalId(e,n);return h(t,P,p,a)}}},Cr=function(a,s,e){let n=tt(a);return{findOneByExternalId(t,r){return n.findOneByExternalId(t,r).then(o=>o(e,s))}}},Be=class extends I{findOneByExternalId(s,e){return tt(this.configuration).findOneByExternalId(s,e).then(n=>n(this.axios,this.basePath))}},It=function(a){return{updateTaxRate:async(s,e={})=>{d("updateTaxRate","body",s);let n="/api/v1/ordering/update-tax-rate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"PUT",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},st=function(a){let s=It(a);return{async updateTaxRate(e,n){let t=await s.updateTaxRate(e,n);return h(t,P,p,a)}}},Dr=function(a,s,e){let n=st(a);return{updateTaxRate(t,r){return n.updateTaxRate(t,r).then(o=>o(e,s))}}},Me=class extends I{updateTaxRate(s,e){return st(this.configuration).updateTaxRate(s,e).then(n=>n(this.axios,this.basePath))}},St=function(a){return{acceptOrder:async(s,e={})=>{d("acceptOrder","acceptOrderDto",s);let n="/api/v1/orders/accept",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},confirmPreOrder:async(s,e={})=>{d("confirmPreOrder","confirmPreorderDto",s);let n="/api/v1/orders/confirm/preOrder",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{d("deletePosParkedOrderV2","deletePosOrderDto",s);let n="/api/v2/orders/pos/park",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"DELETE",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},deliverOrder:async(s,e={})=>{d("deliverOrder","deliveredOrderDto",s);let n="/api/v1/orders/delivered",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getAllOrdersV2:async(s,e={})=>{d("getAllOrdersV2","businessIds",s);let n="/api/v2/orders",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessIds=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(s,e,n,t,r={})=>{d("getOrdersV2","status",s),d("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...r},c={},f={};e!==void 0&&(f.businessIds=e),n!==void 0&&(f.posBusinessId=n),t!==void 0&&(f.extraProvider=t),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{d("getParkedPosOrderV2","businessId",s);let n="/api/v2/orders/pos/park",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},markOrderAsReady:async(s,e={})=>{d("markOrderAsReady","readyOrderDto",s);let n="/api/v1/orders/ready",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},placePosOrderV4:async(s,e={})=>{d("placePosOrderV4","posOrderPayloadDto",s);let n="/api/v4/orders/pos/place",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},processPosOrderActions:async(s,e={})=>{d("processPosOrderActions","processOrderActionsDto",s);let n="/api/v4/orders/pos/actions",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},rejectOrder:async(s,e={})=>{d("rejectOrder","rejectOrderDto",s);let n="/api/v1/orders/reject",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},updatePosOrderV2:async(s,e={})=>{d("updatePosOrderV2","posUpdateOrderDto",s);let n="/api/v2/orders/pos/update",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},B=function(a){let s=St(a);return{async acceptOrder(e,n){let t=await s.acceptOrder(e,n);return h(t,P,p,a)},async confirmPreOrder(e,n){let t=await s.confirmPreOrder(e,n);return h(t,P,p,a)},async deletePosParkedOrderV2(e,n){let t=await s.deletePosParkedOrderV2(e,n);return h(t,P,p,a)},async deliverOrder(e,n){let t=await s.deliverOrder(e,n);return h(t,P,p,a)},async getAllOrdersV2(e,n){let t=await s.getAllOrdersV2(e,n);return h(t,P,p,a)},async getOrdersV2(e,n,t,r,o){let i=await s.getOrdersV2(e,n,t,r,o);return h(i,P,p,a)},async getParkedPosOrderV2(e,n){let t=await s.getParkedPosOrderV2(e,n);return h(t,P,p,a)},async markOrderAsReady(e,n){let t=await s.markOrderAsReady(e,n);return h(t,P,p,a)},async placePosOrderV4(e,n){let t=await s.placePosOrderV4(e,n);return h(t,P,p,a)},async processPosOrderActions(e,n){let t=await s.processPosOrderActions(e,n);return h(t,P,p,a)},async rejectOrder(e,n){let t=await s.rejectOrder(e,n);return h(t,P,p,a)},async updatePosOrderV2(e,n){let t=await s.updatePosOrderV2(e,n);return h(t,P,p,a)}}},Or=function(a,s,e){let n=B(a);return{acceptOrder(t,r){return n.acceptOrder(t,r).then(o=>o(e,s))},confirmPreOrder(t,r){return n.confirmPreOrder(t,r).then(o=>o(e,s))},deletePosParkedOrderV2(t,r){return n.deletePosParkedOrderV2(t,r).then(o=>o(e,s))},deliverOrder(t,r){return n.deliverOrder(t,r).then(o=>o(e,s))},getAllOrdersV2(t,r){return n.getAllOrdersV2(t,r).then(o=>o(e,s))},getOrdersV2(t,r,o,i,l){return n.getOrdersV2(t,r,o,i,l).then(u=>u(e,s))},getParkedPosOrderV2(t,r){return n.getParkedPosOrderV2(t,r).then(o=>o(e,s))},markOrderAsReady(t,r){return n.markOrderAsReady(t,r).then(o=>o(e,s))},placePosOrderV4(t,r){return n.placePosOrderV4(t,r).then(o=>o(e,s))},processPosOrderActions(t,r){return n.processPosOrderActions(t,r).then(o=>o(e,s))},rejectOrder(t,r){return n.rejectOrder(t,r).then(o=>o(e,s))},updatePosOrderV2(t,r){return n.updatePosOrderV2(t,r).then(o=>o(e,s))}}},ke=class extends I{acceptOrder(s,e){return B(this.configuration).acceptOrder(s,e).then(n=>n(this.axios,this.basePath))}confirmPreOrder(s,e){return B(this.configuration).confirmPreOrder(s,e).then(n=>n(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return B(this.configuration).deletePosParkedOrderV2(s,e).then(n=>n(this.axios,this.basePath))}deliverOrder(s,e){return B(this.configuration).deliverOrder(s,e).then(n=>n(this.axios,this.basePath))}getAllOrdersV2(s,e){return B(this.configuration).getAllOrdersV2(s,e).then(n=>n(this.axios,this.basePath))}getOrdersV2(s,e,n,t,r){return B(this.configuration).getOrdersV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return B(this.configuration).getParkedPosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}markOrderAsReady(s,e){return B(this.configuration).markOrderAsReady(s,e).then(n=>n(this.axios,this.basePath))}placePosOrderV4(s,e){return B(this.configuration).placePosOrderV4(s,e).then(n=>n(this.axios,this.basePath))}processPosOrderActions(s,e){return B(this.configuration).processPosOrderActions(s,e).then(n=>n(this.axios,this.basePath))}rejectOrder(s,e){return B(this.configuration).rejectOrder(s,e).then(n=>n(this.axios,this.basePath))}updatePosOrderV2(s,e){return B(this.configuration).updatePosOrderV2(s,e).then(n=>n(this.axios,this.basePath))}},vt=function(a){return{getPosSession:async(s,e={})=>{d("getPosSession","businessId",s);let n="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(s,e={})=>{d("getPosSessionV2","businessId",s);let n="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},pe=function(a){let s=vt(a);return{async getPosSession(e,n){let t=await s.getPosSession(e,n);return h(t,P,p,a)},async getPosSessionV2(e,n){let t=await s.getPosSessionV2(e,n);return h(t,P,p,a)}}},Vr=function(a,s,e){let n=pe(a);return{getPosSession(t,r){return n.getPosSession(t,r).then(o=>o(e,s))},getPosSessionV2(t,r){return n.getPosSessionV2(t,r).then(o=>o(e,s))}}},_e=class extends I{getPosSession(s,e){return pe(this.configuration).getPosSession(s,e).then(n=>n(this.axios,this.basePath))}getPosSessionV2(s,e){return pe(this.configuration).getPosSessionV2(s,e).then(n=>n(this.axios,this.basePath))}},Tt=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{d("cancelNetsTerminalTransaction","netsCancelTransactionDto",s);let n="/api/v3/payment/nets/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{d("cancelVivaTransactionV2","vivaCancelTransactionDto",s);let n="/api/v2/payment/viva/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{d("createNetsRefundTransaction","createRefundDto",s);let n="/api/v4/payment/nets/refund/transaction",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getPaymentReference:async(s,e={})=>{d("getPaymentReference","getPaymentReferenceDto",s);let n="/api/v1/payment/reference",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getPaymentStatus:async(s,e={})=>{d("getPaymentStatus","getPaymentStatusDto",s);let n="/api/v1/payment/status",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{d("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",s);let n="/api/v3/payment/nets/terminal/initiate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{d("initiateTerminalTransaction","createTerminalPaymentDto",s);let n="/api/v4/payment/viva/terminal/initiate",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{d("processOnlineOrderRefund","orderResponseDto",s);let n="/api/v1/payment/online-orders/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundCashPaymentV3:async(s,e={})=>{d("refundCashPaymentV3","cashRefundPayload",s);let n="/api/v3/payment/cash/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundManualPaymentV3:async(s,e={})=>{d("refundManualPaymentV3","manualRefundPayload",s);let n="/api/v3/payment/manual/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundNetsTransactionV3:async(s,e={})=>{d("refundNetsTransactionV3","refundPayloadDtoV4",s);let n="/api/v3/payment/nets/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{d("refundSingleVivaTransaction","createRefundDto",s);let n="/api/v4/payment/viva/refund/single",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundVivaTransactionV3:async(s,e={})=>{d("refundVivaTransactionV3","refundPayloadDto",s);let n="/api/v3/payment/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundVivaTransactionV4:async(s,e={})=>{d("refundVivaTransactionV4","refundPayloadDtoV4",s);let n="/api/v4/payment/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},q=function(a){let s=Tt(a);return{async cancelNetsTerminalTransaction(e,n){let t=await s.cancelNetsTerminalTransaction(e,n);return h(t,P,p,a)},async cancelVivaTransactionV2(e,n){let t=await s.cancelVivaTransactionV2(e,n);return h(t,P,p,a)},async createNetsRefundTransaction(e,n){let t=await s.createNetsRefundTransaction(e,n);return h(t,P,p,a)},async getPaymentReference(e,n){let t=await s.getPaymentReference(e,n);return h(t,P,p,a)},async getPaymentStatus(e,n){let t=await s.getPaymentStatus(e,n);return h(t,P,p,a)},async initiateNetsTerminalTransaction(e,n){let t=await s.initiateNetsTerminalTransaction(e,n);return h(t,P,p,a)},async initiateTerminalTransaction(e,n){let t=await s.initiateTerminalTransaction(e,n);return h(t,P,p,a)},async processOnlineOrderRefund(e,n){let t=await s.processOnlineOrderRefund(e,n);return h(t,P,p,a)},async refundCashPaymentV3(e,n){let t=await s.refundCashPaymentV3(e,n);return h(t,P,p,a)},async refundManualPaymentV3(e,n){let t=await s.refundManualPaymentV3(e,n);return h(t,P,p,a)},async refundNetsTransactionV3(e,n){let t=await s.refundNetsTransactionV3(e,n);return h(t,P,p,a)},async refundSingleVivaTransaction(e,n){let t=await s.refundSingleVivaTransaction(e,n);return h(t,P,p,a)},async refundVivaTransactionV3(e,n){let t=await s.refundVivaTransactionV3(e,n);return h(t,P,p,a)},async refundVivaTransactionV4(e,n){let t=await s.refundVivaTransactionV4(e,n);return h(t,P,p,a)}}},Ir=function(a,s,e){let n=q(a);return{cancelNetsTerminalTransaction(t,r){return n.cancelNetsTerminalTransaction(t,r).then(o=>o(e,s))},cancelVivaTransactionV2(t,r){return n.cancelVivaTransactionV2(t,r).then(o=>o(e,s))},createNetsRefundTransaction(t,r){return n.createNetsRefundTransaction(t,r).then(o=>o(e,s))},getPaymentReference(t,r){return n.getPaymentReference(t,r).then(o=>o(e,s))},getPaymentStatus(t,r){return n.getPaymentStatus(t,r).then(o=>o(e,s))},initiateNetsTerminalTransaction(t,r){return n.initiateNetsTerminalTransaction(t,r).then(o=>o(e,s))},initiateTerminalTransaction(t,r){return n.initiateTerminalTransaction(t,r).then(o=>o(e,s))},processOnlineOrderRefund(t,r){return n.processOnlineOrderRefund(t,r).then(o=>o(e,s))},refundCashPaymentV3(t,r){return n.refundCashPaymentV3(t,r).then(o=>o(e,s))},refundManualPaymentV3(t,r){return n.refundManualPaymentV3(t,r).then(o=>o(e,s))},refundNetsTransactionV3(t,r){return n.refundNetsTransactionV3(t,r).then(o=>o(e,s))},refundSingleVivaTransaction(t,r){return n.refundSingleVivaTransaction(t,r).then(o=>o(e,s))},refundVivaTransactionV3(t,r){return n.refundVivaTransactionV3(t,r).then(o=>o(e,s))},refundVivaTransactionV4(t,r){return n.refundVivaTransactionV4(t,r).then(o=>o(e,s))}}},we=class extends I{cancelNetsTerminalTransaction(s,e){return q(this.configuration).cancelNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return q(this.configuration).cancelVivaTransactionV2(s,e).then(n=>n(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return q(this.configuration).createNetsRefundTransaction(s,e).then(n=>n(this.axios,this.basePath))}getPaymentReference(s,e){return q(this.configuration).getPaymentReference(s,e).then(n=>n(this.axios,this.basePath))}getPaymentStatus(s,e){return q(this.configuration).getPaymentStatus(s,e).then(n=>n(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return q(this.configuration).initiateNetsTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return q(this.configuration).initiateTerminalTransaction(s,e).then(n=>n(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return q(this.configuration).processOnlineOrderRefund(s,e).then(n=>n(this.axios,this.basePath))}refundCashPaymentV3(s,e){return q(this.configuration).refundCashPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}refundManualPaymentV3(s,e){return q(this.configuration).refundManualPaymentV3(s,e).then(n=>n(this.axios,this.basePath))}refundNetsTransactionV3(s,e){return q(this.configuration).refundNetsTransactionV3(s,e).then(n=>n(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return q(this.configuration).refundSingleVivaTransaction(s,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV3(s,e){return q(this.configuration).refundVivaTransactionV3(s,e).then(n=>n(this.axios,this.basePath))}refundVivaTransactionV4(s,e){return q(this.configuration).refundVivaTransactionV4(s,e).then(n=>n(this.axios,this.basePath))}},Et=function(a){return{loadConfigFile:async(s={})=>{let e="/api/plugin/config.json",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},upsertBusiness:async(s={})=>{let e="/api/plugin/business/upsert",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},me=function(a){let s=Et(a);return{async loadConfigFile(e){let n=await s.loadConfigFile(e);return h(n,P,p,a)},async upsertBusiness(e){let n=await s.upsertBusiness(e);return h(n,P,p,a)}}},Sr=function(a,s,e){let n=me(a);return{loadConfigFile(t){return n.loadConfigFile(t).then(r=>r(e,s))},upsertBusiness(t){return n.upsertBusiness(t).then(r=>r(e,s))}}},Ne=class extends I{loadConfigFile(s){return me(this.configuration).loadConfigFile(s).then(e=>e(this.axios,this.basePath))}upsertBusiness(s){return me(this.configuration).upsertBusiness(s).then(e=>e(this.axios,this.basePath))}},Ut=function(a){return{generateProductSkuV2:async(s,e,n,t={})=>{d("generateProductSkuV2","businessId",s),d("generateProductSkuV2","categoryId",e),d("generateProductSkuV2","productId",n);let r="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(s,e,n,t,r={})=>{d("updateChannelInventoryV2","businessId",s),d("updateChannelInventoryV2","categoryId",e),d("updateChannelInventoryV2","productId",n),d("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},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(t,u,a),{url:y(i),options:u}},updateProductSkuV2:async(s,e,n,t,r={})=>{d("updateProductSkuV2","businessId",s),d("updateProductSkuV2","categoryId",e),d("updateProductSkuV2","productId",n),d("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...r},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(t,u,a),{url:y(i),options:u}}}},se=function(a){let s=Ut(a);return{async generateProductSkuV2(e,n,t,r){let o=await s.generateProductSkuV2(e,n,t,r);return h(o,P,p,a)},async updateChannelInventoryV2(e,n,t,r,o){let i=await s.updateChannelInventoryV2(e,n,t,r,o);return h(i,P,p,a)},async updateProductSkuV2(e,n,t,r,o){let i=await s.updateProductSkuV2(e,n,t,r,o);return h(i,P,p,a)}}},vr=function(a,s,e){let n=se(a);return{generateProductSkuV2(t,r,o,i){return n.generateProductSkuV2(t,r,o,i).then(l=>l(e,s))},updateChannelInventoryV2(t,r,o,i,l){return n.updateChannelInventoryV2(t,r,o,i,l).then(u=>u(e,s))},updateProductSkuV2(t,r,o,i,l){return n.updateProductSkuV2(t,r,o,i,l).then(u=>u(e,s))}}},Le=class extends I{generateProductSkuV2(s,e,n,t){return se(this.configuration).generateProductSkuV2(s,e,n,t).then(r=>r(this.axios,this.basePath))}updateChannelInventoryV2(s,e,n,t,r){return se(this.configuration).updateChannelInventoryV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(s,e,n,t,r){return se(this.configuration).updateProductSkuV2(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}},qt=function(a){return{getSupportedChannels:async(s,e={})=>{d("getSupportedChannels","businessId",s);let n="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},registerCredential:async(s,e={})=>{d("registerCredential","body",s);let n="/api/v1/provider/credentials",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},registerProvider:async(s,e={})=>{d("registerProvider","body",s);let n="/api/v1/provider",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},ne=function(a){let s=qt(a);return{async getSupportedChannels(e,n){let t=await s.getSupportedChannels(e,n);return h(t,P,p,a)},async registerCredential(e,n){let t=await s.registerCredential(e,n);return h(t,P,p,a)},async registerProvider(e,n){let t=await s.registerProvider(e,n);return h(t,P,p,a)}}},Tr=function(a,s,e){let n=ne(a);return{getSupportedChannels(t,r){return n.getSupportedChannels(t,r).then(o=>o(e,s))},registerCredential(t,r){return n.registerCredential(t,r).then(o=>o(e,s))},registerProvider(t,r){return n.registerProvider(t,r).then(o=>o(e,s))}}},Fe=class extends I{getSupportedChannels(s,e){return ne(this.configuration).getSupportedChannels(s,e).then(n=>n(this.axios,this.basePath))}registerCredential(s,e){return ne(this.configuration).registerCredential(s,e).then(n=>n(this.axios,this.basePath))}registerProvider(s,e){return ne(this.configuration).registerProvider(s,e).then(n=>n(this.axios,this.basePath))}},Bt=function(a){return{cancelPlan:async(s,e,n,t={})=>{d("cancelPlan","businessId",s),d("cancelPlan","orderId",e),d("cancelPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},createRefundPlan:async(s,e,n,t={})=>{d("createRefundPlan","businessId",s),d("createRefundPlan","orderId",e),d("createRefundPlan","createRefundPlanDto",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};u["Content-Type"]="application/json",g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}},getRefundPlan:async(s,e,n,t={})=>{d("getRefundPlan","businessId",s),d("getRefundPlan","orderId",e),d("getRefundPlan","status",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},c={};n!==void 0&&(c.status=n),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(s,e,n,t,r={})=>{d("recordRefundPlan","businessId",s),d("recordRefundPlan","orderId",e),d("recordRefundPlan","refundId",n),d("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},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(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(s,e,n,t={})=>{d("refundOnlineOrder","businessId",s),d("refundOnlineOrder","orderId",e),d("refundOnlineOrder","provider",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},c={};n!==void 0&&(c.provider=n),g(o,c);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(s,e,n,t,r={})=>{d("resolveRefundChoice","businessId",s),d("resolveRefundChoice","orderId",e),d("resolveRefundChoice","refundId",n),d("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...r},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(t,u,a),{url:y(i),options:u}},startProcessPlan:async(s,e,n,t={})=>{d("startProcessPlan","businessId",s),d("startProcessPlan","orderId",e),d("startProcessPlan","refundId",n);let r="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(n))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}}}},_=function(a){let s=Bt(a);return{async cancelPlan(e,n,t,r){let o=await s.cancelPlan(e,n,t,r);return h(o,P,p,a)},async createRefundPlan(e,n,t,r){let o=await s.createRefundPlan(e,n,t,r);return h(o,P,p,a)},async getRefundPlan(e,n,t,r){let o=await s.getRefundPlan(e,n,t,r);return h(o,P,p,a)},async recordRefundPlan(e,n,t,r,o){let i=await s.recordRefundPlan(e,n,t,r,o);return h(i,P,p,a)},async refundOnlineOrder(e,n,t,r){let o=await s.refundOnlineOrder(e,n,t,r);return h(o,P,p,a)},async resolveRefundChoice(e,n,t,r,o){let i=await s.resolveRefundChoice(e,n,t,r,o);return h(i,P,p,a)},async startProcessPlan(e,n,t,r){let o=await s.startProcessPlan(e,n,t,r);return h(o,P,p,a)}}},Er=function(a,s,e){let n=_(a);return{cancelPlan(t,r,o,i){return n.cancelPlan(t,r,o,i).then(l=>l(e,s))},createRefundPlan(t,r,o,i){return n.createRefundPlan(t,r,o,i).then(l=>l(e,s))},getRefundPlan(t,r,o,i){return n.getRefundPlan(t,r,o,i).then(l=>l(e,s))},recordRefundPlan(t,r,o,i,l){return n.recordRefundPlan(t,r,o,i,l).then(u=>u(e,s))},refundOnlineOrder(t,r,o,i){return n.refundOnlineOrder(t,r,o,i).then(l=>l(e,s))},resolveRefundChoice(t,r,o,i,l){return n.resolveRefundChoice(t,r,o,i,l).then(u=>u(e,s))},startProcessPlan(t,r,o,i){return n.startProcessPlan(t,r,o,i).then(l=>l(e,s))}}},je=class extends I{cancelPlan(s,e,n,t){return _(this.configuration).cancelPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}createRefundPlan(s,e,n,t){return _(this.configuration).createRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}getRefundPlan(s,e,n,t){return _(this.configuration).getRefundPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}recordRefundPlan(s,e,n,t,r){return _(this.configuration).recordRefundPlan(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,n,t){return _(this.configuration).refundOnlineOrder(s,e,n,t).then(r=>r(this.axios,this.basePath))}resolveRefundChoice(s,e,n,t,r){return _(this.configuration).resolveRefundChoice(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,n,t){return _(this.configuration).startProcessPlan(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Mt=function(a){return{getEndOfDayReportV5:async(s,e,n,t,r,o,i={})=>{d("getEndOfDayReportV5","businessIds",s);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),t!==void 0&&(R.end=t),s&&(R.businessIds=s),r!==void 0&&(R.timezone=r),o!==void 0&&(R.provider=o),g(u,R);let b=c&&c.headers?c.headers:{};return f.headers={...x,...b,...i.headers},{url:y(u),options:f}},getPOSEndOfDayReportV4:async(s,e,n,t,r,o={})=>{d("getPOSEndOfDayReportV4","businessIds",s);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),t!==void 0&&(x.end=t),s&&(x.businessIds=s),r!==void 0&&(x.timezone=r),g(l,x);let R=u&&u.headers?u.headers:{};return c.headers={...f,...R,...o.headers},{url:y(l),options:c}},sendReportEmailV4:async(s,e,n,t,r,o,i={})=>{d("sendReportEmailV4","businessIds",s),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={};t!==void 0&&(R.timeSpan=t),r!==void 0&&(R.start=r),o!==void 0&&(R.end=o),s&&(R.businessIds=s),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let 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(s,e,n,t,r,o,i,l={})=>{d("sendReportEmailV5","businessIds",s),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={};t!==void 0&&(b.timeSpan=t),r!==void 0&&(b.start=r),o!==void 0&&(b.end=o),s&&(b.businessIds=s),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 s=Mt(a);return{async getEndOfDayReportV5(e,n,t,r,o,i,l){let u=await s.getEndOfDayReportV5(e,n,t,r,o,i,l);return h(u,P,p,a)},async getPOSEndOfDayReportV4(e,n,t,r,o,i){let l=await s.getPOSEndOfDayReportV4(e,n,t,r,o,i);return h(l,P,p,a)},async sendReportEmailV4(e,n,t,r,o,i,l){let u=await s.sendReportEmailV4(e,n,t,r,o,i,l);return h(u,P,p,a)},async sendReportEmailV5(e,n,t,r,o,i,l,u){let c=await s.sendReportEmailV5(e,n,t,r,o,i,l,u);return h(c,P,p,a)}}},Ur=function(a,s,e){let n=z(a);return{getEndOfDayReportV5(t,r,o,i,l,u,c){return n.getEndOfDayReportV5(t,r,o,i,l,u,c).then(f=>f(e,s))},getPOSEndOfDayReportV4(t,r,o,i,l,u){return n.getPOSEndOfDayReportV4(t,r,o,i,l,u).then(c=>c(e,s))},sendReportEmailV4(t,r,o,i,l,u,c){return n.sendReportEmailV4(t,r,o,i,l,u,c).then(f=>f(e,s))},sendReportEmailV5(t,r,o,i,l,u,c,f){return n.sendReportEmailV5(t,r,o,i,l,u,c,f).then(x=>x(e,s))}}},We=class extends I{getEndOfDayReportV5(s,e,n,t,r,o,i){return z(this.configuration).getEndOfDayReportV5(s,e,n,t,r,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(s,e,n,t,r,o){return z(this.configuration).getPOSEndOfDayReportV4(s,e,n,t,r,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(s,e,n,t,r,o,i){return z(this.configuration).sendReportEmailV4(s,e,n,t,r,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(s,e,n,t,r,o,i,l){return z(this.configuration).sendReportEmailV5(s,e,n,t,r,o,i,l).then(u=>u(this.axios,this.basePath))}},kt=function(a){return{clockIn:async(s,e,n={})=>{d("clockIn","businessId",s),d("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n={})=>{d("clockOut","businessId",s),d("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n={})=>{d("getTodayShift","businessId",s),d("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.employeeId=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},unlock:async(s,e,n={})=>{d("unlock","businessId",s),d("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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 s=kt(a);return{async clockIn(e,n,t){let r=await s.clockIn(e,n,t);return h(r,P,p,a)},async clockOut(e,n,t){let r=await s.clockOut(e,n,t);return h(r,P,p,a)},async getTodayShift(e,n,t){let r=await s.getTodayShift(e,n,t);return h(r,P,p,a)},async unlock(e,n,t){let r=await s.unlock(e,n,t);return h(r,P,p,a)}}},qr=function(a,s,e){let n=Y(a);return{clockIn(t,r,o){return n.clockIn(t,r,o).then(i=>i(e,s))},clockOut(t,r,o){return n.clockOut(t,r,o).then(i=>i(e,s))},getTodayShift(t,r,o){return n.getTodayShift(t,r,o).then(i=>i(e,s))},unlock(t,r,o){return n.unlock(t,r,o).then(i=>i(e,s))}}},Ge=class extends I{clockIn(s,e,n){return Y(this.configuration).clockIn(s,e,n).then(t=>t(this.axios,this.basePath))}clockOut(s,e,n){return Y(this.configuration).clockOut(s,e,n).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,n){return Y(this.configuration).getTodayShift(s,e,n).then(t=>t(this.axios,this.basePath))}unlock(s,e,n){return Y(this.configuration).unlock(s,e,n).then(t=>t(this.axios,this.basePath))}},_t=function(a){return{deactivateStation:async(s={})=>{let e="/api/v1/station/deactivate",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getStation:async(s={})=>{let e="/api/v1/station",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},syncStation:async(s,e={})=>{d("syncStation","syncStationDto",s);let n="/api/v1/station/sync",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},re=function(a){let s=_t(a);return{async deactivateStation(e){let n=await s.deactivateStation(e);return h(n,P,p,a)},async getStation(e){let n=await s.getStation(e);return h(n,P,p,a)},async syncStation(e,n){let t=await s.syncStation(e,n);return h(t,P,p,a)}}},Br=function(a,s,e){let n=re(a);return{deactivateStation(t){return n.deactivateStation(t).then(r=>r(e,s))},getStation(t){return n.getStation(t).then(r=>r(e,s))},syncStation(t,r){return n.syncStation(t,r).then(o=>o(e,s))}}},Ke=class extends I{deactivateStation(s){return re(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return re(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return re(this.configuration).syncStation(s,e).then(n=>n(this.axios,this.basePath))}},wt=function(a){return{connectTerminal:async(s,e={})=>{d("connectTerminal","connectTerminalDto",s);let n="/api/v1/terminal/connect",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},disconnectTerminal:async(s={})=>{let e="/api/v1/terminal/disconnect",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},discoverTerminal:async(s,e={})=>{d("discoverTerminal","discoverTerminalDto",s);let n="/api/v1/terminal/discover",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getTerminalStatus:async(s,e,n,t={})=>{d("getTerminalStatus","businessId",s),d("getTerminalStatus","provider",e),d("getTerminalStatus","terminalId",n);let r="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},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,...t.headers},{url:y(o),options:l}}}},J=function(a){let s=wt(a);return{async connectTerminal(e,n){let t=await s.connectTerminal(e,n);return h(t,P,p,a)},async disconnectTerminal(e){let n=await s.disconnectTerminal(e);return h(n,P,p,a)},async discoverTerminal(e,n){let t=await s.discoverTerminal(e,n);return h(t,P,p,a)},async getTerminalStatus(e,n,t,r){let o=await s.getTerminalStatus(e,n,t,r);return h(o,P,p,a)}}},Mr=function(a,s,e){let n=J(a);return{connectTerminal(t,r){return n.connectTerminal(t,r).then(o=>o(e,s))},disconnectTerminal(t){return n.disconnectTerminal(t).then(r=>r(e,s))},discoverTerminal(t,r){return n.discoverTerminal(t,r).then(o=>o(e,s))},getTerminalStatus(t,r,o,i){return n.getTerminalStatus(t,r,o,i).then(l=>l(e,s))}}},He=class extends I{connectTerminal(s,e){return J(this.configuration).connectTerminal(s,e).then(n=>n(this.axios,this.basePath))}disconnectTerminal(s){return J(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return J(this.configuration).discoverTerminal(s,e).then(n=>n(this.axios,this.basePath))}getTerminalStatus(s,e,n,t){return J(this.configuration).getTerminalStatus(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Nt=function(a){return{getUserBusinessV1:async(s={})=>{let e="/api/v1/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},getUserInfoV1:async(s={})=>{let e="/api/v1/user",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={},i={};await D(o,a),g(n,i);let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},oe=function(a){let s=Nt(a);return{async getUserBusinessV1(e){let n=await s.getUserBusinessV1(e);return h(n,P,p,a)},async getUserBusinessV2(e){let n=await s.getUserBusinessV2(e);return h(n,P,p,a)},async getUserInfoV1(e){let n=await s.getUserInfoV1(e);return h(n,P,p,a)}}},kr=function(a,s,e){let n=oe(a);return{getUserBusinessV1(t){return n.getUserBusinessV1(t).then(r=>r(e,s))},getUserBusinessV2(t){return n.getUserBusinessV2(t).then(r=>r(e,s))},getUserInfoV1(t){return n.getUserInfoV1(t).then(r=>r(e,s))}}},Qe=class extends I{getUserBusinessV1(s){return oe(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return oe(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return oe(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},Lt=function(a){return{getUser:async(s,e={})=>{d("getUser","userValidation",s);let n="/api/v1/users",t=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(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},updateUserRewardPoints:async(s,e,n,t={})=>{d("updateUserRewardPoints","userId",s),d("updateUserRewardPoints","walletId",e),d("updateUserRewardPoints","rewardPointPayload",n);let r="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(s))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(r,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},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,...t.headers},l.data=A(n,l,a),{url:y(o),options:l}}}},ge=function(a){let s=Lt(a);return{async getUser(e,n){let t=await s.getUser(e,n);return h(t,P,p,a)},async updateUserRewardPoints(e,n,t,r){let o=await s.updateUserRewardPoints(e,n,t,r);return h(o,P,p,a)}}},_r=function(a,s,e){let n=ge(a);return{getUser(t,r){return n.getUser(t,r).then(o=>o(e,s))},updateUserRewardPoints(t,r,o,i){return n.updateUserRewardPoints(t,r,o,i).then(l=>l(e,s))}}},$e=class extends I{getUser(s,e){return ge(this.configuration).getUser(s,e).then(n=>n(this.axios,this.basePath))}updateUserRewardPoints(s,e,n,t){return ge(this.configuration).updateUserRewardPoints(s,e,n,t).then(r=>r(this.axios,this.basePath))}},Ft=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{d("createVivaAppToAppPayment","createTerminalPaymentDto",s);let n="/api/v1/viva/a2a/create-payment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},nt=function(a){let s=Ft(a);return{async createVivaAppToAppPayment(e,n){let t=await s.createVivaAppToAppPayment(e,n);return h(t,P,p,a)}}},wr=function(a,s,e){let n=nt(a);return{createVivaAppToAppPayment(t,r){return n.createVivaAppToAppPayment(t,r).then(o=>o(e,s))}}},ze=class extends I{createVivaAppToAppPayment(s,e){return nt(this.configuration).createVivaAppToAppPayment(s,e).then(n=>n(this.axios,this.basePath))}},jt=function(a){return{handleAssignmentWebhook:async(s={})=>{let e="/api/webhook/add-employee-assignments",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleBusinessWebhook:async(s={})=>{let e="/api/webhook/add-business",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleFoodoraEvent:async(s,e={})=>{d("handleFoodoraEvent","orderUpdateDto",s);let n="/api/webhook/order/event",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},handleLoadEmployee:async(s={})=>{let e="/api/webhook/load-employee",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsEvents:async(s={})=>{let e="/api/webhook/nets",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsEventsV2:async(s={})=>{let e="/api/webhook/v2/nets",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleNetsRefundEvents:async(s={})=>{let e="/api/webhook/nets/refund",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handlePreorderReminder:async(s,e={})=>{d("handlePreorderReminder","preOrderReminderDto",s);let n="/api/webhook/preorder-reminder",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},handleRoleWebhook:async(s={})=>{let e="/api/webhook/add-roles",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleShiftWebhook:async(s={})=>{let e="/api/webhook/add-employee-shifts",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleVivaEvents:async(s,e={})=>{d("handleVivaEvents","vivaWebhookPayloadDto",s);let n="/api/webhook/viva/verification",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},handleWebhook:async(s={})=>{let e="/api/webhook/ship-day",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWoltDriveEvent:async(s={})=>{let e="/api/webhook/wolt-drive/event",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},handleWoltDriveEventByCountry:async(s,e={})=>{d("handleWoltDriveEventByCountry","country",s);let n="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(s={})=>{let e="/api/webhook/worldline/events",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},updateWoltProduct:async(s={})=>{let e="/api/webhook/wolt/product/edit",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}},verifyVivaWebhook:async(s={})=>{let e="/api/webhook/viva/verification",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"GET",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},U=function(a){let s=jt(a);return{async handleAssignmentWebhook(e){let n=await s.handleAssignmentWebhook(e);return h(n,P,p,a)},async handleBusinessWebhook(e){let n=await s.handleBusinessWebhook(e);return h(n,P,p,a)},async handleFoodoraEvent(e,n){let t=await s.handleFoodoraEvent(e,n);return h(t,P,p,a)},async handleLoadEmployee(e){let n=await s.handleLoadEmployee(e);return h(n,P,p,a)},async handleNetsEvents(e){let n=await s.handleNetsEvents(e);return h(n,P,p,a)},async handleNetsEventsV2(e){let n=await s.handleNetsEventsV2(e);return h(n,P,p,a)},async handleNetsRefundEvents(e){let n=await s.handleNetsRefundEvents(e);return h(n,P,p,a)},async handlePreorderReminder(e,n){let t=await s.handlePreorderReminder(e,n);return h(t,P,p,a)},async handleRoleWebhook(e){let n=await s.handleRoleWebhook(e);return h(n,P,p,a)},async handleShiftWebhook(e){let n=await s.handleShiftWebhook(e);return h(n,P,p,a)},async handleVivaEvents(e,n){let t=await s.handleVivaEvents(e,n);return h(t,P,p,a)},async handleWebhook(e){let n=await s.handleWebhook(e);return h(n,P,p,a)},async handleWoltDriveEvent(e){let n=await s.handleWoltDriveEvent(e);return h(n,P,p,a)},async handleWoltDriveEventByCountry(e,n){let t=await s.handleWoltDriveEventByCountry(e,n);return h(t,P,p,a)},async handleWorldlineEvents(e){let n=await s.handleWorldlineEvents(e);return h(n,P,p,a)},async updateWoltProduct(e){let n=await s.updateWoltProduct(e);return h(n,P,p,a)},async verifyVivaWebhook(e){let n=await s.verifyVivaWebhook(e);return h(n,P,p,a)}}},Nr=function(a,s,e){let n=U(a);return{handleAssignmentWebhook(t){return n.handleAssignmentWebhook(t).then(r=>r(e,s))},handleBusinessWebhook(t){return n.handleBusinessWebhook(t).then(r=>r(e,s))},handleFoodoraEvent(t,r){return n.handleFoodoraEvent(t,r).then(o=>o(e,s))},handleLoadEmployee(t){return n.handleLoadEmployee(t).then(r=>r(e,s))},handleNetsEvents(t){return n.handleNetsEvents(t).then(r=>r(e,s))},handleNetsEventsV2(t){return n.handleNetsEventsV2(t).then(r=>r(e,s))},handleNetsRefundEvents(t){return n.handleNetsRefundEvents(t).then(r=>r(e,s))},handlePreorderReminder(t,r){return n.handlePreorderReminder(t,r).then(o=>o(e,s))},handleRoleWebhook(t){return n.handleRoleWebhook(t).then(r=>r(e,s))},handleShiftWebhook(t){return n.handleShiftWebhook(t).then(r=>r(e,s))},handleVivaEvents(t,r){return n.handleVivaEvents(t,r).then(o=>o(e,s))},handleWebhook(t){return n.handleWebhook(t).then(r=>r(e,s))},handleWoltDriveEvent(t){return n.handleWoltDriveEvent(t).then(r=>r(e,s))},handleWoltDriveEventByCountry(t,r){return n.handleWoltDriveEventByCountry(t,r).then(o=>o(e,s))},handleWorldlineEvents(t){return n.handleWorldlineEvents(t).then(r=>r(e,s))},updateWoltProduct(t){return n.updateWoltProduct(t).then(r=>r(e,s))},verifyVivaWebhook(t){return n.verifyVivaWebhook(t).then(r=>r(e,s))}}},Ye=class extends I{handleAssignmentWebhook(s){return U(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return U(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return U(this.configuration).handleFoodoraEvent(s,e).then(n=>n(this.axios,this.basePath))}handleLoadEmployee(s){return U(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return U(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return U(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(s){return U(this.configuration).handleNetsRefundEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return U(this.configuration).handlePreorderReminder(s,e).then(n=>n(this.axios,this.basePath))}handleRoleWebhook(s){return U(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return U(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return U(this.configuration).handleVivaEvents(s,e).then(n=>n(this.axios,this.basePath))}handleWebhook(s){return U(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return U(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return U(this.configuration).handleWoltDriveEventByCountry(s,e).then(n=>n(this.axios,this.basePath))}handleWorldlineEvents(s){return U(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}updateWoltProduct(s){return U(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return U(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},Wt=function(a){return{cancelPayment:async(s,e={})=>{d("cancelPayment","cancelWorldlinePaymentDto",s);let n="/api/v1/worldline/payment/cancel",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createPayment:async(s,e={})=>{d("createPayment","createWorldlineTerminalPaymentDto",s);let n="/api/v1/worldline/payment",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createRefund:async(s,e={})=>{d("createRefund","createWorldlineRefundDto",s);let n="/api/v1/worldline/refund",t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"POST",...r,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getNextRequest:async(s,e,n,t,r={})=>{d("getNextRequest","terminalId",s),d("getNextRequest","authorization",e),d("getNextRequest","sessionID",n),d("getNextRequest","protocolVersion",t);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(s))),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)),t!=null&&(c["Protocol-Version"]=String(t)),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...c,...x,...r.headers},{url:y(i),options:u}},submitEvent:async(s,e,n={})=>{d("submitEvent","terminalId",s),d("submitEvent","worldlineEventEnvelopeDto",e);let t="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n={})=>{d("submitResponse","terminalId",s),d("submitResponse","worldlineResponseEnvelopeDto",e);let t="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},i.data=A(e,i,a),{url:y(r),options:i}}}},W=function(a){let s=Wt(a);return{async cancelPayment(e,n){let t=await s.cancelPayment(e,n);return h(t,P,p,a)},async createPayment(e,n){let t=await s.createPayment(e,n);return h(t,P,p,a)},async createRefund(e,n){let t=await s.createRefund(e,n);return h(t,P,p,a)},async getNextRequest(e,n,t,r,o){let i=await s.getNextRequest(e,n,t,r,o);return h(i,P,p,a)},async submitEvent(e,n,t){let r=await s.submitEvent(e,n,t);return h(r,P,p,a)},async submitResponse(e,n,t){let r=await s.submitResponse(e,n,t);return h(r,P,p,a)}}},Lr=function(a,s,e){let n=W(a);return{cancelPayment(t,r){return n.cancelPayment(t,r).then(o=>o(e,s))},createPayment(t,r){return n.createPayment(t,r).then(o=>o(e,s))},createRefund(t,r){return n.createRefund(t,r).then(o=>o(e,s))},getNextRequest(t,r,o,i,l){return n.getNextRequest(t,r,o,i,l).then(u=>u(e,s))},submitEvent(t,r,o){return n.submitEvent(t,r,o).then(i=>i(e,s))},submitResponse(t,r,o){return n.submitResponse(t,r,o).then(i=>i(e,s))}}},Je=class extends I{cancelPayment(s,e){return W(this.configuration).cancelPayment(s,e).then(n=>n(this.axios,this.basePath))}createPayment(s,e){return W(this.configuration).createPayment(s,e).then(n=>n(this.axios,this.basePath))}createRefund(s,e){return W(this.configuration).createRefund(s,e).then(n=>n(this.axios,this.basePath))}getNextRequest(s,e,n,t,r){return W(this.configuration).getNextRequest(s,e,n,t,r).then(o=>o(this.axios,this.basePath))}submitEvent(s,e,n){return W(this.configuration).submitEvent(s,e,n).then(t=>t(this.axios,this.basePath))}submitResponse(s,e,n){return W(this.configuration).submitResponse(s,e,n).then(t=>t(this.axios,this.basePath))}},Gt=function(a){return{createPaymentRequest:async(s,e,n={})=>{d("createPaymentRequest","terminalId",s),d("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e,n={})=>{d("createRefundRequest","terminalId",s),d("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...n},l={},u={};l["Content-Type"]="application/json",g(r,u);let 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(s,e={})=>{d("getPaymentResult","operationId",s);let n="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(s,e,n={})=>{d("getTerminalAuthContext","terminalId",s),d("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getTerminalContext:async(s,e,n={})=>{d("getTerminalContext","terminalId",s),d("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(s))),r=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...n},l={},u={};e!==void 0&&(u.channel=e),g(r,u);let c=o&&o.headers?o.headers:{};return i.headers={...l,...c,...n.headers},{url:y(r),options:i}},getTerminalState:async(s,e={})=>{d("getTerminalState","terminalId",s);let n="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(s))),t=new URL(n,m),r;a&&(r=a.baseOptions);let o={method:"GET",...r,...e},i={};g(t,{});let u=r&&r.headers?r.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(s={})=>{let e="/api/v2/worldline/internal/callback",n=new URL(e,m),t;a&&(t=a.baseOptions);let r={method:"POST",...t,...s},o={};g(n,{});let l=t&&t.headers?t.headers:{};return r.headers={...o,...l,...s.headers},{url:y(n),options:r}}}},w=function(a){let s=Gt(a);return{async createPaymentRequest(e,n,t){let r=await s.createPaymentRequest(e,n,t);return h(r,P,p,a)},async createRefundRequest(e,n,t){let r=await s.createRefundRequest(e,n,t);return h(r,P,p,a)},async getPaymentResult(e,n){let t=await s.getPaymentResult(e,n);return h(t,P,p,a)},async getTerminalAuthContext(e,n,t){let r=await s.getTerminalAuthContext(e,n,t);return h(r,P,p,a)},async getTerminalContext(e,n,t){let r=await s.getTerminalContext(e,n,t);return h(r,P,p,a)},async getTerminalState(e,n){let t=await s.getTerminalState(e,n);return h(t,P,p,a)},async handleCallback(e){let n=await s.handleCallback(e);return h(n,P,p,a)}}},Fr=function(a,s,e){let n=w(a);return{createPaymentRequest(t,r,o){return n.createPaymentRequest(t,r,o).then(i=>i(e,s))},createRefundRequest(t,r,o){return n.createRefundRequest(t,r,o).then(i=>i(e,s))},getPaymentResult(t,r){return n.getPaymentResult(t,r).then(o=>o(e,s))},getTerminalAuthContext(t,r,o){return n.getTerminalAuthContext(t,r,o).then(i=>i(e,s))},getTerminalContext(t,r,o){return n.getTerminalContext(t,r,o).then(i=>i(e,s))},getTerminalState(t,r){return n.getTerminalState(t,r).then(o=>o(e,s))},handleCallback(t){return n.handleCallback(t).then(r=>r(e,s))}}},Ze=class extends I{createPaymentRequest(s,e,n){return w(this.configuration).createPaymentRequest(s,e,n).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,n){return w(this.configuration).createRefundRequest(s,e,n).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return w(this.configuration).getPaymentResult(s,e).then(n=>n(this.axios,this.basePath))}getTerminalAuthContext(s,e,n){return w(this.configuration).getTerminalAuthContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,n){return w(this.configuration).getTerminalContext(s,e,n).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return w(this.configuration).getTerminalState(s,e).then(n=>n(this.axios,this.basePath))}handleCallback(s){return w(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var rt=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(s={}){this.apiKey=s.apiKey,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.baseOptions=s.baseOptions,this.formDataCtor=s.formDataCtor}isJsonMime(s){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return s!==null&&(e.test(s)||s.toLowerCase()==="application/json-patch+json")}};var Kt={[Z.Eur]:2,[Z.Aed]:2,[Z.Usd]:2,[Z.Gbp]:2,BHD:3,JPY:0},$r={getMultiplier(a){let s=Kt[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};import ae from"lodash";var ye=a=>ae.orderBy(a,["rank","id"],["asc","asc"]),Ht=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},Qt=(a,s)=>({...a,colorCode:a.colorCode??s}),$t=(a,s)=>ae.compact(a.map(e=>s.get(e))),ot=(a,s)=>a.flatMap(e=>{let n=s[e];return n?[e,...ot(n.childIds,s)]:[]}),at=(a,s)=>a.flatMap(e=>{let n=s[e];return n?.enabled?[e,...at(n.childIds,s)]:[]}),Jr=a=>{let s=new Map,e={},n={},t=ye(a),r=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let c=String(u.id);return s.set(c,Qt(u,l)),c});return t.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=ye(Ht(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=ye(i.subcategories??[]).map(R=>f(R,null));e[l]={...i,productIds:c,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:n,categoryIdsOrder:r}},Zr=(a,s,e,n)=>{let t=s[a];if(!t)return[];let r=at(t.subcategoryIds,e),o=ae.uniq([...t.productIds,...r.flatMap(i=>e[i]?.productIds??[])]);return $t(o,n)},Xr=(a,s,e)=>{let n=s[a];if(!n)return[];let t=ot(n.subcategoryIds,e);return ae.compact(t.map(r=>e[r]))};var zt="1.9.17";export{ls as ABLYEVENT,he as AblyApi,lt as AblyApiAxiosParamCreator,or as AblyApiFactory,le as AblyApiFp,us as ActionEnum,Pe as ActionPasscodesApi,ut as ActionPasscodesApiAxiosParamCreator,ar as ActionPasscodesApiFactory,ee as ActionPasscodesApiFp,gn as ActionsEnum,fe as AuthApi,dt as AuthApiAxiosParamCreator,ir as AuthApiFactory,K as AuthApiFp,ps as AutonomousVehicleType,Ae as BusinessApi,ct as BusinessApiAxiosParamCreator,lr as BusinessApiFactory,T as BusinessApiFp,ms as BusinessBackgroundType,ys as BusinessEventAction,hs as BusinessEventType,Ps as BusinessPaymentIntegrationType,xe as BusinessProviderPolicyApi,pt as BusinessProviderPolicyApiAxiosParamCreator,ur as BusinessProviderPolicyApiFactory,Xe as BusinessProviderPolicyApiFp,fs as BusinessStatusEnum,As as CashLogReason,xs as CashLogType,Re as CashManagementApi,mt as CashManagementApiAxiosParamCreator,dr as CashManagementApiFactory,L as CashManagementApiFp,Rs as CashSessionDtoEnum,bs as CashSessionStatus,Cs as ChannelEnum,Ds as CheckoutModelEnum,Os as ConditionType,be as ConfigManagementApi,gt as ConfigManagementApiAxiosParamCreator,cr as ConfigManagementApiFactory,M as ConfigManagementApiFp,rt as Configuration,Vs as ConsumptionType,Z as CurrencyCode,$n as CurrencyCodeEnum,$r as CurrencyRegistry,Is as DeliveryStatus,Ss as DeliveryType,vs as DeviceType,Ts as DiscountScope,Es as DiscountScopeType,Us as DiscountSourceType,qs as DiscountType,Ce as EmployeesApi,yt as EmployeesApiAxiosParamCreator,pr as EmployeesApiFactory,et as EmployeesApiFp,Bs as EntityType,ds as EntityTypeEnum,cs as EventTypeEnum,zn as EventTypeIdEnum,Ms as FeeType,De as GiftcardApi,ht as GiftcardApiAxiosParamCreator,mr as GiftcardApiFactory,ue as GiftcardApiFp,Oe as HistoryApi,Pt as HistoryApiAxiosParamCreator,gr as HistoryApiFactory,H as HistoryApiFp,ks as IntegrationType,Ve as InvoiceCompaniesApi,ft as InvoiceCompaniesApiAxiosParamCreator,yr as InvoiceCompaniesApiFactory,F as InvoiceCompaniesApiFp,Ie as KDSApi,At as KDSApiAxiosParamCreator,hr as KDSApiFactory,Q as KDSApiFp,_s as KDSEVENTNAME,ws as KioskEventType,Ns as KioskLayout,Se as KiosksApi,xt as KiosksApiAxiosParamCreator,Pr as KiosksApiFactory,de as KiosksApiFp,Ls as KitchenItemStatus,Fs as KitchenStatus,js as LocatorType,Ws as LoyaltyActionKey,ve as LoyaltyIntegerationsApi,Rt as LoyaltyIntegerationsApiAxiosParamCreator,fr as LoyaltyIntegerationsApiFactory,j as LoyaltyIntegerationsApiFp,zt as MUNCHI_CORE_VERSION,Te as MenuApi,bt as MenuApiAxiosParamCreator,Ar as MenuApiFactory,G as MenuApiFp,gs as MenuTypeEnum,Ee as MerchantsApi,Ct as MerchantsApiAxiosParamCreator,xr as MerchantsApiFactory,te as MerchantsApiFp,Ue as MunchiGiftCardApi,Dt as MunchiGiftCardApiAxiosParamCreator,Rr as MunchiGiftCardApiFactory,$ as MunchiGiftCardApiFp,Wn as NameEnum,qe as NotificationApi,Ot as NotificationApiAxiosParamCreator,br as NotificationApiFactory,ce as NotificationApiFp,Gs as OperatingMode,Fn as OperatingModeEnum,Ks as OrderFormat,Be as OrderInternalApi,Vt as OrderInternalApiAxiosParamCreator,Cr as OrderInternalApiFactory,tt as OrderInternalApiFp,Hs as OrderMode,Qs as OrderRefundStatus,$s as OrderSource,zs as OrderStatus,Ys as OrderStatusEnum,Js as OrderType,Zs as OrderTypePOS,Me as OrderingCoApi,It as OrderingCoApiAxiosParamCreator,Dr as OrderingCoApiFactory,st as OrderingCoApiFp,ke as OrdersApi,St as OrdersApiAxiosParamCreator,Or as OrdersApiFactory,B as OrdersApiFp,_e as POSSessionApi,vt as POSSessionApiAxiosParamCreator,Vr as POSSessionApiFactory,pe as POSSessionApiFp,we as PaymentApi,Tt as PaymentApiAxiosParamCreator,Ir as PaymentApiFactory,q as PaymentApiFp,Xs as PaymentEventType,en as PaymentFailureCode,tn as PaymentMethod,sn as PaymentProvider,nn as PaymentProviderEnum,rn as PaymentStatus,on as PaymentTypeEnum,Ne as PluginApi,Et as PluginApiAxiosParamCreator,Sr as PluginApiFactory,me as PluginApiFp,an as PosDiscountTargetType,ln as PosDiscountType,un as PosPaymentStatus,dn as PosPaymentType,cn as PosPermission,pn as PreorderStatus,mn as PrinterTypeEnum,Le as ProductApi,Ut as ProductApiAxiosParamCreator,vr as ProductApiFactory,se as ProductApiFp,yn as ProductAvailability,hn as ProductDetailLayout,jn as ProductDetailLayoutEnum,Pn as PromotionDiscountType,Fe as ProviderApi,qt as ProviderApiAxiosParamCreator,Tr as ProviderApiFactory,ne as ProviderApiFp,fn as ProviderEnum,An as PubSubAction,xn as PubSubTarget,Rn as RefundFailureReasonKey,bn as RefundMode,Cn as RefundOverallStatus,Dn as RefundStatusEnum,On as RefundStepStatus,je as RefundsApi,Bt as RefundsApiAxiosParamCreator,Er as RefundsApiFactory,_ as RefundsApiFp,We as ReportApi,Mt as ReportApiAxiosParamCreator,Ur as ReportApiFactory,z as ReportApiFp,Vn as ReportLanguage,In as SYNCKEY,Ln as SelectedPaymentProviderEnum,Ge as ShiftTrackingApi,kt as ShiftTrackingApiAxiosParamCreator,qr as ShiftTrackingApiFactory,Y as ShiftTrackingApiFp,Sn as SimplePaymentStatus,vn as SourceType,Tn as StaffActivityActionType,En as StationType,Ke as StationsApi,_t as StationsApiAxiosParamCreator,Br as StationsApiFactory,re as StationsApiFp,Un as Status,qn as SystemProfileType,He as TerminalApi,wt as TerminalApiAxiosParamCreator,Mr as TerminalApiFactory,J as TerminalApiFp,Bn as TerminalConnectionType,Mn as TimeSpan,kn as TransactionEventType,_n as TransactionType,wn as Type,Nn as UpsellMode,Qe as UserApi,Nt as UserApiAxiosParamCreator,kr as UserApiFactory,oe as UserApiFp,$e as UsersApi,Lt as UsersApiAxiosParamCreator,_r as UsersApiFactory,ge as UsersApiFp,ze as VivaApi,Ft as VivaApiAxiosParamCreator,wr as VivaApiFactory,nt as VivaApiFp,Gn as VivaAppToAppPaymentMethod,Kn as VivaCurrencyCode,Hn as VivaErrorId,Qn as VivaEventId,Ye as WebhookApi,jt as WebhookApiAxiosParamCreator,Nr as WebhookApiFactory,U as WebhookApiFp,Je as WorldlineApi,Wt as WorldlineApiAxiosParamCreator,Lr as WorldlineApiFactory,W as WorldlineApiFp,Yn as WorldlineAuthorizationMethod,Jn as WorldlineAuthorizationResponder,Zn as WorldlineEntryMode,Xn as WorldlineEventType,Ze as WorldlineInternalApi,Gt as WorldlineInternalApiAxiosParamCreator,Fr as WorldlineInternalApiFactory,w as WorldlineInternalApiFp,er as WorldlineOutcomeDescription,tr as WorldlineResponseStatus,sr as WorldlineTransactionOutcome,nr as WorldlineTransactionType,rr as WorldlineVerificationMethod,Jr as buildPosCategoryIndex,at as collectEnabledSubcategoryIdsDepthFirst,ot as collectSubcategoryIdsDepthFirst,Zr as getCategoryProductsIncludingSubcategories,Xr as getSubcategoriesForCategory,$t as mapProductIdsToProducts};
|
|
1
|
+
import P from"axios";import ut from"axios";var p="http://localhost".replace(/\/+$/,"");var I=class{constructor(s,e=p,r=ut){this.basePath=e;this.axios=r;s&&(this.configuration=s,this.basePath=s.basePath||this.basePath)}configuration},X=class extends Error{constructor(e,r){super(r);this.field=e;this.name="RequiredError"}};var m="https://example.com",c=function(a,s,e){if(e==null)throw new X(s,`Required parameter ${s} was null or undefined when calling ${a}.`)};var b=async function(a,s){if(s&&s.accessToken){let e=typeof s.accessToken=="function"?await s.accessToken():await s.accessToken;a.Authorization="Bearer "+e}};function le(a,s,e=""){s!=null&&(typeof s=="object"?Array.isArray(s)?s.forEach(r=>le(a,r,e)):Object.keys(s).forEach(r=>le(a,s[r],`${e}${e!==""?".":""}${r}`)):a.has(e)?a.append(e,s):a.set(e,s))}var g=function(a,...s){let e=new URLSearchParams(a.search);le(e,s),a.search=e.toString()},A=function(a,s,e){let r=typeof a!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(s.headers["Content-Type"]):r)?JSON.stringify(a!==void 0?a:{}):a||""},y=function(a){return a.pathname+a.search+a.hash},h=function(a,s,e,r){return(t=s,n=e)=>{let o={...a.options,url:(r?.basePath||n)+a.url};return t.request(o)}};var ds={Sync:"sync",KdsItemStatusSync:"kds_item_status_sync"},ps={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},ms={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},gs={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},ys={Sidewalk:"VEHICLE_TYPE_SIDEWALK",FlyingDrone:"VEHICLE_TYPE_FLYING_DRONE"},hs={Image:"image",Video:"video",Animation:"animation"},Ps={Pos:"pos",Kiosk:"kiosk",Ayce:"ayce",Storefront:"storefront"},fs={BusinessConfigUpdated:"BUSINESS_CONFIG_UPDATED",DataSyncRequired:"DATA_SYNC_REQUIRED",PosSessionUpdated:"POS_SESSION_UPDATED",BusinessDataUpdated:"BUSINESS_DATA_UPDATED"},As={StatusUpdated:"business:status-updated",MenuUpdated:"business:menu-updated",ConfigUpdated:"business:config-updated"},xs={GiftCard:"GiftCard"},Rs={Online:"ONLINE",Offline:"OFFLINE"},bs={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"},Cs={Opening:"OPENING",Sale:"SALE",Refund:"REFUND",ManualIn:"MANUAL_IN",ManualOut:"MANUAL_OUT",Closing:"CLOSING"},Ds={SessionUpdated:"SESSION_UPDATED",SessionClosed:"SESSION_CLOSED",LogAdded:"LOG_ADDED"},Os={Open:"OPEN",Counting:"COUNTING",Closed:"CLOSED"},Vs={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Is={EqualSplit:"EQUAL_SPLIT",ItemSplit:"ITEM_SPLIT",Full:"FULL"},Ss={TimeWindow:"TIME_WINDOW",DateRange:"DATE_RANGE",CartMinValue:"CART_MIN_VALUE",CartMaxValue:"CART_MAX_VALUE",ProductInCart:"PRODUCT_IN_CART"},vs={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"},Ts={None:"none",PickupEtaUpdated:"pickup_eta_updated",PickupStarted:"pickup_started",PickedUp:"picked_up",DropoffStarted:"dropoff_started",DropoffCompleted:"dropoff_completed",Delivered:"delivered",DropoffEtaUpdated:"dropoff_eta_updated"},Es={SelfDelivery:"self_delivery",HomeDelivery:"home_delivery"},Us={Tablet:"TABLET",KioskStand:"KIOSK_STAND",SmartTerminal:"SMART_TERMINAL"},qs={Item:"ITEM",Cart:"CART"},Bs={Business:"BUSINESS",Owner:"OWNER"},Ms={Manual:"MANUAL",Promotion:"PROMOTION",Loyalty:"LOYALTY",Campaign:"CAMPAIGN"},ks={Percentage:"PERCENTAGE",Fixed:"FIXED"},_s={Product:"product",Menu:"menu",Category:"category",Extra:"extra",Option:"option",Role:"role",Shift:"shift",Employee:"employee",Config:"config",Business:"business",Suboption:"suboption",Site:"site"},ws={TipAmount:"TIP_AMOUNT",Surcharge:"SURCHARGE"},Ns={Orders:"ORDERS",Menu:"MENU",Venue:"VENUE",Kds:"KDS",Ayce:"AYCE"},Ls={OrderCreated:"order.created",OrderReady:"order.ready",OrderReverted:"order.reverted",OrderDeleted:"order.deleted",PrintingOrder:"printing.order"},Fs={StatusUpdated:"kiosk.status.updated",ConfigUpdated:"kiosk.config.updated"},js={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"},Ks={NotApplicable:"not_applicable",Pending:"pending",OnHold:"on_hold",Ready:"ready",SentToOm:"sent_to_om",DispatchedToKitchen:"dispatched_to_kitchen",Completed:"completed",Cancelled:"cancelled"},Gs={Table:"table",Indicator:"indicator"},Hs={Self:"self",GetUserById:"getUserById",SearchUser:"searchUser",AddPoints:"addPoints",GetAdminHistory:"getAdminHistory"},Qs={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},$s={Open:"OPEN",Instant:"INSTANT"},zs={Instant:"INSTANT",PreOrder:"PRE_ORDER"},Ys={None:"NONE",Partial:"PARTIAL",Full:"FULL"},Js={Platform:"PLATFORM",Pos:"POS"},Zs={InProgress:"IN_PROGRESS",Ready:"READY",Delivered:"DELIVERED",Rejected:"REJECTED"},Xs={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"},er={Delivery:"delivery",PickUp:"pick_up",DineIn:"dine_in"},tr={DineIn:"dine_in",PickUp:"pick_up"},sr={StatusChanged:"payment:status-changed",RefundStatusChanged:"payment:refund-status-changed"},rr={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"},nr={Cash:"Cash",Card:"Card",Voucher:"Voucher",EPassi:"EPassi",Edenred:"Edenred",Munchi:"Munchi",Flatpay:"Flatpay",GiftUp:"GiftUp",MobilePay:"MobilePay",CardManual:"CardManual",EdenredManual:"EdenredManual",EmployeeDiscount:"EmployeeDiscount",LunchVoucher:"LunchVoucher",EdenredVoucher:"EdenredVoucher",SmartumVoucher:"SmartumVoucher",Invoice:"Invoice",Smartum:"Smartum",GiftCard:"GiftCard",Debit:"Debit",Credit:"Credit",GiftCardManual:"GiftCardManual",WoltBenefit:"WoltBenefit",Fundis:"Fundis",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},or={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},ar={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},ir={Paid:"paid",Pending:"pending"},lr={Cash:"cash",Card:"card"},ur={Order:"ORDER",LineItem:"LINE_ITEM",ItemSplitSeat:"ITEM_SPLIT_SEAT",ItemSplitAssignment:"ITEM_SPLIT_ASSIGNMENT",EqualSplitPart:"EQUAL_SPLIT_PART"},cr={Percentage:"percentage",Fixed:"fixed"},dr={Unpaid:"unpaid",Paying:"paying",Paid:"paid"},pr={Manual:"manual",Static:"static",NonStatic:"non_static",Common:"common"},mr={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"},gr={Waiting:"waiting",Confirm:"confirm"},yr={Kitchen:"KITCHEN",Bar:"BAR",Receipt:"RECEIPT",Cloud:"CLOUD",Label:"LABEL"},hr={Ticketing:"Ticketing",OrderChange:"OrderChange",NewOrder:"NewOrder",Printing:"Printing",PosOrderChange:"PosOrderChange",UpdateLoyaltyPoints:"UpdateLoyaltyPoints"},Pr={Available:"AVAILABLE",UnavailableToday:"UNAVAILABLE_TODAY",UnavailableIndefinitely:"UNAVAILABLE_INDEFINITELY"},fr={Modal:"MODAL",Screen:"SCREEN"},Ar={Percentage:"PERCENTAGE",Fixed:"FIXED"},xr={Wolt:"Wolt",MunchiOnline:"MunchiOnline",MunchiKiosk:"MunchiKiosk",MunchiPos:"MunchiPos",UberEats:"UberEats",Foodora:"Foodora",Bolt:"Bolt",MunchiKioskV2:"MunchiKioskV2",Kiosk:"Kiosk",WoltStorefront:"WoltStorefront",Storefront:"Storefront"},Rr={Activity:"ORDER_ACTIVITY",Deleted:"ORDER_DELETED"},br={Kds:"KDS"},Cr={FullNotSupportedGiftCard:"screens.pos.refund.fullNotSupportedGiftCard",PartialShortfallGiftCardPortion:"screens.pos.refund.partialShortfallGiftCardPortion",PlanOverAllocation:"screens.pos.refund.planOverAllocation",CannotSplitLinkedNonSplittable:"screens.pos.refund.cannotSplitLinkedNonSplittable",InsufficientFunds:"screens.pos.refund.insufficientFunds"},Dr={Full:"FULL",Item:"ITEM"},Or={Pending:"PENDING",InProgress:"IN_PROGRESS",ChoiceRequired:"CHOICE_REQUIRED",Completed:"COMPLETED",Failed:"FAILED"},Vr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED",Canceled:"CANCELED"},Ir={Pending:"PENDING",InProgress:"IN_PROGRESS",Failed:"FAILED",Completed:"COMPLETED"},Sr={Fi:"fi",En:"en"},vr={Claimed:"Claimed",Redeemed:"Redeemed",Expired:"Expired",Available:"Available"},Tr={Percentage:"PERCENTAGE",Fixed:"FIXED"},Er={Item:"ITEM",Cart:"CART"},Ur={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"},qr={Pending:"PENDING",Success:"SUCCESS",Failed:"FAILED"},Br={Order:"ORDER",Ticket:"TICKET"},Mr={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"},kr={Kiosk:"KIOSK",Pos:"POS"},_r={Active:"ACTIVE",Inactive:"INACTIVE"},wr={NoStation:"NO_STATION"},Nr={Network:"NETWORK"},Lr={Custom:"CUSTOM",Day:"DAY",Week:"WEEK",Month:"MONTH",Year:"YEAR"},Fr={Earn:"earn",Redeem:"redeem",Collect:"collect",Credit:"credit",Debit:"debit",Claimed:"claimed"},jr={Purchase:"purchase",PurchaseWithCashback:"purchaseWithCashback",Reversal:"reversal",ReturnOfGoods:"returnOfGoods",Bonus:"bonus",Authorization:"authorization",PreAuthorizationIncremental:"preAuthorizationIncremental",PreAuthorizationReversal:"preAuthorizationReversal",PreAuthorizationSaleCompletion:"preAuthorizationSaleCompletion",Deposit:"deposit",BalanceInquiry:"balanceInquiry"},Wr={Instant:"instant",Preorder:"preorder"},Kr={AfterAddProduct:"AfterAddProduct",BeforeCheckout:"BeforeCheckout",Disabled:"Disabled"},Gr={Stripe:"stripe",Viva:"viva",Nets:"nets",Worldline:"worldline"},Hr={Standard:"STANDARD",Team:"TEAM",Pinlock:"PINLOCK"},Qr={Modal:"MODAL",Screen:"SCREEN"},$r={Cash:"Cash",Card:"Card",Voucher:"Voucher",EPassi:"EPassi",Edenred:"Edenred",Munchi:"Munchi",Flatpay:"Flatpay",GiftUp:"GiftUp",MobilePay:"MobilePay",CardManual:"CardManual",EdenredManual:"EdenredManual",EmployeeDiscount:"EmployeeDiscount",LunchVoucher:"LunchVoucher",EdenredVoucher:"EdenredVoucher",SmartumVoucher:"SmartumVoucher",Invoice:"Invoice",Smartum:"Smartum",GiftCard:"GiftCard",Debit:"Debit",Credit:"Credit",GiftCardManual:"GiftCardManual",WoltBenefit:"WoltBenefit",Fundis:"Fundis",UberEats:"UberEats",MunchiGiftCard:"MunchiGiftCard",WoltManual:"WoltManual",MotoralLaksu:"MotoralLaksu",ResQ:"ResQ",GillAndGill:"GillAndGill",Kiinteisto:"Kiinteisto",Jpn:"JPN",NineLives:"NineLives"},zr={CardPresent:"CardPresent",Moto:"MOTO",QrDefault:"QrDefault",AliPay:"AliPay",Paypal:"Paypal",Klarna:"Klarna",Iris:"IRIS",Blik:"BLIK"},Yr={_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"},Jr={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},Zr={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},Xr={_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"},en={NUMBER_1796:1796,NUMBER_1797:1797,NUMBER_1798:1798,NUMBER_1799:1799,NUMBER_1802:1802,NUMBER_1803:1803,NUMBER_8193:8193,NUMBER_8194:8194},tn={Claimed:"Claimed",Redeemed:"Redeemed"},sn={Online:"Online",Offline:"Offline"},rn={Manual:"Manual",Unknown:"Unknown",Local:"Local",Base24:"Base24",Issuer:"Issuer",Network:"Network",Acquirer:"Acquirer",Other:"Other"},nn={Keyed:"Keyed",Magstripe:"Magstripe",Chip:"Chip",Contactless:"Contactless"},on={PaymentCompleted:"PaymentCompleted",RefundCompleted:"RefundCompleted",CaptureCompleted:"CaptureCompleted",ReversalCompleted:"ReversalCompleted",ReadCardCompleted:"ReadCardCompleted",PrintCompleted:"PrintCompleted",DialogShown:"DialogShown"},an={None:"None",Aborted:"Aborted",UserCancel:"UserCancel",UserTimeout:"UserTimeout",CommunicationError:"CommunicationError",GenericError:"GenericError"},ln={Ok:"OK",NotFound:"NotFound",BadRequest:"BadRequest",Unauthorized:"Unauthorized",Forbidden:"Forbidden",TooManyRequests:"TooManyRequests",ServiceUnavailable:"ServiceUnavailable",InternalServerError:"InternalServerError"},un={Approved:"Approved",Declined:"Declined",Cancelled:"Cancelled"},cn={Payment:"Payment",Refund:"Refund",Capture:"Capture",Reversal:"Reversal",Print:"Print"},dn={Failed:"Failed",OnlinePin:"OnlinePin",OfflinePin:"OfflinePin",Signature:"Signature",NoCvm:"NoCvm",ConsumerDevice:"ConsumerDevice",Skipped:"Skipped"},ct=function(a){return{refreshConfig:async(s={})=>{let e="/api/v1/ably/refresh-config",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},requestSettings:async(s={})=>{let e="/api/v1/ably/request-settings",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},ue=function(a){let s=ct(a);return{async refreshConfig(e){let r=await s.refreshConfig(e);return h(r,P,p,a)},async requestSettings(e){let r=await s.requestSettings(e);return h(r,P,p,a)}}},pn=function(a,s,e){let r=ue(a);return{refreshConfig(t){return r.refreshConfig(t).then(n=>n(e,s))},requestSettings(t){return r.requestSettings(t).then(n=>n(e,s))}}},he=class extends I{refreshConfig(s){return ue(this.configuration).refreshConfig(s).then(e=>e(this.axios,this.basePath))}requestSettings(s){return ue(this.configuration).requestSettings(s).then(e=>e(this.axios,this.basePath))}},dt=function(a){return{createActionPasscode:async(s,e={})=>{c("createActionPasscode","createActionPasscodeDto",s);let r="/api/v1/action-passcodes",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},deleteActionPasscode:async(s,e={})=>{c("deleteActionPasscode","id",s);let r="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},updateActionPasscode:async(s,e,r={})=>{c("updateActionPasscode","id",s),c("updateActionPasscode","updateActionPasscodeDto",e);let t="/api/v1/action-passcodes/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},ee=function(a){let s=dt(a);return{async createActionPasscode(e,r){let t=await s.createActionPasscode(e,r);return h(t,P,p,a)},async deleteActionPasscode(e,r){let t=await s.deleteActionPasscode(e,r);return h(t,P,p,a)},async updateActionPasscode(e,r,t){let n=await s.updateActionPasscode(e,r,t);return h(n,P,p,a)}}},mn=function(a,s,e){let r=ee(a);return{createActionPasscode(t,n){return r.createActionPasscode(t,n).then(o=>o(e,s))},deleteActionPasscode(t,n){return r.deleteActionPasscode(t,n).then(o=>o(e,s))},updateActionPasscode(t,n,o){return r.updateActionPasscode(t,n,o).then(i=>i(e,s))}}},Pe=class extends I{createActionPasscode(s,e){return ee(this.configuration).createActionPasscode(s,e).then(r=>r(this.axios,this.basePath))}deleteActionPasscode(s,e){return ee(this.configuration).deleteActionPasscode(s,e).then(r=>r(this.axios,this.basePath))}updateActionPasscode(s,e,r){return ee(this.configuration).updateActionPasscode(s,e,r).then(t=>t(this.axios,this.basePath))}},pt=function(a){return{firebaseAuth:async(s={})=>{let e="/api/v1/auth/firebase-login",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},login:async(s,e={})=>{c("login","credentialDto",s);let r="/api/v1/auth/login",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},logout:async(s={})=>{let e="/api/v1/auth/logout",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},refreshToken:async(s,e={})=>{c("refreshToken","refreshTokenDto",s);let r="/api/v1/auth/refresh",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},G=function(a){let s=pt(a);return{async firebaseAuth(e){let r=await s.firebaseAuth(e);return h(r,P,p,a)},async login(e,r){let t=await s.login(e,r);return h(t,P,p,a)},async logout(e){let r=await s.logout(e);return h(r,P,p,a)},async refreshToken(e,r){let t=await s.refreshToken(e,r);return h(t,P,p,a)}}},gn=function(a,s,e){let r=G(a);return{firebaseAuth(t){return r.firebaseAuth(t).then(n=>n(e,s))},login(t,n){return r.login(t,n).then(o=>o(e,s))},logout(t){return r.logout(t).then(n=>n(e,s))},refreshToken(t,n){return r.refreshToken(t,n).then(o=>o(e,s))}}},fe=class extends I{firebaseAuth(s){return G(this.configuration).firebaseAuth(s).then(e=>e(this.axios,this.basePath))}login(s,e){return G(this.configuration).login(s,e).then(r=>r(this.axios,this.basePath))}logout(s){return G(this.configuration).logout(s).then(e=>e(this.axios,this.basePath))}refreshToken(s,e){return G(this.configuration).refreshToken(s,e).then(r=>r(this.axios,this.basePath))}},mt=function(a){return{createBusinessPermission:async(s,e,r={})=>{c("createBusinessPermission","businessId",s),c("createBusinessPermission","permissionDto",e);let t="/api/v1/business/{businessId}/permissions".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},deleteBusinessPermission:async(s,e,r={})=>{c("deleteBusinessPermission","permissionId",s),c("deleteBusinessPermission","businessId",e);let t="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getAdvancedDiscounts:async(s,e={})=>{c("getAdvancedDiscounts","businessId",s);let r="/api/v2/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessCategoriesByMenuId:async(s,e,r={})=>{c("getBusinessCategoriesByMenuId","businessId",s),c("getBusinessCategoriesByMenuId","businessCategoryBodyDto",e);let t="/api/v1/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV2:async(s,e,r={})=>{c("getBusinessCategoriesByMenuIdV2","businessId",s),c("getBusinessCategoriesByMenuIdV2","businessCategoryBodyDto",e);let t="/api/v2/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessCategoriesByMenuIdV3:async(s,e,r={})=>{c("getBusinessCategoriesByMenuIdV3","businessId",s),c("getBusinessCategoriesByMenuIdV3","businessCategoryBodyDto",e);let t="/api/v3/business/{businessId}/menu/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessChannelConfig:async(s,e,r={})=>{c("getBusinessChannelConfig","businessId",s);let t="/api/v1/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessChannelConfigV2:async(s,e,r={})=>{c("getBusinessChannelConfigV2","businessId",s);let t="/api/v2/business/{businessId}/channel-configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfig:async(s,e,r={})=>{c("getBusinessConfig","businessId",s);let t="/api/v1/business/{businessId}/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigById:async(s,e,r={})=>{c("getBusinessConfigById","businessId",s);let t="/api/v1/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfigByIdV2:async(s,e,r={})=>{c("getBusinessConfigByIdV2","businessId",s);let t="/api/v2/business/{businessId}/external/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessConfiguration:async(s,e,r={})=>{c("getBusinessConfiguration","businessId",s);let t="/api/v1/business/{businessId}/internal/configs".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.lang=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByType:async(s,e,r={})=>{c("getBusinessMenuByType","businessId",s),c("getBusinessMenuByType","menuType",e);let t="/api/v1/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV2:async(s,e,r={})=>{c("getBusinessMenuByTypeV2","businessId",s),c("getBusinessMenuByTypeV2","menuType",e);let t="/api/v2/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV3:async(s,e,r={})=>{c("getBusinessMenuByTypeV3","businessId",s),c("getBusinessMenuByTypeV3","menuType",e);let t="/api/v3/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessMenuByTypeV4:async(s,e,r={})=>{c("getBusinessMenuByTypeV4","businessId",s),c("getBusinessMenuByTypeV4","menuType",e);let t="/api/v4/business/{businessId}/menu/{menuType}".replace("{businessId}",encodeURIComponent(String(s))).replace("{menuType}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessProviderStatus:async(s,e={})=>{c("getBusinessProviderStatus","businessId",s);let r="/api/v1/business/{businessId}/provider/status".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getBusinessProviderStatusExternal:async(s,e,r={})=>{c("getBusinessProviderStatusExternal","businessId",s);let t="/api/v1/business/{businessId}/provider/status/external".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getBusinessTax:async(s={})=>{let e="/api/v1/business/tax",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await b(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getProvidersSupportedIntegrations:async(s,e={})=>{c("getProvidersSupportedIntegrations","businessIds",s);let r="/api/v1/business/providers/supported-integrations",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),s&&(l.businessIds=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSingleBusinessProviderStatus:async(s,e,r,t={})=>{c("getSingleBusinessProviderStatus","businessId",s),c("getSingleBusinessProviderStatus","provider",e),c("getSingleBusinessProviderStatus","externalId",r);let n="/api/v1/business/{businessId}/{provider}/{externalId}/status".replace("{businessId}",encodeURIComponent(String(s))).replace("{provider}",encodeURIComponent(String(e))).replace("{externalId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await b(u,a),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},getUnifiedDiscounts:async(s,e={})=>{c("getUnifiedDiscounts","businessId",s);let r="/api/v1/business/{businessId}/discount".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},setBusinessStatus:async(s,e,r={})=>{c("setBusinessStatus","businessId",s),c("setBusinessStatus","businessStatusDto",e);let t="/api/v1/business/{businessId}/status".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},setBusinessStatusSchedule:async(s,e,r={})=>{c("setBusinessStatusSchedule","businessId",s),c("setBusinessStatusSchedule","businessStatusDto",e);let t="/api/v1/business/{businessId}/status/schedule".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},updateBusinessPermission:async(s,e,r,t={})=>{c("updateBusinessPermission","permissionId",s),c("updateBusinessPermission","businessId",e),c("updateBusinessPermission","updatePermissionDto",r);let n="/api/v1/business/{businessId}/permissions/{permissionId}".replace("{permissionId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PUT",...i,...t},u={},d={};await b(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},validateBusiness:async(s,e={})=>{c("validateBusiness","businessId",s);let r="/api/v1/business/{businessId}/validate".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},T=function(a){let s=mt(a);return{async createBusinessPermission(e,r,t){let n=await s.createBusinessPermission(e,r,t);return h(n,P,p,a)},async deleteBusinessPermission(e,r,t){let n=await s.deleteBusinessPermission(e,r,t);return h(n,P,p,a)},async getAdvancedDiscounts(e,r){let t=await s.getAdvancedDiscounts(e,r);return h(t,P,p,a)},async getBusinessCategoriesByMenuId(e,r,t){let n=await s.getBusinessCategoriesByMenuId(e,r,t);return h(n,P,p,a)},async getBusinessCategoriesByMenuIdV2(e,r,t){let n=await s.getBusinessCategoriesByMenuIdV2(e,r,t);return h(n,P,p,a)},async getBusinessCategoriesByMenuIdV3(e,r,t){let n=await s.getBusinessCategoriesByMenuIdV3(e,r,t);return h(n,P,p,a)},async getBusinessChannelConfig(e,r,t){let n=await s.getBusinessChannelConfig(e,r,t);return h(n,P,p,a)},async getBusinessChannelConfigV2(e,r,t){let n=await s.getBusinessChannelConfigV2(e,r,t);return h(n,P,p,a)},async getBusinessConfig(e,r,t){let n=await s.getBusinessConfig(e,r,t);return h(n,P,p,a)},async getBusinessConfigById(e,r,t){let n=await s.getBusinessConfigById(e,r,t);return h(n,P,p,a)},async getBusinessConfigByIdV2(e,r,t){let n=await s.getBusinessConfigByIdV2(e,r,t);return h(n,P,p,a)},async getBusinessConfiguration(e,r,t){let n=await s.getBusinessConfiguration(e,r,t);return h(n,P,p,a)},async getBusinessMenuByType(e,r,t){let n=await s.getBusinessMenuByType(e,r,t);return h(n,P,p,a)},async getBusinessMenuByTypeV2(e,r,t){let n=await s.getBusinessMenuByTypeV2(e,r,t);return h(n,P,p,a)},async getBusinessMenuByTypeV3(e,r,t){let n=await s.getBusinessMenuByTypeV3(e,r,t);return h(n,P,p,a)},async getBusinessMenuByTypeV4(e,r,t){let n=await s.getBusinessMenuByTypeV4(e,r,t);return h(n,P,p,a)},async getBusinessProviderStatus(e,r){let t=await s.getBusinessProviderStatus(e,r);return h(t,P,p,a)},async getBusinessProviderStatusExternal(e,r,t){let n=await s.getBusinessProviderStatusExternal(e,r,t);return h(n,P,p,a)},async getBusinessTax(e){let r=await s.getBusinessTax(e);return h(r,P,p,a)},async getProvidersSupportedIntegrations(e,r){let t=await s.getProvidersSupportedIntegrations(e,r);return h(t,P,p,a)},async getSingleBusinessProviderStatus(e,r,t,n){let o=await s.getSingleBusinessProviderStatus(e,r,t,n);return h(o,P,p,a)},async getUnifiedDiscounts(e,r){let t=await s.getUnifiedDiscounts(e,r);return h(t,P,p,a)},async setBusinessStatus(e,r,t){let n=await s.setBusinessStatus(e,r,t);return h(n,P,p,a)},async setBusinessStatusSchedule(e,r,t){let n=await s.setBusinessStatusSchedule(e,r,t);return h(n,P,p,a)},async updateBusinessPermission(e,r,t,n){let o=await s.updateBusinessPermission(e,r,t,n);return h(o,P,p,a)},async validateBusiness(e,r){let t=await s.validateBusiness(e,r);return h(t,P,p,a)}}},yn=function(a,s,e){let r=T(a);return{createBusinessPermission(t,n,o){return r.createBusinessPermission(t,n,o).then(i=>i(e,s))},deleteBusinessPermission(t,n,o){return r.deleteBusinessPermission(t,n,o).then(i=>i(e,s))},getAdvancedDiscounts(t,n){return r.getAdvancedDiscounts(t,n).then(o=>o(e,s))},getBusinessCategoriesByMenuId(t,n,o){return r.getBusinessCategoriesByMenuId(t,n,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV2(t,n,o){return r.getBusinessCategoriesByMenuIdV2(t,n,o).then(i=>i(e,s))},getBusinessCategoriesByMenuIdV3(t,n,o){return r.getBusinessCategoriesByMenuIdV3(t,n,o).then(i=>i(e,s))},getBusinessChannelConfig(t,n,o){return r.getBusinessChannelConfig(t,n,o).then(i=>i(e,s))},getBusinessChannelConfigV2(t,n,o){return r.getBusinessChannelConfigV2(t,n,o).then(i=>i(e,s))},getBusinessConfig(t,n,o){return r.getBusinessConfig(t,n,o).then(i=>i(e,s))},getBusinessConfigById(t,n,o){return r.getBusinessConfigById(t,n,o).then(i=>i(e,s))},getBusinessConfigByIdV2(t,n,o){return r.getBusinessConfigByIdV2(t,n,o).then(i=>i(e,s))},getBusinessConfiguration(t,n,o){return r.getBusinessConfiguration(t,n,o).then(i=>i(e,s))},getBusinessMenuByType(t,n,o){return r.getBusinessMenuByType(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV2(t,n,o){return r.getBusinessMenuByTypeV2(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV3(t,n,o){return r.getBusinessMenuByTypeV3(t,n,o).then(i=>i(e,s))},getBusinessMenuByTypeV4(t,n,o){return r.getBusinessMenuByTypeV4(t,n,o).then(i=>i(e,s))},getBusinessProviderStatus(t,n){return r.getBusinessProviderStatus(t,n).then(o=>o(e,s))},getBusinessProviderStatusExternal(t,n,o){return r.getBusinessProviderStatusExternal(t,n,o).then(i=>i(e,s))},getBusinessTax(t){return r.getBusinessTax(t).then(n=>n(e,s))},getProvidersSupportedIntegrations(t,n){return r.getProvidersSupportedIntegrations(t,n).then(o=>o(e,s))},getSingleBusinessProviderStatus(t,n,o,i){return r.getSingleBusinessProviderStatus(t,n,o,i).then(l=>l(e,s))},getUnifiedDiscounts(t,n){return r.getUnifiedDiscounts(t,n).then(o=>o(e,s))},setBusinessStatus(t,n,o){return r.setBusinessStatus(t,n,o).then(i=>i(e,s))},setBusinessStatusSchedule(t,n,o){return r.setBusinessStatusSchedule(t,n,o).then(i=>i(e,s))},updateBusinessPermission(t,n,o,i){return r.updateBusinessPermission(t,n,o,i).then(l=>l(e,s))},validateBusiness(t,n){return r.validateBusiness(t,n).then(o=>o(e,s))}}},Ae=class extends I{createBusinessPermission(s,e,r){return T(this.configuration).createBusinessPermission(s,e,r).then(t=>t(this.axios,this.basePath))}deleteBusinessPermission(s,e,r){return T(this.configuration).deleteBusinessPermission(s,e,r).then(t=>t(this.axios,this.basePath))}getAdvancedDiscounts(s,e){return T(this.configuration).getAdvancedDiscounts(s,e).then(r=>r(this.axios,this.basePath))}getBusinessCategoriesByMenuId(s,e,r){return T(this.configuration).getBusinessCategoriesByMenuId(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV2(s,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessCategoriesByMenuIdV3(s,e,r){return T(this.configuration).getBusinessCategoriesByMenuIdV3(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfig(s,e,r){return T(this.configuration).getBusinessChannelConfig(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessChannelConfigV2(s,e,r){return T(this.configuration).getBusinessChannelConfigV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfig(s,e,r){return T(this.configuration).getBusinessConfig(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfigById(s,e,r){return T(this.configuration).getBusinessConfigById(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfigByIdV2(s,e,r){return T(this.configuration).getBusinessConfigByIdV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessConfiguration(s,e,r){return T(this.configuration).getBusinessConfiguration(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByType(s,e,r){return T(this.configuration).getBusinessMenuByType(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV2(s,e,r){return T(this.configuration).getBusinessMenuByTypeV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV3(s,e,r){return T(this.configuration).getBusinessMenuByTypeV3(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessMenuByTypeV4(s,e,r){return T(this.configuration).getBusinessMenuByTypeV4(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessProviderStatus(s,e){return T(this.configuration).getBusinessProviderStatus(s,e).then(r=>r(this.axios,this.basePath))}getBusinessProviderStatusExternal(s,e,r){return T(this.configuration).getBusinessProviderStatusExternal(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessTax(s){return T(this.configuration).getBusinessTax(s).then(e=>e(this.axios,this.basePath))}getProvidersSupportedIntegrations(s,e){return T(this.configuration).getProvidersSupportedIntegrations(s,e).then(r=>r(this.axios,this.basePath))}getSingleBusinessProviderStatus(s,e,r,t){return T(this.configuration).getSingleBusinessProviderStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}getUnifiedDiscounts(s,e){return T(this.configuration).getUnifiedDiscounts(s,e).then(r=>r(this.axios,this.basePath))}setBusinessStatus(s,e,r){return T(this.configuration).setBusinessStatus(s,e,r).then(t=>t(this.axios,this.basePath))}setBusinessStatusSchedule(s,e,r){return T(this.configuration).setBusinessStatusSchedule(s,e,r).then(t=>t(this.axios,this.basePath))}updateBusinessPermission(s,e,r,t){return T(this.configuration).updateBusinessPermission(s,e,r,t).then(n=>n(this.axios,this.basePath))}validateBusiness(s,e){return T(this.configuration).validateBusiness(s,e).then(r=>r(this.axios,this.basePath))}},gt=function(a){return{updatePosGlobalSettings:async(s,e,r={})=>{c("updatePosGlobalSettings","businessId",s),c("updatePosGlobalSettings","updatePosGlobalSettingsDto",e);let t="/api/v1/business-provider-policy/business/{businessId}/pos-global-settings".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},et=function(a){let s=gt(a);return{async updatePosGlobalSettings(e,r,t){let n=await s.updatePosGlobalSettings(e,r,t);return h(n,P,p,a)}}},hn=function(a,s,e){let r=et(a);return{updatePosGlobalSettings(t,n,o){return r.updatePosGlobalSettings(t,n,o).then(i=>i(e,s))}}},xe=class extends I{updatePosGlobalSettings(s,e,r){return et(this.configuration).updatePosGlobalSettings(s,e,r).then(t=>t(this.axios,this.basePath))}},yt=function(a){return{create:async(s,e,r={})=>{c("create","businessId",s),c("create","cashSessionDto",e);let t="/api/v1/cash-management/{businessId}/create".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getCashLogs:async(s,e,r,t,n,o,i,l={})=>{c("getCashLogs","businessId",s),c("getCashLogs","timezone",e);let u="/api/v1/cash-management/{businessId}/logs".replace("{businessId}",encodeURIComponent(String(s))),d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"GET",...f,...l},R={},C={};r!==void 0&&(C.timeSpan=r),t!==void 0&&(C.start=t),n!==void 0&&(C.end=n),o!==void 0&&(C.page=o),i!==void 0&&(C.rowPerPage=i),e!==void 0&&(C.timezone=e),g(d,C);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},{url:y(d),options:x}},getCashSession:async(s,e={})=>{c("getCashSession","businessId",s);let r="/api/v1/cash-management/{businessId}/active-session".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getSessionReport:async(s,e,r={})=>{c("getSessionReport","businessId",s),c("getSessionReport","sessionId",e);let t="/api/v1/cash-management/{businessId}/sessions/{sessionId}/report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recordCashLog:async(s,e,r={})=>{c("recordCashLog","businessId",s),c("recordCashLog","cashLogDto",e);let t="/api/v1/cash-management/{businessId}/log".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},sendSessionReport:async(s,e,r,t={})=>{c("sendSessionReport","businessId",s),c("sendSessionReport","sessionId",e),c("sendSessionReport","sendCashReportDto",r);let n="/api/v1/cash-management/{businessId}/sessions/{sessionId}/send-report".replace("{businessId}",encodeURIComponent(String(s))).replace("{sessionId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},F=function(a){let s=yt(a);return{async create(e,r,t){let n=await s.create(e,r,t);return h(n,P,p,a)},async getCashLogs(e,r,t,n,o,i,l,u){let d=await s.getCashLogs(e,r,t,n,o,i,l,u);return h(d,P,p,a)},async getCashSession(e,r){let t=await s.getCashSession(e,r);return h(t,P,p,a)},async getSessionReport(e,r,t){let n=await s.getSessionReport(e,r,t);return h(n,P,p,a)},async recordCashLog(e,r,t){let n=await s.recordCashLog(e,r,t);return h(n,P,p,a)},async sendSessionReport(e,r,t,n){let o=await s.sendSessionReport(e,r,t,n);return h(o,P,p,a)}}},Pn=function(a,s,e){let r=F(a);return{create(t,n,o){return r.create(t,n,o).then(i=>i(e,s))},getCashLogs(t,n,o,i,l,u,d,f){return r.getCashLogs(t,n,o,i,l,u,d,f).then(x=>x(e,s))},getCashSession(t,n){return r.getCashSession(t,n).then(o=>o(e,s))},getSessionReport(t,n,o){return r.getSessionReport(t,n,o).then(i=>i(e,s))},recordCashLog(t,n,o){return r.recordCashLog(t,n,o).then(i=>i(e,s))},sendSessionReport(t,n,o,i){return r.sendSessionReport(t,n,o,i).then(l=>l(e,s))}}},Re=class extends I{create(s,e,r){return F(this.configuration).create(s,e,r).then(t=>t(this.axios,this.basePath))}getCashLogs(s,e,r,t,n,o,i,l){return F(this.configuration).getCashLogs(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}getCashSession(s,e){return F(this.configuration).getCashSession(s,e).then(r=>r(this.axios,this.basePath))}getSessionReport(s,e,r){return F(this.configuration).getSessionReport(s,e,r).then(t=>t(this.axios,this.basePath))}recordCashLog(s,e,r){return F(this.configuration).recordCashLog(s,e,r).then(t=>t(this.axios,this.basePath))}sendSessionReport(s,e,r,t){return F(this.configuration).sendSessionReport(s,e,r,t).then(n=>n(this.axios,this.basePath))}},ht=function(a){return{configConfigureMunchiGiftCard:async(s,e,r,t={})=>{c("configConfigureMunchiGiftCard","businessId",s),c("configConfigureMunchiGiftCard","xAppX",e),c("configConfigureMunchiGiftCard","configureMunchiGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/munchi-giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},configManualSync:async(s,e,r={})=>{c("configManualSync","businessId",s),c("configManualSync","manualSyncDto",e);let t="/api/v1/config-management/business/{businessId}/sync".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configRemovePaymentOption:async(s,e,r,t={})=>{c("configRemovePaymentOption","businessId",s),c("configRemovePaymentOption","id",e),c("configRemovePaymentOption","xAppX",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options/{id}".replace("{businessId}",encodeURIComponent(String(s))).replace("{id}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={},d={};await b(u,a),r!=null&&(u["x-app-x"]=String(r)),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},configUpsertBusiness:async(s,e,r={})=>{c("configUpsertBusiness","businessId",s),c("configUpsertBusiness","upsertBusinessDto",e);let t="/api/v1/config-management/business/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configUpsertChannelConfig:async(s,e,r,t={})=>{c("configUpsertChannelConfig","businessId",s),c("configUpsertChannelConfig","xAppX",e),c("configUpsertChannelConfig","upsertConfigDto",r);let n="/api/v1/config-management/business/{businessId}/config".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertGiftCard:async(s,e,r,t={})=>{c("configUpsertGiftCard","businessId",s),c("configUpsertGiftCard","xAppX",e),c("configUpsertGiftCard","upsertGiftCardDto",r);let n="/api/v1/config-management/business/{businessId}/config/giftcard".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertLoyalty:async(s,e,r={})=>{c("configUpsertLoyalty","businessId",s),c("configUpsertLoyalty","upsertLoyaltyDto",e);let t="/api/v1/config-management/business/{businessId}/loyalty".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},configUpsertNets:async(s,e,r,t={})=>{c("configUpsertNets","businessId",s),c("configUpsertNets","xAppX",e),c("configUpsertNets","upsertNetsDto",r);let n="/api/v1/config-management/business/{businessId}/config/nets".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertPaymentOptions:async(s,e,r,t={})=>{c("configUpsertPaymentOptions","businessId",s),c("configUpsertPaymentOptions","xAppX",e),c("configUpsertPaymentOptions","upsertPaymentOptionsDto",r);let n="/api/v1/config-management/business/{businessId}/config/payment-options".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertStripe:async(s,e,r,t={})=>{c("configUpsertStripe","businessId",s),c("configUpsertStripe","xAppX",e),c("configUpsertStripe","upsertStripeDto",r);let n="/api/v1/config-management/business/{businessId}/config/stripe".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},configUpsertViva:async(s,e,r,t={})=>{c("configUpsertViva","businessId",s),c("configUpsertViva","xAppX",e),c("configUpsertViva","upsertVivaDto",r);let n="/api/v1/config-management/business/{businessId}/config/viva".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(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,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},M=function(a){let s=ht(a);return{async configConfigureMunchiGiftCard(e,r,t,n){let o=await s.configConfigureMunchiGiftCard(e,r,t,n);return h(o,P,p,a)},async configManualSync(e,r,t){let n=await s.configManualSync(e,r,t);return h(n,P,p,a)},async configRemovePaymentOption(e,r,t,n){let o=await s.configRemovePaymentOption(e,r,t,n);return h(o,P,p,a)},async configUpsertBusiness(e,r,t){let n=await s.configUpsertBusiness(e,r,t);return h(n,P,p,a)},async configUpsertChannelConfig(e,r,t,n){let o=await s.configUpsertChannelConfig(e,r,t,n);return h(o,P,p,a)},async configUpsertGiftCard(e,r,t,n){let o=await s.configUpsertGiftCard(e,r,t,n);return h(o,P,p,a)},async configUpsertLoyalty(e,r,t){let n=await s.configUpsertLoyalty(e,r,t);return h(n,P,p,a)},async configUpsertNets(e,r,t,n){let o=await s.configUpsertNets(e,r,t,n);return h(o,P,p,a)},async configUpsertPaymentOptions(e,r,t,n){let o=await s.configUpsertPaymentOptions(e,r,t,n);return h(o,P,p,a)},async configUpsertStripe(e,r,t,n){let o=await s.configUpsertStripe(e,r,t,n);return h(o,P,p,a)},async configUpsertViva(e,r,t,n){let o=await s.configUpsertViva(e,r,t,n);return h(o,P,p,a)}}},fn=function(a,s,e){let r=M(a);return{configConfigureMunchiGiftCard(t,n,o,i){return r.configConfigureMunchiGiftCard(t,n,o,i).then(l=>l(e,s))},configManualSync(t,n,o){return r.configManualSync(t,n,o).then(i=>i(e,s))},configRemovePaymentOption(t,n,o,i){return r.configRemovePaymentOption(t,n,o,i).then(l=>l(e,s))},configUpsertBusiness(t,n,o){return r.configUpsertBusiness(t,n,o).then(i=>i(e,s))},configUpsertChannelConfig(t,n,o,i){return r.configUpsertChannelConfig(t,n,o,i).then(l=>l(e,s))},configUpsertGiftCard(t,n,o,i){return r.configUpsertGiftCard(t,n,o,i).then(l=>l(e,s))},configUpsertLoyalty(t,n,o){return r.configUpsertLoyalty(t,n,o).then(i=>i(e,s))},configUpsertNets(t,n,o,i){return r.configUpsertNets(t,n,o,i).then(l=>l(e,s))},configUpsertPaymentOptions(t,n,o,i){return r.configUpsertPaymentOptions(t,n,o,i).then(l=>l(e,s))},configUpsertStripe(t,n,o,i){return r.configUpsertStripe(t,n,o,i).then(l=>l(e,s))},configUpsertViva(t,n,o,i){return r.configUpsertViva(t,n,o,i).then(l=>l(e,s))}}},be=class extends I{configConfigureMunchiGiftCard(s,e,r,t){return M(this.configuration).configConfigureMunchiGiftCard(s,e,r,t).then(n=>n(this.axios,this.basePath))}configManualSync(s,e,r){return M(this.configuration).configManualSync(s,e,r).then(t=>t(this.axios,this.basePath))}configRemovePaymentOption(s,e,r,t){return M(this.configuration).configRemovePaymentOption(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertBusiness(s,e,r){return M(this.configuration).configUpsertBusiness(s,e,r).then(t=>t(this.axios,this.basePath))}configUpsertChannelConfig(s,e,r,t){return M(this.configuration).configUpsertChannelConfig(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertGiftCard(s,e,r,t){return M(this.configuration).configUpsertGiftCard(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertLoyalty(s,e,r){return M(this.configuration).configUpsertLoyalty(s,e,r).then(t=>t(this.axios,this.basePath))}configUpsertNets(s,e,r,t){return M(this.configuration).configUpsertNets(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertPaymentOptions(s,e,r,t){return M(this.configuration).configUpsertPaymentOptions(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertStripe(s,e,r,t){return M(this.configuration).configUpsertStripe(s,e,r,t).then(n=>n(this.axios,this.basePath))}configUpsertViva(s,e,r,t){return M(this.configuration).configUpsertViva(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Pt=function(a){return{createAssignment:async(s,e,r={})=>{c("createAssignment","businessId",s),c("createAssignment","createEmployeeAssignmentDto",e);let t="/api/v1/businesses/{businessId}/assignments".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},tt=function(a){let s=Pt(a);return{async createAssignment(e,r,t){let n=await s.createAssignment(e,r,t);return h(n,P,p,a)}}},An=function(a,s,e){let r=tt(a);return{createAssignment(t,n,o){return r.createAssignment(t,n,o).then(i=>i(e,s))}}},Ce=class extends I{createAssignment(s,e,r){return tt(this.configuration).createAssignment(s,e,r).then(t=>t(this.axios,this.basePath))}},ft=function(a){return{redeemGiftCard:async(s,e={})=>{c("redeemGiftCard","redeemGiftCardDto",s);let r="/api/v1/giftcard/redeem",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},validateGiftCard:async(s,e={})=>{c("validateGiftCard","validateGiftCardDto",s);let r="/api/v1/giftcard/validate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},ce=function(a){let s=ft(a);return{async redeemGiftCard(e,r){let t=await s.redeemGiftCard(e,r);return h(t,P,p,a)},async validateGiftCard(e,r){let t=await s.validateGiftCard(e,r);return h(t,P,p,a)}}},xn=function(a,s,e){let r=ce(a);return{redeemGiftCard(t,n){return r.redeemGiftCard(t,n).then(o=>o(e,s))},validateGiftCard(t,n){return r.validateGiftCard(t,n).then(o=>o(e,s))}}},De=class extends I{redeemGiftCard(s,e){return ce(this.configuration).redeemGiftCard(s,e).then(r=>r(this.axios,this.basePath))}validateGiftCard(s,e){return ce(this.configuration).validateGiftCard(s,e).then(r=>r(this.axios,this.basePath))}},At=function(a){return{getInternalOrderHistoryOnline:async(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O={})=>{c("getInternalOrderHistoryOnline","businessIds",s);let S="/api/v1/history/internal/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},_={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let L=V&&V.headers?V.headers:{};return E.headers={..._,...L,...O.headers},{url:y(v),options:E}},getOrderHistoryOnline:async(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O={})=>{c("getOrderHistoryOnline","businessIds",s);let S="/api/v1/history/orders",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},_={},D={};e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let L=V&&V.headers?V.headers:{};return E.headers={..._,...L,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5:async(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O={})=>{c("getOrderHistoryPOSV5","businessIds",s);let S="/api/v5/history/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},_={},D={};await b(_,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let L=V&&V.headers?V.headers:{};return E.headers={..._,...L,...O.headers},{url:y(v),options:E}},getOrderHistoryPOSV5Internal:async(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O={})=>{c("getOrderHistoryPOSV5Internal","businessIds",s);let S="/api/v5/history/internal/orders/pos",v=new URL(S,m),V;a&&(V=a.baseOptions);let E={method:"GET",...V,...O},_={},D={};await b(_,a),e!==void 0&&(D.timeSpan=e),r!==void 0&&(D.start=r),t!==void 0&&(D.end=t),s&&(D.businessIds=s),n!==void 0&&(D.page=n),o!==void 0&&(D.rowPerPage=o),i&&(D.provider=i),l&&(D.paymentType=l),u&&(D.orderStatus=u),d&&(D.paymentStatus=d),f&&(D.orderType=f),x&&(D.paymentTypePos=x),R!==void 0&&(D.invoiceCompanyId=R),C!==void 0&&(D.timezone=C),g(v,D);let L=V&&V.headers?V.headers:{};return E.headers={..._,...L,...O.headers},{url:y(v),options:E}}}},H=function(a){let s=At(a);return{async getInternalOrderHistoryOnline(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S){let v=await s.getInternalOrderHistoryOnline(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P,p,a)},async getOrderHistoryOnline(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S){let v=await s.getOrderHistoryOnline(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P,p,a)},async getOrderHistoryPOSV5(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S){let v=await s.getOrderHistoryPOSV5(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P,p,a)},async getOrderHistoryPOSV5Internal(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S){let v=await s.getOrderHistoryPOSV5Internal(e,r,t,n,o,i,l,u,d,f,x,R,C,O,S);return h(v,P,p,a)}}},Rn=function(a,s,e){let r=H(a);return{getInternalOrderHistoryOnline(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getInternalOrderHistoryOnline(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,s))},getOrderHistoryOnline(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getOrderHistoryOnline(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,s))},getOrderHistoryPOSV5(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getOrderHistoryPOSV5(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,s))},getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V){return r.getOrderHistoryPOSV5Internal(t,n,o,i,l,u,d,f,x,R,C,O,S,v,V).then(E=>E(e,s))}}},Oe=class extends I{getInternalOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getInternalOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getOrderHistoryOnline(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getOrderHistoryPOSV5(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}getOrderHistoryPOSV5Internal(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O){return H(this.configuration).getOrderHistoryPOSV5Internal(s,e,r,t,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(this.axios,this.basePath))}},xt=function(a){return{createInvoiceCompany:async(s,e,r={})=>{c("createInvoiceCompany","businessId",s),c("createInvoiceCompany","createInvoiceCompanyDto",e);let t="/api/v1/invoice-companies",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},deleteInvoiceCompany:async(s,e,r={})=>{c("deleteInvoiceCompany","id",s),c("deleteInvoiceCompany","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getInvoiceCompanies:async(s,e={})=>{c("getInvoiceCompanies","businessId",s);let r="/api/v1/invoice-companies",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getInvoiceCompanyById:async(s,e,r={})=>{c("getInvoiceCompanyById","id",s),c("getInvoiceCompanyById","businessId",e);let t="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.businessId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},searchInvoiceCompanies:async(s,e,r={})=>{c("searchInvoiceCompanies","businessId",s);let t="/api/v1/invoice-companies/search",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};s!==void 0&&(u.businessId=s),e!==void 0&&(u.search=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},updateInvoiceCompany:async(s,e,r,t={})=>{c("updateInvoiceCompany","id",s),c("updateInvoiceCompany","businessId",e),c("updateInvoiceCompany","updateInvoiceCompanyDto",r);let n="/api/v1/invoice-companies/{id}".replace("{id}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"PATCH",...i,...t},u={},d={};e!==void 0&&(d.businessId=e),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},j=function(a){let s=xt(a);return{async createInvoiceCompany(e,r,t){let n=await s.createInvoiceCompany(e,r,t);return h(n,P,p,a)},async deleteInvoiceCompany(e,r,t){let n=await s.deleteInvoiceCompany(e,r,t);return h(n,P,p,a)},async getInvoiceCompanies(e,r){let t=await s.getInvoiceCompanies(e,r);return h(t,P,p,a)},async getInvoiceCompanyById(e,r,t){let n=await s.getInvoiceCompanyById(e,r,t);return h(n,P,p,a)},async searchInvoiceCompanies(e,r,t){let n=await s.searchInvoiceCompanies(e,r,t);return h(n,P,p,a)},async updateInvoiceCompany(e,r,t,n){let o=await s.updateInvoiceCompany(e,r,t,n);return h(o,P,p,a)}}},bn=function(a,s,e){let r=j(a);return{createInvoiceCompany(t,n,o){return r.createInvoiceCompany(t,n,o).then(i=>i(e,s))},deleteInvoiceCompany(t,n,o){return r.deleteInvoiceCompany(t,n,o).then(i=>i(e,s))},getInvoiceCompanies(t,n){return r.getInvoiceCompanies(t,n).then(o=>o(e,s))},getInvoiceCompanyById(t,n,o){return r.getInvoiceCompanyById(t,n,o).then(i=>i(e,s))},searchInvoiceCompanies(t,n,o){return r.searchInvoiceCompanies(t,n,o).then(i=>i(e,s))},updateInvoiceCompany(t,n,o,i){return r.updateInvoiceCompany(t,n,o,i).then(l=>l(e,s))}}},Ve=class extends I{createInvoiceCompany(s,e,r){return j(this.configuration).createInvoiceCompany(s,e,r).then(t=>t(this.axios,this.basePath))}deleteInvoiceCompany(s,e,r){return j(this.configuration).deleteInvoiceCompany(s,e,r).then(t=>t(this.axios,this.basePath))}getInvoiceCompanies(s,e){return j(this.configuration).getInvoiceCompanies(s,e).then(r=>r(this.axios,this.basePath))}getInvoiceCompanyById(s,e,r){return j(this.configuration).getInvoiceCompanyById(s,e,r).then(t=>t(this.axios,this.basePath))}searchInvoiceCompanies(s,e,r){return j(this.configuration).searchInvoiceCompanies(s,e,r).then(t=>t(this.axios,this.basePath))}updateInvoiceCompany(s,e,r,t){return j(this.configuration).updateInvoiceCompany(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Rt=function(a){return{kdsGetOrders:async(s,e,r,t,n,o,i,l,u,d,f,x={})=>{c("kdsGetOrders","status",s),c("kdsGetOrders","businessIds",e),c("kdsGetOrders","profileId",r);let R="/api/v1/kds/orders/{status}".replace("{status}",encodeURIComponent(String(s))),C=new URL(R,m),O;a&&(O=a.baseOptions);let S={method:"GET",...O,...x},v={},V={};await b(v,a),e!==void 0&&(V.businessIds=e),r!==void 0&&(V.profileId=r),t!==void 0&&(V.page=t),n!==void 0&&(V.rowPerPage=n),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(C,V);let E=O&&O.headers?O.headers:{};return S.headers={...v,...E,...x.headers},{url:y(C),options:S}},kdsGetProfiles:async(s,e={})=>{c("kdsGetProfiles","businessId",s);let r="/api/v1/kds/profiles",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsMarkOrderReady:async(s,e={})=>{c("kdsMarkOrderReady","id",s);let r="/api/v1/kds/orders/{id}/ready".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},kdsRevertOrder:async(s,e={})=>{c("kdsRevertOrder","id",s);let r="/api/v1/kds/orders/{id}/revert".replace("{id}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PATCH",...n,...e},i={},l={};await b(i,a),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},Q=function(a){let s=Rt(a);return{async kdsGetOrders(e,r,t,n,o,i,l,u,d,f,x,R){let C=await s.kdsGetOrders(e,r,t,n,o,i,l,u,d,f,x,R);return h(C,P,p,a)},async kdsGetProfiles(e,r){let t=await s.kdsGetProfiles(e,r);return h(t,P,p,a)},async kdsMarkOrderReady(e,r){let t=await s.kdsMarkOrderReady(e,r);return h(t,P,p,a)},async kdsRevertOrder(e,r){let t=await s.kdsRevertOrder(e,r);return h(t,P,p,a)}}},Cn=function(a,s,e){let r=Q(a);return{kdsGetOrders(t,n,o,i,l,u,d,f,x,R,C,O){return r.kdsGetOrders(t,n,o,i,l,u,d,f,x,R,C,O).then(S=>S(e,s))},kdsGetProfiles(t,n){return r.kdsGetProfiles(t,n).then(o=>o(e,s))},kdsMarkOrderReady(t,n){return r.kdsMarkOrderReady(t,n).then(o=>o(e,s))},kdsRevertOrder(t,n){return r.kdsRevertOrder(t,n).then(o=>o(e,s))}}},Ie=class extends I{kdsGetOrders(s,e,r,t,n,o,i,l,u,d,f,x){return Q(this.configuration).kdsGetOrders(s,e,r,t,n,o,i,l,u,d,f,x).then(R=>R(this.axios,this.basePath))}kdsGetProfiles(s,e){return Q(this.configuration).kdsGetProfiles(s,e).then(r=>r(this.axios,this.basePath))}kdsMarkOrderReady(s,e){return Q(this.configuration).kdsMarkOrderReady(s,e).then(r=>r(this.axios,this.basePath))}kdsRevertOrder(s,e){return Q(this.configuration).kdsRevertOrder(s,e).then(r=>r(this.axios,this.basePath))}},bt=function(a){return{getOrderStatus:async(s,e,r={})=>{c("getOrderStatus","orderId",s),c("getOrderStatus","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/status".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},recoverOrder:async(s,e,r={})=>{c("recoverOrder","orderId",s),c("recoverOrder","businessId",e);let t="/api/v1/kiosk/orders/{orderId}/{businessId}/recovery".replace("{orderId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={};g(n,{});let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},validate:async(s,e,r={})=>{c("validate","terminalId",s),c("validate","provider",e);let t="/api/v1/kiosk/terminal/validate",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};s!==void 0&&(u.terminalId=s),e!==void 0&&(u.provider=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},te=function(a){let s=bt(a);return{async getOrderStatus(e,r,t){let n=await s.getOrderStatus(e,r,t);return h(n,P,p,a)},async recoverOrder(e,r,t){let n=await s.recoverOrder(e,r,t);return h(n,P,p,a)},async validate(e,r,t){let n=await s.validate(e,r,t);return h(n,P,p,a)}}},Dn=function(a,s,e){let r=te(a);return{getOrderStatus(t,n,o){return r.getOrderStatus(t,n,o).then(i=>i(e,s))},recoverOrder(t,n,o){return r.recoverOrder(t,n,o).then(i=>i(e,s))},validate(t,n,o){return r.validate(t,n,o).then(i=>i(e,s))}}},Se=class extends I{getOrderStatus(s,e,r){return te(this.configuration).getOrderStatus(s,e,r).then(t=>t(this.axios,this.basePath))}recoverOrder(s,e,r){return te(this.configuration).recoverOrder(s,e,r).then(t=>t(this.axios,this.basePath))}validate(s,e,r){return te(this.configuration).validate(s,e,r).then(t=>t(this.axios,this.basePath))}},Ct=function(a){return{activateKioskOffer:async(s,e={})=>{c("activateKioskOffer","activateKioskOfferDto",s);let r="/api/v1/loyalty/users/activate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},claimKioskOffer:async(s,e={})=>{c("claimKioskOffer","claimKioskOfferDto",s);let r="/api/v1/loyalty/users/claim",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createLoyaltyUser:async(s,e,r={})=>{c("createLoyaltyUser","businessId",s),c("createLoyaltyUser","createLoyaltyProgramUserDto",e);let t="/api/v1/loyalty/users/create",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getAdminTransactions:async(s,e,r,t={})=>{c("getAdminTransactions","businessId",s);let n="/api/v1/loyalty/admin/transactions",o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};await b(u,a),s!==void 0&&(d.businessId=s),e!==void 0&&(d.page=e),r!==void 0&&(d.limit=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},getLoyaltyInfo:async(s,e={})=>{c("getLoyaltyInfo","businessId",s);let r="/api/v1/loyalty/info",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};await b(i,a),s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getUserById:async(s,e,r={})=>{c("getUserById","businessId",s),c("getUserById","userId",e);let t="/api/v1/loyalty/users/info",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserPerks:async(s,e,r={})=>{c("getUserPerks","businessId",s),c("getUserPerks","userId",e);let t="/api/v1/loyalty/users/perks",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getUserWallet:async(s,e,r={})=>{c("getUserWallet","businessId",s),c("getUserWallet","userId",e);let t="/api/v1/loyalty/users/wallet",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};await b(l,a),s!==void 0&&(u.businessId=s),e!==void 0&&(u.userId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resolvePerks:async(s,e={})=>{c("resolvePerks","loyaltyResolveRequestDto",s);let r="/api/v1/loyalty/resolve",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},searchUser:async(s,e,r,t,n={})=>{c("searchUser","businessId",s);let o="/api/v1/loyalty/users/search",i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};await b(d,a),e!==void 0&&(f.phone=e),r!==void 0&&(f.country_code=r),t!==void 0&&(f.email=t),s!==void 0&&(f.businessId=s),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},updatePoints:async(s,e,r={})=>{c("updatePoints","businessId",s),c("updatePoints","pointsUpdatePayloadDto",e);let t="/api/v1/loyalty/update-user-points",n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),s!==void 0&&(u.businessId=s),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},k=function(a){let s=Ct(a);return{async activateKioskOffer(e,r){let t=await s.activateKioskOffer(e,r);return h(t,P,p,a)},async claimKioskOffer(e,r){let t=await s.claimKioskOffer(e,r);return h(t,P,p,a)},async createLoyaltyUser(e,r,t){let n=await s.createLoyaltyUser(e,r,t);return h(n,P,p,a)},async getAdminTransactions(e,r,t,n){let o=await s.getAdminTransactions(e,r,t,n);return h(o,P,p,a)},async getLoyaltyInfo(e,r){let t=await s.getLoyaltyInfo(e,r);return h(t,P,p,a)},async getUserById(e,r,t){let n=await s.getUserById(e,r,t);return h(n,P,p,a)},async getUserPerks(e,r,t){let n=await s.getUserPerks(e,r,t);return h(n,P,p,a)},async getUserWallet(e,r,t){let n=await s.getUserWallet(e,r,t);return h(n,P,p,a)},async resolvePerks(e,r){let t=await s.resolvePerks(e,r);return h(t,P,p,a)},async searchUser(e,r,t,n,o){let i=await s.searchUser(e,r,t,n,o);return h(i,P,p,a)},async updatePoints(e,r,t){let n=await s.updatePoints(e,r,t);return h(n,P,p,a)}}},On=function(a,s,e){let r=k(a);return{activateKioskOffer(t,n){return r.activateKioskOffer(t,n).then(o=>o(e,s))},claimKioskOffer(t,n){return r.claimKioskOffer(t,n).then(o=>o(e,s))},createLoyaltyUser(t,n,o){return r.createLoyaltyUser(t,n,o).then(i=>i(e,s))},getAdminTransactions(t,n,o,i){return r.getAdminTransactions(t,n,o,i).then(l=>l(e,s))},getLoyaltyInfo(t,n){return r.getLoyaltyInfo(t,n).then(o=>o(e,s))},getUserById(t,n,o){return r.getUserById(t,n,o).then(i=>i(e,s))},getUserPerks(t,n,o){return r.getUserPerks(t,n,o).then(i=>i(e,s))},getUserWallet(t,n,o){return r.getUserWallet(t,n,o).then(i=>i(e,s))},resolvePerks(t,n){return r.resolvePerks(t,n).then(o=>o(e,s))},searchUser(t,n,o,i,l){return r.searchUser(t,n,o,i,l).then(u=>u(e,s))},updatePoints(t,n,o){return r.updatePoints(t,n,o).then(i=>i(e,s))}}},ve=class extends I{activateKioskOffer(s,e){return k(this.configuration).activateKioskOffer(s,e).then(r=>r(this.axios,this.basePath))}claimKioskOffer(s,e){return k(this.configuration).claimKioskOffer(s,e).then(r=>r(this.axios,this.basePath))}createLoyaltyUser(s,e,r){return k(this.configuration).createLoyaltyUser(s,e,r).then(t=>t(this.axios,this.basePath))}getAdminTransactions(s,e,r,t){return k(this.configuration).getAdminTransactions(s,e,r,t).then(n=>n(this.axios,this.basePath))}getLoyaltyInfo(s,e){return k(this.configuration).getLoyaltyInfo(s,e).then(r=>r(this.axios,this.basePath))}getUserById(s,e,r){return k(this.configuration).getUserById(s,e,r).then(t=>t(this.axios,this.basePath))}getUserPerks(s,e,r){return k(this.configuration).getUserPerks(s,e,r).then(t=>t(this.axios,this.basePath))}getUserWallet(s,e,r){return k(this.configuration).getUserWallet(s,e,r).then(t=>t(this.axios,this.basePath))}resolvePerks(s,e){return k(this.configuration).resolvePerks(s,e).then(r=>r(this.axios,this.basePath))}searchUser(s,e,r,t,n){return k(this.configuration).searchUser(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}updatePoints(s,e,r){return k(this.configuration).updatePoints(s,e,r).then(t=>t(this.axios,this.basePath))}},Dt=function(a){return{editBusinessProduct:async(s,e,r={})=>{c("editBusinessProduct","businessId",s),c("editBusinessProduct","menuProductDto",e);let t="/api/v1/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},editBusinessProductV2:async(s,e,r={})=>{c("editBusinessProductV2","businessId",s),c("editBusinessProductV2","menuProductDtoV2",e);let t="/api/v2/menu/{businessId}/product".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PATCH",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getBusinessExtras:async(s,e={})=>{c("getBusinessExtras","businessId",s);let r="/api/v1/menu/{businessId}/extras".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getProductsByCategoriesV2:async(s,e,r={})=>{c("getProductsByCategoriesV2","businessId",s);let t="/api/v2/menu/{businessId}/categories".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.filter=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},resetProductEod:async(s,e={})=>{c("resetProductEod","resetEodDto",s);let r="/api/v1/menu/availability/reset-eod",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},K=function(a){let s=Dt(a);return{async editBusinessProduct(e,r,t){let n=await s.editBusinessProduct(e,r,t);return h(n,P,p,a)},async editBusinessProductV2(e,r,t){let n=await s.editBusinessProductV2(e,r,t);return h(n,P,p,a)},async getBusinessExtras(e,r){let t=await s.getBusinessExtras(e,r);return h(t,P,p,a)},async getProductsByCategoriesV2(e,r,t){let n=await s.getProductsByCategoriesV2(e,r,t);return h(n,P,p,a)},async resetProductEod(e,r){let t=await s.resetProductEod(e,r);return h(t,P,p,a)}}},Vn=function(a,s,e){let r=K(a);return{editBusinessProduct(t,n,o){return r.editBusinessProduct(t,n,o).then(i=>i(e,s))},editBusinessProductV2(t,n,o){return r.editBusinessProductV2(t,n,o).then(i=>i(e,s))},getBusinessExtras(t,n){return r.getBusinessExtras(t,n).then(o=>o(e,s))},getProductsByCategoriesV2(t,n,o){return r.getProductsByCategoriesV2(t,n,o).then(i=>i(e,s))},resetProductEod(t,n){return r.resetProductEod(t,n).then(o=>o(e,s))}}},Te=class extends I{editBusinessProduct(s,e,r){return K(this.configuration).editBusinessProduct(s,e,r).then(t=>t(this.axios,this.basePath))}editBusinessProductV2(s,e,r){return K(this.configuration).editBusinessProductV2(s,e,r).then(t=>t(this.axios,this.basePath))}getBusinessExtras(s,e){return K(this.configuration).getBusinessExtras(s,e).then(r=>r(this.axios,this.basePath))}getProductsByCategoriesV2(s,e,r){return K(this.configuration).getProductsByCategoriesV2(s,e,r).then(t=>t(this.axios,this.basePath))}resetProductEod(s,e){return K(this.configuration).resetProductEod(s,e).then(r=>r(this.axios,this.basePath))}},Ot=function(a){return{addBusinessesToMerchant:async(s,e,r={})=>{c("addBusinessesToMerchant","merchantId",s),c("addBusinessesToMerchant","addBusinessesToMerchantDto",e);let t="/api/v1/merchants/{merchantId}/businesses".replace("{merchantId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};await b(l,a),l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},createMerchant:async(s,e={})=>{c("createMerchant","createMerchantDto",s);let r="/api/v1/merchants",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},removeBusinessFromMerchant:async(s,e,r={})=>{c("removeBusinessFromMerchant","merchantId",s),c("removeBusinessFromMerchant","businessId",e);let t="/api/v1/merchants/{merchantId}/businesses/{businessId}".replace("{merchantId}",encodeURIComponent(String(s))).replace("{businessId}",encodeURIComponent(String(e))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"DELETE",...o,...r},l={},u={};await b(l,a),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}}}},se=function(a){let s=Ot(a);return{async addBusinessesToMerchant(e,r,t){let n=await s.addBusinessesToMerchant(e,r,t);return h(n,P,p,a)},async createMerchant(e,r){let t=await s.createMerchant(e,r);return h(t,P,p,a)},async removeBusinessFromMerchant(e,r,t){let n=await s.removeBusinessFromMerchant(e,r,t);return h(n,P,p,a)}}},In=function(a,s,e){let r=se(a);return{addBusinessesToMerchant(t,n,o){return r.addBusinessesToMerchant(t,n,o).then(i=>i(e,s))},createMerchant(t,n){return r.createMerchant(t,n).then(o=>o(e,s))},removeBusinessFromMerchant(t,n,o){return r.removeBusinessFromMerchant(t,n,o).then(i=>i(e,s))}}},Ee=class extends I{addBusinessesToMerchant(s,e,r){return se(this.configuration).addBusinessesToMerchant(s,e,r).then(t=>t(this.axios,this.basePath))}createMerchant(s,e){return se(this.configuration).createMerchant(s,e).then(r=>r(this.axios,this.basePath))}removeBusinessFromMerchant(s,e,r){return se(this.configuration).removeBusinessFromMerchant(s,e,r).then(t=>t(this.axios,this.basePath))}},Vt=function(a){return{createMunchiGiftCard:async(s,e={})=>{c("createMunchiGiftCard","createMunchiGiftCardDto",s);let r="/api/v1/munchi-giftcard/create",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getMunchiGiftCardData:async(s,e={})=>{c("getMunchiGiftCardData","getMunchiGiftCardDataDto",s);let r="/api/v1/munchi-giftcard/data",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},redeemMunchiGiftCard:async(s,e={})=>{c("redeemMunchiGiftCard","redeemGiftCardDto",s);let r="/api/v1/munchi-giftcard/redeem",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},validateMunchiGiftCard:async(s,e={})=>{c("validateMunchiGiftCard","validateGiftCardDto",s);let r="/api/v1/munchi-giftcard/validate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},$=function(a){let s=Vt(a);return{async createMunchiGiftCard(e,r){let t=await s.createMunchiGiftCard(e,r);return h(t,P,p,a)},async getMunchiGiftCardData(e,r){let t=await s.getMunchiGiftCardData(e,r);return h(t,P,p,a)},async redeemMunchiGiftCard(e,r){let t=await s.redeemMunchiGiftCard(e,r);return h(t,P,p,a)},async validateMunchiGiftCard(e,r){let t=await s.validateMunchiGiftCard(e,r);return h(t,P,p,a)}}},Sn=function(a,s,e){let r=$(a);return{createMunchiGiftCard(t,n){return r.createMunchiGiftCard(t,n).then(o=>o(e,s))},getMunchiGiftCardData(t,n){return r.getMunchiGiftCardData(t,n).then(o=>o(e,s))},redeemMunchiGiftCard(t,n){return r.redeemMunchiGiftCard(t,n).then(o=>o(e,s))},validateMunchiGiftCard(t,n){return r.validateMunchiGiftCard(t,n).then(o=>o(e,s))}}},Ue=class extends I{createMunchiGiftCard(s,e){return $(this.configuration).createMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}getMunchiGiftCardData(s,e){return $(this.configuration).getMunchiGiftCardData(s,e).then(r=>r(this.axios,this.basePath))}redeemMunchiGiftCard(s,e){return $(this.configuration).redeemMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}validateMunchiGiftCard(s,e){return $(this.configuration).validateMunchiGiftCard(s,e).then(r=>r(this.axios,this.basePath))}},It=function(a){return{addVenueSubscriptionsV2:async(s,e={})=>{c("addVenueSubscriptionsV2","deviceSubscriptionDto",s);let r="/api/v2/notification/add-venue-subscriptions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},removeVenueSubscriptionsV2:async(s,e={})=>{c("removeVenueSubscriptionsV2","deviceSubscriptionDto",s);let r="/api/v2/notification/remove-venue-subscriptions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},de=function(a){let s=It(a);return{async addVenueSubscriptionsV2(e,r){let t=await s.addVenueSubscriptionsV2(e,r);return h(t,P,p,a)},async removeVenueSubscriptionsV2(e,r){let t=await s.removeVenueSubscriptionsV2(e,r);return h(t,P,p,a)}}},vn=function(a,s,e){let r=de(a);return{addVenueSubscriptionsV2(t,n){return r.addVenueSubscriptionsV2(t,n).then(o=>o(e,s))},removeVenueSubscriptionsV2(t,n){return r.removeVenueSubscriptionsV2(t,n).then(o=>o(e,s))}}},qe=class extends I{addVenueSubscriptionsV2(s,e){return de(this.configuration).addVenueSubscriptionsV2(s,e).then(r=>r(this.axios,this.basePath))}removeVenueSubscriptionsV2(s,e){return de(this.configuration).removeVenueSubscriptionsV2(s,e).then(r=>r(this.axios,this.basePath))}},St=function(a){return{findOneByExternalId:async(s,e={})=>{c("findOneByExternalId","externalId",s);let r="/api/v1/orders/internal/{externalId}".replace("{externalId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},st=function(a){let s=St(a);return{async findOneByExternalId(e,r){let t=await s.findOneByExternalId(e,r);return h(t,P,p,a)}}},Tn=function(a,s,e){let r=st(a);return{findOneByExternalId(t,n){return r.findOneByExternalId(t,n).then(o=>o(e,s))}}},Be=class extends I{findOneByExternalId(s,e){return st(this.configuration).findOneByExternalId(s,e).then(r=>r(this.axios,this.basePath))}},vt=function(a){return{updateTaxRate:async(s,e={})=>{c("updateTaxRate","body",s);let r="/api/v1/ordering/update-tax-rate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"PUT",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},rt=function(a){let s=vt(a);return{async updateTaxRate(e,r){let t=await s.updateTaxRate(e,r);return h(t,P,p,a)}}},En=function(a,s,e){let r=rt(a);return{updateTaxRate(t,n){return r.updateTaxRate(t,n).then(o=>o(e,s))}}},Me=class extends I{updateTaxRate(s,e){return rt(this.configuration).updateTaxRate(s,e).then(r=>r(this.axios,this.basePath))}},Tt=function(a){return{acceptOrder:async(s,e={})=>{c("acceptOrder","acceptOrderDto",s);let r="/api/v1/orders/accept",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},confirmPreOrder:async(s,e={})=>{c("confirmPreOrder","confirmPreorderDto",s);let r="/api/v1/orders/confirm/preOrder",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},deletePosParkedOrderV2:async(s,e={})=>{c("deletePosParkedOrderV2","deletePosOrderDto",s);let r="/api/v2/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"DELETE",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},deliverOrder:async(s,e={})=>{c("deliverOrder","deliveredOrderDto",s);let r="/api/v1/orders/delivered",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getAllOrdersV2:async(s,e={})=>{c("getAllOrdersV2","businessIds",s);let r="/api/v2/orders",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessIds=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getOrdersV2:async(s,e,r,t,n={})=>{c("getOrdersV2","status",s),c("getOrdersV2","businessIds",e);let o="/api/v2/orders/{status}".replace("{status}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};e!==void 0&&(f.businessIds=e),r!==void 0&&(f.posBusinessId=r),t!==void 0&&(f.extraProvider=t),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},getParkedPosOrderV2:async(s,e={})=>{c("getParkedPosOrderV2","businessId",s);let r="/api/v2/orders/pos/park",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={},l={};s!==void 0&&(l.businessId=s),g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},markOrderAsReady:async(s,e={})=>{c("markOrderAsReady","readyOrderDto",s);let r="/api/v1/orders/ready",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},placePosOrderV4:async(s,e={})=>{c("placePosOrderV4","posOrderPayloadDto",s);let r="/api/v4/orders/pos/place",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},processPosOrderActions:async(s,e={})=>{c("processPosOrderActions","processOrderActionsDto",s);let r="/api/v4/orders/pos/actions",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},rejectOrder:async(s,e={})=>{c("rejectOrder","rejectOrderDto",s);let r="/api/v1/orders/reject",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},updatePosOrderV2:async(s,e={})=>{c("updatePosOrderV2","posUpdateOrderDto",s);let r="/api/v2/orders/pos/update",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},B=function(a){let s=Tt(a);return{async acceptOrder(e,r){let t=await s.acceptOrder(e,r);return h(t,P,p,a)},async confirmPreOrder(e,r){let t=await s.confirmPreOrder(e,r);return h(t,P,p,a)},async deletePosParkedOrderV2(e,r){let t=await s.deletePosParkedOrderV2(e,r);return h(t,P,p,a)},async deliverOrder(e,r){let t=await s.deliverOrder(e,r);return h(t,P,p,a)},async getAllOrdersV2(e,r){let t=await s.getAllOrdersV2(e,r);return h(t,P,p,a)},async getOrdersV2(e,r,t,n,o){let i=await s.getOrdersV2(e,r,t,n,o);return h(i,P,p,a)},async getParkedPosOrderV2(e,r){let t=await s.getParkedPosOrderV2(e,r);return h(t,P,p,a)},async markOrderAsReady(e,r){let t=await s.markOrderAsReady(e,r);return h(t,P,p,a)},async placePosOrderV4(e,r){let t=await s.placePosOrderV4(e,r);return h(t,P,p,a)},async processPosOrderActions(e,r){let t=await s.processPosOrderActions(e,r);return h(t,P,p,a)},async rejectOrder(e,r){let t=await s.rejectOrder(e,r);return h(t,P,p,a)},async updatePosOrderV2(e,r){let t=await s.updatePosOrderV2(e,r);return h(t,P,p,a)}}},Un=function(a,s,e){let r=B(a);return{acceptOrder(t,n){return r.acceptOrder(t,n).then(o=>o(e,s))},confirmPreOrder(t,n){return r.confirmPreOrder(t,n).then(o=>o(e,s))},deletePosParkedOrderV2(t,n){return r.deletePosParkedOrderV2(t,n).then(o=>o(e,s))},deliverOrder(t,n){return r.deliverOrder(t,n).then(o=>o(e,s))},getAllOrdersV2(t,n){return r.getAllOrdersV2(t,n).then(o=>o(e,s))},getOrdersV2(t,n,o,i,l){return r.getOrdersV2(t,n,o,i,l).then(u=>u(e,s))},getParkedPosOrderV2(t,n){return r.getParkedPosOrderV2(t,n).then(o=>o(e,s))},markOrderAsReady(t,n){return r.markOrderAsReady(t,n).then(o=>o(e,s))},placePosOrderV4(t,n){return r.placePosOrderV4(t,n).then(o=>o(e,s))},processPosOrderActions(t,n){return r.processPosOrderActions(t,n).then(o=>o(e,s))},rejectOrder(t,n){return r.rejectOrder(t,n).then(o=>o(e,s))},updatePosOrderV2(t,n){return r.updatePosOrderV2(t,n).then(o=>o(e,s))}}},ke=class extends I{acceptOrder(s,e){return B(this.configuration).acceptOrder(s,e).then(r=>r(this.axios,this.basePath))}confirmPreOrder(s,e){return B(this.configuration).confirmPreOrder(s,e).then(r=>r(this.axios,this.basePath))}deletePosParkedOrderV2(s,e){return B(this.configuration).deletePosParkedOrderV2(s,e).then(r=>r(this.axios,this.basePath))}deliverOrder(s,e){return B(this.configuration).deliverOrder(s,e).then(r=>r(this.axios,this.basePath))}getAllOrdersV2(s,e){return B(this.configuration).getAllOrdersV2(s,e).then(r=>r(this.axios,this.basePath))}getOrdersV2(s,e,r,t,n){return B(this.configuration).getOrdersV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}getParkedPosOrderV2(s,e){return B(this.configuration).getParkedPosOrderV2(s,e).then(r=>r(this.axios,this.basePath))}markOrderAsReady(s,e){return B(this.configuration).markOrderAsReady(s,e).then(r=>r(this.axios,this.basePath))}placePosOrderV4(s,e){return B(this.configuration).placePosOrderV4(s,e).then(r=>r(this.axios,this.basePath))}processPosOrderActions(s,e){return B(this.configuration).processPosOrderActions(s,e).then(r=>r(this.axios,this.basePath))}rejectOrder(s,e){return B(this.configuration).rejectOrder(s,e).then(r=>r(this.axios,this.basePath))}updatePosOrderV2(s,e){return B(this.configuration).updatePosOrderV2(s,e).then(r=>r(this.axios,this.basePath))}},Et=function(a){return{getPosSession:async(s,e={})=>{c("getPosSession","businessId",s);let r="/api/v1/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getPosSessionV2:async(s,e={})=>{c("getPosSessionV2","businessId",s);let r="/api/v2/pos-session/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}}}},pe=function(a){let s=Et(a);return{async getPosSession(e,r){let t=await s.getPosSession(e,r);return h(t,P,p,a)},async getPosSessionV2(e,r){let t=await s.getPosSessionV2(e,r);return h(t,P,p,a)}}},qn=function(a,s,e){let r=pe(a);return{getPosSession(t,n){return r.getPosSession(t,n).then(o=>o(e,s))},getPosSessionV2(t,n){return r.getPosSessionV2(t,n).then(o=>o(e,s))}}},_e=class extends I{getPosSession(s,e){return pe(this.configuration).getPosSession(s,e).then(r=>r(this.axios,this.basePath))}getPosSessionV2(s,e){return pe(this.configuration).getPosSessionV2(s,e).then(r=>r(this.axios,this.basePath))}},Ut=function(a){return{cancelNetsTerminalTransaction:async(s,e={})=>{c("cancelNetsTerminalTransaction","netsCancelTransactionDto",s);let r="/api/v3/payment/nets/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},cancelVivaTransactionV2:async(s,e={})=>{c("cancelVivaTransactionV2","vivaCancelTransactionDto",s);let r="/api/v2/payment/viva/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createNetsRefundTransaction:async(s,e={})=>{c("createNetsRefundTransaction","createRefundDto",s);let r="/api/v4/payment/nets/refund/transaction",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getPaymentReference:async(s,e={})=>{c("getPaymentReference","getPaymentReferenceDto",s);let r="/api/v1/payment/reference",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getPaymentStatus:async(s,e={})=>{c("getPaymentStatus","getPaymentStatusDto",s);let r="/api/v1/payment/status",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},initiateNetsTerminalTransaction:async(s,e={})=>{c("initiateNetsTerminalTransaction","createNetsTerminalPaymentDto",s);let r="/api/v3/payment/nets/terminal/initiate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},initiateTerminalTransaction:async(s,e={})=>{c("initiateTerminalTransaction","createTerminalPaymentDto",s);let r="/api/v4/payment/viva/terminal/initiate",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},processOnlineOrderRefund:async(s,e={})=>{c("processOnlineOrderRefund","orderResponseDto",s);let r="/api/v1/payment/online-orders/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundCashPaymentV3:async(s,e={})=>{c("refundCashPaymentV3","cashRefundPayload",s);let r="/api/v3/payment/cash/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundManualPaymentV3:async(s,e={})=>{c("refundManualPaymentV3","manualRefundPayload",s);let r="/api/v3/payment/manual/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundNetsTransactionV3:async(s,e={})=>{c("refundNetsTransactionV3","refundPayloadDtoV4",s);let r="/api/v3/payment/nets/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundSingleVivaTransaction:async(s,e={})=>{c("refundSingleVivaTransaction","createRefundDto",s);let r="/api/v4/payment/viva/refund/single",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundVivaTransactionV3:async(s,e={})=>{c("refundVivaTransactionV3","refundPayloadDto",s);let r="/api/v3/payment/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},refundVivaTransactionV4:async(s,e={})=>{c("refundVivaTransactionV4","refundPayloadDtoV4",s);let r="/api/v4/payment/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},q=function(a){let s=Ut(a);return{async cancelNetsTerminalTransaction(e,r){let t=await s.cancelNetsTerminalTransaction(e,r);return h(t,P,p,a)},async cancelVivaTransactionV2(e,r){let t=await s.cancelVivaTransactionV2(e,r);return h(t,P,p,a)},async createNetsRefundTransaction(e,r){let t=await s.createNetsRefundTransaction(e,r);return h(t,P,p,a)},async getPaymentReference(e,r){let t=await s.getPaymentReference(e,r);return h(t,P,p,a)},async getPaymentStatus(e,r){let t=await s.getPaymentStatus(e,r);return h(t,P,p,a)},async initiateNetsTerminalTransaction(e,r){let t=await s.initiateNetsTerminalTransaction(e,r);return h(t,P,p,a)},async initiateTerminalTransaction(e,r){let t=await s.initiateTerminalTransaction(e,r);return h(t,P,p,a)},async processOnlineOrderRefund(e,r){let t=await s.processOnlineOrderRefund(e,r);return h(t,P,p,a)},async refundCashPaymentV3(e,r){let t=await s.refundCashPaymentV3(e,r);return h(t,P,p,a)},async refundManualPaymentV3(e,r){let t=await s.refundManualPaymentV3(e,r);return h(t,P,p,a)},async refundNetsTransactionV3(e,r){let t=await s.refundNetsTransactionV3(e,r);return h(t,P,p,a)},async refundSingleVivaTransaction(e,r){let t=await s.refundSingleVivaTransaction(e,r);return h(t,P,p,a)},async refundVivaTransactionV3(e,r){let t=await s.refundVivaTransactionV3(e,r);return h(t,P,p,a)},async refundVivaTransactionV4(e,r){let t=await s.refundVivaTransactionV4(e,r);return h(t,P,p,a)}}},Bn=function(a,s,e){let r=q(a);return{cancelNetsTerminalTransaction(t,n){return r.cancelNetsTerminalTransaction(t,n).then(o=>o(e,s))},cancelVivaTransactionV2(t,n){return r.cancelVivaTransactionV2(t,n).then(o=>o(e,s))},createNetsRefundTransaction(t,n){return r.createNetsRefundTransaction(t,n).then(o=>o(e,s))},getPaymentReference(t,n){return r.getPaymentReference(t,n).then(o=>o(e,s))},getPaymentStatus(t,n){return r.getPaymentStatus(t,n).then(o=>o(e,s))},initiateNetsTerminalTransaction(t,n){return r.initiateNetsTerminalTransaction(t,n).then(o=>o(e,s))},initiateTerminalTransaction(t,n){return r.initiateTerminalTransaction(t,n).then(o=>o(e,s))},processOnlineOrderRefund(t,n){return r.processOnlineOrderRefund(t,n).then(o=>o(e,s))},refundCashPaymentV3(t,n){return r.refundCashPaymentV3(t,n).then(o=>o(e,s))},refundManualPaymentV3(t,n){return r.refundManualPaymentV3(t,n).then(o=>o(e,s))},refundNetsTransactionV3(t,n){return r.refundNetsTransactionV3(t,n).then(o=>o(e,s))},refundSingleVivaTransaction(t,n){return r.refundSingleVivaTransaction(t,n).then(o=>o(e,s))},refundVivaTransactionV3(t,n){return r.refundVivaTransactionV3(t,n).then(o=>o(e,s))},refundVivaTransactionV4(t,n){return r.refundVivaTransactionV4(t,n).then(o=>o(e,s))}}},we=class extends I{cancelNetsTerminalTransaction(s,e){return q(this.configuration).cancelNetsTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}cancelVivaTransactionV2(s,e){return q(this.configuration).cancelVivaTransactionV2(s,e).then(r=>r(this.axios,this.basePath))}createNetsRefundTransaction(s,e){return q(this.configuration).createNetsRefundTransaction(s,e).then(r=>r(this.axios,this.basePath))}getPaymentReference(s,e){return q(this.configuration).getPaymentReference(s,e).then(r=>r(this.axios,this.basePath))}getPaymentStatus(s,e){return q(this.configuration).getPaymentStatus(s,e).then(r=>r(this.axios,this.basePath))}initiateNetsTerminalTransaction(s,e){return q(this.configuration).initiateNetsTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}initiateTerminalTransaction(s,e){return q(this.configuration).initiateTerminalTransaction(s,e).then(r=>r(this.axios,this.basePath))}processOnlineOrderRefund(s,e){return q(this.configuration).processOnlineOrderRefund(s,e).then(r=>r(this.axios,this.basePath))}refundCashPaymentV3(s,e){return q(this.configuration).refundCashPaymentV3(s,e).then(r=>r(this.axios,this.basePath))}refundManualPaymentV3(s,e){return q(this.configuration).refundManualPaymentV3(s,e).then(r=>r(this.axios,this.basePath))}refundNetsTransactionV3(s,e){return q(this.configuration).refundNetsTransactionV3(s,e).then(r=>r(this.axios,this.basePath))}refundSingleVivaTransaction(s,e){return q(this.configuration).refundSingleVivaTransaction(s,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV3(s,e){return q(this.configuration).refundVivaTransactionV3(s,e).then(r=>r(this.axios,this.basePath))}refundVivaTransactionV4(s,e){return q(this.configuration).refundVivaTransactionV4(s,e).then(r=>r(this.axios,this.basePath))}},qt=function(a){return{loadConfigFile:async(s={})=>{let e="/api/plugin/config.json",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},upsertBusiness:async(s={})=>{let e="/api/plugin/business/upsert",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},me=function(a){let s=qt(a);return{async loadConfigFile(e){let r=await s.loadConfigFile(e);return h(r,P,p,a)},async upsertBusiness(e){let r=await s.upsertBusiness(e);return h(r,P,p,a)}}},Mn=function(a,s,e){let r=me(a);return{loadConfigFile(t){return r.loadConfigFile(t).then(n=>n(e,s))},upsertBusiness(t){return r.upsertBusiness(t).then(n=>n(e,s))}}},Ne=class extends I{loadConfigFile(s){return me(this.configuration).loadConfigFile(s).then(e=>e(this.axios,this.basePath))}upsertBusiness(s){return me(this.configuration).upsertBusiness(s).then(e=>e(this.axios,this.basePath))}},Bt=function(a){return{generateProductSkuV2:async(s,e,r,t={})=>{c("generateProductSkuV2","businessId",s),c("generateProductSkuV2","categoryId",e),c("generateProductSkuV2","productId",r);let n="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},updateChannelInventoryV2:async(s,e,r,t,n={})=>{c("updateChannelInventoryV2","businessId",s),c("updateChannelInventoryV2","categoryId",e),c("updateChannelInventoryV2","productId",r),c("updateChannelInventoryV2","updateChannelInventoryDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(t,u,a),{url:y(i),options:u}},updateProductSkuV2:async(s,e,r,t,n={})=>{c("updateProductSkuV2","businessId",s),c("updateProductSkuV2","categoryId",e),c("updateProductSkuV2","productId",r),c("updateProductSkuV2","updateProductSkuDto",t);let o="/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku".replace("{businessId}",encodeURIComponent(String(s))).replace("{categoryId}",encodeURIComponent(String(e))).replace("{productId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"PUT",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(t,u,a),{url:y(i),options:u}}}},re=function(a){let s=Bt(a);return{async generateProductSkuV2(e,r,t,n){let o=await s.generateProductSkuV2(e,r,t,n);return h(o,P,p,a)},async updateChannelInventoryV2(e,r,t,n,o){let i=await s.updateChannelInventoryV2(e,r,t,n,o);return h(i,P,p,a)},async updateProductSkuV2(e,r,t,n,o){let i=await s.updateProductSkuV2(e,r,t,n,o);return h(i,P,p,a)}}},kn=function(a,s,e){let r=re(a);return{generateProductSkuV2(t,n,o,i){return r.generateProductSkuV2(t,n,o,i).then(l=>l(e,s))},updateChannelInventoryV2(t,n,o,i,l){return r.updateChannelInventoryV2(t,n,o,i,l).then(u=>u(e,s))},updateProductSkuV2(t,n,o,i,l){return r.updateProductSkuV2(t,n,o,i,l).then(u=>u(e,s))}}},Le=class extends I{generateProductSkuV2(s,e,r,t){return re(this.configuration).generateProductSkuV2(s,e,r,t).then(n=>n(this.axios,this.basePath))}updateChannelInventoryV2(s,e,r,t,n){return re(this.configuration).updateChannelInventoryV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}updateProductSkuV2(s,e,r,t,n){return re(this.configuration).updateProductSkuV2(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}},Mt=function(a){return{getSupportedChannels:async(s,e={})=>{c("getSupportedChannels","businessId",s);let r="/api/v1/provider/supported-channels/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},registerCredential:async(s,e={})=>{c("registerCredential","body",s);let r="/api/v1/provider/credentials",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},registerProvider:async(s,e={})=>{c("registerProvider","body",s);let r="/api/v1/provider",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},ne=function(a){let s=Mt(a);return{async getSupportedChannels(e,r){let t=await s.getSupportedChannels(e,r);return h(t,P,p,a)},async registerCredential(e,r){let t=await s.registerCredential(e,r);return h(t,P,p,a)},async registerProvider(e,r){let t=await s.registerProvider(e,r);return h(t,P,p,a)}}},_n=function(a,s,e){let r=ne(a);return{getSupportedChannels(t,n){return r.getSupportedChannels(t,n).then(o=>o(e,s))},registerCredential(t,n){return r.registerCredential(t,n).then(o=>o(e,s))},registerProvider(t,n){return r.registerProvider(t,n).then(o=>o(e,s))}}},Fe=class extends I{getSupportedChannels(s,e){return ne(this.configuration).getSupportedChannels(s,e).then(r=>r(this.axios,this.basePath))}registerCredential(s,e){return ne(this.configuration).registerCredential(s,e).then(r=>r(this.axios,this.basePath))}registerProvider(s,e){return ne(this.configuration).registerProvider(s,e).then(r=>r(this.axios,this.basePath))}},kt=function(a){return{cancelPlan:async(s,e,r,t={})=>{c("cancelPlan","businessId",s),c("cancelPlan","orderId",e),c("cancelPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"DELETE",...i,...t},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},createRefundPlan:async(s,e,r,t={})=>{c("createRefundPlan","businessId",s),c("createRefundPlan","orderId",e),c("createRefundPlan","createRefundPlanDto",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}},getRefundPlan:async(s,e,r,t={})=>{c("getRefundPlan","businessId",s),c("getRefundPlan","orderId",e),c("getRefundPlan","status",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};r!==void 0&&(d.status=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},recordRefundPlan:async(s,e,r,t,n={})=>{c("recordRefundPlan","businessId",s),c("recordRefundPlan","orderId",e),c("recordRefundPlan","refundId",r),c("recordRefundPlan","completedStepDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(t,u,a),{url:y(i),options:u}},refundOnlineOrder:async(s,e,r,t={})=>{c("refundOnlineOrder","businessId",s),c("refundOnlineOrder","orderId",e),c("refundOnlineOrder","provider",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refund-online".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};r!==void 0&&(d.provider=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}},resolveRefundChoice:async(s,e,r,t,n={})=>{c("resolveRefundChoice","businessId",s),c("resolveRefundChoice","orderId",e),c("resolveRefundChoice","refundId",r),c("resolveRefundChoice","resolveChoiceDto",t);let o="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"POST",...l,...n},d={},f={};d["Content-Type"]="application/json",g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},u.data=A(t,u,a),{url:y(i),options:u}},startProcessPlan:async(s,e,r,t={})=>{c("startProcessPlan","businessId",s),c("startProcessPlan","orderId",e),c("startProcessPlan","refundId",r);let n="/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start".replace("{businessId}",encodeURIComponent(String(s))).replace("{orderId}",encodeURIComponent(String(e))).replace("{refundId}",encodeURIComponent(String(r))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={};g(o,{});let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}}}},w=function(a){let s=kt(a);return{async cancelPlan(e,r,t,n){let o=await s.cancelPlan(e,r,t,n);return h(o,P,p,a)},async createRefundPlan(e,r,t,n){let o=await s.createRefundPlan(e,r,t,n);return h(o,P,p,a)},async getRefundPlan(e,r,t,n){let o=await s.getRefundPlan(e,r,t,n);return h(o,P,p,a)},async recordRefundPlan(e,r,t,n,o){let i=await s.recordRefundPlan(e,r,t,n,o);return h(i,P,p,a)},async refundOnlineOrder(e,r,t,n){let o=await s.refundOnlineOrder(e,r,t,n);return h(o,P,p,a)},async resolveRefundChoice(e,r,t,n,o){let i=await s.resolveRefundChoice(e,r,t,n,o);return h(i,P,p,a)},async startProcessPlan(e,r,t,n){let o=await s.startProcessPlan(e,r,t,n);return h(o,P,p,a)}}},wn=function(a,s,e){let r=w(a);return{cancelPlan(t,n,o,i){return r.cancelPlan(t,n,o,i).then(l=>l(e,s))},createRefundPlan(t,n,o,i){return r.createRefundPlan(t,n,o,i).then(l=>l(e,s))},getRefundPlan(t,n,o,i){return r.getRefundPlan(t,n,o,i).then(l=>l(e,s))},recordRefundPlan(t,n,o,i,l){return r.recordRefundPlan(t,n,o,i,l).then(u=>u(e,s))},refundOnlineOrder(t,n,o,i){return r.refundOnlineOrder(t,n,o,i).then(l=>l(e,s))},resolveRefundChoice(t,n,o,i,l){return r.resolveRefundChoice(t,n,o,i,l).then(u=>u(e,s))},startProcessPlan(t,n,o,i){return r.startProcessPlan(t,n,o,i).then(l=>l(e,s))}}},je=class extends I{cancelPlan(s,e,r,t){return w(this.configuration).cancelPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}createRefundPlan(s,e,r,t){return w(this.configuration).createRefundPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}getRefundPlan(s,e,r,t){return w(this.configuration).getRefundPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}recordRefundPlan(s,e,r,t,n){return w(this.configuration).recordRefundPlan(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}refundOnlineOrder(s,e,r,t){return w(this.configuration).refundOnlineOrder(s,e,r,t).then(n=>n(this.axios,this.basePath))}resolveRefundChoice(s,e,r,t,n){return w(this.configuration).resolveRefundChoice(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}startProcessPlan(s,e,r,t){return w(this.configuration).startProcessPlan(s,e,r,t).then(n=>n(this.axios,this.basePath))}},_t=function(a){return{getEndOfDayReportV5:async(s,e,r,t,n,o,i={})=>{c("getEndOfDayReportV5","businessIds",s);let l="/api/v5/report/end-of-day",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"GET",...d,...i},x={},R={};e!==void 0&&(R.timeSpan=e),r!==void 0&&(R.start=r),t!==void 0&&(R.end=t),s&&(R.businessIds=s),n!==void 0&&(R.timezone=n),o!==void 0&&(R.provider=o),g(u,R);let C=d&&d.headers?d.headers:{};return f.headers={...x,...C,...i.headers},{url:y(u),options:f}},getPOSEndOfDayReportV4:async(s,e,r,t,n,o={})=>{c("getPOSEndOfDayReportV4","businessIds",s);let i="/api/v4/report/pos/end-of-day",l=new URL(i,m),u;a&&(u=a.baseOptions);let d={method:"GET",...u,...o},f={},x={};e!==void 0&&(x.timeSpan=e),r!==void 0&&(x.start=r),t!==void 0&&(x.end=t),s&&(x.businessIds=s),n!==void 0&&(x.timezone=n),g(l,x);let R=u&&u.headers?u.headers:{};return d.headers={...f,...R,...o.headers},{url:y(l),options:d}},sendReportEmailV4:async(s,e,r,t,n,o,i={})=>{c("sendReportEmailV4","businessIds",s),c("sendReportEmailV4","timezone",e),c("sendReportEmailV4","sendReportEmailDto",r);let l="/api/v4/report/email",u=new URL(l,m),d;a&&(d=a.baseOptions);let f={method:"POST",...d,...i},x={},R={};t!==void 0&&(R.timeSpan=t),n!==void 0&&(R.start=n),o!==void 0&&(R.end=o),s&&(R.businessIds=s),e!==void 0&&(R.timezone=e),x["Content-Type"]="application/json",g(u,R);let C=d&&d.headers?d.headers:{};return f.headers={...x,...C,...i.headers},f.data=A(r,f,a),{url:y(u),options:f}},sendReportEmailV5:async(s,e,r,t,n,o,i,l={})=>{c("sendReportEmailV5","businessIds",s),c("sendReportEmailV5","timezone",e),c("sendReportEmailV5","sendReportEmailDto",r);let u="/api/v5/report/email",d=new URL(u,m),f;a&&(f=a.baseOptions);let x={method:"POST",...f,...l},R={},C={};t!==void 0&&(C.timeSpan=t),n!==void 0&&(C.start=n),o!==void 0&&(C.end=o),s&&(C.businessIds=s),e!==void 0&&(C.timezone=e),i!==void 0&&(C.provider=i),R["Content-Type"]="application/json",g(d,C);let O=f&&f.headers?f.headers:{};return x.headers={...R,...O,...l.headers},x.data=A(r,x,a),{url:y(d),options:x}}}},z=function(a){let s=_t(a);return{async getEndOfDayReportV5(e,r,t,n,o,i,l){let u=await s.getEndOfDayReportV5(e,r,t,n,o,i,l);return h(u,P,p,a)},async getPOSEndOfDayReportV4(e,r,t,n,o,i){let l=await s.getPOSEndOfDayReportV4(e,r,t,n,o,i);return h(l,P,p,a)},async sendReportEmailV4(e,r,t,n,o,i,l){let u=await s.sendReportEmailV4(e,r,t,n,o,i,l);return h(u,P,p,a)},async sendReportEmailV5(e,r,t,n,o,i,l,u){let d=await s.sendReportEmailV5(e,r,t,n,o,i,l,u);return h(d,P,p,a)}}},Nn=function(a,s,e){let r=z(a);return{getEndOfDayReportV5(t,n,o,i,l,u,d){return r.getEndOfDayReportV5(t,n,o,i,l,u,d).then(f=>f(e,s))},getPOSEndOfDayReportV4(t,n,o,i,l,u){return r.getPOSEndOfDayReportV4(t,n,o,i,l,u).then(d=>d(e,s))},sendReportEmailV4(t,n,o,i,l,u,d){return r.sendReportEmailV4(t,n,o,i,l,u,d).then(f=>f(e,s))},sendReportEmailV5(t,n,o,i,l,u,d,f){return r.sendReportEmailV5(t,n,o,i,l,u,d,f).then(x=>x(e,s))}}},We=class extends I{getEndOfDayReportV5(s,e,r,t,n,o,i){return z(this.configuration).getEndOfDayReportV5(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}getPOSEndOfDayReportV4(s,e,r,t,n,o){return z(this.configuration).getPOSEndOfDayReportV4(s,e,r,t,n,o).then(i=>i(this.axios,this.basePath))}sendReportEmailV4(s,e,r,t,n,o,i){return z(this.configuration).sendReportEmailV4(s,e,r,t,n,o,i).then(l=>l(this.axios,this.basePath))}sendReportEmailV5(s,e,r,t,n,o,i,l){return z(this.configuration).sendReportEmailV5(s,e,r,t,n,o,i,l).then(u=>u(this.axios,this.basePath))}},wt=function(a){return{clockIn:async(s,e,r={})=>{c("clockIn","businessId",s),c("clockIn","clockInRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-in".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},clockOut:async(s,e,r={})=>{c("clockOut","businessId",s),c("clockOut","clockOutRequestDto",e);let t="/api/v1/businesses/{businessId}/shifts/clock-out".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"PUT",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getTodayShift:async(s,e,r={})=>{c("getTodayShift","businessId",s),c("getTodayShift","employeeId",e);let t="/api/v1/businesses/{businessId}/shifts/today".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.employeeId=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},unlock:async(s,e,r={})=>{c("unlock","businessId",s),c("unlock","unlockTerminalDto",e);let t="/api/v1/businesses/{businessId}/shifts/unlock".replace("{businessId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},Y=function(a){let s=wt(a);return{async clockIn(e,r,t){let n=await s.clockIn(e,r,t);return h(n,P,p,a)},async clockOut(e,r,t){let n=await s.clockOut(e,r,t);return h(n,P,p,a)},async getTodayShift(e,r,t){let n=await s.getTodayShift(e,r,t);return h(n,P,p,a)},async unlock(e,r,t){let n=await s.unlock(e,r,t);return h(n,P,p,a)}}},Ln=function(a,s,e){let r=Y(a);return{clockIn(t,n,o){return r.clockIn(t,n,o).then(i=>i(e,s))},clockOut(t,n,o){return r.clockOut(t,n,o).then(i=>i(e,s))},getTodayShift(t,n,o){return r.getTodayShift(t,n,o).then(i=>i(e,s))},unlock(t,n,o){return r.unlock(t,n,o).then(i=>i(e,s))}}},Ke=class extends I{clockIn(s,e,r){return Y(this.configuration).clockIn(s,e,r).then(t=>t(this.axios,this.basePath))}clockOut(s,e,r){return Y(this.configuration).clockOut(s,e,r).then(t=>t(this.axios,this.basePath))}getTodayShift(s,e,r){return Y(this.configuration).getTodayShift(s,e,r).then(t=>t(this.axios,this.basePath))}unlock(s,e,r){return Y(this.configuration).unlock(s,e,r).then(t=>t(this.axios,this.basePath))}},Nt=function(a){return{deactivateStation:async(s={})=>{let e="/api/v1/station/deactivate",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getStation:async(s={})=>{let e="/api/v1/station",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},syncStation:async(s,e={})=>{c("syncStation","syncStationDto",s);let r="/api/v1/station/sync",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},oe=function(a){let s=Nt(a);return{async deactivateStation(e){let r=await s.deactivateStation(e);return h(r,P,p,a)},async getStation(e){let r=await s.getStation(e);return h(r,P,p,a)},async syncStation(e,r){let t=await s.syncStation(e,r);return h(t,P,p,a)}}},Fn=function(a,s,e){let r=oe(a);return{deactivateStation(t){return r.deactivateStation(t).then(n=>n(e,s))},getStation(t){return r.getStation(t).then(n=>n(e,s))},syncStation(t,n){return r.syncStation(t,n).then(o=>o(e,s))}}},Ge=class extends I{deactivateStation(s){return oe(this.configuration).deactivateStation(s).then(e=>e(this.axios,this.basePath))}getStation(s){return oe(this.configuration).getStation(s).then(e=>e(this.axios,this.basePath))}syncStation(s,e){return oe(this.configuration).syncStation(s,e).then(r=>r(this.axios,this.basePath))}},Lt=function(a){return{connectTerminal:async(s,e={})=>{c("connectTerminal","connectTerminalDto",s);let r="/api/v1/terminal/connect",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},disconnectTerminal:async(s={})=>{let e="/api/v1/terminal/disconnect",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},discoverTerminal:async(s,e={})=>{c("discoverTerminal","discoverTerminalDto",s);let r="/api/v1/terminal/discover",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getTerminalStatus:async(s,e,r,t={})=>{c("getTerminalStatus","businessId",s),c("getTerminalStatus","provider",e),c("getTerminalStatus","terminalId",r);let n="/api/v1/terminal/status/{businessId}".replace("{businessId}",encodeURIComponent(String(s))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"GET",...i,...t},u={},d={};e!==void 0&&(d.provider=e),r!==void 0&&(d.terminalId=r),g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},{url:y(o),options:l}}}},J=function(a){let s=Lt(a);return{async connectTerminal(e,r){let t=await s.connectTerminal(e,r);return h(t,P,p,a)},async disconnectTerminal(e){let r=await s.disconnectTerminal(e);return h(r,P,p,a)},async discoverTerminal(e,r){let t=await s.discoverTerminal(e,r);return h(t,P,p,a)},async getTerminalStatus(e,r,t,n){let o=await s.getTerminalStatus(e,r,t,n);return h(o,P,p,a)}}},jn=function(a,s,e){let r=J(a);return{connectTerminal(t,n){return r.connectTerminal(t,n).then(o=>o(e,s))},disconnectTerminal(t){return r.disconnectTerminal(t).then(n=>n(e,s))},discoverTerminal(t,n){return r.discoverTerminal(t,n).then(o=>o(e,s))},getTerminalStatus(t,n,o,i){return r.getTerminalStatus(t,n,o,i).then(l=>l(e,s))}}},He=class extends I{connectTerminal(s,e){return J(this.configuration).connectTerminal(s,e).then(r=>r(this.axios,this.basePath))}disconnectTerminal(s){return J(this.configuration).disconnectTerminal(s).then(e=>e(this.axios,this.basePath))}discoverTerminal(s,e){return J(this.configuration).discoverTerminal(s,e).then(r=>r(this.axios,this.basePath))}getTerminalStatus(s,e,r,t){return J(this.configuration).getTerminalStatus(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Ft=function(a){return{getUserBusinessV1:async(s={})=>{let e="/api/v1/user/business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await b(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getUserBusinessV2:async(s={})=>{let e="/api/v2/user/business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await b(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},getUserInfoV1:async(s={})=>{let e="/api/v1/user",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={},i={};await b(o,a),g(r,i);let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},ae=function(a){let s=Ft(a);return{async getUserBusinessV1(e){let r=await s.getUserBusinessV1(e);return h(r,P,p,a)},async getUserBusinessV2(e){let r=await s.getUserBusinessV2(e);return h(r,P,p,a)},async getUserInfoV1(e){let r=await s.getUserInfoV1(e);return h(r,P,p,a)}}},Wn=function(a,s,e){let r=ae(a);return{getUserBusinessV1(t){return r.getUserBusinessV1(t).then(n=>n(e,s))},getUserBusinessV2(t){return r.getUserBusinessV2(t).then(n=>n(e,s))},getUserInfoV1(t){return r.getUserInfoV1(t).then(n=>n(e,s))}}},Qe=class extends I{getUserBusinessV1(s){return ae(this.configuration).getUserBusinessV1(s).then(e=>e(this.axios,this.basePath))}getUserBusinessV2(s){return ae(this.configuration).getUserBusinessV2(s).then(e=>e(this.axios,this.basePath))}getUserInfoV1(s){return ae(this.configuration).getUserInfoV1(s).then(e=>e(this.axios,this.basePath))}},jt=function(a){return{getUser:async(s,e={})=>{c("getUser","userValidation",s);let r="/api/v1/users",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};await b(i,a),i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},updateUserRewardPoints:async(s,e,r,t={})=>{c("updateUserRewardPoints","userId",s),c("updateUserRewardPoints","walletId",e),c("updateUserRewardPoints","rewardPointPayload",r);let n="/api/v1/users/{userId}/wallets/{walletId}/events".replace("{userId}",encodeURIComponent(String(s))).replace("{walletId}",encodeURIComponent(String(e))),o=new URL(n,m),i;a&&(i=a.baseOptions);let l={method:"POST",...i,...t},u={},d={};await b(u,a),u["Content-Type"]="application/json",g(o,d);let f=i&&i.headers?i.headers:{};return l.headers={...u,...f,...t.headers},l.data=A(r,l,a),{url:y(o),options:l}}}},ge=function(a){let s=jt(a);return{async getUser(e,r){let t=await s.getUser(e,r);return h(t,P,p,a)},async updateUserRewardPoints(e,r,t,n){let o=await s.updateUserRewardPoints(e,r,t,n);return h(o,P,p,a)}}},Kn=function(a,s,e){let r=ge(a);return{getUser(t,n){return r.getUser(t,n).then(o=>o(e,s))},updateUserRewardPoints(t,n,o,i){return r.updateUserRewardPoints(t,n,o,i).then(l=>l(e,s))}}},$e=class extends I{getUser(s,e){return ge(this.configuration).getUser(s,e).then(r=>r(this.axios,this.basePath))}updateUserRewardPoints(s,e,r,t){return ge(this.configuration).updateUserRewardPoints(s,e,r,t).then(n=>n(this.axios,this.basePath))}},Wt=function(a){return{upsert:async(s,e={})=>{c("upsert","body",s);let r="/api/v1/vendure/seller/upsert",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},nt=function(a){let s=Wt(a);return{async upsert(e,r){let t=await s.upsert(e,r);return h(t,P,p,a)}}},Gn=function(a,s,e){let r=nt(a);return{upsert(t,n){return r.upsert(t,n).then(o=>o(e,s))}}},ze=class extends I{upsert(s,e){return nt(this.configuration).upsert(s,e).then(r=>r(this.axios,this.basePath))}},Kt=function(a){return{createVivaAppToAppPayment:async(s,e={})=>{c("createVivaAppToAppPayment","createTerminalPaymentDto",s);let r="/api/v1/viva/a2a/create-payment",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}}}},ot=function(a){let s=Kt(a);return{async createVivaAppToAppPayment(e,r){let t=await s.createVivaAppToAppPayment(e,r);return h(t,P,p,a)}}},Hn=function(a,s,e){let r=ot(a);return{createVivaAppToAppPayment(t,n){return r.createVivaAppToAppPayment(t,n).then(o=>o(e,s))}}},Ye=class extends I{createVivaAppToAppPayment(s,e){return ot(this.configuration).createVivaAppToAppPayment(s,e).then(r=>r(this.axios,this.basePath))}},Gt=function(a){return{handleAssignmentWebhook:async(s={})=>{let e="/api/webhook/add-employee-assignments",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleBusinessWebhook:async(s={})=>{let e="/api/webhook/add-business",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleFoodoraEvent:async(s,e={})=>{c("handleFoodoraEvent","orderUpdateDto",s);let r="/api/webhook/order/event",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},handleLoadEmployee:async(s={})=>{let e="/api/webhook/load-employee",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleNetsEvents:async(s={})=>{let e="/api/webhook/nets",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleNetsEventsV2:async(s={})=>{let e="/api/webhook/v2/nets",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleNetsRefundEvents:async(s={})=>{let e="/api/webhook/nets/refund",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handlePreorderReminder:async(s,e={})=>{c("handlePreorderReminder","preOrderReminderDto",s);let r="/api/webhook/preorder-reminder",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},handleRoleWebhook:async(s={})=>{let e="/api/webhook/add-roles",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleShiftWebhook:async(s={})=>{let e="/api/webhook/add-employee-shifts",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleVivaEvents:async(s,e={})=>{c("handleVivaEvents","vivaWebhookPayloadDto",s);let r="/api/webhook/viva/verification",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},handleWebhook:async(s={})=>{let e="/api/webhook/ship-day",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleWoltDriveEvent:async(s={})=>{let e="/api/webhook/wolt-drive/event",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},handleWoltDriveEventByCountry:async(s,e={})=>{c("handleWoltDriveEventByCountry","country",s);let r="/api/webhook/wolt-drive/{country}/event".replace("{country}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleWorldlineEvents:async(s={})=>{let e="/api/webhook/worldline/events",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},processKioskRecoveryQueue:async(s,e={})=>{c("processKioskRecoveryQueue","processKioskRecoveryQueueDto",s);let r="/api/webhook/kiosk/recovery/process",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},updateWoltProduct:async(s={})=>{let e="/api/webhook/wolt/product/edit",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}},verifyVivaWebhook:async(s={})=>{let e="/api/webhook/viva/verification",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"GET",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},U=function(a){let s=Gt(a);return{async handleAssignmentWebhook(e){let r=await s.handleAssignmentWebhook(e);return h(r,P,p,a)},async handleBusinessWebhook(e){let r=await s.handleBusinessWebhook(e);return h(r,P,p,a)},async handleFoodoraEvent(e,r){let t=await s.handleFoodoraEvent(e,r);return h(t,P,p,a)},async handleLoadEmployee(e){let r=await s.handleLoadEmployee(e);return h(r,P,p,a)},async handleNetsEvents(e){let r=await s.handleNetsEvents(e);return h(r,P,p,a)},async handleNetsEventsV2(e){let r=await s.handleNetsEventsV2(e);return h(r,P,p,a)},async handleNetsRefundEvents(e){let r=await s.handleNetsRefundEvents(e);return h(r,P,p,a)},async handlePreorderReminder(e,r){let t=await s.handlePreorderReminder(e,r);return h(t,P,p,a)},async handleRoleWebhook(e){let r=await s.handleRoleWebhook(e);return h(r,P,p,a)},async handleShiftWebhook(e){let r=await s.handleShiftWebhook(e);return h(r,P,p,a)},async handleVivaEvents(e,r){let t=await s.handleVivaEvents(e,r);return h(t,P,p,a)},async handleWebhook(e){let r=await s.handleWebhook(e);return h(r,P,p,a)},async handleWoltDriveEvent(e){let r=await s.handleWoltDriveEvent(e);return h(r,P,p,a)},async handleWoltDriveEventByCountry(e,r){let t=await s.handleWoltDriveEventByCountry(e,r);return h(t,P,p,a)},async handleWorldlineEvents(e){let r=await s.handleWorldlineEvents(e);return h(r,P,p,a)},async processKioskRecoveryQueue(e,r){let t=await s.processKioskRecoveryQueue(e,r);return h(t,P,p,a)},async updateWoltProduct(e){let r=await s.updateWoltProduct(e);return h(r,P,p,a)},async verifyVivaWebhook(e){let r=await s.verifyVivaWebhook(e);return h(r,P,p,a)}}},Qn=function(a,s,e){let r=U(a);return{handleAssignmentWebhook(t){return r.handleAssignmentWebhook(t).then(n=>n(e,s))},handleBusinessWebhook(t){return r.handleBusinessWebhook(t).then(n=>n(e,s))},handleFoodoraEvent(t,n){return r.handleFoodoraEvent(t,n).then(o=>o(e,s))},handleLoadEmployee(t){return r.handleLoadEmployee(t).then(n=>n(e,s))},handleNetsEvents(t){return r.handleNetsEvents(t).then(n=>n(e,s))},handleNetsEventsV2(t){return r.handleNetsEventsV2(t).then(n=>n(e,s))},handleNetsRefundEvents(t){return r.handleNetsRefundEvents(t).then(n=>n(e,s))},handlePreorderReminder(t,n){return r.handlePreorderReminder(t,n).then(o=>o(e,s))},handleRoleWebhook(t){return r.handleRoleWebhook(t).then(n=>n(e,s))},handleShiftWebhook(t){return r.handleShiftWebhook(t).then(n=>n(e,s))},handleVivaEvents(t,n){return r.handleVivaEvents(t,n).then(o=>o(e,s))},handleWebhook(t){return r.handleWebhook(t).then(n=>n(e,s))},handleWoltDriveEvent(t){return r.handleWoltDriveEvent(t).then(n=>n(e,s))},handleWoltDriveEventByCountry(t,n){return r.handleWoltDriveEventByCountry(t,n).then(o=>o(e,s))},handleWorldlineEvents(t){return r.handleWorldlineEvents(t).then(n=>n(e,s))},processKioskRecoveryQueue(t,n){return r.processKioskRecoveryQueue(t,n).then(o=>o(e,s))},updateWoltProduct(t){return r.updateWoltProduct(t).then(n=>n(e,s))},verifyVivaWebhook(t){return r.verifyVivaWebhook(t).then(n=>n(e,s))}}},Je=class extends I{handleAssignmentWebhook(s){return U(this.configuration).handleAssignmentWebhook(s).then(e=>e(this.axios,this.basePath))}handleBusinessWebhook(s){return U(this.configuration).handleBusinessWebhook(s).then(e=>e(this.axios,this.basePath))}handleFoodoraEvent(s,e){return U(this.configuration).handleFoodoraEvent(s,e).then(r=>r(this.axios,this.basePath))}handleLoadEmployee(s){return U(this.configuration).handleLoadEmployee(s).then(e=>e(this.axios,this.basePath))}handleNetsEvents(s){return U(this.configuration).handleNetsEvents(s).then(e=>e(this.axios,this.basePath))}handleNetsEventsV2(s){return U(this.configuration).handleNetsEventsV2(s).then(e=>e(this.axios,this.basePath))}handleNetsRefundEvents(s){return U(this.configuration).handleNetsRefundEvents(s).then(e=>e(this.axios,this.basePath))}handlePreorderReminder(s,e){return U(this.configuration).handlePreorderReminder(s,e).then(r=>r(this.axios,this.basePath))}handleRoleWebhook(s){return U(this.configuration).handleRoleWebhook(s).then(e=>e(this.axios,this.basePath))}handleShiftWebhook(s){return U(this.configuration).handleShiftWebhook(s).then(e=>e(this.axios,this.basePath))}handleVivaEvents(s,e){return U(this.configuration).handleVivaEvents(s,e).then(r=>r(this.axios,this.basePath))}handleWebhook(s){return U(this.configuration).handleWebhook(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEvent(s){return U(this.configuration).handleWoltDriveEvent(s).then(e=>e(this.axios,this.basePath))}handleWoltDriveEventByCountry(s,e){return U(this.configuration).handleWoltDriveEventByCountry(s,e).then(r=>r(this.axios,this.basePath))}handleWorldlineEvents(s){return U(this.configuration).handleWorldlineEvents(s).then(e=>e(this.axios,this.basePath))}processKioskRecoveryQueue(s,e){return U(this.configuration).processKioskRecoveryQueue(s,e).then(r=>r(this.axios,this.basePath))}updateWoltProduct(s){return U(this.configuration).updateWoltProduct(s).then(e=>e(this.axios,this.basePath))}verifyVivaWebhook(s){return U(this.configuration).verifyVivaWebhook(s).then(e=>e(this.axios,this.basePath))}},Ht=function(a){return{cancelPayment:async(s,e={})=>{c("cancelPayment","cancelWorldlinePaymentDto",s);let r="/api/v1/worldline/payment/cancel",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createPayment:async(s,e={})=>{c("createPayment","createWorldlineTerminalPaymentDto",s);let r="/api/v1/worldline/payment",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},createRefund:async(s,e={})=>{c("createRefund","createWorldlineRefundDto",s);let r="/api/v1/worldline/refund",t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"POST",...n,...e},i={},l={};i["Content-Type"]="application/json",g(t,l);let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},o.data=A(s,o,a),{url:y(t),options:o}},getNextRequest:async(s,e,r,t,n={})=>{c("getNextRequest","terminalId",s),c("getNextRequest","authorization",e),c("getNextRequest","sessionID",r),c("getNextRequest","protocolVersion",t);let o="/api/v2/terminals/{terminalId}/requests".replace("{terminalId}",encodeURIComponent(String(s))),i=new URL(o,m),l;a&&(l=a.baseOptions);let u={method:"GET",...l,...n},d={},f={};e!=null&&(d.Authorization=String(e)),r!=null&&(d["Session-ID"]=String(r)),t!=null&&(d["Protocol-Version"]=String(t)),g(i,f);let x=l&&l.headers?l.headers:{};return u.headers={...d,...x,...n.headers},{url:y(i),options:u}},submitEvent:async(s,e,r={})=>{c("submitEvent","terminalId",s),c("submitEvent","worldlineEventEnvelopeDto",e);let t="/api/v2/terminals/{terminalId}/events".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},submitResponse:async(s,e,r={})=>{c("submitResponse","terminalId",s),c("submitResponse","worldlineResponseEnvelopeDto",e);let t="/api/v2/terminals/{terminalId}/responses".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}}}},W=function(a){let s=Ht(a);return{async cancelPayment(e,r){let t=await s.cancelPayment(e,r);return h(t,P,p,a)},async createPayment(e,r){let t=await s.createPayment(e,r);return h(t,P,p,a)},async createRefund(e,r){let t=await s.createRefund(e,r);return h(t,P,p,a)},async getNextRequest(e,r,t,n,o){let i=await s.getNextRequest(e,r,t,n,o);return h(i,P,p,a)},async submitEvent(e,r,t){let n=await s.submitEvent(e,r,t);return h(n,P,p,a)},async submitResponse(e,r,t){let n=await s.submitResponse(e,r,t);return h(n,P,p,a)}}},$n=function(a,s,e){let r=W(a);return{cancelPayment(t,n){return r.cancelPayment(t,n).then(o=>o(e,s))},createPayment(t,n){return r.createPayment(t,n).then(o=>o(e,s))},createRefund(t,n){return r.createRefund(t,n).then(o=>o(e,s))},getNextRequest(t,n,o,i,l){return r.getNextRequest(t,n,o,i,l).then(u=>u(e,s))},submitEvent(t,n,o){return r.submitEvent(t,n,o).then(i=>i(e,s))},submitResponse(t,n,o){return r.submitResponse(t,n,o).then(i=>i(e,s))}}},Ze=class extends I{cancelPayment(s,e){return W(this.configuration).cancelPayment(s,e).then(r=>r(this.axios,this.basePath))}createPayment(s,e){return W(this.configuration).createPayment(s,e).then(r=>r(this.axios,this.basePath))}createRefund(s,e){return W(this.configuration).createRefund(s,e).then(r=>r(this.axios,this.basePath))}getNextRequest(s,e,r,t,n){return W(this.configuration).getNextRequest(s,e,r,t,n).then(o=>o(this.axios,this.basePath))}submitEvent(s,e,r){return W(this.configuration).submitEvent(s,e,r).then(t=>t(this.axios,this.basePath))}submitResponse(s,e,r){return W(this.configuration).submitResponse(s,e,r).then(t=>t(this.axios,this.basePath))}},Qt=function(a){return{createPaymentRequest:async(s,e,r={})=>{c("createPaymentRequest","terminalId",s),c("createPaymentRequest","worldlinePaymentRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/payment".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},createRefundRequest:async(s,e,r={})=>{c("createRefundRequest","terminalId",s),c("createRefundRequest","worldlineRefundRequestDataDto",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/requests/refund".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"POST",...o,...r},l={},u={};l["Content-Type"]="application/json",g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=A(e,i,a),{url:y(n),options:i}},getPaymentResult:async(s,e={})=>{c("getPaymentResult","operationId",s);let r="/api/v2/worldline/internal/operations/{operationId}/payment-result".replace("{operationId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},getTerminalAuthContext:async(s,e,r={})=>{c("getTerminalAuthContext","terminalId",s),c("getTerminalAuthContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/auth-context".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalContext:async(s,e,r={})=>{c("getTerminalContext","terminalId",s),c("getTerminalContext","channel",e);let t="/api/v2/worldline/internal/terminals/{terminalId}/context".replace("{terminalId}",encodeURIComponent(String(s))),n=new URL(t,m),o;a&&(o=a.baseOptions);let i={method:"GET",...o,...r},l={},u={};e!==void 0&&(u.channel=e),g(n,u);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:y(n),options:i}},getTerminalState:async(s,e={})=>{c("getTerminalState","terminalId",s);let r="/api/v2/worldline/internal/terminals/{terminalId}/state".replace("{terminalId}",encodeURIComponent(String(s))),t=new URL(r,m),n;a&&(n=a.baseOptions);let o={method:"GET",...n,...e},i={};g(t,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...e.headers},{url:y(t),options:o}},handleCallback:async(s={})=>{let e="/api/v2/worldline/internal/callback",r=new URL(e,m),t;a&&(t=a.baseOptions);let n={method:"POST",...t,...s},o={};g(r,{});let l=t&&t.headers?t.headers:{};return n.headers={...o,...l,...s.headers},{url:y(r),options:n}}}},N=function(a){let s=Qt(a);return{async createPaymentRequest(e,r,t){let n=await s.createPaymentRequest(e,r,t);return h(n,P,p,a)},async createRefundRequest(e,r,t){let n=await s.createRefundRequest(e,r,t);return h(n,P,p,a)},async getPaymentResult(e,r){let t=await s.getPaymentResult(e,r);return h(t,P,p,a)},async getTerminalAuthContext(e,r,t){let n=await s.getTerminalAuthContext(e,r,t);return h(n,P,p,a)},async getTerminalContext(e,r,t){let n=await s.getTerminalContext(e,r,t);return h(n,P,p,a)},async getTerminalState(e,r){let t=await s.getTerminalState(e,r);return h(t,P,p,a)},async handleCallback(e){let r=await s.handleCallback(e);return h(r,P,p,a)}}},zn=function(a,s,e){let r=N(a);return{createPaymentRequest(t,n,o){return r.createPaymentRequest(t,n,o).then(i=>i(e,s))},createRefundRequest(t,n,o){return r.createRefundRequest(t,n,o).then(i=>i(e,s))},getPaymentResult(t,n){return r.getPaymentResult(t,n).then(o=>o(e,s))},getTerminalAuthContext(t,n,o){return r.getTerminalAuthContext(t,n,o).then(i=>i(e,s))},getTerminalContext(t,n,o){return r.getTerminalContext(t,n,o).then(i=>i(e,s))},getTerminalState(t,n){return r.getTerminalState(t,n).then(o=>o(e,s))},handleCallback(t){return r.handleCallback(t).then(n=>n(e,s))}}},Xe=class extends I{createPaymentRequest(s,e,r){return N(this.configuration).createPaymentRequest(s,e,r).then(t=>t(this.axios,this.basePath))}createRefundRequest(s,e,r){return N(this.configuration).createRefundRequest(s,e,r).then(t=>t(this.axios,this.basePath))}getPaymentResult(s,e){return N(this.configuration).getPaymentResult(s,e).then(r=>r(this.axios,this.basePath))}getTerminalAuthContext(s,e,r){return N(this.configuration).getTerminalAuthContext(s,e,r).then(t=>t(this.axios,this.basePath))}getTerminalContext(s,e,r){return N(this.configuration).getTerminalContext(s,e,r).then(t=>t(this.axios,this.basePath))}getTerminalState(s,e){return N(this.configuration).getTerminalState(s,e).then(r=>r(this.axios,this.basePath))}handleCallback(s){return N(this.configuration).handleCallback(s).then(e=>e(this.axios,this.basePath))}};var at=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(s={}){this.apiKey=s.apiKey,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.baseOptions=s.baseOptions,this.formDataCtor=s.formDataCtor}isJsonMime(s){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return s!==null&&(e.test(s)||s.toLowerCase()==="application/json-patch+json")}};var $t={[Z.Eur]:2,[Z.Aed]:2,[Z.Usd]:2,[Z.Gbp]:2,BHD:3,JPY:0},so={getMultiplier(a){let s=$t[a.toUpperCase()];return typeof s!="number"?100:Math.round(10**s)}};import ie from"lodash";var ye=a=>ie.orderBy(a,["rank","id"],["asc","asc"]),zt=a=>{let s=a.subcategories;return Array.isArray(s)?s:[]},Yt=(a,s)=>({...a,colorCode:a.colorCode??s}),Jt=(a,s)=>ie.compact(a.map(e=>s.get(e))),it=(a,s)=>a.flatMap(e=>{let r=s[e];return r?[e,...it(r.childIds,s)]:[]}),lt=(a,s)=>a.flatMap(e=>{let r=s[e];return r?.enabled?[e,...lt(r.childIds,s)]:[]}),oo=a=>{let s=new Map,e={},r={},t=ye(a),n=t.map(i=>String(i.id)),o=(i=[],l)=>i.map(u=>{let d=String(u.id);return s.set(d,Yt(u,l)),d});return t.forEach(i=>{let l=String(i.id),u=i.colorCode??i.custom_color_code,d=o(i.products,u),f=(R,C)=>{let O=String(R.id),S=o(R.products,u),V=ye(zt(R)).map(E=>f(E,O));return r[O]={id:O,name:R.name,rank:R.rank??0,enabled:!!R.enabled,parentCategoryId:l,parentSubcategoryId:C,productIds:S,childIds:V},O},x=ye(i.subcategories??[]).map(R=>f(R,null));e[l]={...i,productIds:d,subcategoryIds:x}}),{sortedCategories:t,productMap:s,categoriesById:e,subcategoriesById:r,categoryIdsOrder:n}},ao=(a,s,e,r)=>{let t=s[a];if(!t)return[];let n=lt(t.subcategoryIds,e),o=ie.uniq([...t.productIds,...n.flatMap(i=>e[i]?.productIds??[])]);return Jt(o,r)},io=(a,s,e)=>{let r=s[a];if(!r)return[];let t=it(r.subcategoryIds,e);return ie.compact(t.map(n=>e[n]))};var Zt="1.9.19";export{ds as ABLYEVENT,he as AblyApi,ct as AblyApiAxiosParamCreator,pn as AblyApiFactory,ue as AblyApiFp,ps as ActionEnum,Pe as ActionPasscodesApi,dt as ActionPasscodesApiAxiosParamCreator,mn as ActionPasscodesApiFactory,ee as ActionPasscodesApiFp,hr as ActionsEnum,fe as AuthApi,pt as AuthApiAxiosParamCreator,gn as AuthApiFactory,G as AuthApiFp,ys as AutonomousVehicleType,Ae as BusinessApi,mt as BusinessApiAxiosParamCreator,yn as BusinessApiFactory,T as BusinessApiFp,hs as BusinessBackgroundType,fs as BusinessEventAction,As as BusinessEventType,xs as BusinessPaymentIntegrationType,xe as BusinessProviderPolicyApi,gt as BusinessProviderPolicyApiAxiosParamCreator,hn as BusinessProviderPolicyApiFactory,et as BusinessProviderPolicyApiFp,Rs as BusinessStatusEnum,bs as CashLogReason,Cs as CashLogType,Re as CashManagementApi,yt as CashManagementApiAxiosParamCreator,Pn as CashManagementApiFactory,F as CashManagementApiFp,Ds as CashSessionDtoEnum,Os as CashSessionStatus,Vs as ChannelEnum,Is as CheckoutModelEnum,Ss as ConditionType,be as ConfigManagementApi,ht as ConfigManagementApiAxiosParamCreator,fn as ConfigManagementApiFactory,M as ConfigManagementApiFp,at as Configuration,vs as ConsumptionType,Z as CurrencyCode,Xr as CurrencyCodeEnum,so as CurrencyRegistry,Ts as DeliveryStatus,Es as DeliveryType,Us as DeviceType,qs as DiscountScope,Bs as DiscountScopeType,Ms as DiscountSourceType,ks as DiscountType,Tr as DiscountTypeEnum,Ce as EmployeesApi,Pt as EmployeesApiAxiosParamCreator,An as EmployeesApiFactory,tt as EmployeesApiFp,_s as EntityType,ms as EntityTypeEnum,gs as EventTypeEnum,en as EventTypeIdEnum,ws as FeeType,De as GiftcardApi,ft as GiftcardApiAxiosParamCreator,xn as GiftcardApiFactory,ce as GiftcardApiFp,Oe as HistoryApi,At as HistoryApiAxiosParamCreator,Rn as HistoryApiFactory,H as HistoryApiFp,Ns as IntegrationType,Ve as InvoiceCompaniesApi,xt as InvoiceCompaniesApiAxiosParamCreator,bn as InvoiceCompaniesApiFactory,j as InvoiceCompaniesApiFp,Ie as KDSApi,Rt as KDSApiAxiosParamCreator,Cn as KDSApiFactory,Q as KDSApiFp,Ls as KDSEVENTNAME,Fs as KioskEventType,js as KioskLayout,Se as KiosksApi,bt as KiosksApiAxiosParamCreator,Dn as KiosksApiFactory,te as KiosksApiFp,Ws as KitchenItemStatus,Ks as KitchenStatus,Gs as LocatorType,Hs as LoyaltyActionKey,ve as LoyaltyIntegerationsApi,Ct as LoyaltyIntegerationsApiAxiosParamCreator,On as LoyaltyIntegerationsApiFactory,k as LoyaltyIntegerationsApiFp,Zt as MUNCHI_CORE_VERSION,Te as MenuApi,Dt as MenuApiAxiosParamCreator,Vn as MenuApiFactory,K as MenuApiFp,Ps as MenuTypeEnum,Ee as MerchantsApi,Ot as MerchantsApiAxiosParamCreator,In as MerchantsApiFactory,se as MerchantsApiFp,Ue as MunchiGiftCardApi,Vt as MunchiGiftCardApiAxiosParamCreator,Sn as MunchiGiftCardApiFactory,$ as MunchiGiftCardApiFp,$r as NameEnum,qe as NotificationApi,It as NotificationApiAxiosParamCreator,vn as NotificationApiFactory,de as NotificationApiFp,Qs as OperatingMode,Hr as OperatingModeEnum,$s as OrderFormat,Be as OrderInternalApi,St as OrderInternalApiAxiosParamCreator,Tn as OrderInternalApiFactory,st as OrderInternalApiFp,zs as OrderMode,Ys as OrderRefundStatus,Js as OrderSource,Zs as OrderStatus,Xs as OrderStatusEnum,er as OrderType,tr as OrderTypePOS,Me as OrderingCoApi,vt as OrderingCoApiAxiosParamCreator,En as OrderingCoApiFactory,rt as OrderingCoApiFp,ke as OrdersApi,Tt as OrdersApiAxiosParamCreator,Un as OrdersApiFactory,B as OrdersApiFp,_e as POSSessionApi,Et as POSSessionApiAxiosParamCreator,qn as POSSessionApiFactory,pe as POSSessionApiFp,we as PaymentApi,Ut as PaymentApiAxiosParamCreator,Bn as PaymentApiFactory,q as PaymentApiFp,sr as PaymentEventType,rr as PaymentFailureCode,nr as PaymentMethod,or as PaymentProvider,ar as PaymentProviderEnum,ir as PaymentStatus,lr as PaymentTypeEnum,Ne as PluginApi,qt as PluginApiAxiosParamCreator,Mn as PluginApiFactory,me as PluginApiFp,ur as PosDiscountTargetType,cr as PosDiscountType,dr as PosPaymentStatus,pr as PosPaymentType,mr as PosPermission,gr as PreorderStatus,yr as PrinterTypeEnum,Le as ProductApi,Bt as ProductApiAxiosParamCreator,kn as ProductApiFactory,re as ProductApiFp,Pr as ProductAvailability,fr as ProductDetailLayout,Qr as ProductDetailLayoutEnum,Ar as PromotionDiscountType,Fe as ProviderApi,Mt as ProviderApiAxiosParamCreator,_n as ProviderApiFactory,ne as ProviderApiFp,xr as ProviderEnum,Rr as PubSubAction,br as PubSubTarget,Cr as RefundFailureReasonKey,Dr as RefundMode,Or as RefundOverallStatus,Vr as RefundStatusEnum,Ir as RefundStepStatus,je as RefundsApi,kt as RefundsApiAxiosParamCreator,wn as RefundsApiFactory,w as RefundsApiFp,We as ReportApi,_t as ReportApiAxiosParamCreator,Nn as ReportApiFactory,z as ReportApiFp,Sr as ReportLanguage,Ur as SYNCKEY,Er as ScopeEnum,Gr as SelectedPaymentProviderEnum,Ke as ShiftTrackingApi,wt as ShiftTrackingApiAxiosParamCreator,Ln as ShiftTrackingApiFactory,Y as ShiftTrackingApiFp,qr as SimplePaymentStatus,Br as SourceType,Mr as StaffActivityActionType,kr as StationType,Ge as StationsApi,Nt as StationsApiAxiosParamCreator,Fn as StationsApiFactory,oe as StationsApiFp,_r as Status,tn as StatusEnum,wr as SystemProfileType,He as TerminalApi,Lt as TerminalApiAxiosParamCreator,jn as TerminalApiFactory,J as TerminalApiFp,Nr as TerminalConnectionType,Lr as TimeSpan,Fr as TransactionEventType,jr as TransactionType,Wr as Type,Kr as UpsellMode,Qe as UserApi,Ft as UserApiAxiosParamCreator,Wn as UserApiFactory,ae as UserApiFp,$e as UsersApi,jt as UsersApiAxiosParamCreator,Kn as UsersApiFactory,ge as UsersApiFp,ze as VendureSellerApi,Wt as VendureSellerApiAxiosParamCreator,Gn as VendureSellerApiFactory,nt as VendureSellerApiFp,Ye as VivaApi,Kt as VivaApiAxiosParamCreator,Hn as VivaApiFactory,ot as VivaApiFp,zr as VivaAppToAppPaymentMethod,Yr as VivaCurrencyCode,Jr as VivaErrorId,Zr as VivaEventId,vr as WalletStatusEnum,Je as WebhookApi,Gt as WebhookApiAxiosParamCreator,Qn as WebhookApiFactory,U as WebhookApiFp,Ze as WorldlineApi,Ht as WorldlineApiAxiosParamCreator,$n as WorldlineApiFactory,W as WorldlineApiFp,sn as WorldlineAuthorizationMethod,rn as WorldlineAuthorizationResponder,nn as WorldlineEntryMode,on as WorldlineEventType,Xe as WorldlineInternalApi,Qt as WorldlineInternalApiAxiosParamCreator,zn as WorldlineInternalApiFactory,N as WorldlineInternalApiFp,an as WorldlineOutcomeDescription,ln as WorldlineResponseStatus,un as WorldlineTransactionOutcome,cn as WorldlineTransactionType,dn as WorldlineVerificationMethod,oo as buildPosCategoryIndex,lt as collectEnabledSubcategoryIdsDepthFirst,it as collectSubcategoryIdsDepthFirst,ao as getCategoryProductsIncludingSubcategories,io as getSubcategoriesForCategory,Jt as mapProductIdsToProducts};
|