@munchi_oy/core 1.9.2 → 1.9.3
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 +2242 -363
- 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 +2501 -206
- package/package.json +13 -15
- package/src/version.ts +1 -1
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
|
|
@@ -956,6 +970,61 @@ export interface BusinessInfoResponseDtoLoyaltyPlan {
|
|
|
956
970
|
*/
|
|
957
971
|
'expire_after_minutes': number | null;
|
|
958
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* @export
|
|
976
|
+
* @interface BusinessInfoV2ResponseDto
|
|
977
|
+
*/
|
|
978
|
+
export interface BusinessInfoV2ResponseDto {
|
|
979
|
+
/**
|
|
980
|
+
* The ID of the business
|
|
981
|
+
* @type {number}
|
|
982
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
983
|
+
*/
|
|
984
|
+
'businessId': number;
|
|
985
|
+
/**
|
|
986
|
+
* The name of the business
|
|
987
|
+
* @type {string}
|
|
988
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
989
|
+
*/
|
|
990
|
+
'businessName': string;
|
|
991
|
+
/**
|
|
992
|
+
* The URL of the business logo
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
995
|
+
*/
|
|
996
|
+
'logoUrl': string | null;
|
|
997
|
+
/**
|
|
998
|
+
* The phone of the business
|
|
999
|
+
* @type {string}
|
|
1000
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
1001
|
+
*/
|
|
1002
|
+
'phone'?: string | null;
|
|
1003
|
+
/**
|
|
1004
|
+
*
|
|
1005
|
+
* @type {BusinessInfoResponseDtoLoyaltyPlan}
|
|
1006
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
1007
|
+
*/
|
|
1008
|
+
'loyaltyPlan': BusinessInfoResponseDtoLoyaltyPlan | null;
|
|
1009
|
+
/**
|
|
1010
|
+
*
|
|
1011
|
+
* @type {BusinessInfoResponseDtoDetail}
|
|
1012
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
1013
|
+
*/
|
|
1014
|
+
'detail': BusinessInfoResponseDtoDetail;
|
|
1015
|
+
/**
|
|
1016
|
+
* Email address of the business
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
1019
|
+
*/
|
|
1020
|
+
'businessEmail': string | null;
|
|
1021
|
+
/**
|
|
1022
|
+
* KDS profiles linked to the business
|
|
1023
|
+
* @type {Array<KdsProfileResponseDto>}
|
|
1024
|
+
* @memberof BusinessInfoV2ResponseDto
|
|
1025
|
+
*/
|
|
1026
|
+
'kdsProfiles': Array<KdsProfileResponseDto>;
|
|
1027
|
+
}
|
|
959
1028
|
/**
|
|
960
1029
|
*
|
|
961
1030
|
* @export
|
|
@@ -1085,6 +1154,25 @@ export interface BusinessPermissionResponseDto {
|
|
|
1085
1154
|
*/
|
|
1086
1155
|
'updatedAt': string;
|
|
1087
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* @export
|
|
1160
|
+
* @interface BusinessProvidersSupportedIntegrationsResponseDto
|
|
1161
|
+
*/
|
|
1162
|
+
export interface BusinessProvidersSupportedIntegrationsResponseDto {
|
|
1163
|
+
/**
|
|
1164
|
+
* Business ID
|
|
1165
|
+
* @type {number}
|
|
1166
|
+
* @memberof BusinessProvidersSupportedIntegrationsResponseDto
|
|
1167
|
+
*/
|
|
1168
|
+
'businessId': number;
|
|
1169
|
+
/**
|
|
1170
|
+
* Providers and their supported integrations for this business
|
|
1171
|
+
* @type {Array<ProviderSupportedIntegrationsDto>}
|
|
1172
|
+
* @memberof BusinessProvidersSupportedIntegrationsResponseDto
|
|
1173
|
+
*/
|
|
1174
|
+
'providers': Array<ProviderSupportedIntegrationsDto>;
|
|
1175
|
+
}
|
|
1088
1176
|
/**
|
|
1089
1177
|
*
|
|
1090
1178
|
* @export
|
|
@@ -2627,52 +2715,52 @@ export interface CompletedStepDto {
|
|
|
2627
2715
|
export interface ConditionPayloadDto {
|
|
2628
2716
|
/**
|
|
2629
2717
|
*
|
|
2630
|
-
* @type {
|
|
2718
|
+
* @type {string}
|
|
2631
2719
|
* @memberof ConditionPayloadDto
|
|
2632
2720
|
*/
|
|
2633
|
-
'startUtc'?:
|
|
2721
|
+
'startUtc'?: string | null;
|
|
2634
2722
|
/**
|
|
2635
2723
|
*
|
|
2636
|
-
* @type {
|
|
2724
|
+
* @type {string}
|
|
2637
2725
|
* @memberof ConditionPayloadDto
|
|
2638
2726
|
*/
|
|
2639
|
-
'endUtc'?:
|
|
2727
|
+
'endUtc'?: string | null;
|
|
2640
2728
|
/**
|
|
2641
2729
|
*
|
|
2642
|
-
* @type {
|
|
2730
|
+
* @type {Array<number>}
|
|
2643
2731
|
* @memberof ConditionPayloadDto
|
|
2644
2732
|
*/
|
|
2645
|
-
'days'?:
|
|
2733
|
+
'days'?: Array<number> | null;
|
|
2646
2734
|
/**
|
|
2647
2735
|
*
|
|
2648
|
-
* @type {
|
|
2736
|
+
* @type {string}
|
|
2649
2737
|
* @memberof ConditionPayloadDto
|
|
2650
2738
|
*/
|
|
2651
|
-
'from'?:
|
|
2739
|
+
'from'?: string | null;
|
|
2652
2740
|
/**
|
|
2653
2741
|
*
|
|
2654
|
-
* @type {
|
|
2742
|
+
* @type {string}
|
|
2655
2743
|
* @memberof ConditionPayloadDto
|
|
2656
2744
|
*/
|
|
2657
|
-
'to'?:
|
|
2745
|
+
'to'?: string | null;
|
|
2658
2746
|
/**
|
|
2659
2747
|
*
|
|
2660
|
-
* @type {
|
|
2748
|
+
* @type {number}
|
|
2661
2749
|
* @memberof ConditionPayloadDto
|
|
2662
2750
|
*/
|
|
2663
|
-
'minValue'?:
|
|
2751
|
+
'minValue'?: number | null;
|
|
2664
2752
|
/**
|
|
2665
2753
|
*
|
|
2666
|
-
* @type {
|
|
2754
|
+
* @type {number}
|
|
2667
2755
|
* @memberof ConditionPayloadDto
|
|
2668
2756
|
*/
|
|
2669
|
-
'maxValue'?:
|
|
2757
|
+
'maxValue'?: number | null;
|
|
2670
2758
|
/**
|
|
2671
2759
|
*
|
|
2672
|
-
* @type {
|
|
2760
|
+
* @type {Array<number>}
|
|
2673
2761
|
* @memberof ConditionPayloadDto
|
|
2674
2762
|
*/
|
|
2675
|
-
'productIds'?:
|
|
2763
|
+
'productIds'?: Array<number> | null;
|
|
2676
2764
|
}
|
|
2677
2765
|
/**
|
|
2678
2766
|
*
|
|
@@ -2879,6 +2967,21 @@ export interface ConnectTerminalDto {
|
|
|
2879
2967
|
*/
|
|
2880
2968
|
'terminalHardwareId': string;
|
|
2881
2969
|
}
|
|
2970
|
+
/**
|
|
2971
|
+
*
|
|
2972
|
+
* @export
|
|
2973
|
+
* @enum {string}
|
|
2974
|
+
*/
|
|
2975
|
+
|
|
2976
|
+
export const ConsumptionType = {
|
|
2977
|
+
Delivery: 'DELIVERY',
|
|
2978
|
+
Pickup: 'PICKUP',
|
|
2979
|
+
DineIn: 'DINE_IN'
|
|
2980
|
+
} as const;
|
|
2981
|
+
|
|
2982
|
+
export type ConsumptionType = typeof ConsumptionType[keyof typeof ConsumptionType];
|
|
2983
|
+
|
|
2984
|
+
|
|
2882
2985
|
/**
|
|
2883
2986
|
*
|
|
2884
2987
|
* @export
|
|
@@ -3009,6 +3112,68 @@ export interface CreateInvoiceCompanyDto {
|
|
|
3009
3112
|
*/
|
|
3010
3113
|
'address'?: string;
|
|
3011
3114
|
}
|
|
3115
|
+
/**
|
|
3116
|
+
*
|
|
3117
|
+
* @export
|
|
3118
|
+
* @interface CreateLoyaltyProgramUserDto
|
|
3119
|
+
*/
|
|
3120
|
+
export interface CreateLoyaltyProgramUserDto {
|
|
3121
|
+
/**
|
|
3122
|
+
*
|
|
3123
|
+
* @type {string}
|
|
3124
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
3125
|
+
*/
|
|
3126
|
+
'first_name': string;
|
|
3127
|
+
/**
|
|
3128
|
+
*
|
|
3129
|
+
* @type {string}
|
|
3130
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
3131
|
+
*/
|
|
3132
|
+
'last_name': string;
|
|
3133
|
+
/**
|
|
3134
|
+
*
|
|
3135
|
+
* @type {string}
|
|
3136
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
3137
|
+
*/
|
|
3138
|
+
'email': string;
|
|
3139
|
+
/**
|
|
3140
|
+
*
|
|
3141
|
+
* @type {string}
|
|
3142
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
3143
|
+
*/
|
|
3144
|
+
'country_code': string;
|
|
3145
|
+
/**
|
|
3146
|
+
*
|
|
3147
|
+
* @type {string}
|
|
3148
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
3149
|
+
*/
|
|
3150
|
+
'phone': string;
|
|
3151
|
+
/**
|
|
3152
|
+
*
|
|
3153
|
+
* @type {string}
|
|
3154
|
+
* @memberof CreateLoyaltyProgramUserDto
|
|
3155
|
+
*/
|
|
3156
|
+
'date_of_birth'?: string;
|
|
3157
|
+
}
|
|
3158
|
+
/**
|
|
3159
|
+
*
|
|
3160
|
+
* @export
|
|
3161
|
+
* @interface CreateLoyaltyProgramUserResponseDto
|
|
3162
|
+
*/
|
|
3163
|
+
export interface CreateLoyaltyProgramUserResponseDto {
|
|
3164
|
+
/**
|
|
3165
|
+
*
|
|
3166
|
+
* @type {ProgramUserDto}
|
|
3167
|
+
* @memberof CreateLoyaltyProgramUserResponseDto
|
|
3168
|
+
*/
|
|
3169
|
+
'user': ProgramUserDto;
|
|
3170
|
+
/**
|
|
3171
|
+
*
|
|
3172
|
+
* @type {LoyaltyAccountDto}
|
|
3173
|
+
* @memberof CreateLoyaltyProgramUserResponseDto
|
|
3174
|
+
*/
|
|
3175
|
+
'loyaltyAccount': LoyaltyAccountDto;
|
|
3176
|
+
}
|
|
3012
3177
|
/**
|
|
3013
3178
|
*
|
|
3014
3179
|
* @export
|
|
@@ -3685,10 +3850,10 @@ export interface DiscountDto {
|
|
|
3685
3850
|
'available'?: boolean;
|
|
3686
3851
|
/**
|
|
3687
3852
|
*
|
|
3688
|
-
* @type {
|
|
3853
|
+
* @type {ProviderEnum}
|
|
3689
3854
|
* @memberof DiscountDto
|
|
3690
3855
|
*/
|
|
3691
|
-
'channel'?:
|
|
3856
|
+
'channel'?: ProviderEnum | null;
|
|
3692
3857
|
/**
|
|
3693
3858
|
*
|
|
3694
3859
|
* @type {boolean}
|
|
@@ -3697,22 +3862,16 @@ export interface DiscountDto {
|
|
|
3697
3862
|
'isAutomatic': boolean;
|
|
3698
3863
|
/**
|
|
3699
3864
|
*
|
|
3700
|
-
* @type {
|
|
3865
|
+
* @type {number}
|
|
3701
3866
|
* @memberof DiscountDto
|
|
3702
3867
|
*/
|
|
3703
|
-
'maxUsesPerOrder'?:
|
|
3868
|
+
'maxUsesPerOrder'?: number | null;
|
|
3704
3869
|
/**
|
|
3705
3870
|
*
|
|
3706
3871
|
* @type {number}
|
|
3707
3872
|
* @memberof DiscountDto
|
|
3708
3873
|
*/
|
|
3709
3874
|
'priority': number;
|
|
3710
|
-
/**
|
|
3711
|
-
*
|
|
3712
|
-
* @type {boolean}
|
|
3713
|
-
* @memberof DiscountDto
|
|
3714
|
-
*/
|
|
3715
|
-
'enabled': boolean;
|
|
3716
3875
|
/**
|
|
3717
3876
|
*
|
|
3718
3877
|
* @type {Array<DiscountRuleDto>}
|
|
@@ -4984,6 +5143,12 @@ export interface GetStationResponseDtoStation {
|
|
|
4984
5143
|
* @memberof GetStationResponseDtoStation
|
|
4985
5144
|
*/
|
|
4986
5145
|
'prefix': string;
|
|
5146
|
+
/**
|
|
5147
|
+
*
|
|
5148
|
+
* @type {object}
|
|
5149
|
+
* @memberof GetStationResponseDtoStation
|
|
5150
|
+
*/
|
|
5151
|
+
'settings'?: object;
|
|
4987
5152
|
/**
|
|
4988
5153
|
*
|
|
4989
5154
|
* @type {object}
|
|
@@ -5425,6 +5590,1198 @@ export interface ItemPriceDto {
|
|
|
5425
5590
|
*/
|
|
5426
5591
|
'priceBreakdown': ItemPriceBreakdownDto;
|
|
5427
5592
|
}
|
|
5593
|
+
/**
|
|
5594
|
+
*
|
|
5595
|
+
* @export
|
|
5596
|
+
* @enum {string}
|
|
5597
|
+
*/
|
|
5598
|
+
|
|
5599
|
+
export const KDSEVENTNAME = {
|
|
5600
|
+
OrderCreated: 'order.created',
|
|
5601
|
+
OrderReady: 'order.ready',
|
|
5602
|
+
OrderReverted: 'order.reverted',
|
|
5603
|
+
OrderDeleted: 'order.deleted',
|
|
5604
|
+
PrintingOrder: 'printing.order'
|
|
5605
|
+
} as const;
|
|
5606
|
+
|
|
5607
|
+
export type KDSEVENTNAME = typeof KDSEVENTNAME[keyof typeof KDSEVENTNAME];
|
|
5608
|
+
|
|
5609
|
+
|
|
5610
|
+
/**
|
|
5611
|
+
*
|
|
5612
|
+
* @export
|
|
5613
|
+
* @interface KdsCoordinateDto
|
|
5614
|
+
*/
|
|
5615
|
+
export interface KdsCoordinateDto {
|
|
5616
|
+
/**
|
|
5617
|
+
*
|
|
5618
|
+
* @type {string}
|
|
5619
|
+
* @memberof KdsCoordinateDto
|
|
5620
|
+
*/
|
|
5621
|
+
'id': string;
|
|
5622
|
+
/**
|
|
5623
|
+
*
|
|
5624
|
+
* @type {number}
|
|
5625
|
+
* @memberof KdsCoordinateDto
|
|
5626
|
+
*/
|
|
5627
|
+
'lat': number | null;
|
|
5628
|
+
/**
|
|
5629
|
+
*
|
|
5630
|
+
* @type {number}
|
|
5631
|
+
* @memberof KdsCoordinateDto
|
|
5632
|
+
*/
|
|
5633
|
+
'lon': number | null;
|
|
5634
|
+
}
|
|
5635
|
+
/**
|
|
5636
|
+
*
|
|
5637
|
+
* @export
|
|
5638
|
+
* @interface KdsCustomerDto
|
|
5639
|
+
*/
|
|
5640
|
+
export interface KdsCustomerDto {
|
|
5641
|
+
/**
|
|
5642
|
+
*
|
|
5643
|
+
* @type {string}
|
|
5644
|
+
* @memberof KdsCustomerDto
|
|
5645
|
+
*/
|
|
5646
|
+
'id': string;
|
|
5647
|
+
/**
|
|
5648
|
+
*
|
|
5649
|
+
* @type {string}
|
|
5650
|
+
* @memberof KdsCustomerDto
|
|
5651
|
+
*/
|
|
5652
|
+
'name': string;
|
|
5653
|
+
/**
|
|
5654
|
+
*
|
|
5655
|
+
* @type {string}
|
|
5656
|
+
* @memberof KdsCustomerDto
|
|
5657
|
+
*/
|
|
5658
|
+
'phone': string | null;
|
|
5659
|
+
/**
|
|
5660
|
+
*
|
|
5661
|
+
* @type {string}
|
|
5662
|
+
* @memberof KdsCustomerDto
|
|
5663
|
+
*/
|
|
5664
|
+
'email': string | null;
|
|
5665
|
+
}
|
|
5666
|
+
/**
|
|
5667
|
+
*
|
|
5668
|
+
* @export
|
|
5669
|
+
* @interface KdsDeliveryDto
|
|
5670
|
+
*/
|
|
5671
|
+
export interface KdsDeliveryDto {
|
|
5672
|
+
/**
|
|
5673
|
+
*
|
|
5674
|
+
* @type {string}
|
|
5675
|
+
* @memberof KdsDeliveryDto
|
|
5676
|
+
*/
|
|
5677
|
+
'id': string;
|
|
5678
|
+
/**
|
|
5679
|
+
*
|
|
5680
|
+
* @type {boolean}
|
|
5681
|
+
* @memberof KdsDeliveryDto
|
|
5682
|
+
*/
|
|
5683
|
+
'selfDelivery': boolean;
|
|
5684
|
+
/**
|
|
5685
|
+
*
|
|
5686
|
+
* @type {string}
|
|
5687
|
+
* @memberof KdsDeliveryDto
|
|
5688
|
+
*/
|
|
5689
|
+
'note': string | null;
|
|
5690
|
+
/**
|
|
5691
|
+
*
|
|
5692
|
+
* @type {DeliveryStatus}
|
|
5693
|
+
* @memberof KdsDeliveryDto
|
|
5694
|
+
*/
|
|
5695
|
+
'status': DeliveryStatus;
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @type {DeliveryType}
|
|
5699
|
+
* @memberof KdsDeliveryDto
|
|
5700
|
+
*/
|
|
5701
|
+
'type': DeliveryType;
|
|
5702
|
+
/**
|
|
5703
|
+
*
|
|
5704
|
+
* @type {number}
|
|
5705
|
+
* @memberof KdsDeliveryDto
|
|
5706
|
+
*/
|
|
5707
|
+
'deliveryFee': number;
|
|
5708
|
+
/**
|
|
5709
|
+
*
|
|
5710
|
+
* @type {KdsLocationDto}
|
|
5711
|
+
* @memberof KdsDeliveryDto
|
|
5712
|
+
*/
|
|
5713
|
+
'location': KdsLocationDto | null;
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5716
|
+
|
|
5717
|
+
/**
|
|
5718
|
+
*
|
|
5719
|
+
* @export
|
|
5720
|
+
* @interface KdsLocationDto
|
|
5721
|
+
*/
|
|
5722
|
+
export interface KdsLocationDto {
|
|
5723
|
+
/**
|
|
5724
|
+
*
|
|
5725
|
+
* @type {string}
|
|
5726
|
+
* @memberof KdsLocationDto
|
|
5727
|
+
*/
|
|
5728
|
+
'id': string;
|
|
5729
|
+
/**
|
|
5730
|
+
*
|
|
5731
|
+
* @type {string}
|
|
5732
|
+
* @memberof KdsLocationDto
|
|
5733
|
+
*/
|
|
5734
|
+
'formatted_address': string | null;
|
|
5735
|
+
/**
|
|
5736
|
+
*
|
|
5737
|
+
* @type {string}
|
|
5738
|
+
* @memberof KdsLocationDto
|
|
5739
|
+
*/
|
|
5740
|
+
'city': string | null;
|
|
5741
|
+
/**
|
|
5742
|
+
*
|
|
5743
|
+
* @type {string}
|
|
5744
|
+
* @memberof KdsLocationDto
|
|
5745
|
+
*/
|
|
5746
|
+
'country': string | null;
|
|
5747
|
+
/**
|
|
5748
|
+
*
|
|
5749
|
+
* @type {KdsCoordinateDto}
|
|
5750
|
+
* @memberof KdsLocationDto
|
|
5751
|
+
*/
|
|
5752
|
+
'coordinates': KdsCoordinateDto | null;
|
|
5753
|
+
}
|
|
5754
|
+
/**
|
|
5755
|
+
*
|
|
5756
|
+
* @export
|
|
5757
|
+
* @interface KdsOrderDto
|
|
5758
|
+
*/
|
|
5759
|
+
export interface KdsOrderDto {
|
|
5760
|
+
/**
|
|
5761
|
+
*
|
|
5762
|
+
* @type {string}
|
|
5763
|
+
* @memberof KdsOrderDto
|
|
5764
|
+
*/
|
|
5765
|
+
'id': string;
|
|
5766
|
+
/**
|
|
5767
|
+
*
|
|
5768
|
+
* @type {string}
|
|
5769
|
+
* @memberof KdsOrderDto
|
|
5770
|
+
*/
|
|
5771
|
+
'parentOrderId': string;
|
|
5772
|
+
/**
|
|
5773
|
+
*
|
|
5774
|
+
* @type {number}
|
|
5775
|
+
* @memberof KdsOrderDto
|
|
5776
|
+
*/
|
|
5777
|
+
'businessId': number;
|
|
5778
|
+
/**
|
|
5779
|
+
*
|
|
5780
|
+
* @type {string}
|
|
5781
|
+
* @memberof KdsOrderDto
|
|
5782
|
+
*/
|
|
5783
|
+
'profileId': string;
|
|
5784
|
+
/**
|
|
5785
|
+
*
|
|
5786
|
+
* @type {string}
|
|
5787
|
+
* @memberof KdsOrderDto
|
|
5788
|
+
*/
|
|
5789
|
+
'profileName': string;
|
|
5790
|
+
/**
|
|
5791
|
+
*
|
|
5792
|
+
* @type {ProviderEnum}
|
|
5793
|
+
* @memberof KdsOrderDto
|
|
5794
|
+
*/
|
|
5795
|
+
'provider': ProviderEnum;
|
|
5796
|
+
/**
|
|
5797
|
+
*
|
|
5798
|
+
* @type {string}
|
|
5799
|
+
* @memberof KdsOrderDto
|
|
5800
|
+
*/
|
|
5801
|
+
'orderNumber': string;
|
|
5802
|
+
/**
|
|
5803
|
+
*
|
|
5804
|
+
* @type {string}
|
|
5805
|
+
* @memberof KdsOrderDto
|
|
5806
|
+
*/
|
|
5807
|
+
'comment': string | null;
|
|
5808
|
+
/**
|
|
5809
|
+
*
|
|
5810
|
+
* @type {number}
|
|
5811
|
+
* @memberof KdsOrderDto
|
|
5812
|
+
*/
|
|
5813
|
+
'preparedIn': number | null;
|
|
5814
|
+
/**
|
|
5815
|
+
*
|
|
5816
|
+
* @type {string}
|
|
5817
|
+
* @memberof KdsOrderDto
|
|
5818
|
+
*/
|
|
5819
|
+
'spotNumber': string | null;
|
|
5820
|
+
/**
|
|
5821
|
+
*
|
|
5822
|
+
* @type {string}
|
|
5823
|
+
* @memberof KdsOrderDto
|
|
5824
|
+
*/
|
|
5825
|
+
'acceptedAt': string | null;
|
|
5826
|
+
/**
|
|
5827
|
+
*
|
|
5828
|
+
* @type {string}
|
|
5829
|
+
* @memberof KdsOrderDto
|
|
5830
|
+
*/
|
|
5831
|
+
'pickupEta': string | null;
|
|
5832
|
+
/**
|
|
5833
|
+
*
|
|
5834
|
+
* @type {string}
|
|
5835
|
+
* @memberof KdsOrderDto
|
|
5836
|
+
*/
|
|
5837
|
+
'deliveryEta': string | null;
|
|
5838
|
+
/**
|
|
5839
|
+
*
|
|
5840
|
+
* @type {ConsumptionType}
|
|
5841
|
+
* @memberof KdsOrderDto
|
|
5842
|
+
*/
|
|
5843
|
+
'consumptionType': ConsumptionType;
|
|
5844
|
+
/**
|
|
5845
|
+
*
|
|
5846
|
+
* @type {string}
|
|
5847
|
+
* @memberof KdsOrderDto
|
|
5848
|
+
*/
|
|
5849
|
+
'orderCreatedAt': string;
|
|
5850
|
+
/**
|
|
5851
|
+
*
|
|
5852
|
+
* @type {string}
|
|
5853
|
+
* @memberof KdsOrderDto
|
|
5854
|
+
*/
|
|
5855
|
+
'orderUpdatedAt': string;
|
|
5856
|
+
/**
|
|
5857
|
+
*
|
|
5858
|
+
* @type {OrderType}
|
|
5859
|
+
* @memberof KdsOrderDto
|
|
5860
|
+
*/
|
|
5861
|
+
'type': OrderType;
|
|
5862
|
+
/**
|
|
5863
|
+
*
|
|
5864
|
+
* @type {OrderMode}
|
|
5865
|
+
* @memberof KdsOrderDto
|
|
5866
|
+
*/
|
|
5867
|
+
'orderMode': OrderMode;
|
|
5868
|
+
/**
|
|
5869
|
+
*
|
|
5870
|
+
* @type {SourceType}
|
|
5871
|
+
* @memberof KdsOrderDto
|
|
5872
|
+
*/
|
|
5873
|
+
'sourceType': SourceType;
|
|
5874
|
+
/**
|
|
5875
|
+
*
|
|
5876
|
+
* @type {OrderStatus}
|
|
5877
|
+
* @memberof KdsOrderDto
|
|
5878
|
+
*/
|
|
5879
|
+
'status': OrderStatus;
|
|
5880
|
+
/**
|
|
5881
|
+
*
|
|
5882
|
+
* @type {string}
|
|
5883
|
+
* @memberof KdsOrderDto
|
|
5884
|
+
*/
|
|
5885
|
+
'createdAt': string;
|
|
5886
|
+
/**
|
|
5887
|
+
*
|
|
5888
|
+
* @type {string}
|
|
5889
|
+
* @memberof KdsOrderDto
|
|
5890
|
+
*/
|
|
5891
|
+
'updatedAt': string;
|
|
5892
|
+
/**
|
|
5893
|
+
*
|
|
5894
|
+
* @type {KdsCustomerDto}
|
|
5895
|
+
* @memberof KdsOrderDto
|
|
5896
|
+
*/
|
|
5897
|
+
'customer': KdsCustomerDto | null;
|
|
5898
|
+
/**
|
|
5899
|
+
*
|
|
5900
|
+
* @type {KdsDeliveryDto}
|
|
5901
|
+
* @memberof KdsOrderDto
|
|
5902
|
+
*/
|
|
5903
|
+
'delivery': KdsDeliveryDto | null;
|
|
5904
|
+
/**
|
|
5905
|
+
*
|
|
5906
|
+
* @type {KdsPreorderDto}
|
|
5907
|
+
* @memberof KdsOrderDto
|
|
5908
|
+
*/
|
|
5909
|
+
'preorder': KdsPreorderDto | null;
|
|
5910
|
+
/**
|
|
5911
|
+
*
|
|
5912
|
+
* @type {KdsPriceSummaryDto}
|
|
5913
|
+
* @memberof KdsOrderDto
|
|
5914
|
+
*/
|
|
5915
|
+
'priceSummary': KdsPriceSummaryDto | null;
|
|
5916
|
+
/**
|
|
5917
|
+
*
|
|
5918
|
+
* @type {Array<KdsOrderItemDto>}
|
|
5919
|
+
* @memberof KdsOrderDto
|
|
5920
|
+
*/
|
|
5921
|
+
'items': Array<KdsOrderItemDto>;
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5924
|
+
|
|
5925
|
+
/**
|
|
5926
|
+
*
|
|
5927
|
+
* @export
|
|
5928
|
+
* @interface KdsOrderItemDto
|
|
5929
|
+
*/
|
|
5930
|
+
export interface KdsOrderItemDto {
|
|
5931
|
+
/**
|
|
5932
|
+
*
|
|
5933
|
+
* @type {string}
|
|
5934
|
+
* @memberof KdsOrderItemDto
|
|
5935
|
+
*/
|
|
5936
|
+
'id': string;
|
|
5937
|
+
/**
|
|
5938
|
+
*
|
|
5939
|
+
* @type {string}
|
|
5940
|
+
* @memberof KdsOrderItemDto
|
|
5941
|
+
*/
|
|
5942
|
+
'orderId': string;
|
|
5943
|
+
/**
|
|
5944
|
+
*
|
|
5945
|
+
* @type {string}
|
|
5946
|
+
* @memberof KdsOrderItemDto
|
|
5947
|
+
*/
|
|
5948
|
+
'externalProductId': string;
|
|
5949
|
+
/**
|
|
5950
|
+
*
|
|
5951
|
+
* @type {string}
|
|
5952
|
+
* @memberof KdsOrderItemDto
|
|
5953
|
+
*/
|
|
5954
|
+
'name': string;
|
|
5955
|
+
/**
|
|
5956
|
+
*
|
|
5957
|
+
* @type {number}
|
|
5958
|
+
* @memberof KdsOrderItemDto
|
|
5959
|
+
*/
|
|
5960
|
+
'quantity': number;
|
|
5961
|
+
/**
|
|
5962
|
+
*
|
|
5963
|
+
* @type {number}
|
|
5964
|
+
* @memberof KdsOrderItemDto
|
|
5965
|
+
*/
|
|
5966
|
+
'unitPrice': number;
|
|
5967
|
+
/**
|
|
5968
|
+
*
|
|
5969
|
+
* @type {number}
|
|
5970
|
+
* @memberof KdsOrderItemDto
|
|
5971
|
+
*/
|
|
5972
|
+
'paidPrice': number;
|
|
5973
|
+
/**
|
|
5974
|
+
*
|
|
5975
|
+
* @type {string}
|
|
5976
|
+
* @memberof KdsOrderItemDto
|
|
5977
|
+
*/
|
|
5978
|
+
'comment': string | null;
|
|
5979
|
+
/**
|
|
5980
|
+
*
|
|
5981
|
+
* @type {KitchenItemStatus}
|
|
5982
|
+
* @memberof KdsOrderItemDto
|
|
5983
|
+
*/
|
|
5984
|
+
'kitchenStatus': KitchenItemStatus;
|
|
5985
|
+
/**
|
|
5986
|
+
*
|
|
5987
|
+
* @type {string}
|
|
5988
|
+
* @memberof KdsOrderItemDto
|
|
5989
|
+
*/
|
|
5990
|
+
'createdAt': string;
|
|
5991
|
+
/**
|
|
5992
|
+
*
|
|
5993
|
+
* @type {string}
|
|
5994
|
+
* @memberof KdsOrderItemDto
|
|
5995
|
+
*/
|
|
5996
|
+
'updatedAt': string;
|
|
5997
|
+
/**
|
|
5998
|
+
*
|
|
5999
|
+
* @type {Array<KdsOrderOptionDto>}
|
|
6000
|
+
* @memberof KdsOrderItemDto
|
|
6001
|
+
*/
|
|
6002
|
+
'options': Array<KdsOrderOptionDto>;
|
|
6003
|
+
}
|
|
6004
|
+
|
|
6005
|
+
|
|
6006
|
+
/**
|
|
6007
|
+
*
|
|
6008
|
+
* @export
|
|
6009
|
+
* @interface KdsOrderListResponseDto
|
|
6010
|
+
*/
|
|
6011
|
+
export interface KdsOrderListResponseDto {
|
|
6012
|
+
/**
|
|
6013
|
+
* KDS orders
|
|
6014
|
+
* @type {Array<KdsOrderDto>}
|
|
6015
|
+
* @memberof KdsOrderListResponseDto
|
|
6016
|
+
*/
|
|
6017
|
+
'orders': Array<KdsOrderDto>;
|
|
6018
|
+
/**
|
|
6019
|
+
*
|
|
6020
|
+
* @type {KdsOrderListResponseDtoPagination}
|
|
6021
|
+
* @memberof KdsOrderListResponseDto
|
|
6022
|
+
*/
|
|
6023
|
+
'pagination': KdsOrderListResponseDtoPagination;
|
|
6024
|
+
}
|
|
6025
|
+
/**
|
|
6026
|
+
* Pagination details
|
|
6027
|
+
* @export
|
|
6028
|
+
* @interface KdsOrderListResponseDtoPagination
|
|
6029
|
+
*/
|
|
6030
|
+
export interface KdsOrderListResponseDtoPagination {
|
|
6031
|
+
/**
|
|
6032
|
+
*
|
|
6033
|
+
* @type {number}
|
|
6034
|
+
* @memberof KdsOrderListResponseDtoPagination
|
|
6035
|
+
*/
|
|
6036
|
+
'page': number;
|
|
6037
|
+
/**
|
|
6038
|
+
*
|
|
6039
|
+
* @type {number}
|
|
6040
|
+
* @memberof KdsOrderListResponseDtoPagination
|
|
6041
|
+
*/
|
|
6042
|
+
'rowPerPage': number;
|
|
6043
|
+
/**
|
|
6044
|
+
*
|
|
6045
|
+
* @type {number}
|
|
6046
|
+
* @memberof KdsOrderListResponseDtoPagination
|
|
6047
|
+
*/
|
|
6048
|
+
'totalPages': number;
|
|
6049
|
+
/**
|
|
6050
|
+
*
|
|
6051
|
+
* @type {number}
|
|
6052
|
+
* @memberof KdsOrderListResponseDtoPagination
|
|
6053
|
+
*/
|
|
6054
|
+
'totalItems': number;
|
|
6055
|
+
/**
|
|
6056
|
+
*
|
|
6057
|
+
* @type {boolean}
|
|
6058
|
+
* @memberof KdsOrderListResponseDtoPagination
|
|
6059
|
+
*/
|
|
6060
|
+
'hasNextPage': boolean;
|
|
6061
|
+
/**
|
|
6062
|
+
*
|
|
6063
|
+
* @type {boolean}
|
|
6064
|
+
* @memberof KdsOrderListResponseDtoPagination
|
|
6065
|
+
*/
|
|
6066
|
+
'hasPreviousPage': boolean;
|
|
6067
|
+
}
|
|
6068
|
+
/**
|
|
6069
|
+
*
|
|
6070
|
+
* @export
|
|
6071
|
+
* @interface KdsOrderOptionDto
|
|
6072
|
+
*/
|
|
6073
|
+
export interface KdsOrderOptionDto {
|
|
6074
|
+
/**
|
|
6075
|
+
*
|
|
6076
|
+
* @type {string}
|
|
6077
|
+
* @memberof KdsOrderOptionDto
|
|
6078
|
+
*/
|
|
6079
|
+
'id': string;
|
|
6080
|
+
/**
|
|
6081
|
+
*
|
|
6082
|
+
* @type {string}
|
|
6083
|
+
* @memberof KdsOrderOptionDto
|
|
6084
|
+
*/
|
|
6085
|
+
'orderItemId': string;
|
|
6086
|
+
/**
|
|
6087
|
+
*
|
|
6088
|
+
* @type {string}
|
|
6089
|
+
* @memberof KdsOrderOptionDto
|
|
6090
|
+
*/
|
|
6091
|
+
'externalId': string;
|
|
6092
|
+
/**
|
|
6093
|
+
*
|
|
6094
|
+
* @type {string}
|
|
6095
|
+
* @memberof KdsOrderOptionDto
|
|
6096
|
+
*/
|
|
6097
|
+
'name': string;
|
|
6098
|
+
/**
|
|
6099
|
+
*
|
|
6100
|
+
* @type {string}
|
|
6101
|
+
* @memberof KdsOrderOptionDto
|
|
6102
|
+
*/
|
|
6103
|
+
'image': string | null;
|
|
6104
|
+
/**
|
|
6105
|
+
*
|
|
6106
|
+
* @type {string}
|
|
6107
|
+
* @memberof KdsOrderOptionDto
|
|
6108
|
+
*/
|
|
6109
|
+
'createdAt': string;
|
|
6110
|
+
/**
|
|
6111
|
+
*
|
|
6112
|
+
* @type {string}
|
|
6113
|
+
* @memberof KdsOrderOptionDto
|
|
6114
|
+
*/
|
|
6115
|
+
'updatedAt': string;
|
|
6116
|
+
/**
|
|
6117
|
+
*
|
|
6118
|
+
* @type {Array<KdsOrderSubOptionDto>}
|
|
6119
|
+
* @memberof KdsOrderOptionDto
|
|
6120
|
+
*/
|
|
6121
|
+
'subOptions': Array<KdsOrderSubOptionDto>;
|
|
6122
|
+
}
|
|
6123
|
+
/**
|
|
6124
|
+
*
|
|
6125
|
+
* @export
|
|
6126
|
+
* @interface KdsOrderSubOptionDto
|
|
6127
|
+
*/
|
|
6128
|
+
export interface KdsOrderSubOptionDto {
|
|
6129
|
+
/**
|
|
6130
|
+
*
|
|
6131
|
+
* @type {string}
|
|
6132
|
+
* @memberof KdsOrderSubOptionDto
|
|
6133
|
+
*/
|
|
6134
|
+
'id': string;
|
|
6135
|
+
/**
|
|
6136
|
+
*
|
|
6137
|
+
* @type {string}
|
|
6138
|
+
* @memberof KdsOrderSubOptionDto
|
|
6139
|
+
*/
|
|
6140
|
+
'orderOptionId': string;
|
|
6141
|
+
/**
|
|
6142
|
+
*
|
|
6143
|
+
* @type {string}
|
|
6144
|
+
* @memberof KdsOrderSubOptionDto
|
|
6145
|
+
*/
|
|
6146
|
+
'externalId': string;
|
|
6147
|
+
/**
|
|
6148
|
+
*
|
|
6149
|
+
* @type {string}
|
|
6150
|
+
* @memberof KdsOrderSubOptionDto
|
|
6151
|
+
*/
|
|
6152
|
+
'name': string;
|
|
6153
|
+
/**
|
|
6154
|
+
*
|
|
6155
|
+
* @type {number}
|
|
6156
|
+
* @memberof KdsOrderSubOptionDto
|
|
6157
|
+
*/
|
|
6158
|
+
'quantity': number;
|
|
6159
|
+
/**
|
|
6160
|
+
*
|
|
6161
|
+
* @type {number}
|
|
6162
|
+
* @memberof KdsOrderSubOptionDto
|
|
6163
|
+
*/
|
|
6164
|
+
'unitPrice': number;
|
|
6165
|
+
/**
|
|
6166
|
+
*
|
|
6167
|
+
* @type {number}
|
|
6168
|
+
* @memberof KdsOrderSubOptionDto
|
|
6169
|
+
*/
|
|
6170
|
+
'paidPrice': number;
|
|
6171
|
+
/**
|
|
6172
|
+
*
|
|
6173
|
+
* @type {string}
|
|
6174
|
+
* @memberof KdsOrderSubOptionDto
|
|
6175
|
+
*/
|
|
6176
|
+
'createdAt': string;
|
|
6177
|
+
/**
|
|
6178
|
+
*
|
|
6179
|
+
* @type {string}
|
|
6180
|
+
* @memberof KdsOrderSubOptionDto
|
|
6181
|
+
*/
|
|
6182
|
+
'updatedAt': string;
|
|
6183
|
+
}
|
|
6184
|
+
/**
|
|
6185
|
+
*
|
|
6186
|
+
* @export
|
|
6187
|
+
* @interface KdsPaginationDto
|
|
6188
|
+
*/
|
|
6189
|
+
export interface KdsPaginationDto {
|
|
6190
|
+
/**
|
|
6191
|
+
*
|
|
6192
|
+
* @type {number}
|
|
6193
|
+
* @memberof KdsPaginationDto
|
|
6194
|
+
*/
|
|
6195
|
+
'page': number;
|
|
6196
|
+
/**
|
|
6197
|
+
*
|
|
6198
|
+
* @type {number}
|
|
6199
|
+
* @memberof KdsPaginationDto
|
|
6200
|
+
*/
|
|
6201
|
+
'rowPerPage': number;
|
|
6202
|
+
/**
|
|
6203
|
+
*
|
|
6204
|
+
* @type {number}
|
|
6205
|
+
* @memberof KdsPaginationDto
|
|
6206
|
+
*/
|
|
6207
|
+
'totalPages': number;
|
|
6208
|
+
/**
|
|
6209
|
+
*
|
|
6210
|
+
* @type {number}
|
|
6211
|
+
* @memberof KdsPaginationDto
|
|
6212
|
+
*/
|
|
6213
|
+
'totalItems': number;
|
|
6214
|
+
/**
|
|
6215
|
+
*
|
|
6216
|
+
* @type {boolean}
|
|
6217
|
+
* @memberof KdsPaginationDto
|
|
6218
|
+
*/
|
|
6219
|
+
'hasNextPage': boolean;
|
|
6220
|
+
/**
|
|
6221
|
+
*
|
|
6222
|
+
* @type {boolean}
|
|
6223
|
+
* @memberof KdsPaginationDto
|
|
6224
|
+
*/
|
|
6225
|
+
'hasPreviousPage': boolean;
|
|
6226
|
+
}
|
|
6227
|
+
/**
|
|
6228
|
+
*
|
|
6229
|
+
* @export
|
|
6230
|
+
* @interface KdsPreorderDto
|
|
6231
|
+
*/
|
|
6232
|
+
export interface KdsPreorderDto {
|
|
6233
|
+
/**
|
|
6234
|
+
*
|
|
6235
|
+
* @type {string}
|
|
6236
|
+
* @memberof KdsPreorderDto
|
|
6237
|
+
*/
|
|
6238
|
+
'id': string;
|
|
6239
|
+
/**
|
|
6240
|
+
*
|
|
6241
|
+
* @type {PreorderStatus}
|
|
6242
|
+
* @memberof KdsPreorderDto
|
|
6243
|
+
*/
|
|
6244
|
+
'status': PreorderStatus;
|
|
6245
|
+
/**
|
|
6246
|
+
*
|
|
6247
|
+
* @type {string}
|
|
6248
|
+
* @memberof KdsPreorderDto
|
|
6249
|
+
*/
|
|
6250
|
+
'preorderTime': string;
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6253
|
+
|
|
6254
|
+
/**
|
|
6255
|
+
*
|
|
6256
|
+
* @export
|
|
6257
|
+
* @interface KdsPriceSummaryDto
|
|
6258
|
+
*/
|
|
6259
|
+
export interface KdsPriceSummaryDto {
|
|
6260
|
+
/**
|
|
6261
|
+
*
|
|
6262
|
+
* @type {string}
|
|
6263
|
+
* @memberof KdsPriceSummaryDto
|
|
6264
|
+
*/
|
|
6265
|
+
'id': string;
|
|
6266
|
+
/**
|
|
6267
|
+
*
|
|
6268
|
+
* @type {number}
|
|
6269
|
+
* @memberof KdsPriceSummaryDto
|
|
6270
|
+
*/
|
|
6271
|
+
'totalNet': number;
|
|
6272
|
+
}
|
|
6273
|
+
/**
|
|
6274
|
+
*
|
|
6275
|
+
* @export
|
|
6276
|
+
* @interface KdsPrintingEventDto
|
|
6277
|
+
*/
|
|
6278
|
+
export interface KdsPrintingEventDto {
|
|
6279
|
+
/**
|
|
6280
|
+
*
|
|
6281
|
+
* @type {KDSEVENTNAME}
|
|
6282
|
+
* @memberof KdsPrintingEventDto
|
|
6283
|
+
*/
|
|
6284
|
+
'event': KDSEVENTNAME;
|
|
6285
|
+
/**
|
|
6286
|
+
*
|
|
6287
|
+
* @type {KdsOrderDto}
|
|
6288
|
+
* @memberof KdsPrintingEventDto
|
|
6289
|
+
*/
|
|
6290
|
+
'order': KdsOrderDto;
|
|
6291
|
+
}
|
|
6292
|
+
|
|
6293
|
+
|
|
6294
|
+
/**
|
|
6295
|
+
*
|
|
6296
|
+
* @export
|
|
6297
|
+
* @interface KdsProfileDto
|
|
6298
|
+
*/
|
|
6299
|
+
export interface KdsProfileDto {
|
|
6300
|
+
/**
|
|
6301
|
+
*
|
|
6302
|
+
* @type {string}
|
|
6303
|
+
* @memberof KdsProfileDto
|
|
6304
|
+
*/
|
|
6305
|
+
'id': string;
|
|
6306
|
+
/**
|
|
6307
|
+
*
|
|
6308
|
+
* @type {string}
|
|
6309
|
+
* @memberof KdsProfileDto
|
|
6310
|
+
*/
|
|
6311
|
+
'name': string;
|
|
6312
|
+
/**
|
|
6313
|
+
*
|
|
6314
|
+
* @type {SystemProfileType}
|
|
6315
|
+
* @memberof KdsProfileDto
|
|
6316
|
+
*/
|
|
6317
|
+
'systemType': SystemProfileType | null;
|
|
6318
|
+
}
|
|
6319
|
+
|
|
6320
|
+
|
|
6321
|
+
/**
|
|
6322
|
+
*
|
|
6323
|
+
* @export
|
|
6324
|
+
* @interface KdsProfileResponseDto
|
|
6325
|
+
*/
|
|
6326
|
+
export interface KdsProfileResponseDto {
|
|
6327
|
+
/**
|
|
6328
|
+
* The KDS profile identifier
|
|
6329
|
+
* @type {string}
|
|
6330
|
+
* @memberof KdsProfileResponseDto
|
|
6331
|
+
*/
|
|
6332
|
+
'id': string;
|
|
6333
|
+
/**
|
|
6334
|
+
* The KDS profile name
|
|
6335
|
+
* @type {string}
|
|
6336
|
+
* @memberof KdsProfileResponseDto
|
|
6337
|
+
*/
|
|
6338
|
+
'name': string;
|
|
6339
|
+
/**
|
|
6340
|
+
*
|
|
6341
|
+
* @type {SystemProfileType}
|
|
6342
|
+
* @memberof KdsProfileResponseDto
|
|
6343
|
+
*/
|
|
6344
|
+
'systemType': SystemProfileType | null;
|
|
6345
|
+
}
|
|
6346
|
+
|
|
6347
|
+
|
|
6348
|
+
/**
|
|
6349
|
+
*
|
|
6350
|
+
* @export
|
|
6351
|
+
* @interface KdsPubSubPayloadDto
|
|
6352
|
+
*/
|
|
6353
|
+
export interface KdsPubSubPayloadDto {
|
|
6354
|
+
/**
|
|
6355
|
+
*
|
|
6356
|
+
* @type {PubSubTarget}
|
|
6357
|
+
* @memberof KdsPubSubPayloadDto
|
|
6358
|
+
*/
|
|
6359
|
+
'target': PubSubTarget;
|
|
6360
|
+
/**
|
|
6361
|
+
*
|
|
6362
|
+
* @type {ProviderEnum}
|
|
6363
|
+
* @memberof KdsPubSubPayloadDto
|
|
6364
|
+
*/
|
|
6365
|
+
'provider': ProviderEnum;
|
|
6366
|
+
/**
|
|
6367
|
+
*
|
|
6368
|
+
* @type {number}
|
|
6369
|
+
* @memberof KdsPubSubPayloadDto
|
|
6370
|
+
*/
|
|
6371
|
+
'businessId': number;
|
|
6372
|
+
/**
|
|
6373
|
+
*
|
|
6374
|
+
* @type {PubSubAction}
|
|
6375
|
+
* @memberof KdsPubSubPayloadDto
|
|
6376
|
+
*/
|
|
6377
|
+
'action': PubSubAction;
|
|
6378
|
+
/**
|
|
6379
|
+
*
|
|
6380
|
+
* @type {string}
|
|
6381
|
+
* @memberof KdsPubSubPayloadDto
|
|
6382
|
+
*/
|
|
6383
|
+
'orderId': string;
|
|
6384
|
+
/**
|
|
6385
|
+
*
|
|
6386
|
+
* @type {SourceType}
|
|
6387
|
+
* @memberof KdsPubSubPayloadDto
|
|
6388
|
+
*/
|
|
6389
|
+
'type': SourceType;
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
|
|
6393
|
+
/**
|
|
6394
|
+
*
|
|
6395
|
+
* @export
|
|
6396
|
+
* @interface KdsReadyOrderResponseDto
|
|
6397
|
+
*/
|
|
6398
|
+
export interface KdsReadyOrderResponseDto {
|
|
6399
|
+
/**
|
|
6400
|
+
* Indicates whether the KDS order ready update succeeded
|
|
6401
|
+
* @type {boolean}
|
|
6402
|
+
* @memberof KdsReadyOrderResponseDto
|
|
6403
|
+
*/
|
|
6404
|
+
'status': boolean;
|
|
6405
|
+
/**
|
|
6406
|
+
* Human-readable status message
|
|
6407
|
+
* @type {string}
|
|
6408
|
+
* @memberof KdsReadyOrderResponseDto
|
|
6409
|
+
*/
|
|
6410
|
+
'message': string;
|
|
6411
|
+
/**
|
|
6412
|
+
*
|
|
6413
|
+
* @type {KdsReadyOrderResponseDtoOrder}
|
|
6414
|
+
* @memberof KdsReadyOrderResponseDto
|
|
6415
|
+
*/
|
|
6416
|
+
'order': KdsReadyOrderResponseDtoOrder | null;
|
|
6417
|
+
}
|
|
6418
|
+
/**
|
|
6419
|
+
* Updated KDS order after the ready flow completes
|
|
6420
|
+
* @export
|
|
6421
|
+
* @interface KdsReadyOrderResponseDtoOrder
|
|
6422
|
+
*/
|
|
6423
|
+
export interface KdsReadyOrderResponseDtoOrder {
|
|
6424
|
+
/**
|
|
6425
|
+
*
|
|
6426
|
+
* @type {string}
|
|
6427
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6428
|
+
*/
|
|
6429
|
+
'id': string;
|
|
6430
|
+
/**
|
|
6431
|
+
*
|
|
6432
|
+
* @type {string}
|
|
6433
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6434
|
+
*/
|
|
6435
|
+
'parentOrderId': string;
|
|
6436
|
+
/**
|
|
6437
|
+
*
|
|
6438
|
+
* @type {number}
|
|
6439
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6440
|
+
*/
|
|
6441
|
+
'businessId': number;
|
|
6442
|
+
/**
|
|
6443
|
+
*
|
|
6444
|
+
* @type {string}
|
|
6445
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6446
|
+
*/
|
|
6447
|
+
'profileId': string;
|
|
6448
|
+
/**
|
|
6449
|
+
*
|
|
6450
|
+
* @type {string}
|
|
6451
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6452
|
+
*/
|
|
6453
|
+
'profileName': string;
|
|
6454
|
+
/**
|
|
6455
|
+
*
|
|
6456
|
+
* @type {ProviderEnum}
|
|
6457
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6458
|
+
*/
|
|
6459
|
+
'provider': ProviderEnum;
|
|
6460
|
+
/**
|
|
6461
|
+
*
|
|
6462
|
+
* @type {string}
|
|
6463
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6464
|
+
*/
|
|
6465
|
+
'orderNumber': string;
|
|
6466
|
+
/**
|
|
6467
|
+
*
|
|
6468
|
+
* @type {string}
|
|
6469
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6470
|
+
*/
|
|
6471
|
+
'comment': string | null;
|
|
6472
|
+
/**
|
|
6473
|
+
*
|
|
6474
|
+
* @type {number}
|
|
6475
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6476
|
+
*/
|
|
6477
|
+
'preparedIn': number | null;
|
|
6478
|
+
/**
|
|
6479
|
+
*
|
|
6480
|
+
* @type {string}
|
|
6481
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6482
|
+
*/
|
|
6483
|
+
'spotNumber': string | null;
|
|
6484
|
+
/**
|
|
6485
|
+
*
|
|
6486
|
+
* @type {string}
|
|
6487
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6488
|
+
*/
|
|
6489
|
+
'acceptedAt': string | null;
|
|
6490
|
+
/**
|
|
6491
|
+
*
|
|
6492
|
+
* @type {string}
|
|
6493
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6494
|
+
*/
|
|
6495
|
+
'pickupEta': string | null;
|
|
6496
|
+
/**
|
|
6497
|
+
*
|
|
6498
|
+
* @type {string}
|
|
6499
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6500
|
+
*/
|
|
6501
|
+
'deliveryEta': string | null;
|
|
6502
|
+
/**
|
|
6503
|
+
*
|
|
6504
|
+
* @type {ConsumptionType}
|
|
6505
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6506
|
+
*/
|
|
6507
|
+
'consumptionType': ConsumptionType;
|
|
6508
|
+
/**
|
|
6509
|
+
*
|
|
6510
|
+
* @type {string}
|
|
6511
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6512
|
+
*/
|
|
6513
|
+
'orderCreatedAt': string;
|
|
6514
|
+
/**
|
|
6515
|
+
*
|
|
6516
|
+
* @type {string}
|
|
6517
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6518
|
+
*/
|
|
6519
|
+
'orderUpdatedAt': string;
|
|
6520
|
+
/**
|
|
6521
|
+
*
|
|
6522
|
+
* @type {OrderType}
|
|
6523
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6524
|
+
*/
|
|
6525
|
+
'type': OrderType;
|
|
6526
|
+
/**
|
|
6527
|
+
*
|
|
6528
|
+
* @type {OrderMode}
|
|
6529
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6530
|
+
*/
|
|
6531
|
+
'orderMode': OrderMode;
|
|
6532
|
+
/**
|
|
6533
|
+
*
|
|
6534
|
+
* @type {SourceType}
|
|
6535
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6536
|
+
*/
|
|
6537
|
+
'sourceType': SourceType;
|
|
6538
|
+
/**
|
|
6539
|
+
*
|
|
6540
|
+
* @type {OrderStatus}
|
|
6541
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6542
|
+
*/
|
|
6543
|
+
'status': OrderStatus;
|
|
6544
|
+
/**
|
|
6545
|
+
*
|
|
6546
|
+
* @type {string}
|
|
6547
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6548
|
+
*/
|
|
6549
|
+
'createdAt': string;
|
|
6550
|
+
/**
|
|
6551
|
+
*
|
|
6552
|
+
* @type {string}
|
|
6553
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6554
|
+
*/
|
|
6555
|
+
'updatedAt': string;
|
|
6556
|
+
/**
|
|
6557
|
+
*
|
|
6558
|
+
* @type {KdsCustomerDto}
|
|
6559
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6560
|
+
*/
|
|
6561
|
+
'customer': KdsCustomerDto | null;
|
|
6562
|
+
/**
|
|
6563
|
+
*
|
|
6564
|
+
* @type {KdsDeliveryDto}
|
|
6565
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6566
|
+
*/
|
|
6567
|
+
'delivery': KdsDeliveryDto | null;
|
|
6568
|
+
/**
|
|
6569
|
+
*
|
|
6570
|
+
* @type {KdsPreorderDto}
|
|
6571
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6572
|
+
*/
|
|
6573
|
+
'preorder': KdsPreorderDto | null;
|
|
6574
|
+
/**
|
|
6575
|
+
*
|
|
6576
|
+
* @type {KdsPriceSummaryDto}
|
|
6577
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6578
|
+
*/
|
|
6579
|
+
'priceSummary': KdsPriceSummaryDto | null;
|
|
6580
|
+
/**
|
|
6581
|
+
*
|
|
6582
|
+
* @type {Array<KdsOrderItemDto>}
|
|
6583
|
+
* @memberof KdsReadyOrderResponseDtoOrder
|
|
6584
|
+
*/
|
|
6585
|
+
'items': Array<KdsOrderItemDto>;
|
|
6586
|
+
}
|
|
6587
|
+
|
|
6588
|
+
|
|
6589
|
+
/**
|
|
6590
|
+
*
|
|
6591
|
+
* @export
|
|
6592
|
+
* @interface KdsRevertOrderResponseDto
|
|
6593
|
+
*/
|
|
6594
|
+
export interface KdsRevertOrderResponseDto {
|
|
6595
|
+
/**
|
|
6596
|
+
* Indicates whether the KDS order revert succeeded
|
|
6597
|
+
* @type {boolean}
|
|
6598
|
+
* @memberof KdsRevertOrderResponseDto
|
|
6599
|
+
*/
|
|
6600
|
+
'status': boolean;
|
|
6601
|
+
/**
|
|
6602
|
+
* Human-readable status message
|
|
6603
|
+
* @type {string}
|
|
6604
|
+
* @memberof KdsRevertOrderResponseDto
|
|
6605
|
+
*/
|
|
6606
|
+
'message': string;
|
|
6607
|
+
/**
|
|
6608
|
+
*
|
|
6609
|
+
* @type {KdsRevertOrderResponseDtoOrder}
|
|
6610
|
+
* @memberof KdsRevertOrderResponseDto
|
|
6611
|
+
*/
|
|
6612
|
+
'order': KdsRevertOrderResponseDtoOrder | null;
|
|
6613
|
+
}
|
|
6614
|
+
/**
|
|
6615
|
+
* Updated KDS order after the revert flow completes
|
|
6616
|
+
* @export
|
|
6617
|
+
* @interface KdsRevertOrderResponseDtoOrder
|
|
6618
|
+
*/
|
|
6619
|
+
export interface KdsRevertOrderResponseDtoOrder {
|
|
6620
|
+
/**
|
|
6621
|
+
*
|
|
6622
|
+
* @type {string}
|
|
6623
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6624
|
+
*/
|
|
6625
|
+
'id': string;
|
|
6626
|
+
/**
|
|
6627
|
+
*
|
|
6628
|
+
* @type {string}
|
|
6629
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6630
|
+
*/
|
|
6631
|
+
'parentOrderId': string;
|
|
6632
|
+
/**
|
|
6633
|
+
*
|
|
6634
|
+
* @type {number}
|
|
6635
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6636
|
+
*/
|
|
6637
|
+
'businessId': number;
|
|
6638
|
+
/**
|
|
6639
|
+
*
|
|
6640
|
+
* @type {string}
|
|
6641
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6642
|
+
*/
|
|
6643
|
+
'profileId': string;
|
|
6644
|
+
/**
|
|
6645
|
+
*
|
|
6646
|
+
* @type {string}
|
|
6647
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6648
|
+
*/
|
|
6649
|
+
'profileName': string;
|
|
6650
|
+
/**
|
|
6651
|
+
*
|
|
6652
|
+
* @type {ProviderEnum}
|
|
6653
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6654
|
+
*/
|
|
6655
|
+
'provider': ProviderEnum;
|
|
6656
|
+
/**
|
|
6657
|
+
*
|
|
6658
|
+
* @type {string}
|
|
6659
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6660
|
+
*/
|
|
6661
|
+
'orderNumber': string;
|
|
6662
|
+
/**
|
|
6663
|
+
*
|
|
6664
|
+
* @type {string}
|
|
6665
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6666
|
+
*/
|
|
6667
|
+
'comment': string | null;
|
|
6668
|
+
/**
|
|
6669
|
+
*
|
|
6670
|
+
* @type {number}
|
|
6671
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6672
|
+
*/
|
|
6673
|
+
'preparedIn': number | null;
|
|
6674
|
+
/**
|
|
6675
|
+
*
|
|
6676
|
+
* @type {string}
|
|
6677
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6678
|
+
*/
|
|
6679
|
+
'spotNumber': string | null;
|
|
6680
|
+
/**
|
|
6681
|
+
*
|
|
6682
|
+
* @type {string}
|
|
6683
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6684
|
+
*/
|
|
6685
|
+
'acceptedAt': string | null;
|
|
6686
|
+
/**
|
|
6687
|
+
*
|
|
6688
|
+
* @type {string}
|
|
6689
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6690
|
+
*/
|
|
6691
|
+
'pickupEta': string | null;
|
|
6692
|
+
/**
|
|
6693
|
+
*
|
|
6694
|
+
* @type {string}
|
|
6695
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6696
|
+
*/
|
|
6697
|
+
'deliveryEta': string | null;
|
|
6698
|
+
/**
|
|
6699
|
+
*
|
|
6700
|
+
* @type {ConsumptionType}
|
|
6701
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6702
|
+
*/
|
|
6703
|
+
'consumptionType': ConsumptionType;
|
|
6704
|
+
/**
|
|
6705
|
+
*
|
|
6706
|
+
* @type {string}
|
|
6707
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6708
|
+
*/
|
|
6709
|
+
'orderCreatedAt': string;
|
|
6710
|
+
/**
|
|
6711
|
+
*
|
|
6712
|
+
* @type {string}
|
|
6713
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6714
|
+
*/
|
|
6715
|
+
'orderUpdatedAt': string;
|
|
6716
|
+
/**
|
|
6717
|
+
*
|
|
6718
|
+
* @type {OrderType}
|
|
6719
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6720
|
+
*/
|
|
6721
|
+
'type': OrderType;
|
|
6722
|
+
/**
|
|
6723
|
+
*
|
|
6724
|
+
* @type {OrderMode}
|
|
6725
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6726
|
+
*/
|
|
6727
|
+
'orderMode': OrderMode;
|
|
6728
|
+
/**
|
|
6729
|
+
*
|
|
6730
|
+
* @type {SourceType}
|
|
6731
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6732
|
+
*/
|
|
6733
|
+
'sourceType': SourceType;
|
|
6734
|
+
/**
|
|
6735
|
+
*
|
|
6736
|
+
* @type {OrderStatus}
|
|
6737
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6738
|
+
*/
|
|
6739
|
+
'status': OrderStatus;
|
|
6740
|
+
/**
|
|
6741
|
+
*
|
|
6742
|
+
* @type {string}
|
|
6743
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6744
|
+
*/
|
|
6745
|
+
'createdAt': string;
|
|
6746
|
+
/**
|
|
6747
|
+
*
|
|
6748
|
+
* @type {string}
|
|
6749
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6750
|
+
*/
|
|
6751
|
+
'updatedAt': string;
|
|
6752
|
+
/**
|
|
6753
|
+
*
|
|
6754
|
+
* @type {KdsCustomerDto}
|
|
6755
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6756
|
+
*/
|
|
6757
|
+
'customer': KdsCustomerDto | null;
|
|
6758
|
+
/**
|
|
6759
|
+
*
|
|
6760
|
+
* @type {KdsDeliveryDto}
|
|
6761
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6762
|
+
*/
|
|
6763
|
+
'delivery': KdsDeliveryDto | null;
|
|
6764
|
+
/**
|
|
6765
|
+
*
|
|
6766
|
+
* @type {KdsPreorderDto}
|
|
6767
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6768
|
+
*/
|
|
6769
|
+
'preorder': KdsPreorderDto | null;
|
|
6770
|
+
/**
|
|
6771
|
+
*
|
|
6772
|
+
* @type {KdsPriceSummaryDto}
|
|
6773
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6774
|
+
*/
|
|
6775
|
+
'priceSummary': KdsPriceSummaryDto | null;
|
|
6776
|
+
/**
|
|
6777
|
+
*
|
|
6778
|
+
* @type {Array<KdsOrderItemDto>}
|
|
6779
|
+
* @memberof KdsRevertOrderResponseDtoOrder
|
|
6780
|
+
*/
|
|
6781
|
+
'items': Array<KdsOrderItemDto>;
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6784
|
+
|
|
5428
6785
|
/**
|
|
5429
6786
|
*
|
|
5430
6787
|
* @export
|
|
@@ -5486,6 +6843,26 @@ export interface KioskStatusDto {
|
|
|
5486
6843
|
}
|
|
5487
6844
|
|
|
5488
6845
|
|
|
6846
|
+
/**
|
|
6847
|
+
*
|
|
6848
|
+
* @export
|
|
6849
|
+
* @enum {string}
|
|
6850
|
+
*/
|
|
6851
|
+
|
|
6852
|
+
export const KitchenItemStatus = {
|
|
6853
|
+
NotApplicable: 'NOT_APPLICABLE',
|
|
6854
|
+
Pending: 'PENDING',
|
|
6855
|
+
OnHold: 'ON_HOLD',
|
|
6856
|
+
SentToOm: 'SENT_TO_OM',
|
|
6857
|
+
DispatchedToKitchen: 'DISPATCHED_TO_KITCHEN',
|
|
6858
|
+
Completed: 'COMPLETED',
|
|
6859
|
+
Cancelled: 'CANCELLED',
|
|
6860
|
+
Ready: 'READY'
|
|
6861
|
+
} as const;
|
|
6862
|
+
|
|
6863
|
+
export type KitchenItemStatus = typeof KitchenItemStatus[keyof typeof KitchenItemStatus];
|
|
6864
|
+
|
|
6865
|
+
|
|
5489
6866
|
/**
|
|
5490
6867
|
*
|
|
5491
6868
|
* @export
|
|
@@ -5496,6 +6873,7 @@ export const KitchenStatus = {
|
|
|
5496
6873
|
NotApplicable: 'not_applicable',
|
|
5497
6874
|
Pending: 'pending',
|
|
5498
6875
|
OnHold: 'on_hold',
|
|
6876
|
+
Ready: 'ready',
|
|
5499
6877
|
SentToOm: 'sent_to_om',
|
|
5500
6878
|
DispatchedToKitchen: 'dispatched_to_kitchen',
|
|
5501
6879
|
Completed: 'completed',
|
|
@@ -7788,6 +9166,20 @@ export interface OrderHistoryResponseDtoSummary {
|
|
|
7788
9166
|
*/
|
|
7789
9167
|
'totalTipAmount'?: number;
|
|
7790
9168
|
}
|
|
9169
|
+
/**
|
|
9170
|
+
*
|
|
9171
|
+
* @export
|
|
9172
|
+
* @enum {string}
|
|
9173
|
+
*/
|
|
9174
|
+
|
|
9175
|
+
export const OrderMode = {
|
|
9176
|
+
Instant: 'INSTANT',
|
|
9177
|
+
PreOrder: 'PRE_ORDER'
|
|
9178
|
+
} as const;
|
|
9179
|
+
|
|
9180
|
+
export type OrderMode = typeof OrderMode[keyof typeof OrderMode];
|
|
9181
|
+
|
|
9182
|
+
|
|
7791
9183
|
/**
|
|
7792
9184
|
*
|
|
7793
9185
|
* @export
|
|
@@ -8213,6 +9605,22 @@ export const OrderSource = {
|
|
|
8213
9605
|
export type OrderSource = typeof OrderSource[keyof typeof OrderSource];
|
|
8214
9606
|
|
|
8215
9607
|
|
|
9608
|
+
/**
|
|
9609
|
+
*
|
|
9610
|
+
* @export
|
|
9611
|
+
* @enum {string}
|
|
9612
|
+
*/
|
|
9613
|
+
|
|
9614
|
+
export const OrderStatus = {
|
|
9615
|
+
InProgress: 'IN_PROGRESS',
|
|
9616
|
+
Ready: 'READY',
|
|
9617
|
+
Delivered: 'DELIVERED',
|
|
9618
|
+
Rejected: 'REJECTED'
|
|
9619
|
+
} as const;
|
|
9620
|
+
|
|
9621
|
+
export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
|
|
9622
|
+
|
|
9623
|
+
|
|
8216
9624
|
/**
|
|
8217
9625
|
*
|
|
8218
9626
|
* @export
|
|
@@ -12963,6 +14371,54 @@ export interface ProviderStatusResponseDto {
|
|
|
12963
14371
|
}
|
|
12964
14372
|
|
|
12965
14373
|
|
|
14374
|
+
/**
|
|
14375
|
+
*
|
|
14376
|
+
* @export
|
|
14377
|
+
* @interface ProviderSupportedIntegrationsDto
|
|
14378
|
+
*/
|
|
14379
|
+
export interface ProviderSupportedIntegrationsDto {
|
|
14380
|
+
/**
|
|
14381
|
+
*
|
|
14382
|
+
* @type {ProviderEnum}
|
|
14383
|
+
* @memberof ProviderSupportedIntegrationsDto
|
|
14384
|
+
*/
|
|
14385
|
+
'provider': ProviderEnum;
|
|
14386
|
+
/**
|
|
14387
|
+
* Integrations this provider supports
|
|
14388
|
+
* @type {Array<IntegrationType>}
|
|
14389
|
+
* @memberof ProviderSupportedIntegrationsDto
|
|
14390
|
+
*/
|
|
14391
|
+
'supportedIntegrations': Array<IntegrationType>;
|
|
14392
|
+
}
|
|
14393
|
+
|
|
14394
|
+
|
|
14395
|
+
/**
|
|
14396
|
+
*
|
|
14397
|
+
* @export
|
|
14398
|
+
* @enum {string}
|
|
14399
|
+
*/
|
|
14400
|
+
|
|
14401
|
+
export const PubSubAction = {
|
|
14402
|
+
Activity: 'ORDER_ACTIVITY',
|
|
14403
|
+
Deleted: 'ORDER_DELETED'
|
|
14404
|
+
} as const;
|
|
14405
|
+
|
|
14406
|
+
export type PubSubAction = typeof PubSubAction[keyof typeof PubSubAction];
|
|
14407
|
+
|
|
14408
|
+
|
|
14409
|
+
/**
|
|
14410
|
+
*
|
|
14411
|
+
* @export
|
|
14412
|
+
* @enum {string}
|
|
14413
|
+
*/
|
|
14414
|
+
|
|
14415
|
+
export const PubSubTarget = {
|
|
14416
|
+
Kds: 'KDS'
|
|
14417
|
+
} as const;
|
|
14418
|
+
|
|
14419
|
+
export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
|
|
14420
|
+
|
|
14421
|
+
|
|
12966
14422
|
/**
|
|
12967
14423
|
*
|
|
12968
14424
|
* @export
|
|
@@ -14075,6 +15531,20 @@ export interface SingleProviderStatusResponseDtoActiveChannel {
|
|
|
14075
15531
|
}
|
|
14076
15532
|
|
|
14077
15533
|
|
|
15534
|
+
/**
|
|
15535
|
+
*
|
|
15536
|
+
* @export
|
|
15537
|
+
* @enum {string}
|
|
15538
|
+
*/
|
|
15539
|
+
|
|
15540
|
+
export const SourceType = {
|
|
15541
|
+
Order: 'ORDER',
|
|
15542
|
+
Ticket: 'TICKET'
|
|
15543
|
+
} as const;
|
|
15544
|
+
|
|
15545
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
15546
|
+
|
|
15547
|
+
|
|
14078
15548
|
/**
|
|
14079
15549
|
*
|
|
14080
15550
|
* @export
|
|
@@ -14264,6 +15734,12 @@ export interface StationDetailsDto {
|
|
|
14264
15734
|
* @memberof StationDetailsDto
|
|
14265
15735
|
*/
|
|
14266
15736
|
'prefix': string;
|
|
15737
|
+
/**
|
|
15738
|
+
*
|
|
15739
|
+
* @type {object}
|
|
15740
|
+
* @memberof StationDetailsDto
|
|
15741
|
+
*/
|
|
15742
|
+
'settings'?: object;
|
|
14267
15743
|
/**
|
|
14268
15744
|
*
|
|
14269
15745
|
* @type {object}
|
|
@@ -14355,12 +15831,99 @@ export interface StationDetailsDtoPaymentTerminal {
|
|
|
14355
15831
|
*/
|
|
14356
15832
|
export interface StationSyncResponseDto {
|
|
14357
15833
|
/**
|
|
14358
|
-
*
|
|
14359
|
-
* @type {
|
|
15834
|
+
*
|
|
15835
|
+
* @type {StationSyncResponseDtoStation}
|
|
14360
15836
|
* @memberof StationSyncResponseDto
|
|
14361
15837
|
*/
|
|
14362
|
-
'
|
|
15838
|
+
'station': StationSyncResponseDtoStation;
|
|
15839
|
+
}
|
|
15840
|
+
/**
|
|
15841
|
+
* The synced station data
|
|
15842
|
+
* @export
|
|
15843
|
+
* @interface StationSyncResponseDtoStation
|
|
15844
|
+
*/
|
|
15845
|
+
export interface StationSyncResponseDtoStation {
|
|
15846
|
+
/**
|
|
15847
|
+
*
|
|
15848
|
+
* @type {string}
|
|
15849
|
+
* @memberof StationSyncResponseDtoStation
|
|
15850
|
+
*/
|
|
15851
|
+
'id': string;
|
|
15852
|
+
/**
|
|
15853
|
+
*
|
|
15854
|
+
* @type {string}
|
|
15855
|
+
* @memberof StationSyncResponseDtoStation
|
|
15856
|
+
*/
|
|
15857
|
+
'name': string;
|
|
15858
|
+
/**
|
|
15859
|
+
*
|
|
15860
|
+
* @type {string}
|
|
15861
|
+
* @memberof StationSyncResponseDtoStation
|
|
15862
|
+
*/
|
|
15863
|
+
'hardwareId': string;
|
|
15864
|
+
/**
|
|
15865
|
+
*
|
|
15866
|
+
* @type {StationType}
|
|
15867
|
+
* @memberof StationSyncResponseDtoStation
|
|
15868
|
+
*/
|
|
15869
|
+
'type': StationType;
|
|
15870
|
+
/**
|
|
15871
|
+
*
|
|
15872
|
+
* @type {DeviceType}
|
|
15873
|
+
* @memberof StationSyncResponseDtoStation
|
|
15874
|
+
*/
|
|
15875
|
+
'deviceType'?: DeviceType;
|
|
15876
|
+
/**
|
|
15877
|
+
*
|
|
15878
|
+
* @type {Status}
|
|
15879
|
+
* @memberof StationSyncResponseDtoStation
|
|
15880
|
+
*/
|
|
15881
|
+
'status': Status;
|
|
15882
|
+
/**
|
|
15883
|
+
*
|
|
15884
|
+
* @type {number}
|
|
15885
|
+
* @memberof StationSyncResponseDtoStation
|
|
15886
|
+
*/
|
|
15887
|
+
'orderingBusinessId': number;
|
|
15888
|
+
/**
|
|
15889
|
+
*
|
|
15890
|
+
* @type {string}
|
|
15891
|
+
* @memberof StationSyncResponseDtoStation
|
|
15892
|
+
*/
|
|
15893
|
+
'prefix': string;
|
|
15894
|
+
/**
|
|
15895
|
+
*
|
|
15896
|
+
* @type {object}
|
|
15897
|
+
* @memberof StationSyncResponseDtoStation
|
|
15898
|
+
*/
|
|
15899
|
+
'settings'?: object;
|
|
15900
|
+
/**
|
|
15901
|
+
*
|
|
15902
|
+
* @type {object}
|
|
15903
|
+
* @memberof StationSyncResponseDtoStation
|
|
15904
|
+
*/
|
|
15905
|
+
'metadata'?: object;
|
|
15906
|
+
/**
|
|
15907
|
+
* Timestamp when the station record was created.
|
|
15908
|
+
* @type {string}
|
|
15909
|
+
* @memberof StationSyncResponseDtoStation
|
|
15910
|
+
*/
|
|
15911
|
+
'createdAt': string;
|
|
15912
|
+
/**
|
|
15913
|
+
* Timestamp when the station record was last updated.
|
|
15914
|
+
* @type {string}
|
|
15915
|
+
* @memberof StationSyncResponseDtoStation
|
|
15916
|
+
*/
|
|
15917
|
+
'updatedAt': string;
|
|
15918
|
+
/**
|
|
15919
|
+
*
|
|
15920
|
+
* @type {StationDetailsDtoPaymentTerminal}
|
|
15921
|
+
* @memberof StationSyncResponseDtoStation
|
|
15922
|
+
*/
|
|
15923
|
+
'paymentTerminal'?: StationDetailsDtoPaymentTerminal | null;
|
|
14363
15924
|
}
|
|
15925
|
+
|
|
15926
|
+
|
|
14364
15927
|
/**
|
|
14365
15928
|
*
|
|
14366
15929
|
* @export
|
|
@@ -14580,7 +16143,7 @@ export interface SyncStationDto {
|
|
|
14580
16143
|
* @type {string}
|
|
14581
16144
|
* @memberof SyncStationDto
|
|
14582
16145
|
*/
|
|
14583
|
-
'prefix'
|
|
16146
|
+
'prefix'?: string;
|
|
14584
16147
|
/**
|
|
14585
16148
|
*
|
|
14586
16149
|
* @type {StationType}
|
|
@@ -14617,46 +16180,14 @@ export interface SyncStationDto {
|
|
|
14617
16180
|
/**
|
|
14618
16181
|
*
|
|
14619
16182
|
* @export
|
|
14620
|
-
* @
|
|
16183
|
+
* @enum {string}
|
|
14621
16184
|
*/
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
'stationHardwareId': string;
|
|
14629
|
-
/**
|
|
14630
|
-
* Hardware ID of the payment terminal
|
|
14631
|
-
* @type {string}
|
|
14632
|
-
* @memberof SyncTerminalDto
|
|
14633
|
-
*/
|
|
14634
|
-
'terminalId': string;
|
|
14635
|
-
/**
|
|
14636
|
-
*
|
|
14637
|
-
* @type {PaymentProvider}
|
|
14638
|
-
* @memberof SyncTerminalDto
|
|
14639
|
-
*/
|
|
14640
|
-
'provider': PaymentProvider;
|
|
14641
|
-
/**
|
|
14642
|
-
* Label/name for the terminal
|
|
14643
|
-
* @type {string}
|
|
14644
|
-
* @memberof SyncTerminalDto
|
|
14645
|
-
*/
|
|
14646
|
-
'label'?: string;
|
|
14647
|
-
/**
|
|
14648
|
-
*
|
|
14649
|
-
* @type {TerminalConnectionType}
|
|
14650
|
-
* @memberof SyncTerminalDto
|
|
14651
|
-
*/
|
|
14652
|
-
'connectionType'?: TerminalConnectionType;
|
|
14653
|
-
/**
|
|
14654
|
-
* Business ID that owns the terminal
|
|
14655
|
-
* @type {number}
|
|
14656
|
-
* @memberof SyncTerminalDto
|
|
14657
|
-
*/
|
|
14658
|
-
'businessId': number;
|
|
14659
|
-
}
|
|
16185
|
+
|
|
16186
|
+
export const SystemProfileType = {
|
|
16187
|
+
NoStation: 'NO_STATION'
|
|
16188
|
+
} as const;
|
|
16189
|
+
|
|
16190
|
+
export type SystemProfileType = typeof SystemProfileType[keyof typeof SystemProfileType];
|
|
14660
16191
|
|
|
14661
16192
|
|
|
14662
16193
|
/**
|
|
@@ -16295,11 +17826,11 @@ export interface UnifiedProductDto {
|
|
|
16295
17826
|
*/
|
|
16296
17827
|
'comment'?: string | null;
|
|
16297
17828
|
/**
|
|
16298
|
-
*
|
|
16299
|
-
* @type {
|
|
17829
|
+
*
|
|
17830
|
+
* @type {KitchenItemStatus}
|
|
16300
17831
|
* @memberof UnifiedProductDto
|
|
16301
17832
|
*/
|
|
16302
|
-
'kitchenStatus'
|
|
17833
|
+
'kitchenStatus': KitchenItemStatus;
|
|
16303
17834
|
/**
|
|
16304
17835
|
* List of options selected for this product
|
|
16305
17836
|
* @type {Array<UnifiedOptionDto>}
|
|
@@ -16307,6 +17838,8 @@ export interface UnifiedProductDto {
|
|
|
16307
17838
|
*/
|
|
16308
17839
|
'options': Array<UnifiedOptionDto>;
|
|
16309
17840
|
}
|
|
17841
|
+
|
|
17842
|
+
|
|
16310
17843
|
/**
|
|
16311
17844
|
*
|
|
16312
17845
|
* @export
|
|
@@ -21391,11 +22924,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
21391
22924
|
/**
|
|
21392
22925
|
*
|
|
21393
22926
|
* @param {string} businessId
|
|
21394
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
22927
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
21395
22928
|
* @param {*} [options] Override http request option.
|
|
21396
22929
|
* @throws {RequiredError}
|
|
21397
22930
|
*/
|
|
21398
|
-
getBusinessMenuByType: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22931
|
+
getBusinessMenuByType: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21399
22932
|
// verify required parameter 'businessId' is not null or undefined
|
|
21400
22933
|
assertParamExists('getBusinessMenuByType', 'businessId', businessId)
|
|
21401
22934
|
// verify required parameter 'menuType' is not null or undefined
|
|
@@ -21433,11 +22966,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
21433
22966
|
*
|
|
21434
22967
|
* @summary Get business menu by type V2
|
|
21435
22968
|
* @param {string} businessId
|
|
21436
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
22969
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
21437
22970
|
* @param {*} [options] Override http request option.
|
|
21438
22971
|
* @throws {RequiredError}
|
|
21439
22972
|
*/
|
|
21440
|
-
getBusinessMenuByTypeV2: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22973
|
+
getBusinessMenuByTypeV2: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21441
22974
|
// verify required parameter 'businessId' is not null or undefined
|
|
21442
22975
|
assertParamExists('getBusinessMenuByTypeV2', 'businessId', businessId)
|
|
21443
22976
|
// verify required parameter 'menuType' is not null or undefined
|
|
@@ -21475,11 +23008,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
21475
23008
|
*
|
|
21476
23009
|
* @summary Get business menu by type V3
|
|
21477
23010
|
* @param {string} businessId
|
|
21478
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23011
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
21479
23012
|
* @param {*} [options] Override http request option.
|
|
21480
23013
|
* @throws {RequiredError}
|
|
21481
23014
|
*/
|
|
21482
|
-
getBusinessMenuByTypeV3: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23015
|
+
getBusinessMenuByTypeV3: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21483
23016
|
// verify required parameter 'businessId' is not null or undefined
|
|
21484
23017
|
assertParamExists('getBusinessMenuByTypeV3', 'businessId', businessId)
|
|
21485
23018
|
// verify required parameter 'menuType' is not null or undefined
|
|
@@ -21517,11 +23050,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
21517
23050
|
*
|
|
21518
23051
|
* @summary Get business menu by type V4
|
|
21519
23052
|
* @param {string} businessId
|
|
21520
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23053
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
21521
23054
|
* @param {*} [options] Override http request option.
|
|
21522
23055
|
* @throws {RequiredError}
|
|
21523
23056
|
*/
|
|
21524
|
-
getBusinessMenuByTypeV4: async (businessId: string, menuType: 'pos' | 'kiosk', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23057
|
+
getBusinessMenuByTypeV4: async (businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21525
23058
|
// verify required parameter 'businessId' is not null or undefined
|
|
21526
23059
|
assertParamExists('getBusinessMenuByTypeV4', 'businessId', businessId)
|
|
21527
23060
|
// verify required parameter 'menuType' is not null or undefined
|
|
@@ -21658,6 +23191,46 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
21658
23191
|
|
|
21659
23192
|
|
|
21660
23193
|
|
|
23194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23197
|
+
|
|
23198
|
+
return {
|
|
23199
|
+
url: toPathString(localVarUrlObj),
|
|
23200
|
+
options: localVarRequestOptions,
|
|
23201
|
+
};
|
|
23202
|
+
},
|
|
23203
|
+
/**
|
|
23204
|
+
*
|
|
23205
|
+
* @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
|
|
23206
|
+
* @param {*} [options] Override http request option.
|
|
23207
|
+
* @throws {RequiredError}
|
|
23208
|
+
*/
|
|
23209
|
+
getProvidersSupportedIntegrations: async (businessIds: Array<number>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23210
|
+
// verify required parameter 'businessIds' is not null or undefined
|
|
23211
|
+
assertParamExists('getProvidersSupportedIntegrations', 'businessIds', businessIds)
|
|
23212
|
+
const localVarPath = `/api/v1/business/providers/supported-integrations`;
|
|
23213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23215
|
+
let baseOptions;
|
|
23216
|
+
if (configuration) {
|
|
23217
|
+
baseOptions = configuration.baseOptions;
|
|
23218
|
+
}
|
|
23219
|
+
|
|
23220
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
23221
|
+
const localVarHeaderParameter = {} as any;
|
|
23222
|
+
const localVarQueryParameter = {} as any;
|
|
23223
|
+
|
|
23224
|
+
// authentication JWT-auth required
|
|
23225
|
+
// http bearer authentication required
|
|
23226
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
23227
|
+
|
|
23228
|
+
if (businessIds) {
|
|
23229
|
+
localVarQueryParameter['businessIds'] = businessIds;
|
|
23230
|
+
}
|
|
23231
|
+
|
|
23232
|
+
|
|
23233
|
+
|
|
21661
23234
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21662
23235
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21663
23236
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -22071,11 +23644,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
22071
23644
|
/**
|
|
22072
23645
|
*
|
|
22073
23646
|
* @param {string} businessId
|
|
22074
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23647
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22075
23648
|
* @param {*} [options] Override http request option.
|
|
22076
23649
|
* @throws {RequiredError}
|
|
22077
23650
|
*/
|
|
22078
|
-
async getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
|
|
23651
|
+
async getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
|
|
22079
23652
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByType(businessId, menuType, options);
|
|
22080
23653
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22081
23654
|
},
|
|
@@ -22083,11 +23656,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
22083
23656
|
*
|
|
22084
23657
|
* @summary Get business menu by type V2
|
|
22085
23658
|
* @param {string} businessId
|
|
22086
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23659
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22087
23660
|
* @param {*} [options] Override http request option.
|
|
22088
23661
|
* @throws {RequiredError}
|
|
22089
23662
|
*/
|
|
22090
|
-
async getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
|
|
23663
|
+
async getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MenuDto>>> {
|
|
22091
23664
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV2(businessId, menuType, options);
|
|
22092
23665
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22093
23666
|
},
|
|
@@ -22095,11 +23668,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
22095
23668
|
*
|
|
22096
23669
|
* @summary Get business menu by type V3
|
|
22097
23670
|
* @param {string} businessId
|
|
22098
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23671
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22099
23672
|
* @param {*} [options] Override http request option.
|
|
22100
23673
|
* @throws {RequiredError}
|
|
22101
23674
|
*/
|
|
22102
|
-
async getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
|
|
23675
|
+
async getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
|
|
22103
23676
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV3(businessId, menuType, options);
|
|
22104
23677
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22105
23678
|
},
|
|
@@ -22107,11 +23680,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
22107
23680
|
*
|
|
22108
23681
|
* @summary Get business menu by type V4
|
|
22109
23682
|
* @param {string} businessId
|
|
22110
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23683
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22111
23684
|
* @param {*} [options] Override http request option.
|
|
22112
23685
|
* @throws {RequiredError}
|
|
22113
23686
|
*/
|
|
22114
|
-
async getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
|
|
23687
|
+
async getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuReponseDto>> {
|
|
22115
23688
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessMenuByTypeV4(businessId, menuType, options);
|
|
22116
23689
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22117
23690
|
},
|
|
@@ -22145,6 +23718,16 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
22145
23718
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessTax(options);
|
|
22146
23719
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22147
23720
|
},
|
|
23721
|
+
/**
|
|
23722
|
+
*
|
|
23723
|
+
* @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
|
|
23724
|
+
* @param {*} [options] Override http request option.
|
|
23725
|
+
* @throws {RequiredError}
|
|
23726
|
+
*/
|
|
23727
|
+
async getProvidersSupportedIntegrations(businessIds: Array<number>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessProvidersSupportedIntegrationsResponseDto>>> {
|
|
23728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProvidersSupportedIntegrations(businessIds, options);
|
|
23729
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
23730
|
+
},
|
|
22148
23731
|
/**
|
|
22149
23732
|
*
|
|
22150
23733
|
* @param {string} businessId Id of the business
|
|
@@ -22351,44 +23934,44 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
22351
23934
|
/**
|
|
22352
23935
|
*
|
|
22353
23936
|
* @param {string} businessId
|
|
22354
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23937
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22355
23938
|
* @param {*} [options] Override http request option.
|
|
22356
23939
|
* @throws {RequiredError}
|
|
22357
23940
|
*/
|
|
22358
|
-
getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<Array<MenuDto>> {
|
|
23941
|
+
getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<Array<MenuDto>> {
|
|
22359
23942
|
return localVarFp.getBusinessMenuByType(businessId, menuType, options).then((request) => request(axios, basePath));
|
|
22360
23943
|
},
|
|
22361
23944
|
/**
|
|
22362
23945
|
*
|
|
22363
23946
|
* @summary Get business menu by type V2
|
|
22364
23947
|
* @param {string} businessId
|
|
22365
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23948
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22366
23949
|
* @param {*} [options] Override http request option.
|
|
22367
23950
|
* @throws {RequiredError}
|
|
22368
23951
|
*/
|
|
22369
|
-
getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<Array<MenuDto>> {
|
|
23952
|
+
getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<Array<MenuDto>> {
|
|
22370
23953
|
return localVarFp.getBusinessMenuByTypeV2(businessId, menuType, options).then((request) => request(axios, basePath));
|
|
22371
23954
|
},
|
|
22372
23955
|
/**
|
|
22373
23956
|
*
|
|
22374
23957
|
* @summary Get business menu by type V3
|
|
22375
23958
|
* @param {string} businessId
|
|
22376
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23959
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22377
23960
|
* @param {*} [options] Override http request option.
|
|
22378
23961
|
* @throws {RequiredError}
|
|
22379
23962
|
*/
|
|
22380
|
-
getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<MenuReponseDto> {
|
|
23963
|
+
getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<MenuReponseDto> {
|
|
22381
23964
|
return localVarFp.getBusinessMenuByTypeV3(businessId, menuType, options).then((request) => request(axios, basePath));
|
|
22382
23965
|
},
|
|
22383
23966
|
/**
|
|
22384
23967
|
*
|
|
22385
23968
|
* @summary Get business menu by type V4
|
|
22386
23969
|
* @param {string} businessId
|
|
22387
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
23970
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22388
23971
|
* @param {*} [options] Override http request option.
|
|
22389
23972
|
* @throws {RequiredError}
|
|
22390
23973
|
*/
|
|
22391
|
-
getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: any): AxiosPromise<MenuReponseDto> {
|
|
23974
|
+
getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: any): AxiosPromise<MenuReponseDto> {
|
|
22392
23975
|
return localVarFp.getBusinessMenuByTypeV4(businessId, menuType, options).then((request) => request(axios, basePath));
|
|
22393
23976
|
},
|
|
22394
23977
|
/**
|
|
@@ -22418,6 +24001,15 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
22418
24001
|
getBusinessTax(options?: any): AxiosPromise<Array<BusinessTaxResponseDto>> {
|
|
22419
24002
|
return localVarFp.getBusinessTax(options).then((request) => request(axios, basePath));
|
|
22420
24003
|
},
|
|
24004
|
+
/**
|
|
24005
|
+
*
|
|
24006
|
+
* @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
|
|
24007
|
+
* @param {*} [options] Override http request option.
|
|
24008
|
+
* @throws {RequiredError}
|
|
24009
|
+
*/
|
|
24010
|
+
getProvidersSupportedIntegrations(businessIds: Array<number>, options?: any): AxiosPromise<Array<BusinessProvidersSupportedIntegrationsResponseDto>> {
|
|
24011
|
+
return localVarFp.getProvidersSupportedIntegrations(businessIds, options).then((request) => request(axios, basePath));
|
|
24012
|
+
},
|
|
22421
24013
|
/**
|
|
22422
24014
|
*
|
|
22423
24015
|
* @param {string} businessId Id of the business
|
|
@@ -22617,45 +24209,45 @@ export interface BusinessApiInterface {
|
|
|
22617
24209
|
/**
|
|
22618
24210
|
*
|
|
22619
24211
|
* @param {string} businessId
|
|
22620
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24212
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22621
24213
|
* @param {*} [options] Override http request option.
|
|
22622
24214
|
* @throws {RequiredError}
|
|
22623
24215
|
* @memberof BusinessApiInterface
|
|
22624
24216
|
*/
|
|
22625
|
-
getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
|
|
24217
|
+
getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
|
|
22626
24218
|
|
|
22627
24219
|
/**
|
|
22628
24220
|
*
|
|
22629
24221
|
* @summary Get business menu by type V2
|
|
22630
24222
|
* @param {string} businessId
|
|
22631
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24223
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22632
24224
|
* @param {*} [options] Override http request option.
|
|
22633
24225
|
* @throws {RequiredError}
|
|
22634
24226
|
* @memberof BusinessApiInterface
|
|
22635
24227
|
*/
|
|
22636
|
-
getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
|
|
24228
|
+
getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<Array<MenuDto>>;
|
|
22637
24229
|
|
|
22638
24230
|
/**
|
|
22639
24231
|
*
|
|
22640
24232
|
* @summary Get business menu by type V3
|
|
22641
24233
|
* @param {string} businessId
|
|
22642
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24234
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22643
24235
|
* @param {*} [options] Override http request option.
|
|
22644
24236
|
* @throws {RequiredError}
|
|
22645
24237
|
* @memberof BusinessApiInterface
|
|
22646
24238
|
*/
|
|
22647
|
-
getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
|
|
24239
|
+
getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
|
|
22648
24240
|
|
|
22649
24241
|
/**
|
|
22650
24242
|
*
|
|
22651
24243
|
* @summary Get business menu by type V4
|
|
22652
24244
|
* @param {string} businessId
|
|
22653
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24245
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22654
24246
|
* @param {*} [options] Override http request option.
|
|
22655
24247
|
* @throws {RequiredError}
|
|
22656
24248
|
* @memberof BusinessApiInterface
|
|
22657
24249
|
*/
|
|
22658
|
-
getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
|
|
24250
|
+
getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig): AxiosPromise<MenuReponseDto>;
|
|
22659
24251
|
|
|
22660
24252
|
/**
|
|
22661
24253
|
*
|
|
@@ -22684,6 +24276,15 @@ export interface BusinessApiInterface {
|
|
|
22684
24276
|
*/
|
|
22685
24277
|
getBusinessTax(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessTaxResponseDto>>;
|
|
22686
24278
|
|
|
24279
|
+
/**
|
|
24280
|
+
*
|
|
24281
|
+
* @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
|
|
24282
|
+
* @param {*} [options] Override http request option.
|
|
24283
|
+
* @throws {RequiredError}
|
|
24284
|
+
* @memberof BusinessApiInterface
|
|
24285
|
+
*/
|
|
24286
|
+
getProvidersSupportedIntegrations(businessIds: Array<number>, options?: AxiosRequestConfig): AxiosPromise<Array<BusinessProvidersSupportedIntegrationsResponseDto>>;
|
|
24287
|
+
|
|
22687
24288
|
/**
|
|
22688
24289
|
*
|
|
22689
24290
|
* @param {string} businessId Id of the business
|
|
@@ -22907,12 +24508,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
22907
24508
|
/**
|
|
22908
24509
|
*
|
|
22909
24510
|
* @param {string} businessId
|
|
22910
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24511
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22911
24512
|
* @param {*} [options] Override http request option.
|
|
22912
24513
|
* @throws {RequiredError}
|
|
22913
24514
|
* @memberof BusinessApi
|
|
22914
24515
|
*/
|
|
22915
|
-
public getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
|
|
24516
|
+
public getBusinessMenuByType(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
|
|
22916
24517
|
return BusinessApiFp(this.configuration).getBusinessMenuByType(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
|
|
22917
24518
|
}
|
|
22918
24519
|
|
|
@@ -22920,12 +24521,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
22920
24521
|
*
|
|
22921
24522
|
* @summary Get business menu by type V2
|
|
22922
24523
|
* @param {string} businessId
|
|
22923
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24524
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22924
24525
|
* @param {*} [options] Override http request option.
|
|
22925
24526
|
* @throws {RequiredError}
|
|
22926
24527
|
* @memberof BusinessApi
|
|
22927
24528
|
*/
|
|
22928
|
-
public getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
|
|
24529
|
+
public getBusinessMenuByTypeV2(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
|
|
22929
24530
|
return BusinessApiFp(this.configuration).getBusinessMenuByTypeV2(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
|
|
22930
24531
|
}
|
|
22931
24532
|
|
|
@@ -22933,12 +24534,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
22933
24534
|
*
|
|
22934
24535
|
* @summary Get business menu by type V3
|
|
22935
24536
|
* @param {string} businessId
|
|
22936
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24537
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22937
24538
|
* @param {*} [options] Override http request option.
|
|
22938
24539
|
* @throws {RequiredError}
|
|
22939
24540
|
* @memberof BusinessApi
|
|
22940
24541
|
*/
|
|
22941
|
-
public getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
|
|
24542
|
+
public getBusinessMenuByTypeV3(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
|
|
22942
24543
|
return BusinessApiFp(this.configuration).getBusinessMenuByTypeV3(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
|
|
22943
24544
|
}
|
|
22944
24545
|
|
|
@@ -22946,12 +24547,12 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
22946
24547
|
*
|
|
22947
24548
|
* @summary Get business menu by type V4
|
|
22948
24549
|
* @param {string} businessId
|
|
22949
|
-
* @param {'pos' | 'kiosk'} menuType Type of menu (e.g., pos)
|
|
24550
|
+
* @param {'pos' | 'kiosk' | 'ayce'} menuType Type of menu (e.g., pos)
|
|
22950
24551
|
* @param {*} [options] Override http request option.
|
|
22951
24552
|
* @throws {RequiredError}
|
|
22952
24553
|
* @memberof BusinessApi
|
|
22953
24554
|
*/
|
|
22954
|
-
public getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk', options?: AxiosRequestConfig) {
|
|
24555
|
+
public getBusinessMenuByTypeV4(businessId: string, menuType: 'pos' | 'kiosk' | 'ayce', options?: AxiosRequestConfig) {
|
|
22955
24556
|
return BusinessApiFp(this.configuration).getBusinessMenuByTypeV4(businessId, menuType, options).then((request) => request(this.axios, this.basePath));
|
|
22956
24557
|
}
|
|
22957
24558
|
|
|
@@ -22988,6 +24589,17 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
22988
24589
|
return BusinessApiFp(this.configuration).getBusinessTax(options).then((request) => request(this.axios, this.basePath));
|
|
22989
24590
|
}
|
|
22990
24591
|
|
|
24592
|
+
/**
|
|
24593
|
+
*
|
|
24594
|
+
* @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
|
|
24595
|
+
* @param {*} [options] Override http request option.
|
|
24596
|
+
* @throws {RequiredError}
|
|
24597
|
+
* @memberof BusinessApi
|
|
24598
|
+
*/
|
|
24599
|
+
public getProvidersSupportedIntegrations(businessIds: Array<number>, options?: AxiosRequestConfig) {
|
|
24600
|
+
return BusinessApiFp(this.configuration).getProvidersSupportedIntegrations(businessIds, options).then((request) => request(this.axios, this.basePath));
|
|
24601
|
+
}
|
|
24602
|
+
|
|
22991
24603
|
/**
|
|
22992
24604
|
*
|
|
22993
24605
|
* @param {string} businessId Id of the business
|
|
@@ -26432,6 +28044,473 @@ export class InvoiceCompaniesApi extends BaseAPI implements InvoiceCompaniesApiI
|
|
|
26432
28044
|
}
|
|
26433
28045
|
|
|
26434
28046
|
|
|
28047
|
+
/**
|
|
28048
|
+
* KDSApi - axios parameter creator
|
|
28049
|
+
* @export
|
|
28050
|
+
*/
|
|
28051
|
+
export const KDSApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28052
|
+
return {
|
|
28053
|
+
/**
|
|
28054
|
+
*
|
|
28055
|
+
* @summary Get KDS orders by status
|
|
28056
|
+
* @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
|
|
28057
|
+
* @param {string} businessIds Comma-separated list of business IDs
|
|
28058
|
+
* @param {string} profileId KDS Profile ID
|
|
28059
|
+
* @param {number} [page] Page number
|
|
28060
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
28061
|
+
* @param {TimeSpan} [timeSpan] Time span shortcut for order creation time filtering
|
|
28062
|
+
* @param {string} [start] Start date for custom or direct date filtering
|
|
28063
|
+
* @param {string} [end] End date for custom or direct date filtering
|
|
28064
|
+
* @param {string} [timezone] IANA timezone used to build the date range
|
|
28065
|
+
* @param {Array<ProviderEnum>} [provider] Provider filter
|
|
28066
|
+
* @param {Array<ConsumptionType>} [consumptionType] Consumption type filter
|
|
28067
|
+
* @param {*} [options] Override http request option.
|
|
28068
|
+
* @throws {RequiredError}
|
|
28069
|
+
*/
|
|
28070
|
+
kdsGetOrders: async (status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, page?: number, rowPerPage?: number, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: Array<ProviderEnum>, consumptionType?: Array<ConsumptionType>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28071
|
+
// verify required parameter 'status' is not null or undefined
|
|
28072
|
+
assertParamExists('kdsGetOrders', 'status', status)
|
|
28073
|
+
// verify required parameter 'businessIds' is not null or undefined
|
|
28074
|
+
assertParamExists('kdsGetOrders', 'businessIds', businessIds)
|
|
28075
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
28076
|
+
assertParamExists('kdsGetOrders', 'profileId', profileId)
|
|
28077
|
+
const localVarPath = `/api/v1/kds/orders/{status}`
|
|
28078
|
+
.replace(`{${"status"}}`, encodeURIComponent(String(status)));
|
|
28079
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28080
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28081
|
+
let baseOptions;
|
|
28082
|
+
if (configuration) {
|
|
28083
|
+
baseOptions = configuration.baseOptions;
|
|
28084
|
+
}
|
|
28085
|
+
|
|
28086
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28087
|
+
const localVarHeaderParameter = {} as any;
|
|
28088
|
+
const localVarQueryParameter = {} as any;
|
|
28089
|
+
|
|
28090
|
+
// authentication JWT-auth required
|
|
28091
|
+
// http bearer authentication required
|
|
28092
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28093
|
+
|
|
28094
|
+
if (businessIds !== undefined) {
|
|
28095
|
+
localVarQueryParameter['businessIds'] = businessIds;
|
|
28096
|
+
}
|
|
28097
|
+
|
|
28098
|
+
if (profileId !== undefined) {
|
|
28099
|
+
localVarQueryParameter['profileId'] = profileId;
|
|
28100
|
+
}
|
|
28101
|
+
|
|
28102
|
+
if (page !== undefined) {
|
|
28103
|
+
localVarQueryParameter['page'] = page;
|
|
28104
|
+
}
|
|
28105
|
+
|
|
28106
|
+
if (rowPerPage !== undefined) {
|
|
28107
|
+
localVarQueryParameter['rowPerPage'] = rowPerPage;
|
|
28108
|
+
}
|
|
28109
|
+
|
|
28110
|
+
if (timeSpan !== undefined) {
|
|
28111
|
+
localVarQueryParameter['timeSpan'] = timeSpan;
|
|
28112
|
+
}
|
|
28113
|
+
|
|
28114
|
+
if (start !== undefined) {
|
|
28115
|
+
localVarQueryParameter['start'] = start;
|
|
28116
|
+
}
|
|
28117
|
+
|
|
28118
|
+
if (end !== undefined) {
|
|
28119
|
+
localVarQueryParameter['end'] = end;
|
|
28120
|
+
}
|
|
28121
|
+
|
|
28122
|
+
if (timezone !== undefined) {
|
|
28123
|
+
localVarQueryParameter['timezone'] = timezone;
|
|
28124
|
+
}
|
|
28125
|
+
|
|
28126
|
+
if (provider) {
|
|
28127
|
+
localVarQueryParameter['provider'] = provider;
|
|
28128
|
+
}
|
|
28129
|
+
|
|
28130
|
+
if (consumptionType) {
|
|
28131
|
+
localVarQueryParameter['consumptionType'] = consumptionType;
|
|
28132
|
+
}
|
|
28133
|
+
|
|
28134
|
+
|
|
28135
|
+
|
|
28136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28138
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28139
|
+
|
|
28140
|
+
return {
|
|
28141
|
+
url: toPathString(localVarUrlObj),
|
|
28142
|
+
options: localVarRequestOptions,
|
|
28143
|
+
};
|
|
28144
|
+
},
|
|
28145
|
+
/**
|
|
28146
|
+
*
|
|
28147
|
+
* @summary Get KDS profiles for a business
|
|
28148
|
+
* @param {number} businessId Business ID
|
|
28149
|
+
* @param {*} [options] Override http request option.
|
|
28150
|
+
* @throws {RequiredError}
|
|
28151
|
+
*/
|
|
28152
|
+
kdsGetProfiles: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28153
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28154
|
+
assertParamExists('kdsGetProfiles', 'businessId', businessId)
|
|
28155
|
+
const localVarPath = `/api/v1/kds/profiles`;
|
|
28156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28157
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28158
|
+
let baseOptions;
|
|
28159
|
+
if (configuration) {
|
|
28160
|
+
baseOptions = configuration.baseOptions;
|
|
28161
|
+
}
|
|
28162
|
+
|
|
28163
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28164
|
+
const localVarHeaderParameter = {} as any;
|
|
28165
|
+
const localVarQueryParameter = {} as any;
|
|
28166
|
+
|
|
28167
|
+
// authentication JWT-auth required
|
|
28168
|
+
// http bearer authentication required
|
|
28169
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28170
|
+
|
|
28171
|
+
if (businessId !== undefined) {
|
|
28172
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
28173
|
+
}
|
|
28174
|
+
|
|
28175
|
+
|
|
28176
|
+
|
|
28177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28179
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28180
|
+
|
|
28181
|
+
return {
|
|
28182
|
+
url: toPathString(localVarUrlObj),
|
|
28183
|
+
options: localVarRequestOptions,
|
|
28184
|
+
};
|
|
28185
|
+
},
|
|
28186
|
+
/**
|
|
28187
|
+
*
|
|
28188
|
+
* @summary Mark a KDS order as ready
|
|
28189
|
+
* @param {string} id KDS order ID
|
|
28190
|
+
* @param {*} [options] Override http request option.
|
|
28191
|
+
* @throws {RequiredError}
|
|
28192
|
+
*/
|
|
28193
|
+
kdsMarkOrderReady: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28194
|
+
// verify required parameter 'id' is not null or undefined
|
|
28195
|
+
assertParamExists('kdsMarkOrderReady', 'id', id)
|
|
28196
|
+
const localVarPath = `/api/v1/kds/orders/{id}/ready`
|
|
28197
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
28198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28200
|
+
let baseOptions;
|
|
28201
|
+
if (configuration) {
|
|
28202
|
+
baseOptions = configuration.baseOptions;
|
|
28203
|
+
}
|
|
28204
|
+
|
|
28205
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
28206
|
+
const localVarHeaderParameter = {} as any;
|
|
28207
|
+
const localVarQueryParameter = {} as any;
|
|
28208
|
+
|
|
28209
|
+
// authentication JWT-auth required
|
|
28210
|
+
// http bearer authentication required
|
|
28211
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28212
|
+
|
|
28213
|
+
|
|
28214
|
+
|
|
28215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28217
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28218
|
+
|
|
28219
|
+
return {
|
|
28220
|
+
url: toPathString(localVarUrlObj),
|
|
28221
|
+
options: localVarRequestOptions,
|
|
28222
|
+
};
|
|
28223
|
+
},
|
|
28224
|
+
/**
|
|
28225
|
+
*
|
|
28226
|
+
* @summary Revert a KDS order back to in progress
|
|
28227
|
+
* @param {string} id KDS order ID
|
|
28228
|
+
* @param {*} [options] Override http request option.
|
|
28229
|
+
* @throws {RequiredError}
|
|
28230
|
+
*/
|
|
28231
|
+
kdsRevertOrder: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28232
|
+
// verify required parameter 'id' is not null or undefined
|
|
28233
|
+
assertParamExists('kdsRevertOrder', 'id', id)
|
|
28234
|
+
const localVarPath = `/api/v1/kds/orders/{id}/revert`
|
|
28235
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
28236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28238
|
+
let baseOptions;
|
|
28239
|
+
if (configuration) {
|
|
28240
|
+
baseOptions = configuration.baseOptions;
|
|
28241
|
+
}
|
|
28242
|
+
|
|
28243
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
28244
|
+
const localVarHeaderParameter = {} as any;
|
|
28245
|
+
const localVarQueryParameter = {} as any;
|
|
28246
|
+
|
|
28247
|
+
// authentication JWT-auth required
|
|
28248
|
+
// http bearer authentication required
|
|
28249
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28250
|
+
|
|
28251
|
+
|
|
28252
|
+
|
|
28253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28255
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28256
|
+
|
|
28257
|
+
return {
|
|
28258
|
+
url: toPathString(localVarUrlObj),
|
|
28259
|
+
options: localVarRequestOptions,
|
|
28260
|
+
};
|
|
28261
|
+
},
|
|
28262
|
+
}
|
|
28263
|
+
};
|
|
28264
|
+
|
|
28265
|
+
/**
|
|
28266
|
+
* KDSApi - functional programming interface
|
|
28267
|
+
* @export
|
|
28268
|
+
*/
|
|
28269
|
+
export const KDSApiFp = function(configuration?: Configuration) {
|
|
28270
|
+
const localVarAxiosParamCreator = KDSApiAxiosParamCreator(configuration)
|
|
28271
|
+
return {
|
|
28272
|
+
/**
|
|
28273
|
+
*
|
|
28274
|
+
* @summary Get KDS orders by status
|
|
28275
|
+
* @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
|
|
28276
|
+
* @param {string} businessIds Comma-separated list of business IDs
|
|
28277
|
+
* @param {string} profileId KDS Profile ID
|
|
28278
|
+
* @param {number} [page] Page number
|
|
28279
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
28280
|
+
* @param {TimeSpan} [timeSpan] Time span shortcut for order creation time filtering
|
|
28281
|
+
* @param {string} [start] Start date for custom or direct date filtering
|
|
28282
|
+
* @param {string} [end] End date for custom or direct date filtering
|
|
28283
|
+
* @param {string} [timezone] IANA timezone used to build the date range
|
|
28284
|
+
* @param {Array<ProviderEnum>} [provider] Provider filter
|
|
28285
|
+
* @param {Array<ConsumptionType>} [consumptionType] Consumption type filter
|
|
28286
|
+
* @param {*} [options] Override http request option.
|
|
28287
|
+
* @throws {RequiredError}
|
|
28288
|
+
*/
|
|
28289
|
+
async kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, page?: number, rowPerPage?: number, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: Array<ProviderEnum>, consumptionType?: Array<ConsumptionType>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsOrderListResponseDto>> {
|
|
28290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetOrders(status, businessIds, profileId, page, rowPerPage, timeSpan, start, end, timezone, provider, consumptionType, options);
|
|
28291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28292
|
+
},
|
|
28293
|
+
/**
|
|
28294
|
+
*
|
|
28295
|
+
* @summary Get KDS profiles for a business
|
|
28296
|
+
* @param {number} businessId Business ID
|
|
28297
|
+
* @param {*} [options] Override http request option.
|
|
28298
|
+
* @throws {RequiredError}
|
|
28299
|
+
*/
|
|
28300
|
+
async kdsGetProfiles(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsProfileDto>>> {
|
|
28301
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetProfiles(businessId, options);
|
|
28302
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28303
|
+
},
|
|
28304
|
+
/**
|
|
28305
|
+
*
|
|
28306
|
+
* @summary Mark a KDS order as ready
|
|
28307
|
+
* @param {string} id KDS order ID
|
|
28308
|
+
* @param {*} [options] Override http request option.
|
|
28309
|
+
* @throws {RequiredError}
|
|
28310
|
+
*/
|
|
28311
|
+
async kdsMarkOrderReady(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsReadyOrderResponseDto>> {
|
|
28312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.kdsMarkOrderReady(id, options);
|
|
28313
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28314
|
+
},
|
|
28315
|
+
/**
|
|
28316
|
+
*
|
|
28317
|
+
* @summary Revert a KDS order back to in progress
|
|
28318
|
+
* @param {string} id KDS order ID
|
|
28319
|
+
* @param {*} [options] Override http request option.
|
|
28320
|
+
* @throws {RequiredError}
|
|
28321
|
+
*/
|
|
28322
|
+
async kdsRevertOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsRevertOrderResponseDto>> {
|
|
28323
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.kdsRevertOrder(id, options);
|
|
28324
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28325
|
+
},
|
|
28326
|
+
}
|
|
28327
|
+
};
|
|
28328
|
+
|
|
28329
|
+
/**
|
|
28330
|
+
* KDSApi - factory interface
|
|
28331
|
+
* @export
|
|
28332
|
+
*/
|
|
28333
|
+
export const KDSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
28334
|
+
const localVarFp = KDSApiFp(configuration)
|
|
28335
|
+
return {
|
|
28336
|
+
/**
|
|
28337
|
+
*
|
|
28338
|
+
* @summary Get KDS orders by status
|
|
28339
|
+
* @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
|
|
28340
|
+
* @param {string} businessIds Comma-separated list of business IDs
|
|
28341
|
+
* @param {string} profileId KDS Profile ID
|
|
28342
|
+
* @param {number} [page] Page number
|
|
28343
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
28344
|
+
* @param {TimeSpan} [timeSpan] Time span shortcut for order creation time filtering
|
|
28345
|
+
* @param {string} [start] Start date for custom or direct date filtering
|
|
28346
|
+
* @param {string} [end] End date for custom or direct date filtering
|
|
28347
|
+
* @param {string} [timezone] IANA timezone used to build the date range
|
|
28348
|
+
* @param {Array<ProviderEnum>} [provider] Provider filter
|
|
28349
|
+
* @param {Array<ConsumptionType>} [consumptionType] Consumption type filter
|
|
28350
|
+
* @param {*} [options] Override http request option.
|
|
28351
|
+
* @throws {RequiredError}
|
|
28352
|
+
*/
|
|
28353
|
+
kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, page?: number, rowPerPage?: number, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: Array<ProviderEnum>, consumptionType?: Array<ConsumptionType>, options?: any): AxiosPromise<KdsOrderListResponseDto> {
|
|
28354
|
+
return localVarFp.kdsGetOrders(status, businessIds, profileId, page, rowPerPage, timeSpan, start, end, timezone, provider, consumptionType, options).then((request) => request(axios, basePath));
|
|
28355
|
+
},
|
|
28356
|
+
/**
|
|
28357
|
+
*
|
|
28358
|
+
* @summary Get KDS profiles for a business
|
|
28359
|
+
* @param {number} businessId Business ID
|
|
28360
|
+
* @param {*} [options] Override http request option.
|
|
28361
|
+
* @throws {RequiredError}
|
|
28362
|
+
*/
|
|
28363
|
+
kdsGetProfiles(businessId: number, options?: any): AxiosPromise<Array<KdsProfileDto>> {
|
|
28364
|
+
return localVarFp.kdsGetProfiles(businessId, options).then((request) => request(axios, basePath));
|
|
28365
|
+
},
|
|
28366
|
+
/**
|
|
28367
|
+
*
|
|
28368
|
+
* @summary Mark a KDS order as ready
|
|
28369
|
+
* @param {string} id KDS order ID
|
|
28370
|
+
* @param {*} [options] Override http request option.
|
|
28371
|
+
* @throws {RequiredError}
|
|
28372
|
+
*/
|
|
28373
|
+
kdsMarkOrderReady(id: string, options?: any): AxiosPromise<KdsReadyOrderResponseDto> {
|
|
28374
|
+
return localVarFp.kdsMarkOrderReady(id, options).then((request) => request(axios, basePath));
|
|
28375
|
+
},
|
|
28376
|
+
/**
|
|
28377
|
+
*
|
|
28378
|
+
* @summary Revert a KDS order back to in progress
|
|
28379
|
+
* @param {string} id KDS order ID
|
|
28380
|
+
* @param {*} [options] Override http request option.
|
|
28381
|
+
* @throws {RequiredError}
|
|
28382
|
+
*/
|
|
28383
|
+
kdsRevertOrder(id: string, options?: any): AxiosPromise<KdsRevertOrderResponseDto> {
|
|
28384
|
+
return localVarFp.kdsRevertOrder(id, options).then((request) => request(axios, basePath));
|
|
28385
|
+
},
|
|
28386
|
+
};
|
|
28387
|
+
};
|
|
28388
|
+
|
|
28389
|
+
/**
|
|
28390
|
+
* KDSApi - interface
|
|
28391
|
+
* @export
|
|
28392
|
+
* @interface KDSApi
|
|
28393
|
+
*/
|
|
28394
|
+
export interface KDSApiInterface {
|
|
28395
|
+
/**
|
|
28396
|
+
*
|
|
28397
|
+
* @summary Get KDS orders by status
|
|
28398
|
+
* @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
|
|
28399
|
+
* @param {string} businessIds Comma-separated list of business IDs
|
|
28400
|
+
* @param {string} profileId KDS Profile ID
|
|
28401
|
+
* @param {number} [page] Page number
|
|
28402
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
28403
|
+
* @param {TimeSpan} [timeSpan] Time span shortcut for order creation time filtering
|
|
28404
|
+
* @param {string} [start] Start date for custom or direct date filtering
|
|
28405
|
+
* @param {string} [end] End date for custom or direct date filtering
|
|
28406
|
+
* @param {string} [timezone] IANA timezone used to build the date range
|
|
28407
|
+
* @param {Array<ProviderEnum>} [provider] Provider filter
|
|
28408
|
+
* @param {Array<ConsumptionType>} [consumptionType] Consumption type filter
|
|
28409
|
+
* @param {*} [options] Override http request option.
|
|
28410
|
+
* @throws {RequiredError}
|
|
28411
|
+
* @memberof KDSApiInterface
|
|
28412
|
+
*/
|
|
28413
|
+
kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, page?: number, rowPerPage?: number, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: Array<ProviderEnum>, consumptionType?: Array<ConsumptionType>, options?: AxiosRequestConfig): AxiosPromise<KdsOrderListResponseDto>;
|
|
28414
|
+
|
|
28415
|
+
/**
|
|
28416
|
+
*
|
|
28417
|
+
* @summary Get KDS profiles for a business
|
|
28418
|
+
* @param {number} businessId Business ID
|
|
28419
|
+
* @param {*} [options] Override http request option.
|
|
28420
|
+
* @throws {RequiredError}
|
|
28421
|
+
* @memberof KDSApiInterface
|
|
28422
|
+
*/
|
|
28423
|
+
kdsGetProfiles(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<KdsProfileDto>>;
|
|
28424
|
+
|
|
28425
|
+
/**
|
|
28426
|
+
*
|
|
28427
|
+
* @summary Mark a KDS order as ready
|
|
28428
|
+
* @param {string} id KDS order ID
|
|
28429
|
+
* @param {*} [options] Override http request option.
|
|
28430
|
+
* @throws {RequiredError}
|
|
28431
|
+
* @memberof KDSApiInterface
|
|
28432
|
+
*/
|
|
28433
|
+
kdsMarkOrderReady(id: string, options?: AxiosRequestConfig): AxiosPromise<KdsReadyOrderResponseDto>;
|
|
28434
|
+
|
|
28435
|
+
/**
|
|
28436
|
+
*
|
|
28437
|
+
* @summary Revert a KDS order back to in progress
|
|
28438
|
+
* @param {string} id KDS order ID
|
|
28439
|
+
* @param {*} [options] Override http request option.
|
|
28440
|
+
* @throws {RequiredError}
|
|
28441
|
+
* @memberof KDSApiInterface
|
|
28442
|
+
*/
|
|
28443
|
+
kdsRevertOrder(id: string, options?: AxiosRequestConfig): AxiosPromise<KdsRevertOrderResponseDto>;
|
|
28444
|
+
|
|
28445
|
+
}
|
|
28446
|
+
|
|
28447
|
+
/**
|
|
28448
|
+
* KDSApi - object-oriented interface
|
|
28449
|
+
* @export
|
|
28450
|
+
* @class KDSApi
|
|
28451
|
+
* @extends {BaseAPI}
|
|
28452
|
+
*/
|
|
28453
|
+
export class KDSApi extends BaseAPI implements KDSApiInterface {
|
|
28454
|
+
/**
|
|
28455
|
+
*
|
|
28456
|
+
* @summary Get KDS orders by status
|
|
28457
|
+
* @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
|
|
28458
|
+
* @param {string} businessIds Comma-separated list of business IDs
|
|
28459
|
+
* @param {string} profileId KDS Profile ID
|
|
28460
|
+
* @param {number} [page] Page number
|
|
28461
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
28462
|
+
* @param {TimeSpan} [timeSpan] Time span shortcut for order creation time filtering
|
|
28463
|
+
* @param {string} [start] Start date for custom or direct date filtering
|
|
28464
|
+
* @param {string} [end] End date for custom or direct date filtering
|
|
28465
|
+
* @param {string} [timezone] IANA timezone used to build the date range
|
|
28466
|
+
* @param {Array<ProviderEnum>} [provider] Provider filter
|
|
28467
|
+
* @param {Array<ConsumptionType>} [consumptionType] Consumption type filter
|
|
28468
|
+
* @param {*} [options] Override http request option.
|
|
28469
|
+
* @throws {RequiredError}
|
|
28470
|
+
* @memberof KDSApi
|
|
28471
|
+
*/
|
|
28472
|
+
public kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, page?: number, rowPerPage?: number, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: Array<ProviderEnum>, consumptionType?: Array<ConsumptionType>, options?: AxiosRequestConfig) {
|
|
28473
|
+
return KDSApiFp(this.configuration).kdsGetOrders(status, businessIds, profileId, page, rowPerPage, timeSpan, start, end, timezone, provider, consumptionType, options).then((request) => request(this.axios, this.basePath));
|
|
28474
|
+
}
|
|
28475
|
+
|
|
28476
|
+
/**
|
|
28477
|
+
*
|
|
28478
|
+
* @summary Get KDS profiles for a business
|
|
28479
|
+
* @param {number} businessId Business ID
|
|
28480
|
+
* @param {*} [options] Override http request option.
|
|
28481
|
+
* @throws {RequiredError}
|
|
28482
|
+
* @memberof KDSApi
|
|
28483
|
+
*/
|
|
28484
|
+
public kdsGetProfiles(businessId: number, options?: AxiosRequestConfig) {
|
|
28485
|
+
return KDSApiFp(this.configuration).kdsGetProfiles(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
28486
|
+
}
|
|
28487
|
+
|
|
28488
|
+
/**
|
|
28489
|
+
*
|
|
28490
|
+
* @summary Mark a KDS order as ready
|
|
28491
|
+
* @param {string} id KDS order ID
|
|
28492
|
+
* @param {*} [options] Override http request option.
|
|
28493
|
+
* @throws {RequiredError}
|
|
28494
|
+
* @memberof KDSApi
|
|
28495
|
+
*/
|
|
28496
|
+
public kdsMarkOrderReady(id: string, options?: AxiosRequestConfig) {
|
|
28497
|
+
return KDSApiFp(this.configuration).kdsMarkOrderReady(id, options).then((request) => request(this.axios, this.basePath));
|
|
28498
|
+
}
|
|
28499
|
+
|
|
28500
|
+
/**
|
|
28501
|
+
*
|
|
28502
|
+
* @summary Revert a KDS order back to in progress
|
|
28503
|
+
* @param {string} id KDS order ID
|
|
28504
|
+
* @param {*} [options] Override http request option.
|
|
28505
|
+
* @throws {RequiredError}
|
|
28506
|
+
* @memberof KDSApi
|
|
28507
|
+
*/
|
|
28508
|
+
public kdsRevertOrder(id: string, options?: AxiosRequestConfig) {
|
|
28509
|
+
return KDSApiFp(this.configuration).kdsRevertOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
28510
|
+
}
|
|
28511
|
+
}
|
|
28512
|
+
|
|
28513
|
+
|
|
26435
28514
|
/**
|
|
26436
28515
|
* KiosksApi - axios parameter creator
|
|
26437
28516
|
* @export
|
|
@@ -26650,6 +28729,53 @@ export class KiosksApi extends BaseAPI implements KiosksApiInterface {
|
|
|
26650
28729
|
*/
|
|
26651
28730
|
export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26652
28731
|
return {
|
|
28732
|
+
/**
|
|
28733
|
+
*
|
|
28734
|
+
* @summary Create loyalty user
|
|
28735
|
+
* @param {number} businessId
|
|
28736
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
28737
|
+
* @param {*} [options] Override http request option.
|
|
28738
|
+
* @throws {RequiredError}
|
|
28739
|
+
*/
|
|
28740
|
+
createLoyaltyUser: async (businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28741
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28742
|
+
assertParamExists('createLoyaltyUser', 'businessId', businessId)
|
|
28743
|
+
// verify required parameter 'createLoyaltyProgramUserDto' is not null or undefined
|
|
28744
|
+
assertParamExists('createLoyaltyUser', 'createLoyaltyProgramUserDto', createLoyaltyProgramUserDto)
|
|
28745
|
+
const localVarPath = `/api/v1/loyalty/users/create`;
|
|
28746
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28747
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28748
|
+
let baseOptions;
|
|
28749
|
+
if (configuration) {
|
|
28750
|
+
baseOptions = configuration.baseOptions;
|
|
28751
|
+
}
|
|
28752
|
+
|
|
28753
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28754
|
+
const localVarHeaderParameter = {} as any;
|
|
28755
|
+
const localVarQueryParameter = {} as any;
|
|
28756
|
+
|
|
28757
|
+
// authentication JWT-auth required
|
|
28758
|
+
// http bearer authentication required
|
|
28759
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28760
|
+
|
|
28761
|
+
if (businessId !== undefined) {
|
|
28762
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
28763
|
+
}
|
|
28764
|
+
|
|
28765
|
+
|
|
28766
|
+
|
|
28767
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28768
|
+
|
|
28769
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28770
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28771
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28772
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLoyaltyProgramUserDto, localVarRequestOptions, configuration)
|
|
28773
|
+
|
|
28774
|
+
return {
|
|
28775
|
+
url: toPathString(localVarUrlObj),
|
|
28776
|
+
options: localVarRequestOptions,
|
|
28777
|
+
};
|
|
28778
|
+
},
|
|
26653
28779
|
/**
|
|
26654
28780
|
*
|
|
26655
28781
|
* @summary Get admin transaction history
|
|
@@ -26903,6 +29029,18 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
|
|
|
26903
29029
|
export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration) {
|
|
26904
29030
|
const localVarAxiosParamCreator = LoyaltyIntegerationsApiAxiosParamCreator(configuration)
|
|
26905
29031
|
return {
|
|
29032
|
+
/**
|
|
29033
|
+
*
|
|
29034
|
+
* @summary Create loyalty user
|
|
29035
|
+
* @param {number} businessId
|
|
29036
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
29037
|
+
* @param {*} [options] Override http request option.
|
|
29038
|
+
* @throws {RequiredError}
|
|
29039
|
+
*/
|
|
29040
|
+
async createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLoyaltyProgramUserResponseDto>> {
|
|
29041
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLoyaltyUser(businessId, createLoyaltyProgramUserDto, options);
|
|
29042
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29043
|
+
},
|
|
26906
29044
|
/**
|
|
26907
29045
|
*
|
|
26908
29046
|
* @summary Get admin transaction history
|
|
@@ -26975,6 +29113,17 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
|
|
|
26975
29113
|
export const LoyaltyIntegerationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26976
29114
|
const localVarFp = LoyaltyIntegerationsApiFp(configuration)
|
|
26977
29115
|
return {
|
|
29116
|
+
/**
|
|
29117
|
+
*
|
|
29118
|
+
* @summary Create loyalty user
|
|
29119
|
+
* @param {number} businessId
|
|
29120
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
29121
|
+
* @param {*} [options] Override http request option.
|
|
29122
|
+
* @throws {RequiredError}
|
|
29123
|
+
*/
|
|
29124
|
+
createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: any): AxiosPromise<CreateLoyaltyProgramUserResponseDto> {
|
|
29125
|
+
return localVarFp.createLoyaltyUser(businessId, createLoyaltyProgramUserDto, options).then((request) => request(axios, basePath));
|
|
29126
|
+
},
|
|
26978
29127
|
/**
|
|
26979
29128
|
*
|
|
26980
29129
|
* @summary Get admin transaction history
|
|
@@ -27041,6 +29190,17 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
|
|
|
27041
29190
|
* @interface LoyaltyIntegerationsApi
|
|
27042
29191
|
*/
|
|
27043
29192
|
export interface LoyaltyIntegerationsApiInterface {
|
|
29193
|
+
/**
|
|
29194
|
+
*
|
|
29195
|
+
* @summary Create loyalty user
|
|
29196
|
+
* @param {number} businessId
|
|
29197
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
29198
|
+
* @param {*} [options] Override http request option.
|
|
29199
|
+
* @throws {RequiredError}
|
|
29200
|
+
* @memberof LoyaltyIntegerationsApiInterface
|
|
29201
|
+
*/
|
|
29202
|
+
createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig): AxiosPromise<CreateLoyaltyProgramUserResponseDto>;
|
|
29203
|
+
|
|
27044
29204
|
/**
|
|
27045
29205
|
*
|
|
27046
29206
|
* @summary Get admin transaction history
|
|
@@ -27107,6 +29267,19 @@ export interface LoyaltyIntegerationsApiInterface {
|
|
|
27107
29267
|
* @extends {BaseAPI}
|
|
27108
29268
|
*/
|
|
27109
29269
|
export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerationsApiInterface {
|
|
29270
|
+
/**
|
|
29271
|
+
*
|
|
29272
|
+
* @summary Create loyalty user
|
|
29273
|
+
* @param {number} businessId
|
|
29274
|
+
* @param {CreateLoyaltyProgramUserDto} createLoyaltyProgramUserDto
|
|
29275
|
+
* @param {*} [options] Override http request option.
|
|
29276
|
+
* @throws {RequiredError}
|
|
29277
|
+
* @memberof LoyaltyIntegerationsApi
|
|
29278
|
+
*/
|
|
29279
|
+
public createLoyaltyUser(businessId: number, createLoyaltyProgramUserDto: CreateLoyaltyProgramUserDto, options?: AxiosRequestConfig) {
|
|
29280
|
+
return LoyaltyIntegerationsApiFp(this.configuration).createLoyaltyUser(businessId, createLoyaltyProgramUserDto, options).then((request) => request(this.axios, this.basePath));
|
|
29281
|
+
}
|
|
29282
|
+
|
|
27110
29283
|
/**
|
|
27111
29284
|
*
|
|
27112
29285
|
* @summary Get admin transaction history
|
|
@@ -28146,6 +30319,129 @@ export class NotificationApi extends BaseAPI implements NotificationApiInterface
|
|
|
28146
30319
|
}
|
|
28147
30320
|
|
|
28148
30321
|
|
|
30322
|
+
/**
|
|
30323
|
+
* OrderInternalApi - axios parameter creator
|
|
30324
|
+
* @export
|
|
30325
|
+
*/
|
|
30326
|
+
export const OrderInternalApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30327
|
+
return {
|
|
30328
|
+
/**
|
|
30329
|
+
*
|
|
30330
|
+
* @summary Get order data by external ID for internal microservice communication
|
|
30331
|
+
* @param {string} externalId
|
|
30332
|
+
* @param {*} [options] Override http request option.
|
|
30333
|
+
* @throws {RequiredError}
|
|
30334
|
+
*/
|
|
30335
|
+
findOneByExternalId: async (externalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30336
|
+
// verify required parameter 'externalId' is not null or undefined
|
|
30337
|
+
assertParamExists('findOneByExternalId', 'externalId', externalId)
|
|
30338
|
+
const localVarPath = `/api/v1/orders/internal/{externalId}`
|
|
30339
|
+
.replace(`{${"externalId"}}`, encodeURIComponent(String(externalId)));
|
|
30340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30342
|
+
let baseOptions;
|
|
30343
|
+
if (configuration) {
|
|
30344
|
+
baseOptions = configuration.baseOptions;
|
|
30345
|
+
}
|
|
30346
|
+
|
|
30347
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30348
|
+
const localVarHeaderParameter = {} as any;
|
|
30349
|
+
const localVarQueryParameter = {} as any;
|
|
30350
|
+
|
|
30351
|
+
|
|
30352
|
+
|
|
30353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30355
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30356
|
+
|
|
30357
|
+
return {
|
|
30358
|
+
url: toPathString(localVarUrlObj),
|
|
30359
|
+
options: localVarRequestOptions,
|
|
30360
|
+
};
|
|
30361
|
+
},
|
|
30362
|
+
}
|
|
30363
|
+
};
|
|
30364
|
+
|
|
30365
|
+
/**
|
|
30366
|
+
* OrderInternalApi - functional programming interface
|
|
30367
|
+
* @export
|
|
30368
|
+
*/
|
|
30369
|
+
export const OrderInternalApiFp = function(configuration?: Configuration) {
|
|
30370
|
+
const localVarAxiosParamCreator = OrderInternalApiAxiosParamCreator(configuration)
|
|
30371
|
+
return {
|
|
30372
|
+
/**
|
|
30373
|
+
*
|
|
30374
|
+
* @summary Get order data by external ID for internal microservice communication
|
|
30375
|
+
* @param {string} externalId
|
|
30376
|
+
* @param {*} [options] Override http request option.
|
|
30377
|
+
* @throws {RequiredError}
|
|
30378
|
+
*/
|
|
30379
|
+
async findOneByExternalId(externalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
30380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOneByExternalId(externalId, options);
|
|
30381
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30382
|
+
},
|
|
30383
|
+
}
|
|
30384
|
+
};
|
|
30385
|
+
|
|
30386
|
+
/**
|
|
30387
|
+
* OrderInternalApi - factory interface
|
|
30388
|
+
* @export
|
|
30389
|
+
*/
|
|
30390
|
+
export const OrderInternalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30391
|
+
const localVarFp = OrderInternalApiFp(configuration)
|
|
30392
|
+
return {
|
|
30393
|
+
/**
|
|
30394
|
+
*
|
|
30395
|
+
* @summary Get order data by external ID for internal microservice communication
|
|
30396
|
+
* @param {string} externalId
|
|
30397
|
+
* @param {*} [options] Override http request option.
|
|
30398
|
+
* @throws {RequiredError}
|
|
30399
|
+
*/
|
|
30400
|
+
findOneByExternalId(externalId: string, options?: any): AxiosPromise<void> {
|
|
30401
|
+
return localVarFp.findOneByExternalId(externalId, options).then((request) => request(axios, basePath));
|
|
30402
|
+
},
|
|
30403
|
+
};
|
|
30404
|
+
};
|
|
30405
|
+
|
|
30406
|
+
/**
|
|
30407
|
+
* OrderInternalApi - interface
|
|
30408
|
+
* @export
|
|
30409
|
+
* @interface OrderInternalApi
|
|
30410
|
+
*/
|
|
30411
|
+
export interface OrderInternalApiInterface {
|
|
30412
|
+
/**
|
|
30413
|
+
*
|
|
30414
|
+
* @summary Get order data by external ID for internal microservice communication
|
|
30415
|
+
* @param {string} externalId
|
|
30416
|
+
* @param {*} [options] Override http request option.
|
|
30417
|
+
* @throws {RequiredError}
|
|
30418
|
+
* @memberof OrderInternalApiInterface
|
|
30419
|
+
*/
|
|
30420
|
+
findOneByExternalId(externalId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30421
|
+
|
|
30422
|
+
}
|
|
30423
|
+
|
|
30424
|
+
/**
|
|
30425
|
+
* OrderInternalApi - object-oriented interface
|
|
30426
|
+
* @export
|
|
30427
|
+
* @class OrderInternalApi
|
|
30428
|
+
* @extends {BaseAPI}
|
|
30429
|
+
*/
|
|
30430
|
+
export class OrderInternalApi extends BaseAPI implements OrderInternalApiInterface {
|
|
30431
|
+
/**
|
|
30432
|
+
*
|
|
30433
|
+
* @summary Get order data by external ID for internal microservice communication
|
|
30434
|
+
* @param {string} externalId
|
|
30435
|
+
* @param {*} [options] Override http request option.
|
|
30436
|
+
* @throws {RequiredError}
|
|
30437
|
+
* @memberof OrderInternalApi
|
|
30438
|
+
*/
|
|
30439
|
+
public findOneByExternalId(externalId: string, options?: AxiosRequestConfig) {
|
|
30440
|
+
return OrderInternalApiFp(this.configuration).findOneByExternalId(externalId, options).then((request) => request(this.axios, this.basePath));
|
|
30441
|
+
}
|
|
30442
|
+
}
|
|
30443
|
+
|
|
30444
|
+
|
|
28149
30445
|
/**
|
|
28150
30446
|
* OrderingCoApi - axios parameter creator
|
|
28151
30447
|
* @export
|
|
@@ -28486,6 +30782,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
28486
30782
|
const localVarHeaderParameter = {} as any;
|
|
28487
30783
|
const localVarQueryParameter = {} as any;
|
|
28488
30784
|
|
|
30785
|
+
if (businessIds !== undefined) {
|
|
30786
|
+
localVarQueryParameter['businessIds'] = businessIds;
|
|
30787
|
+
}
|
|
30788
|
+
|
|
28489
30789
|
if (posBusinessId !== undefined) {
|
|
28490
30790
|
localVarQueryParameter['posBusinessId'] = posBusinessId;
|
|
28491
30791
|
}
|
|
@@ -28494,10 +30794,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
28494
30794
|
localVarQueryParameter['extraProvider'] = extraProvider;
|
|
28495
30795
|
}
|
|
28496
30796
|
|
|
28497
|
-
if (businessIds !== undefined) {
|
|
28498
|
-
localVarQueryParameter['businessIds'] = businessIds;
|
|
28499
|
-
}
|
|
28500
|
-
|
|
28501
30797
|
|
|
28502
30798
|
|
|
28503
30799
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -32946,41 +35242,6 @@ export const StationsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
32946
35242
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32947
35243
|
localVarRequestOptions.data = serializeDataIfNeeded(syncStationDto, localVarRequestOptions, configuration)
|
|
32948
35244
|
|
|
32949
|
-
return {
|
|
32950
|
-
url: toPathString(localVarUrlObj),
|
|
32951
|
-
options: localVarRequestOptions,
|
|
32952
|
-
};
|
|
32953
|
-
},
|
|
32954
|
-
/**
|
|
32955
|
-
*
|
|
32956
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
32957
|
-
* @param {*} [options] Override http request option.
|
|
32958
|
-
* @throws {RequiredError}
|
|
32959
|
-
*/
|
|
32960
|
-
syncTerminal: async (syncTerminalDto: SyncTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32961
|
-
// verify required parameter 'syncTerminalDto' is not null or undefined
|
|
32962
|
-
assertParamExists('syncTerminal', 'syncTerminalDto', syncTerminalDto)
|
|
32963
|
-
const localVarPath = `/api/v1/station/terminal/sync`;
|
|
32964
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32965
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32966
|
-
let baseOptions;
|
|
32967
|
-
if (configuration) {
|
|
32968
|
-
baseOptions = configuration.baseOptions;
|
|
32969
|
-
}
|
|
32970
|
-
|
|
32971
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32972
|
-
const localVarHeaderParameter = {} as any;
|
|
32973
|
-
const localVarQueryParameter = {} as any;
|
|
32974
|
-
|
|
32975
|
-
|
|
32976
|
-
|
|
32977
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32978
|
-
|
|
32979
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32980
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32981
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32982
|
-
localVarRequestOptions.data = serializeDataIfNeeded(syncTerminalDto, localVarRequestOptions, configuration)
|
|
32983
|
-
|
|
32984
35245
|
return {
|
|
32985
35246
|
url: toPathString(localVarUrlObj),
|
|
32986
35247
|
options: localVarRequestOptions,
|
|
@@ -33024,16 +35285,6 @@ export const StationsApiFp = function(configuration?: Configuration) {
|
|
|
33024
35285
|
const localVarAxiosArgs = await localVarAxiosParamCreator.syncStation(syncStationDto, options);
|
|
33025
35286
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33026
35287
|
},
|
|
33027
|
-
/**
|
|
33028
|
-
*
|
|
33029
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
33030
|
-
* @param {*} [options] Override http request option.
|
|
33031
|
-
* @throws {RequiredError}
|
|
33032
|
-
*/
|
|
33033
|
-
async syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationSyncResponseDto>> {
|
|
33034
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.syncTerminal(syncTerminalDto, options);
|
|
33035
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33036
|
-
},
|
|
33037
35288
|
}
|
|
33038
35289
|
};
|
|
33039
35290
|
|
|
@@ -33069,15 +35320,6 @@ export const StationsApiFactory = function (configuration?: Configuration, baseP
|
|
|
33069
35320
|
syncStation(syncStationDto: SyncStationDto, options?: any): AxiosPromise<StationSyncResponseDto> {
|
|
33070
35321
|
return localVarFp.syncStation(syncStationDto, options).then((request) => request(axios, basePath));
|
|
33071
35322
|
},
|
|
33072
|
-
/**
|
|
33073
|
-
*
|
|
33074
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
33075
|
-
* @param {*} [options] Override http request option.
|
|
33076
|
-
* @throws {RequiredError}
|
|
33077
|
-
*/
|
|
33078
|
-
syncTerminal(syncTerminalDto: SyncTerminalDto, options?: any): AxiosPromise<StationSyncResponseDto> {
|
|
33079
|
-
return localVarFp.syncTerminal(syncTerminalDto, options).then((request) => request(axios, basePath));
|
|
33080
|
-
},
|
|
33081
35323
|
};
|
|
33082
35324
|
};
|
|
33083
35325
|
|
|
@@ -33112,15 +35354,6 @@ export interface StationsApiInterface {
|
|
|
33112
35354
|
*/
|
|
33113
35355
|
syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
|
|
33114
35356
|
|
|
33115
|
-
/**
|
|
33116
|
-
*
|
|
33117
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
33118
|
-
* @param {*} [options] Override http request option.
|
|
33119
|
-
* @throws {RequiredError}
|
|
33120
|
-
* @memberof StationsApiInterface
|
|
33121
|
-
*/
|
|
33122
|
-
syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
|
|
33123
|
-
|
|
33124
35357
|
}
|
|
33125
35358
|
|
|
33126
35359
|
/**
|
|
@@ -33160,17 +35393,6 @@ export class StationsApi extends BaseAPI implements StationsApiInterface {
|
|
|
33160
35393
|
public syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig) {
|
|
33161
35394
|
return StationsApiFp(this.configuration).syncStation(syncStationDto, options).then((request) => request(this.axios, this.basePath));
|
|
33162
35395
|
}
|
|
33163
|
-
|
|
33164
|
-
/**
|
|
33165
|
-
*
|
|
33166
|
-
* @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
|
|
33167
|
-
* @param {*} [options] Override http request option.
|
|
33168
|
-
* @throws {RequiredError}
|
|
33169
|
-
* @memberof StationsApi
|
|
33170
|
-
*/
|
|
33171
|
-
public syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig) {
|
|
33172
|
-
return StationsApiFp(this.configuration).syncTerminal(syncTerminalDto, options).then((request) => request(this.axios, this.basePath));
|
|
33173
|
-
}
|
|
33174
35396
|
}
|
|
33175
35397
|
|
|
33176
35398
|
|
|
@@ -33553,7 +35775,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
33553
35775
|
* @param {*} [options] Override http request option.
|
|
33554
35776
|
* @throws {RequiredError}
|
|
33555
35777
|
*/
|
|
33556
|
-
|
|
35778
|
+
getUserBusinessV1: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33557
35779
|
const localVarPath = `/api/v1/user/business`;
|
|
33558
35780
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33559
35781
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -33572,6 +35794,40 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
33572
35794
|
|
|
33573
35795
|
|
|
33574
35796
|
|
|
35797
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35799
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35800
|
+
|
|
35801
|
+
return {
|
|
35802
|
+
url: toPathString(localVarUrlObj),
|
|
35803
|
+
options: localVarRequestOptions,
|
|
35804
|
+
};
|
|
35805
|
+
},
|
|
35806
|
+
/**
|
|
35807
|
+
*
|
|
35808
|
+
* @summary Retrieve user Business information with KDS profiles
|
|
35809
|
+
* @param {*} [options] Override http request option.
|
|
35810
|
+
* @throws {RequiredError}
|
|
35811
|
+
*/
|
|
35812
|
+
getUserBusinessV2: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35813
|
+
const localVarPath = `/api/v2/user/business`;
|
|
35814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35816
|
+
let baseOptions;
|
|
35817
|
+
if (configuration) {
|
|
35818
|
+
baseOptions = configuration.baseOptions;
|
|
35819
|
+
}
|
|
35820
|
+
|
|
35821
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35822
|
+
const localVarHeaderParameter = {} as any;
|
|
35823
|
+
const localVarQueryParameter = {} as any;
|
|
35824
|
+
|
|
35825
|
+
// authentication JWT-auth required
|
|
35826
|
+
// http bearer authentication required
|
|
35827
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
35828
|
+
|
|
35829
|
+
|
|
35830
|
+
|
|
33575
35831
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33576
35832
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33577
35833
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -33587,7 +35843,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
33587
35843
|
* @param {*} [options] Override http request option.
|
|
33588
35844
|
* @throws {RequiredError}
|
|
33589
35845
|
*/
|
|
33590
|
-
|
|
35846
|
+
getUserInfoV1: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33591
35847
|
const localVarPath = `/api/v1/user`;
|
|
33592
35848
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33593
35849
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -33631,8 +35887,18 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
33631
35887
|
* @param {*} [options] Override http request option.
|
|
33632
35888
|
* @throws {RequiredError}
|
|
33633
35889
|
*/
|
|
33634
|
-
async
|
|
33635
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
35890
|
+
async getUserBusinessV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoResponseDto>>> {
|
|
35891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBusinessV1(options);
|
|
35892
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35893
|
+
},
|
|
35894
|
+
/**
|
|
35895
|
+
*
|
|
35896
|
+
* @summary Retrieve user Business information with KDS profiles
|
|
35897
|
+
* @param {*} [options] Override http request option.
|
|
35898
|
+
* @throws {RequiredError}
|
|
35899
|
+
*/
|
|
35900
|
+
async getUserBusinessV2(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoV2ResponseDto>>> {
|
|
35901
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBusinessV2(options);
|
|
33636
35902
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33637
35903
|
},
|
|
33638
35904
|
/**
|
|
@@ -33641,8 +35907,8 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
33641
35907
|
* @param {*} [options] Override http request option.
|
|
33642
35908
|
* @throws {RequiredError}
|
|
33643
35909
|
*/
|
|
33644
|
-
async
|
|
33645
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
35910
|
+
async getUserInfoV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserInfoResponseDto>> {
|
|
35911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfoV1(options);
|
|
33646
35912
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33647
35913
|
},
|
|
33648
35914
|
}
|
|
@@ -33661,8 +35927,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
33661
35927
|
* @param {*} [options] Override http request option.
|
|
33662
35928
|
* @throws {RequiredError}
|
|
33663
35929
|
*/
|
|
33664
|
-
|
|
33665
|
-
return localVarFp.
|
|
35930
|
+
getUserBusinessV1(options?: any): AxiosPromise<Array<BusinessInfoResponseDto>> {
|
|
35931
|
+
return localVarFp.getUserBusinessV1(options).then((request) => request(axios, basePath));
|
|
35932
|
+
},
|
|
35933
|
+
/**
|
|
35934
|
+
*
|
|
35935
|
+
* @summary Retrieve user Business information with KDS profiles
|
|
35936
|
+
* @param {*} [options] Override http request option.
|
|
35937
|
+
* @throws {RequiredError}
|
|
35938
|
+
*/
|
|
35939
|
+
getUserBusinessV2(options?: any): AxiosPromise<Array<BusinessInfoV2ResponseDto>> {
|
|
35940
|
+
return localVarFp.getUserBusinessV2(options).then((request) => request(axios, basePath));
|
|
33666
35941
|
},
|
|
33667
35942
|
/**
|
|
33668
35943
|
*
|
|
@@ -33670,8 +35945,8 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
33670
35945
|
* @param {*} [options] Override http request option.
|
|
33671
35946
|
* @throws {RequiredError}
|
|
33672
35947
|
*/
|
|
33673
|
-
|
|
33674
|
-
return localVarFp.
|
|
35948
|
+
getUserInfoV1(options?: any): AxiosPromise<GetUserInfoResponseDto> {
|
|
35949
|
+
return localVarFp.getUserInfoV1(options).then((request) => request(axios, basePath));
|
|
33675
35950
|
},
|
|
33676
35951
|
};
|
|
33677
35952
|
};
|
|
@@ -33689,7 +35964,16 @@ export interface UserApiInterface {
|
|
|
33689
35964
|
* @throws {RequiredError}
|
|
33690
35965
|
* @memberof UserApiInterface
|
|
33691
35966
|
*/
|
|
33692
|
-
|
|
35967
|
+
getUserBusinessV1(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoResponseDto>>;
|
|
35968
|
+
|
|
35969
|
+
/**
|
|
35970
|
+
*
|
|
35971
|
+
* @summary Retrieve user Business information with KDS profiles
|
|
35972
|
+
* @param {*} [options] Override http request option.
|
|
35973
|
+
* @throws {RequiredError}
|
|
35974
|
+
* @memberof UserApiInterface
|
|
35975
|
+
*/
|
|
35976
|
+
getUserBusinessV2(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoV2ResponseDto>>;
|
|
33693
35977
|
|
|
33694
35978
|
/**
|
|
33695
35979
|
*
|
|
@@ -33698,7 +35982,7 @@ export interface UserApiInterface {
|
|
|
33698
35982
|
* @throws {RequiredError}
|
|
33699
35983
|
* @memberof UserApiInterface
|
|
33700
35984
|
*/
|
|
33701
|
-
|
|
35985
|
+
getUserInfoV1(options?: AxiosRequestConfig): AxiosPromise<GetUserInfoResponseDto>;
|
|
33702
35986
|
|
|
33703
35987
|
}
|
|
33704
35988
|
|
|
@@ -33716,8 +36000,19 @@ export class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
33716
36000
|
* @throws {RequiredError}
|
|
33717
36001
|
* @memberof UserApi
|
|
33718
36002
|
*/
|
|
33719
|
-
public
|
|
33720
|
-
return UserApiFp(this.configuration).
|
|
36003
|
+
public getUserBusinessV1(options?: AxiosRequestConfig) {
|
|
36004
|
+
return UserApiFp(this.configuration).getUserBusinessV1(options).then((request) => request(this.axios, this.basePath));
|
|
36005
|
+
}
|
|
36006
|
+
|
|
36007
|
+
/**
|
|
36008
|
+
*
|
|
36009
|
+
* @summary Retrieve user Business information with KDS profiles
|
|
36010
|
+
* @param {*} [options] Override http request option.
|
|
36011
|
+
* @throws {RequiredError}
|
|
36012
|
+
* @memberof UserApi
|
|
36013
|
+
*/
|
|
36014
|
+
public getUserBusinessV2(options?: AxiosRequestConfig) {
|
|
36015
|
+
return UserApiFp(this.configuration).getUserBusinessV2(options).then((request) => request(this.axios, this.basePath));
|
|
33721
36016
|
}
|
|
33722
36017
|
|
|
33723
36018
|
/**
|
|
@@ -33727,8 +36022,8 @@ export class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
33727
36022
|
* @throws {RequiredError}
|
|
33728
36023
|
* @memberof UserApi
|
|
33729
36024
|
*/
|
|
33730
|
-
public
|
|
33731
|
-
return UserApiFp(this.configuration).
|
|
36025
|
+
public getUserInfoV1(options?: AxiosRequestConfig) {
|
|
36026
|
+
return UserApiFp(this.configuration).getUserInfoV1(options).then((request) => request(this.axios, this.basePath));
|
|
33732
36027
|
}
|
|
33733
36028
|
}
|
|
33734
36029
|
|