@munchi_oy/core 1.8.5 → 1.9.0

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
@@ -3026,6 +3040,68 @@ export interface CreateInvoiceCompanyDto {
3026
3040
  */
3027
3041
  'address'?: string;
3028
3042
  }
3043
+ /**
3044
+ *
3045
+ * @export
3046
+ * @interface CreateLoyaltyProgramUserDto
3047
+ */
3048
+ export interface CreateLoyaltyProgramUserDto {
3049
+ /**
3050
+ *
3051
+ * @type {string}
3052
+ * @memberof CreateLoyaltyProgramUserDto
3053
+ */
3054
+ 'first_name': string;
3055
+ /**
3056
+ *
3057
+ * @type {string}
3058
+ * @memberof CreateLoyaltyProgramUserDto
3059
+ */
3060
+ 'last_name': string;
3061
+ /**
3062
+ *
3063
+ * @type {string}
3064
+ * @memberof CreateLoyaltyProgramUserDto
3065
+ */
3066
+ 'email': string;
3067
+ /**
3068
+ *
3069
+ * @type {string}
3070
+ * @memberof CreateLoyaltyProgramUserDto
3071
+ */
3072
+ 'country_code': string;
3073
+ /**
3074
+ *
3075
+ * @type {string}
3076
+ * @memberof CreateLoyaltyProgramUserDto
3077
+ */
3078
+ 'phone': string;
3079
+ /**
3080
+ *
3081
+ * @type {string}
3082
+ * @memberof CreateLoyaltyProgramUserDto
3083
+ */
3084
+ 'date_of_birth'?: string;
3085
+ }
3086
+ /**
3087
+ *
3088
+ * @export
3089
+ * @interface CreateLoyaltyProgramUserResponseDto
3090
+ */
3091
+ export interface CreateLoyaltyProgramUserResponseDto {
3092
+ /**
3093
+ *
3094
+ * @type {ProgramUserDto}
3095
+ * @memberof CreateLoyaltyProgramUserResponseDto
3096
+ */
3097
+ 'user': ProgramUserDto;
3098
+ /**
3099
+ *
3100
+ * @type {LoyaltyAccountDto}
3101
+ * @memberof CreateLoyaltyProgramUserResponseDto
3102
+ */
3103
+ 'loyaltyAccount': LoyaltyAccountDto;
3104
+ }
3029
3105
  /**
3030
3106
  *
3031
3107
  * @export
@@ -5339,6 +5415,167 @@ export interface ItemPriceDto {
5339
5415
  */
5340
5416
  'priceBreakdown': ItemPriceBreakdownDto;
5341
5417
  }
5418
+ /**
5419
+ *
5420
+ * @export
5421
+ * @enum {string}
5422
+ */
5423
+
5424
+ export const KDSEVENTNAME = {
5425
+ OrderCreated: 'order.created',
5426
+ OrderReady: 'order.ready',
5427
+ OrderReverted: 'order.reverted',
5428
+ OrderDeleted: 'order.deleted',
5429
+ PrintingOrder: 'printing.order'
5430
+ } as const;
5431
+
5432
+ export type KDSEVENTNAME = typeof KDSEVENTNAME[keyof typeof KDSEVENTNAME];
5433
+
5434
+
5435
+ /**
5436
+ *
5437
+ * @export
5438
+ * @interface KdsCoordinateDto
5439
+ */
5440
+ export interface KdsCoordinateDto {
5441
+ /**
5442
+ *
5443
+ * @type {string}
5444
+ * @memberof KdsCoordinateDto
5445
+ */
5446
+ 'id': string;
5447
+ /**
5448
+ *
5449
+ * @type {number}
5450
+ * @memberof KdsCoordinateDto
5451
+ */
5452
+ 'lat': number | null;
5453
+ /**
5454
+ *
5455
+ * @type {number}
5456
+ * @memberof KdsCoordinateDto
5457
+ */
5458
+ 'lon': number | null;
5459
+ }
5460
+ /**
5461
+ *
5462
+ * @export
5463
+ * @interface KdsCustomerDto
5464
+ */
5465
+ export interface KdsCustomerDto {
5466
+ /**
5467
+ *
5468
+ * @type {string}
5469
+ * @memberof KdsCustomerDto
5470
+ */
5471
+ 'id': string;
5472
+ /**
5473
+ *
5474
+ * @type {string}
5475
+ * @memberof KdsCustomerDto
5476
+ */
5477
+ 'name': string;
5478
+ /**
5479
+ *
5480
+ * @type {string}
5481
+ * @memberof KdsCustomerDto
5482
+ */
5483
+ 'phone': string | null;
5484
+ /**
5485
+ *
5486
+ * @type {string}
5487
+ * @memberof KdsCustomerDto
5488
+ */
5489
+ 'email': string | null;
5490
+ }
5491
+ /**
5492
+ *
5493
+ * @export
5494
+ * @interface KdsDeliveryDto
5495
+ */
5496
+ export interface KdsDeliveryDto {
5497
+ /**
5498
+ *
5499
+ * @type {string}
5500
+ * @memberof KdsDeliveryDto
5501
+ */
5502
+ 'id': string;
5503
+ /**
5504
+ *
5505
+ * @type {boolean}
5506
+ * @memberof KdsDeliveryDto
5507
+ */
5508
+ 'selfDelivery': boolean;
5509
+ /**
5510
+ *
5511
+ * @type {string}
5512
+ * @memberof KdsDeliveryDto
5513
+ */
5514
+ 'note': string | null;
5515
+ /**
5516
+ *
5517
+ * @type {DeliveryStatus}
5518
+ * @memberof KdsDeliveryDto
5519
+ */
5520
+ 'status': DeliveryStatus;
5521
+ /**
5522
+ *
5523
+ * @type {DeliveryType}
5524
+ * @memberof KdsDeliveryDto
5525
+ */
5526
+ 'type': DeliveryType;
5527
+ /**
5528
+ *
5529
+ * @type {number}
5530
+ * @memberof KdsDeliveryDto
5531
+ */
5532
+ 'deliveryFee': number;
5533
+ /**
5534
+ *
5535
+ * @type {KdsLocationDto}
5536
+ * @memberof KdsDeliveryDto
5537
+ */
5538
+ 'location': KdsLocationDto | null;
5539
+ }
5540
+
5541
+
5542
+ /**
5543
+ *
5544
+ * @export
5545
+ * @interface KdsLocationDto
5546
+ */
5547
+ export interface KdsLocationDto {
5548
+ /**
5549
+ *
5550
+ * @type {string}
5551
+ * @memberof KdsLocationDto
5552
+ */
5553
+ 'id': string;
5554
+ /**
5555
+ *
5556
+ * @type {string}
5557
+ * @memberof KdsLocationDto
5558
+ */
5559
+ 'formatted_address': string | null;
5560
+ /**
5561
+ *
5562
+ * @type {string}
5563
+ * @memberof KdsLocationDto
5564
+ */
5565
+ 'city': string | null;
5566
+ /**
5567
+ *
5568
+ * @type {string}
5569
+ * @memberof KdsLocationDto
5570
+ */
5571
+ 'country': string | null;
5572
+ /**
5573
+ *
5574
+ * @type {KdsCoordinateDto}
5575
+ * @memberof KdsLocationDto
5576
+ */
5577
+ 'coordinates': KdsCoordinateDto | null;
5578
+ }
5342
5579
  /**
5343
5580
  *
5344
5581
  * @export
@@ -5477,6 +5714,30 @@ export interface KdsOrderDto {
5477
5714
  * @memberof KdsOrderDto
5478
5715
  */
5479
5716
  'updatedAt': string;
5717
+ /**
5718
+ *
5719
+ * @type {KdsCustomerDto}
5720
+ * @memberof KdsOrderDto
5721
+ */
5722
+ 'customer': KdsCustomerDto | null;
5723
+ /**
5724
+ *
5725
+ * @type {KdsDeliveryDto}
5726
+ * @memberof KdsOrderDto
5727
+ */
5728
+ 'delivery': KdsDeliveryDto | null;
5729
+ /**
5730
+ *
5731
+ * @type {KdsPreorderDto}
5732
+ * @memberof KdsOrderDto
5733
+ */
5734
+ 'preorder': KdsPreorderDto | null;
5735
+ /**
5736
+ *
5737
+ * @type {KdsPriceSummaryDto}
5738
+ * @memberof KdsOrderDto
5739
+ */
5740
+ 'priceSummary': KdsPriceSummaryDto | null;
5480
5741
  /**
5481
5742
  *
5482
5743
  * @type {Array<KdsOrderItemDto>}
@@ -5788,6 +6049,73 @@ export interface KdsPaginationDto {
5788
6049
  */
5789
6050
  'hasPreviousPage': boolean;
5790
6051
  }
6052
+ /**
6053
+ *
6054
+ * @export
6055
+ * @interface KdsPreorderDto
6056
+ */
6057
+ export interface KdsPreorderDto {
6058
+ /**
6059
+ *
6060
+ * @type {string}
6061
+ * @memberof KdsPreorderDto
6062
+ */
6063
+ 'id': string;
6064
+ /**
6065
+ *
6066
+ * @type {PreorderStatus}
6067
+ * @memberof KdsPreorderDto
6068
+ */
6069
+ 'status': PreorderStatus;
6070
+ /**
6071
+ *
6072
+ * @type {string}
6073
+ * @memberof KdsPreorderDto
6074
+ */
6075
+ 'preorderTime': string;
6076
+ }
6077
+
6078
+
6079
+ /**
6080
+ *
6081
+ * @export
6082
+ * @interface KdsPriceSummaryDto
6083
+ */
6084
+ export interface KdsPriceSummaryDto {
6085
+ /**
6086
+ *
6087
+ * @type {string}
6088
+ * @memberof KdsPriceSummaryDto
6089
+ */
6090
+ 'id': string;
6091
+ /**
6092
+ *
6093
+ * @type {number}
6094
+ * @memberof KdsPriceSummaryDto
6095
+ */
6096
+ 'totalNet': number;
6097
+ }
6098
+ /**
6099
+ *
6100
+ * @export
6101
+ * @interface KdsPrintingEventDto
6102
+ */
6103
+ export interface KdsPrintingEventDto {
6104
+ /**
6105
+ *
6106
+ * @type {KDSEVENTNAME}
6107
+ * @memberof KdsPrintingEventDto
6108
+ */
6109
+ 'event': KDSEVENTNAME;
6110
+ /**
6111
+ *
6112
+ * @type {KdsOrderDto}
6113
+ * @memberof KdsPrintingEventDto
6114
+ */
6115
+ 'order': KdsOrderDto;
6116
+ }
6117
+
6118
+
5791
6119
  /**
5792
6120
  *
5793
6121
  * @export
@@ -6050,6 +6378,30 @@ export interface KdsReadyOrderResponseDtoOrder {
6050
6378
  * @memberof KdsReadyOrderResponseDtoOrder
6051
6379
  */
6052
6380
  'updatedAt': string;
6381
+ /**
6382
+ *
6383
+ * @type {KdsCustomerDto}
6384
+ * @memberof KdsReadyOrderResponseDtoOrder
6385
+ */
6386
+ 'customer': KdsCustomerDto | null;
6387
+ /**
6388
+ *
6389
+ * @type {KdsDeliveryDto}
6390
+ * @memberof KdsReadyOrderResponseDtoOrder
6391
+ */
6392
+ 'delivery': KdsDeliveryDto | null;
6393
+ /**
6394
+ *
6395
+ * @type {KdsPreorderDto}
6396
+ * @memberof KdsReadyOrderResponseDtoOrder
6397
+ */
6398
+ 'preorder': KdsPreorderDto | null;
6399
+ /**
6400
+ *
6401
+ * @type {KdsPriceSummaryDto}
6402
+ * @memberof KdsReadyOrderResponseDtoOrder
6403
+ */
6404
+ 'priceSummary': KdsPriceSummaryDto | null;
6053
6405
  /**
6054
6406
  *
6055
6407
  * @type {Array<KdsOrderItemDto>}
@@ -6222,6 +6574,30 @@ export interface KdsRevertOrderResponseDtoOrder {
6222
6574
  * @memberof KdsRevertOrderResponseDtoOrder
6223
6575
  */
6224
6576
  'updatedAt': string;
6577
+ /**
6578
+ *
6579
+ * @type {KdsCustomerDto}
6580
+ * @memberof KdsRevertOrderResponseDtoOrder
6581
+ */
6582
+ 'customer': KdsCustomerDto | null;
6583
+ /**
6584
+ *
6585
+ * @type {KdsDeliveryDto}
6586
+ * @memberof KdsRevertOrderResponseDtoOrder
6587
+ */
6588
+ 'delivery': KdsDeliveryDto | null;
6589
+ /**
6590
+ *
6591
+ * @type {KdsPreorderDto}
6592
+ * @memberof KdsRevertOrderResponseDtoOrder
6593
+ */
6594
+ 'preorder': KdsPreorderDto | null;
6595
+ /**
6596
+ *
6597
+ * @type {KdsPriceSummaryDto}
6598
+ * @memberof KdsRevertOrderResponseDtoOrder
6599
+ */
6600
+ 'priceSummary': KdsPriceSummaryDto | null;
6225
6601
  /**
6226
6602
  *
6227
6603
  * @type {Array<KdsOrderItemDto>}
@@ -14684,7 +15060,8 @@ export const SYNCKEY = {
14684
15060
  PosSession: 'POS_SESSION',
14685
15061
  InvoiceCompanies: 'INVOICE_COMPANIES',
14686
15062
  BusinessTax: 'BUSINESS_TAX',
14687
- Transaction: 'TRANSACTION'
15063
+ Transaction: 'TRANSACTION',
15064
+ DiscountsV2: 'DISCOUNTS_V2'
14688
15065
  } as const;
14689
15066
 
14690
15067
  export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
@@ -22320,11 +22697,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22320
22697
  /**
22321
22698
  *
22322
22699
  * @param {string} businessId
22323
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22700
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22324
22701
  * @param {*} [options] Override http request option.
22325
22702
  * @throws {RequiredError}
22326
22703
  */
22327
- getBusinessMenuByType: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22704
+ getBusinessMenuByType: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22328
22705
  // verify required parameter 'businessId' is not null or undefined
22329
22706
  assertParamExists('getBusinessMenuByType', 'businessId', businessId)
22330
22707
  // verify required parameter 'menuType' is not null or undefined
@@ -22362,11 +22739,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22362
22739
  *
22363
22740
  * @summary Get business menu by type V2
22364
22741
  * @param {string} businessId
22365
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22742
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22366
22743
  * @param {*} [options] Override http request option.
22367
22744
  * @throws {RequiredError}
22368
22745
  */
22369
- getBusinessMenuByTypeV2: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22746
+ getBusinessMenuByTypeV2: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22370
22747
  // verify required parameter 'businessId' is not null or undefined
22371
22748
  assertParamExists('getBusinessMenuByTypeV2', 'businessId', businessId)
22372
22749
  // verify required parameter 'menuType' is not null or undefined
@@ -22404,11 +22781,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22404
22781
  *
22405
22782
  * @summary Get business menu by type V3
22406
22783
  * @param {string} businessId
22407
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22784
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22408
22785
  * @param {*} [options] Override http request option.
22409
22786
  * @throws {RequiredError}
22410
22787
  */
22411
- getBusinessMenuByTypeV3: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22788
+ getBusinessMenuByTypeV3: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22412
22789
  // verify required parameter 'businessId' is not null or undefined
22413
22790
  assertParamExists('getBusinessMenuByTypeV3', 'businessId', businessId)
22414
22791
  // verify required parameter 'menuType' is not null or undefined
@@ -22446,11 +22823,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
22446
22823
  *
22447
22824
  * @summary Get business menu by type V4
22448
22825
  * @param {string} businessId
22449
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
22826
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
22450
22827
  * @param {*} [options] Override http request option.
22451
22828
  * @throws {RequiredError}
22452
22829
  */
22453
- getBusinessMenuByTypeV4: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22830
+ getBusinessMenuByTypeV4: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22454
22831
  // verify required parameter 'businessId' is not null or undefined
22455
22832
  assertParamExists('getBusinessMenuByTypeV4', 'businessId', businessId)
22456
22833
  // verify required parameter 'menuType' is not null or undefined
@@ -23029,11 +23406,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23029
23406
  /**
23030
23407
  *
23031
23408
  * @param {string} businessId
23032
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23409
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23033
23410
  * @param {*} [options] Override http request option.
23034
23411
  * @throws {RequiredError}
23035
23412
  */
23036
- async getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23413
+ async getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23037
23414
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByType(businessId, menuType, options);
23038
23415
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23039
23416
  },
@@ -23041,11 +23418,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23041
23418
  *
23042
23419
  * @summary Get business menu by type V2
23043
23420
  * @param {string} businessId
23044
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23421
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23045
23422
  * @param {*} [options] Override http request option.
23046
23423
  * @throws {RequiredError}
23047
23424
  */
23048
- async getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23425
+ async getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
23049
23426
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV2(businessId, menuType, options);
23050
23427
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23051
23428
  },
@@ -23053,11 +23430,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23053
23430
  *
23054
23431
  * @summary Get business menu by type V3
23055
23432
  * @param {string} businessId
23056
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23433
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23057
23434
  * @param {*} [options] Override http request option.
23058
23435
  * @throws {RequiredError}
23059
23436
  */
23060
- async getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23437
+ async getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23061
23438
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV3(businessId, menuType, options);
23062
23439
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23063
23440
  },
@@ -23065,11 +23442,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
23065
23442
  *
23066
23443
  * @summary Get business menu by type V4
23067
23444
  * @param {string} businessId
23068
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23445
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23069
23446
  * @param {*} [options] Override http request option.
23070
23447
  * @throws {RequiredError}
23071
23448
  */
23072
- async getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23449
+ async getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
23073
23450
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV4(businessId, menuType, options);
23074
23451
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23075
23452
  },
@@ -23309,44 +23686,44 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
23309
23686
  /**
23310
23687
  *
23311
23688
  * @param {string} businessId
23312
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23689
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23313
23690
  * @param {*} [options] Override http request option.
23314
23691
  * @throws {RequiredError}
23315
23692
  */
23316
- getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<Array<MenuDto>> {
23693
+ getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<Array<MenuDto>> {
23317
23694
  return localVarFp.getBusinessMenuByType(businessId, menuType, options).then((request) => request(axios, basePath));
23318
23695
  },
23319
23696
  /**
23320
23697
  *
23321
23698
  * @summary Get business menu by type V2
23322
23699
  * @param {string} businessId
23323
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23700
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23324
23701
  * @param {*} [options] Override http request option.
23325
23702
  * @throws {RequiredError}
23326
23703
  */
23327
- getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<Array<MenuDto>> {
23704
+ getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<Array<MenuDto>> {
23328
23705
  return localVarFp.getBusinessMenuByTypeV2(businessId, menuType, options).then((request) => request(axios, basePath));
23329
23706
  },
23330
23707
  /**
23331
23708
  *
23332
23709
  * @summary Get business menu by type V3
23333
23710
  * @param {string} businessId
23334
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23711
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23335
23712
  * @param {*} [options] Override http request option.
23336
23713
  * @throws {RequiredError}
23337
23714
  */
23338
- getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<MenuReponseDto> {
23715
+ getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<MenuReponseDto> {
23339
23716
  return localVarFp.getBusinessMenuByTypeV3(businessId, menuType, options).then((request) => request(axios, basePath));
23340
23717
  },
23341
23718
  /**
23342
23719
  *
23343
23720
  * @summary Get business menu by type V4
23344
23721
  * @param {string} businessId
23345
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23722
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23346
23723
  * @param {*} [options] Override http request option.
23347
23724
  * @throws {RequiredError}
23348
23725
  */
23349
- getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<MenuReponseDto> {
23726
+ getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<MenuReponseDto> {
23350
23727
  return localVarFp.getBusinessMenuByTypeV4(businessId, menuType, options).then((request) => request(axios, basePath));
23351
23728
  },
23352
23729
  /**
@@ -23574,45 +23951,45 @@ export interface BusinessApiInterface {
23574
23951
  /**
23575
23952
  *
23576
23953
  * @param {string} businessId
23577
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23954
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23578
23955
  * @param {*} [options] Override http request option.
23579
23956
  * @throws {RequiredError}
23580
23957
  * @memberof BusinessApiInterface
23581
23958
  */
23582
- getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23959
+ getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23583
23960
 
23584
23961
  /**
23585
23962
  *
23586
23963
  * @summary Get business menu by type V2
23587
23964
  * @param {string} businessId
23588
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23965
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23589
23966
  * @param {*} [options] Override http request option.
23590
23967
  * @throws {RequiredError}
23591
23968
  * @memberof BusinessApiInterface
23592
23969
  */
23593
- getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23970
+ getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
23594
23971
 
23595
23972
  /**
23596
23973
  *
23597
23974
  * @summary Get business menu by type V3
23598
23975
  * @param {string} businessId
23599
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23976
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23600
23977
  * @param {*} [options] Override http request option.
23601
23978
  * @throws {RequiredError}
23602
23979
  * @memberof BusinessApiInterface
23603
23980
  */
23604
- getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23981
+ getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23605
23982
 
23606
23983
  /**
23607
23984
  *
23608
23985
  * @summary Get business menu by type V4
23609
23986
  * @param {string} businessId
23610
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
23987
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23611
23988
  * @param {*} [options] Override http request option.
23612
23989
  * @throws {RequiredError}
23613
23990
  * @memberof BusinessApiInterface
23614
23991
  */
23615
- getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23992
+ getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
23616
23993
 
23617
23994
  /**
23618
23995
  *
@@ -23861,12 +24238,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23861
24238
  /**
23862
24239
  *
23863
24240
  * @param {string} businessId
23864
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24241
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23865
24242
  * @param {*} [options] Override http request option.
23866
24243
  * @throws {RequiredError}
23867
24244
  * @memberof BusinessApi
23868
24245
  */
23869
- public getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24246
+ public getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23870
24247
  return BusinessApiFp(this.configuration).getBusinessMenuByType(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23871
24248
  }
23872
24249
 
@@ -23874,12 +24251,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23874
24251
  *
23875
24252
  * @summary Get business menu by type V2
23876
24253
  * @param {string} businessId
23877
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24254
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23878
24255
  * @param {*} [options] Override http request option.
23879
24256
  * @throws {RequiredError}
23880
24257
  * @memberof BusinessApi
23881
24258
  */
23882
- public getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24259
+ public getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23883
24260
  return BusinessApiFp(this.configuration).getBusinessMenuByTypeV2(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23884
24261
  }
23885
24262
 
@@ -23887,12 +24264,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23887
24264
  *
23888
24265
  * @summary Get business menu by type V3
23889
24266
  * @param {string} businessId
23890
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24267
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23891
24268
  * @param {*} [options] Override http request option.
23892
24269
  * @throws {RequiredError}
23893
24270
  * @memberof BusinessApi
23894
24271
  */
23895
- public getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24272
+ public getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23896
24273
  return BusinessApiFp(this.configuration).getBusinessMenuByTypeV3(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23897
24274
  }
23898
24275
 
@@ -23900,12 +24277,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
23900
24277
  *
23901
24278
  * @summary Get business menu by type V4
23902
24279
  * @param {string} businessId
23903
- * @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
24280
+ * @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
23904
24281
  * @param {*} [options] Override http request option.
23905
24282
  * @throws {RequiredError}
23906
24283
  * @memberof BusinessApi
23907
24284
  */
23908
- public getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
24285
+ public getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
23909
24286
  return BusinessApiFp(this.configuration).getBusinessMenuByTypeV4(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
23910
24287
  }
23911
24288
 
@@ -28082,6 +28459,53 @@ export class KiosksApi extends BaseAPI implements KiosksApiInterface {
28082
28459
  */
28083
28460
  export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?: Configuration) {
28084
28461
  return {
28462
+ /**
28463
+ *
28464
+ * @summary Create loyalty user
28465
+ * @param {number} businessId
28466
+ * @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
28467
+ * @param {*} [options] Override http request option.
28468
+ * @throws {RequiredError}
28469
+ */
28470
+ createLoyaltyUser: async (businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28471
+ // verify required parameter 'businessId' is not null or undefined
28472
+ assertParamExists('createLoyaltyUser', 'businessId', businessId)
28473
+ // verify required parameter 'createLoyaltyProgramUserDto' is not null or undefined
28474
+ assertParamExists('createLoyaltyUser', 'createLoyaltyProgramUserDto', createLoyaltyProgramUserDto)
28475
+ const localVarPath = `/api/v1/loyalty/users/create`;
28476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28478
+ let baseOptions;
28479
+ if (configuration) {
28480
+ baseOptions = configuration.baseOptions;
28481
+ }
28482
+
28483
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28484
+ const localVarHeaderParameter = {} as any;
28485
+ const localVarQueryParameter = {} as any;
28486
+
28487
+ // authentication JWT-auth required
28488
+ // http bearer authentication required
28489
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28490
+
28491
+ if (businessId !== undefined) {
28492
+ localVarQueryParameter['businessId'] = businessId;
28493
+ }
28494
+
28495
+
28496
+
28497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28498
+
28499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28501
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28502
+ localVarRequestOptions.data = serializeDataIfNeeded(createLoyaltyProgramUserDto, localVarRequestOptions, configuration)
28503
+
28504
+ return {
28505
+ url: toPathString(localVarUrlObj),
28506
+ options: localVarRequestOptions,
28507
+ };
28508
+ },
28085
28509
  /**
28086
28510
  *
28087
28511
  * @summary Get admin transaction history
@@ -28335,6 +28759,18 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
28335
28759
  export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration) {
28336
28760
  const localVarAxiosParamCreator = LoyaltyIntegerationsApiAxiosParamCreator(configuration)
28337
28761
  return {
28762
+ /**
28763
+ *
28764
+ * @summary Create loyalty user
28765
+ * @param {number} businessId
28766
+ * @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
28767
+ * @param {*} [options] Override http request option.
28768
+ * @throws {RequiredError}
28769
+ */
28770
+ async createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLoyaltyProgramUserResponseDto>> {
28771
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createLoyaltyUser(businessId, createLoyaltyProgramUserDto, options);
28772
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28773
+ },
28338
28774
  /**
28339
28775
  *
28340
28776
  * @summary Get admin transaction history
@@ -28407,6 +28843,17 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
28407
28843
  export const LoyaltyIntegerationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28408
28844
  const localVarFp = LoyaltyIntegerationsApiFp(configuration)
28409
28845
  return {
28846
+ /**
28847
+ *
28848
+ * @summary Create loyalty user
28849
+ * @param {number} businessId
28850
+ * @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
28851
+ * @param {*} [options] Override http request option.
28852
+ * @throws {RequiredError}
28853
+ */
28854
+ createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: any): AxiosPromise<CreateLoyaltyProgramUserResponseDto> {
28855
+ return localVarFp.createLoyaltyUser(businessId, createLoyaltyProgramUserDto, options).then((request) => request(axios, basePath));
28856
+ },
28410
28857
  /**
28411
28858
  *
28412
28859
  * @summary Get admin transaction history
@@ -28473,6 +28920,17 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
28473
28920
  * @interface LoyaltyIntegerationsApi
28474
28921
  */
28475
28922
  export interface LoyaltyIntegerationsApiInterface {
28923
+ /**
28924
+ *
28925
+ * @summary Create loyalty user
28926
+ * @param {number} businessId
28927
+ * @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
28928
+ * @param {*} [options] Override http request option.
28929
+ * @throws {RequiredError}
28930
+ * @memberof LoyaltyIntegerationsApiInterface
28931
+ */
28932
+ createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): AxiosPromise<CreateLoyaltyProgramUserResponseDto>;
28933
+
28476
28934
  /**
28477
28935
  *
28478
28936
  * @summary Get admin transaction history
@@ -28539,6 +28997,19 @@ export interface LoyaltyIntegerationsApiInterface {
28539
28997
  * @extends {BaseAPI}
28540
28998
  */
28541
28999
  export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerationsApiInterface {
29000
+ /**
29001
+ *
29002
+ * @summary Create loyalty user
29003
+ * @param {number} businessId
29004
+ * @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
29005
+ * @param {*} [options] Override http request option.
29006
+ * @throws {RequiredError}
29007
+ * @memberof LoyaltyIntegerationsApi
29008
+ */
29009
+ public createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig) {
29010
+ return LoyaltyIntegerationsApiFp(this.configuration).createLoyaltyUser(businessId, createLoyaltyProgramUserDto, options).then((request) => request(this.axios, this.basePath));
29011
+ }
29012
+
28542
29013
  /**
28543
29014
  *
28544
29015
  * @summary Get admin transaction history