@munchi_oy/core 1.8.5 → 1.8.6

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/generated/api.ts CHANGED
@@ -23,6 +23,20 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @enum {string}
30
+ */
31
+
32
+ export const ABLYEVENT = {
33
+ Sync: 'sync',
34
+ KdsItemStatusSync: 'kds_item_status_sync'
35
+ } as const;
36
+
37
+ export type ABLYEVENT = typeof ABLYEVENT[keyof typeof ABLYEVENT];
38
+
39
+
26
40
  /**
27
41
  *
28
42
  * @export
@@ -4892,12 +4906,6 @@ export interface GetStationResponseDtoStation {
4892
4906
  * @memberof GetStationResponseDtoStation
4893
4907
  */
4894
4908
  'prefix': string;
4895
- /**
4896
- *
4897
- * @type {object}
4898
- * @memberof GetStationResponseDtoStation
4899
- */
4900
- 'settings'?: object;
4901
4909
  /**
4902
4910
  *
4903
4911
  * @type {object}
@@ -5339,6 +5347,167 @@ export interface ItemPriceDto {
5339
5347
  */
5340
5348
  'priceBreakdown': ItemPriceBreakdownDto;
5341
5349
  }
5350
+ /**
5351
+ *
5352
+ * @export
5353
+ * @enum {string}
5354
+ */
5355
+
5356
+ export const KDSEVENTNAME = {
5357
+ OrderCreated: 'order.created',
5358
+ OrderReady: 'order.ready',
5359
+ OrderReverted: 'order.reverted',
5360
+ OrderDeleted: 'order.deleted',
5361
+ PrintingOrder: 'printing.order'
5362
+ } as const;
5363
+
5364
+ export type KDSEVENTNAME = typeof KDSEVENTNAME[keyof typeof KDSEVENTNAME];
5365
+
5366
+
5367
+ /**
5368
+ *
5369
+ * @export
5370
+ * @interface KdsCoordinateDto
5371
+ */
5372
+ export interface KdsCoordinateDto {
5373
+ /**
5374
+ *
5375
+ * @type {string}
5376
+ * @memberof KdsCoordinateDto
5377
+ */
5378
+ 'id': string;
5379
+ /**
5380
+ *
5381
+ * @type {number}
5382
+ * @memberof KdsCoordinateDto
5383
+ */
5384
+ 'lat': number | null;
5385
+ /**
5386
+ *
5387
+ * @type {number}
5388
+ * @memberof KdsCoordinateDto
5389
+ */
5390
+ 'lon': number | null;
5391
+ }
5392
+ /**
5393
+ *
5394
+ * @export
5395
+ * @interface KdsCustomerDto
5396
+ */
5397
+ export interface KdsCustomerDto {
5398
+ /**
5399
+ *
5400
+ * @type {string}
5401
+ * @memberof KdsCustomerDto
5402
+ */
5403
+ 'id': string;
5404
+ /**
5405
+ *
5406
+ * @type {string}
5407
+ * @memberof KdsCustomerDto
5408
+ */
5409
+ 'name': string;
5410
+ /**
5411
+ *
5412
+ * @type {string}
5413
+ * @memberof KdsCustomerDto
5414
+ */
5415
+ 'phone': string | null;
5416
+ /**
5417
+ *
5418
+ * @type {string}
5419
+ * @memberof KdsCustomerDto
5420
+ */
5421
+ 'email': string | null;
5422
+ }
5423
+ /**
5424
+ *
5425
+ * @export
5426
+ * @interface KdsDeliveryDto
5427
+ */
5428
+ export interface KdsDeliveryDto {
5429
+ /**
5430
+ *
5431
+ * @type {string}
5432
+ * @memberof KdsDeliveryDto
5433
+ */
5434
+ 'id': string;
5435
+ /**
5436
+ *
5437
+ * @type {boolean}
5438
+ * @memberof KdsDeliveryDto
5439
+ */
5440
+ 'selfDelivery': boolean;
5441
+ /**
5442
+ *
5443
+ * @type {string}
5444
+ * @memberof KdsDeliveryDto
5445
+ */
5446
+ 'note': string | null;
5447
+ /**
5448
+ *
5449
+ * @type {DeliveryStatus}
5450
+ * @memberof KdsDeliveryDto
5451
+ */
5452
+ 'status': DeliveryStatus;
5453
+ /**
5454
+ *
5455
+ * @type {DeliveryType}
5456
+ * @memberof KdsDeliveryDto
5457
+ */
5458
+ 'type': DeliveryType;
5459
+ /**
5460
+ *
5461
+ * @type {number}
5462
+ * @memberof KdsDeliveryDto
5463
+ */
5464
+ 'deliveryFee': number;
5465
+ /**
5466
+ *
5467
+ * @type {KdsLocationDto}
5468
+ * @memberof KdsDeliveryDto
5469
+ */
5470
+ 'location': KdsLocationDto | null;
5471
+ }
5472
+
5473
+
5474
+ /**
5475
+ *
5476
+ * @export
5477
+ * @interface KdsLocationDto
5478
+ */
5479
+ export interface KdsLocationDto {
5480
+ /**
5481
+ *
5482
+ * @type {string}
5483
+ * @memberof KdsLocationDto
5484
+ */
5485
+ 'id': string;
5486
+ /**
5487
+ *
5488
+ * @type {string}
5489
+ * @memberof KdsLocationDto
5490
+ */
5491
+ 'formatted_address': string | null;
5492
+ /**
5493
+ *
5494
+ * @type {string}
5495
+ * @memberof KdsLocationDto
5496
+ */
5497
+ 'city': string | null;
5498
+ /**
5499
+ *
5500
+ * @type {string}
5501
+ * @memberof KdsLocationDto
5502
+ */
5503
+ 'country': string | null;
5504
+ /**
5505
+ *
5506
+ * @type {KdsCoordinateDto}
5507
+ * @memberof KdsLocationDto
5508
+ */
5509
+ 'coordinates': KdsCoordinateDto | null;
5510
+ }
5342
5511
  /**
5343
5512
  *
5344
5513
  * @export
@@ -5477,6 +5646,30 @@ export interface KdsOrderDto {
5477
5646
  * @memberof KdsOrderDto
5478
5647
  */
5479
5648
  'updatedAt': string;
5649
+ /**
5650
+ *
5651
+ * @type {KdsCustomerDto}
5652
+ * @memberof KdsOrderDto
5653
+ */
5654
+ 'customer': KdsCustomerDto | null;
5655
+ /**
5656
+ *
5657
+ * @type {KdsDeliveryDto}
5658
+ * @memberof KdsOrderDto
5659
+ */
5660
+ 'delivery': KdsDeliveryDto | null;
5661
+ /**
5662
+ *
5663
+ * @type {KdsPreorderDto}
5664
+ * @memberof KdsOrderDto
5665
+ */
5666
+ 'preorder': KdsPreorderDto | null;
5667
+ /**
5668
+ *
5669
+ * @type {KdsPriceSummaryDto}
5670
+ * @memberof KdsOrderDto
5671
+ */
5672
+ 'priceSummary': KdsPriceSummaryDto | null;
5480
5673
  /**
5481
5674
  *
5482
5675
  * @type {Array<KdsOrderItemDto>}
@@ -5788,6 +5981,73 @@ export interface KdsPaginationDto {
5788
5981
  */
5789
5982
  'hasPreviousPage': boolean;
5790
5983
  }
5984
+ /**
5985
+ *
5986
+ * @export
5987
+ * @interface KdsPreorderDto
5988
+ */
5989
+ export interface KdsPreorderDto {
5990
+ /**
5991
+ *
5992
+ * @type {string}
5993
+ * @memberof KdsPreorderDto
5994
+ */
5995
+ 'id': string;
5996
+ /**
5997
+ *
5998
+ * @type {PreorderStatus}
5999
+ * @memberof KdsPreorderDto
6000
+ */
6001
+ 'status': PreorderStatus;
6002
+ /**
6003
+ *
6004
+ * @type {string}
6005
+ * @memberof KdsPreorderDto
6006
+ */
6007
+ 'preorderTime': string;
6008
+ }
6009
+
6010
+
6011
+ /**
6012
+ *
6013
+ * @export
6014
+ * @interface KdsPriceSummaryDto
6015
+ */
6016
+ export interface KdsPriceSummaryDto {
6017
+ /**
6018
+ *
6019
+ * @type {string}
6020
+ * @memberof KdsPriceSummaryDto
6021
+ */
6022
+ 'id': string;
6023
+ /**
6024
+ *
6025
+ * @type {number}
6026
+ * @memberof KdsPriceSummaryDto
6027
+ */
6028
+ 'totalNet': number;
6029
+ }
6030
+ /**
6031
+ *
6032
+ * @export
6033
+ * @interface KdsPrintingEventDto
6034
+ */
6035
+ export interface KdsPrintingEventDto {
6036
+ /**
6037
+ *
6038
+ * @type {KDSEVENTNAME}
6039
+ * @memberof KdsPrintingEventDto
6040
+ */
6041
+ 'event': KDSEVENTNAME;
6042
+ /**
6043
+ *
6044
+ * @type {KdsOrderDto}
6045
+ * @memberof KdsPrintingEventDto
6046
+ */
6047
+ 'order': KdsOrderDto;
6048
+ }
6049
+
6050
+
5791
6051
  /**
5792
6052
  *
5793
6053
  * @export
@@ -6050,6 +6310,30 @@ export interface KdsReadyOrderResponseDtoOrder {
6050
6310
  * @memberof KdsReadyOrderResponseDtoOrder
6051
6311
  */
6052
6312
  'updatedAt': string;
6313
+ /**
6314
+ *
6315
+ * @type {KdsCustomerDto}
6316
+ * @memberof KdsReadyOrderResponseDtoOrder
6317
+ */
6318
+ 'customer': KdsCustomerDto | null;
6319
+ /**
6320
+ *
6321
+ * @type {KdsDeliveryDto}
6322
+ * @memberof KdsReadyOrderResponseDtoOrder
6323
+ */
6324
+ 'delivery': KdsDeliveryDto | null;
6325
+ /**
6326
+ *
6327
+ * @type {KdsPreorderDto}
6328
+ * @memberof KdsReadyOrderResponseDtoOrder
6329
+ */
6330
+ 'preorder': KdsPreorderDto | null;
6331
+ /**
6332
+ *
6333
+ * @type {KdsPriceSummaryDto}
6334
+ * @memberof KdsReadyOrderResponseDtoOrder
6335
+ */
6336
+ 'priceSummary': KdsPriceSummaryDto | null;
6053
6337
  /**
6054
6338
  *
6055
6339
  * @type {Array<KdsOrderItemDto>}
@@ -6222,6 +6506,30 @@ export interface KdsRevertOrderResponseDtoOrder {
6222
6506
  * @memberof KdsRevertOrderResponseDtoOrder
6223
6507
  */
6224
6508
  'updatedAt': string;
6509
+ /**
6510
+ *
6511
+ * @type {KdsCustomerDto}
6512
+ * @memberof KdsRevertOrderResponseDtoOrder
6513
+ */
6514
+ 'customer': KdsCustomerDto | null;
6515
+ /**
6516
+ *
6517
+ * @type {KdsDeliveryDto}
6518
+ * @memberof KdsRevertOrderResponseDtoOrder
6519
+ */
6520
+ 'delivery': KdsDeliveryDto | null;
6521
+ /**
6522
+ *
6523
+ * @type {KdsPreorderDto}
6524
+ * @memberof KdsRevertOrderResponseDtoOrder
6525
+ */
6526
+ 'preorder': KdsPreorderDto | null;
6527
+ /**
6528
+ *
6529
+ * @type {KdsPriceSummaryDto}
6530
+ * @memberof KdsRevertOrderResponseDtoOrder
6531
+ */
6532
+ 'priceSummary': KdsPriceSummaryDto | null;
6225
6533
  /**
6226
6534
  *
6227
6535
  * @type {Array<KdsOrderItemDto>}
@@ -14684,7 +14992,8 @@ export const SYNCKEY = {
14684
14992
  PosSession: 'POS_SESSION',
14685
14993
  InvoiceCompanies: 'INVOICE_COMPANIES',
14686
14994
  BusinessTax: 'BUSINESS_TAX',
14687
- Transaction: 'TRANSACTION'
14995
+ Transaction: 'TRANSACTION',
14996
+ DiscountsV2: 'DISCOUNTS_V2'
14688
14997
  } as const;
14689
14998
 
14690
14999
  export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
@@ -15168,12 +15477,6 @@ export interface StationDetailsDto {
15168
15477
  * @memberof StationDetailsDto
15169
15478
  */
15170
15479
  'prefix': string;
15171
- /**
15172
- *
15173
- * @type {object}
15174
- * @memberof StationDetailsDto
15175
- */
15176
- 'settings'?: object;
15177
15480
  /**
15178
15481
  *
15179
15482
  * @type {object}
@@ -15265,99 +15568,12 @@ export interface StationDetailsDtoPaymentTerminal {
15265
15568
  */
15266
15569
  export interface StationSyncResponseDto {
15267
15570
  /**
15268
- *
15269
- * @type {StationSyncResponseDtoStation}
15270
- * @memberof StationSyncResponseDto
15271
- */
15272
- 'station': StationSyncResponseDtoStation;
15273
- }
15274
- /**
15275
- * The synced station data
15276
- * @export
15277
- * @interface StationSyncResponseDtoStation
15278
- */
15279
- export interface StationSyncResponseDtoStation {
15280
- /**
15281
- *
15282
- * @type {string}
15283
- * @memberof StationSyncResponseDtoStation
15284
- */
15285
- 'id': string;
15286
- /**
15287
- *
15288
- * @type {string}
15289
- * @memberof StationSyncResponseDtoStation
15290
- */
15291
- 'name': string;
15292
- /**
15293
- *
15294
- * @type {string}
15295
- * @memberof StationSyncResponseDtoStation
15296
- */
15297
- 'hardwareId': string;
15298
- /**
15299
- *
15300
- * @type {StationType}
15301
- * @memberof StationSyncResponseDtoStation
15302
- */
15303
- 'type': StationType;
15304
- /**
15305
- *
15306
- * @type {DeviceType}
15307
- * @memberof StationSyncResponseDtoStation
15308
- */
15309
- 'deviceType'?: DeviceType;
15310
- /**
15311
- *
15312
- * @type {Status}
15313
- * @memberof StationSyncResponseDtoStation
15314
- */
15315
- 'status': Status;
15316
- /**
15317
- *
15318
- * @type {number}
15319
- * @memberof StationSyncResponseDtoStation
15320
- */
15321
- 'orderingBusinessId': number;
15322
- /**
15323
- *
15324
- * @type {string}
15325
- * @memberof StationSyncResponseDtoStation
15326
- */
15327
- 'prefix': string;
15328
- /**
15329
- *
15330
- * @type {object}
15331
- * @memberof StationSyncResponseDtoStation
15332
- */
15333
- 'settings'?: object;
15334
- /**
15335
- *
15336
- * @type {object}
15337
- * @memberof StationSyncResponseDtoStation
15338
- */
15339
- 'metadata'?: object;
15340
- /**
15341
- * Timestamp when the station record was created.
15342
- * @type {string}
15343
- * @memberof StationSyncResponseDtoStation
15344
- */
15345
- 'createdAt': string;
15346
- /**
15347
- * Timestamp when the station record was last updated.
15571
+ * A success message indicating the sync was successful
15348
15572
  * @type {string}
15349
- * @memberof StationSyncResponseDtoStation
15350
- */
15351
- 'updatedAt': string;
15352
- /**
15353
- *
15354
- * @type {StationDetailsDtoPaymentTerminal}
15355
- * @memberof StationSyncResponseDtoStation
15573
+ * @memberof StationSyncResponseDto
15356
15574
  */
15357
- 'paymentTerminal'?: StationDetailsDtoPaymentTerminal | null;
15575
+ 'message': string;
15358
15576
  }
15359
-
15360
-
15361
15577
  /**
15362
15578
  *
15363
15579
  * @export
@@ -15611,6 +15827,51 @@ export interface SyncStationDto {
15611
15827
  }
15612
15828
 
15613
15829
 
15830
+ /**
15831
+ *
15832
+ * @export
15833
+ * @interface SyncTerminalDto
15834
+ */
15835
+ export interface SyncTerminalDto {
15836
+ /**
15837
+ * Hardware ID of the station to connect the terminal to
15838
+ * @type {string}
15839
+ * @memberof SyncTerminalDto
15840
+ */
15841
+ 'stationHardwareId': string;
15842
+ /**
15843
+ * Hardware ID of the payment terminal
15844
+ * @type {string}
15845
+ * @memberof SyncTerminalDto
15846
+ */
15847
+ 'terminalId': string;
15848
+ /**
15849
+ *
15850
+ * @type {PaymentProvider}
15851
+ * @memberof SyncTerminalDto
15852
+ */
15853
+ 'provider': PaymentProvider;
15854
+ /**
15855
+ * Label/name for the terminal
15856
+ * @type {string}
15857
+ * @memberof SyncTerminalDto
15858
+ */
15859
+ 'label'?: string;
15860
+ /**
15861
+ *
15862
+ * @type {TerminalConnectionType}
15863
+ * @memberof SyncTerminalDto
15864
+ */
15865
+ 'connectionType'?: TerminalConnectionType;
15866
+ /**
15867
+ * Business ID that owns the terminal
15868
+ * @type {number}
15869
+ * @memberof SyncTerminalDto
15870
+ */
15871
+ 'businessId': number;
15872
+ }
15873
+
15874
+
15614
15875
  /**
15615
15876
  *
15616
15877
  * @export
@@ -22320,11 +22581,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22320
22581
  /**
22321
22582
  *
22322
22583
  * @param {string} businessId
22323
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22584
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22324
22585
  * @param {*} [options] Override http request option.
22325
22586
  * @throws {RequiredError}
22326
22587
  */
22327
- getBusinessMenuByType: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22588
+ getBusinessMenuByType: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22328
22589
  // verify required parameter 'businessId' is not null or undefined
22329
22590
  assertParamExists('getBusinessMenuByType', 'businessId', businessId)
22330
22591
  // verify required parameter 'menuType' is not null or undefined
@@ -22362,11 +22623,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22362
22623
  *
22363
22624
  * @summary Get business menu by type V2
22364
22625
  * @param {string} businessId
22365
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22626
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22366
22627
  * @param {*} [options] Override http request option.
22367
22628
  * @throws {RequiredError}
22368
22629
  */
22369
- getBusinessMenuByTypeV2: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22630
+ getBusinessMenuByTypeV2: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22370
22631
  // verify required parameter 'businessId' is not null or undefined
22371
22632
  assertParamExists('getBusinessMenuByTypeV2', 'businessId', businessId)
22372
22633
  // verify required parameter 'menuType' is not null or undefined
@@ -22404,11 +22665,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22404
22665
  *
22405
22666
  * @summary Get business menu by type V3
22406
22667
  * @param {string} businessId
22407
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22668
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22408
22669
  * @param {*} [options] Override http request option.
22409
22670
  * @throws {RequiredError}
22410
22671
  */
22411
- getBusinessMenuByTypeV3: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22672
+ getBusinessMenuByTypeV3: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22412
22673
  // verify required parameter 'businessId' is not null or undefined
22413
22674
  assertParamExists('getBusinessMenuByTypeV3', 'businessId', businessId)
22414
22675
  // verify required parameter 'menuType' is not null or undefined
@@ -22446,11 +22707,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22446
22707
  *
22447
22708
  * @summary Get business menu by type V4
22448
22709
  * @param {string} businessId
22449
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22710
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22450
22711
  * @param {*} [options] Override http request option.
22451
22712
  * @throws {RequiredError}
22452
22713
  */
22453
- getBusinessMenuByTypeV4: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22714
+ getBusinessMenuByTypeV4: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22454
22715
  // verify required parameter 'businessId' is not null or undefined
22455
22716
  assertParamExists('getBusinessMenuByTypeV4', 'businessId', businessId)
22456
22717
  // verify required parameter 'menuType' is not null or undefined
@@ -23029,11 +23290,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23029
23290
  /**
23030
23291
  *
23031
23292
  * @param {string} businessId
23032
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23293
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23033
23294
  * @param {*} [options] Override http request option.
23034
23295
  * @throws {RequiredError}
23035
23296
  */
23036
- async getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23297
+ async getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23037
23298
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByType(businessId, menuType, options);
23038
23299
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23039
23300
  },
@@ -23041,11 +23302,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23041
23302
  *
23042
23303
  * @summary Get business menu by type V2
23043
23304
  * @param {string} businessId
23044
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23305
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23045
23306
  * @param {*} [options] Override http request option.
23046
23307
  * @throws {RequiredError}
23047
23308
  */
23048
- async getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23309
+ async getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23049
23310
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV2(businessId, menuType, options);
23050
23311
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23051
23312
  },
@@ -23053,11 +23314,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23053
23314
  *
23054
23315
  * @summary Get business menu by type V3
23055
23316
  * @param {string} businessId
23056
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23317
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23057
23318
  * @param {*} [options] Override http request option.
23058
23319
  * @throws {RequiredError}
23059
23320
  */
23060
- async getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23321
+ async getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23061
23322
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV3(businessId, menuType, options);
23062
23323
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23063
23324
  },
@@ -23065,11 +23326,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23065
23326
  *
23066
23327
  * @summary Get business menu by type V4
23067
23328
  * @param {string} businessId
23068
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23329
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23069
23330
  * @param {*} [options] Override http request option.
23070
23331
  * @throws {RequiredError}
23071
23332
  */
23072
- async getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23333
+ async getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23073
23334
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV4(businessId, menuType, options);
23074
23335
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23075
23336
  },
@@ -23309,44 +23570,44 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
23309
23570
  /**
23310
23571
  *
23311
23572
  * @param {string} businessId
23312
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23573
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23313
23574
  * @param {*} [options] Override http request option.
23314
23575
  * @throws {RequiredError}
23315
23576
  */
23316
- getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<Array<MenuDto>> {
23577
+ getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<Array<MenuDto>> {
23317
23578
  return localVarFp.getBusinessMenuByType(businessId, menuType, options).then((request) => request(axios, basePath));
23318
23579
  },
23319
23580
  /**
23320
23581
  *
23321
23582
  * @summary Get business menu by type V2
23322
23583
  * @param {string} businessId
23323
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23584
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23324
23585
  * @param {*} [options] Override http request option.
23325
23586
  * @throws {RequiredError}
23326
23587
  */
23327
- getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<Array<MenuDto>> {
23588
+ getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<Array<MenuDto>> {
23328
23589
  return localVarFp.getBusinessMenuByTypeV2(businessId, menuType, options).then((request) => request(axios, basePath));
23329
23590
  },
23330
23591
  /**
23331
23592
  *
23332
23593
  * @summary Get business menu by type V3
23333
23594
  * @param {string} businessId
23334
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23595
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23335
23596
  * @param {*} [options] Override http request option.
23336
23597
  * @throws {RequiredError}
23337
23598
  */
23338
- getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<MenuReponseDto> {
23599
+ getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<MenuReponseDto> {
23339
23600
  return localVarFp.getBusinessMenuByTypeV3(businessId, menuType, options).then((request) => request(axios, basePath));
23340
23601
  },
23341
23602
  /**
23342
23603
  *
23343
23604
  * @summary Get business menu by type V4
23344
23605
  * @param {string} businessId
23345
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23606
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23346
23607
  * @param {*} [options] Override http request option.
23347
23608
  * @throws {RequiredError}
23348
23609
  */
23349
- getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<MenuReponseDto> {
23610
+ getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<MenuReponseDto> {
23350
23611
  return localVarFp.getBusinessMenuByTypeV4(businessId, menuType, options).then((request) => request(axios, basePath));
23351
23612
  },
23352
23613
  /**
@@ -23574,45 +23835,45 @@ export interface BusinessApiInterface {
23574
23835
  /**
23575
23836
  *
23576
23837
  * @param {string} businessId
23577
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23838
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23578
23839
  * @param {*} [options] Override http request option.
23579
23840
  * @throws {RequiredError}
23580
23841
  * @memberof BusinessApiInterface
23581
23842
  */
23582
- getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23843
+ getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23583
23844
 
23584
23845
  /**
23585
23846
  *
23586
23847
  * @summary Get business menu by type V2
23587
23848
  * @param {string} businessId
23588
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23849
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23589
23850
  * @param {*} [options] Override http request option.
23590
23851
  * @throws {RequiredError}
23591
23852
  * @memberof BusinessApiInterface
23592
23853
  */
23593
- getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23854
+ getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23594
23855
 
23595
23856
  /**
23596
23857
  *
23597
23858
  * @summary Get business menu by type V3
23598
23859
  * @param {string} businessId
23599
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23860
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23600
23861
  * @param {*} [options] Override http request option.
23601
23862
  * @throws {RequiredError}
23602
23863
  * @memberof BusinessApiInterface
23603
23864
  */
23604
- getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23865
+ getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23605
23866
 
23606
23867
  /**
23607
23868
  *
23608
23869
  * @summary Get business menu by type V4
23609
23870
  * @param {string} businessId
23610
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23871
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23611
23872
  * @param {*} [options] Override http request option.
23612
23873
  * @throws {RequiredError}
23613
23874
  * @memberof BusinessApiInterface
23614
23875
  */
23615
- getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23876
+ getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23616
23877
 
23617
23878
  /**
23618
23879
  *
@@ -23861,12 +24122,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23861
24122
  /**
23862
24123
  *
23863
24124
  * @param {string} businessId
23864
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24125
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23865
24126
  * @param {*} [options] Override http request option.
23866
24127
  * @throws {RequiredError}
23867
24128
  * @memberof BusinessApi
23868
24129
  */
23869
- public getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24130
+ public getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23870
24131
  return BusinessApiFp(this.configuration).getBusinessMenuByType(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23871
24132
  }
23872
24133
 
@@ -23874,12 +24135,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23874
24135
  *
23875
24136
  * @summary Get business menu by type V2
23876
24137
  * @param {string} businessId
23877
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24138
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23878
24139
  * @param {*} [options] Override http request option.
23879
24140
  * @throws {RequiredError}
23880
24141
  * @memberof BusinessApi
23881
24142
  */
23882
- public getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24143
+ public getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23883
24144
  return BusinessApiFp(this.configuration).getBusinessMenuByTypeV2(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23884
24145
  }
23885
24146
 
@@ -23887,12 +24148,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23887
24148
  *
23888
24149
  * @summary Get business menu by type V3
23889
24150
  * @param {string} businessId
23890
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24151
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23891
24152
  * @param {*} [options] Override http request option.
23892
24153
  * @throws {RequiredError}
23893
24154
  * @memberof BusinessApi
23894
24155
  */
23895
- public getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24156
+ public getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23896
24157
  return BusinessApiFp(this.configuration).getBusinessMenuByTypeV3(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23897
24158
  }
23898
24159
 
@@ -23900,12 +24161,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23900
24161
  *
23901
24162
  * @summary Get business menu by type V4
23902
24163
  * @param {string} businessId
23903
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24164
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23904
24165
  * @param {*} [options] Override http request option.
23905
24166
  * @throws {RequiredError}
23906
24167
  * @memberof BusinessApi
23907
24168
  */
23908
- public getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24169
+ public getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23909
24170
  return BusinessApiFp(this.configuration).getBusinessMenuByTypeV4(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23910
24171
  }
23911
24172
 
@@ -34501,6 +34762,41 @@ export const StationsApiAxiosParamCreator = function (configuration?: Configurat
34501
34762
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34502
34763
  localVarRequestOptions.data = serializeDataIfNeeded(syncStationDto, localVarRequestOptions, configuration)
34503
34764
 
34765
+ return {
34766
+ url: toPathString(localVarUrlObj),
34767
+ options: localVarRequestOptions,
34768
+ };
34769
+ },
34770
+ /**
34771
+ *
34772
+ * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
34773
+ * @param {*} [options] Override http request option.
34774
+ * @throws {RequiredError}
34775
+ */
34776
+ syncTerminal: async (syncTerminalDto: SyncTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34777
+ // verify required parameter 'syncTerminalDto' is not null or undefined
34778
+ assertParamExists('syncTerminal', 'syncTerminalDto', syncTerminalDto)
34779
+ const localVarPath = `/api/v1/station/terminal/sync`;
34780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34781
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34782
+ let baseOptions;
34783
+ if (configuration) {
34784
+ baseOptions = configuration.baseOptions;
34785
+ }
34786
+
34787
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34788
+ const localVarHeaderParameter = {} as any;
34789
+ const localVarQueryParameter = {} as any;
34790
+
34791
+
34792
+
34793
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34794
+
34795
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34796
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34797
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34798
+ localVarRequestOptions.data = serializeDataIfNeeded(syncTerminalDto, localVarRequestOptions, configuration)
34799
+
34504
34800
  return {
34505
34801
  url: toPathString(localVarUrlObj),
34506
34802
  options: localVarRequestOptions,
@@ -34544,6 +34840,16 @@ export const StationsApiFp = function(configuration?: Configuration) {
34544
34840
  const localVarAxiosArgs = await localVarAxiosParamCreator.syncStation(syncStationDto, options);
34545
34841
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34546
34842
  },
34843
+ /**
34844
+ *
34845
+ * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
34846
+ * @param {*} [options] Override http request option.
34847
+ * @throws {RequiredError}
34848
+ */
34849
+ async syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationSyncResponseDto>> {
34850
+ const localVarAxiosArgs = await localVarAxiosParamCreator.syncTerminal(syncTerminalDto, options);
34851
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34852
+ },
34547
34853
  }
34548
34854
  };
34549
34855
 
@@ -34579,6 +34885,15 @@ export const StationsApiFactory = function (configuration?: Configuration, baseP
34579
34885
  syncStation(syncStationDto: SyncStationDto, options?: any): AxiosPromise<StationSyncResponseDto> {
34580
34886
  return localVarFp.syncStation(syncStationDto, options).then((request) => request(axios, basePath));
34581
34887
  },
34888
+ /**
34889
+ *
34890
+ * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
34891
+ * @param {*} [options] Override http request option.
34892
+ * @throws {RequiredError}
34893
+ */
34894
+ syncTerminal(syncTerminalDto: SyncTerminalDto, options?: any): AxiosPromise<StationSyncResponseDto> {
34895
+ return localVarFp.syncTerminal(syncTerminalDto, options).then((request) => request(axios, basePath));
34896
+ },
34582
34897
  };
34583
34898
  };
34584
34899
 
@@ -34613,6 +34928,15 @@ export interface StationsApiInterface {
34613
34928
  */
34614
34929
  syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
34615
34930
 
34931
+ /**
34932
+ *
34933
+ * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
34934
+ * @param {*} [options] Override http request option.
34935
+ * @throws {RequiredError}
34936
+ * @memberof StationsApiInterface
34937
+ */
34938
+ syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
34939
+
34616
34940
  }
34617
34941
 
34618
34942
  /**
@@ -34652,6 +34976,17 @@ export class StationsApi extends BaseAPI implements StationsApiInterface {
34652
34976
  public syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig) {
34653
34977
  return StationsApiFp(this.configuration).syncStation(syncStationDto, options).then((request) => request(this.axios, this.basePath));
34654
34978
  }
34979
+
34980
+ /**
34981
+ *
34982
+ * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
34983
+ * @param {*} [options] Override http request option.
34984
+ * @throws {RequiredError}
34985
+ * @memberof StationsApi
34986
+ */
34987
+ public syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig) {
34988
+ return StationsApiFp(this.configuration).syncTerminal(syncTerminalDto, options).then((request) => request(this.axios, this.basePath));
34989
+ }
34655
34990
  }
34656
34991
 
34657
34992