@munchi_oy/core 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/generated/api.ts CHANGED
@@ -2669,6 +2669,33 @@ export interface ChangeEmployeeRoleDto {
2669
2669
  */
2670
2670
  'permissionKeys'?: Array<PosPermission>;
2671
2671
  }
2672
+ /**
2673
+ *
2674
+ * @export
2675
+ * @interface ChangeKioskDto
2676
+ */
2677
+ export interface ChangeKioskDto {
2678
+ /**
2679
+ * The kiosk\'s new name; left out, it keeps its name
2680
+ * @type {string}
2681
+ * @memberof ChangeKioskDto
2682
+ */
2683
+ 'name'?: string;
2684
+ /**
2685
+ * What the kiosk\'s order numbers start with, an empty text for none; left out, it keeps its prefix
2686
+ * @type {string}
2687
+ * @memberof ChangeKioskDto
2688
+ */
2689
+ 'prefix'?: string;
2690
+ /**
2691
+ *
2692
+ * @type {Status}
2693
+ * @memberof ChangeKioskDto
2694
+ */
2695
+ 'status'?: Status;
2696
+ }
2697
+
2698
+
2672
2699
  /**
2673
2700
  *
2674
2701
  * @export
@@ -3145,6 +3172,31 @@ export const CheckoutModelEnum = {
3145
3172
  export type CheckoutModelEnum = typeof CheckoutModelEnum[keyof typeof CheckoutModelEnum];
3146
3173
 
3147
3174
 
3175
+ /**
3176
+ *
3177
+ * @export
3178
+ * @interface ClaimKioskDto
3179
+ */
3180
+ export interface ClaimKioskDto {
3181
+ /**
3182
+ * The Hardware ID the kiosk shows on its Getting started screen, exactly as shown; it is the id the device sends in X-Munchi-Hardware-Id
3183
+ * @type {string}
3184
+ * @memberof ClaimKioskDto
3185
+ */
3186
+ 'hardwareId': string;
3187
+ /**
3188
+ * The kiosk\'s name, as the venue\'s staff call it
3189
+ * @type {string}
3190
+ * @memberof ClaimKioskDto
3191
+ */
3192
+ 'name': string;
3193
+ /**
3194
+ * What the kiosk\'s order numbers start with. Left out, a new kiosk has none and a kiosk the venue had keeps its own
3195
+ * @type {string}
3196
+ * @memberof ClaimKioskDto
3197
+ */
3198
+ 'prefix'?: string;
3199
+ }
3148
3200
  /**
3149
3201
  *
3150
3202
  * @export
@@ -11403,6 +11455,33 @@ export interface KioskStatusDto {
11403
11455
  }
11404
11456
 
11405
11457
 
11458
+ /**
11459
+ *
11460
+ * @export
11461
+ * @interface KioskTerminalDto
11462
+ */
11463
+ export interface KioskTerminalDto {
11464
+ /**
11465
+ * The payment terminal\'s id
11466
+ * @type {string}
11467
+ * @memberof KioskTerminalDto
11468
+ */
11469
+ 'id': string;
11470
+ /**
11471
+ *
11472
+ * @type {PaymentProvider}
11473
+ * @memberof KioskTerminalDto
11474
+ */
11475
+ 'provider': PaymentProvider;
11476
+ /**
11477
+ * The terminal\'s label; null when it was given none
11478
+ * @type {string}
11479
+ * @memberof KioskTerminalDto
11480
+ */
11481
+ 'label': string | null;
11482
+ }
11483
+
11484
+
11406
11485
  /**
11407
11486
  *
11408
11487
  * @export
@@ -11537,6 +11616,19 @@ export interface LapseResponseDto {
11537
11616
  */
11538
11617
  'businessDayScheduleId': string;
11539
11618
  }
11619
+ /**
11620
+ *
11621
+ * @export
11622
+ * @interface LinkKioskTerminalDto
11623
+ */
11624
+ export interface LinkKioskTerminalDto {
11625
+ /**
11626
+ * The id of one of the venue\'s payment terminals, as the venue\'s terminal list answers it, or null to unlink the kiosk\'s terminal
11627
+ * @type {string}
11628
+ * @memberof LinkKioskTerminalDto
11629
+ */
11630
+ 'paymentTerminalId': string | null;
11631
+ }
11540
11632
  /**
11541
11633
  *
11542
11634
  * @export
@@ -14805,7 +14897,7 @@ export interface OrderHistoryPosResponseDtoV2Pagination {
14805
14897
  */
14806
14898
  export interface OrderHistoryPosResponseDtoV2Summary {
14807
14899
  /**
14808
- * How many orders of the period count: online, every order not rejected; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
14900
+ * How many orders of the period count: online, every order neither rejected nor fully refunded; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
14809
14901
  * @type {number}
14810
14902
  * @memberof OrderHistoryPosResponseDtoV2Summary
14811
14903
  */
@@ -14817,7 +14909,7 @@ export interface OrderHistoryPosResponseDtoV2Summary {
14817
14909
  */
14818
14910
  'rejectedOrders': number;
14819
14911
  /**
14820
- * The period\'s sales in euros (not cents): online, the net total of the orders not rejected; POS, the payments less successful refunds. 0 when the person on the till may not see it.
14912
+ * The period\'s sales in euros (not cents): online, the net total of the orders neither rejected nor fully refunded, less their completed refunds; POS, the payments less successful refunds. 0 when the person on the till may not see it.
14821
14913
  * @type {number}
14822
14914
  * @memberof OrderHistoryPosResponseDtoV2Summary
14823
14915
  */
@@ -14873,7 +14965,7 @@ export interface OrderHistoryResponseDto {
14873
14965
  */
14874
14966
  export interface OrderHistoryResponseDtoSummary {
14875
14967
  /**
14876
- * How many orders of the period count: online, every order not rejected; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
14968
+ * How many orders of the period count: online, every order neither rejected nor fully refunded; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
14877
14969
  * @type {number}
14878
14970
  * @memberof OrderHistoryResponseDtoSummary
14879
14971
  */
@@ -14885,7 +14977,7 @@ export interface OrderHistoryResponseDtoSummary {
14885
14977
  */
14886
14978
  'rejectedOrders': number;
14887
14979
  /**
14888
- * The period\'s sales in euros (not cents): online, the net total of the orders not rejected; POS, the payments less successful refunds. 0 when the person on the till may not see it.
14980
+ * The period\'s sales in euros (not cents): online, the net total of the orders neither rejected nor fully refunded, less their completed refunds; POS, the payments less successful refunds. 0 when the person on the till may not see it.
14889
14981
  * @type {number}
14890
14982
  * @memberof OrderHistoryResponseDtoSummary
14891
14983
  */
@@ -15911,7 +16003,7 @@ export interface OrderStatusResponseDtoOrder {
15911
16003
  */
15912
16004
  export interface OrderSummaryDto {
15913
16005
  /**
15914
- * How many orders of the period count: online, every order not rejected; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
16006
+ * How many orders of the period count: online, every order neither rejected nor fully refunded; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
15915
16007
  * @type {number}
15916
16008
  * @memberof OrderSummaryDto
15917
16009
  */
@@ -15923,7 +16015,7 @@ export interface OrderSummaryDto {
15923
16015
  */
15924
16016
  'rejectedOrders': number;
15925
16017
  /**
15926
- * The period\'s sales in euros (not cents): online, the net total of the orders not rejected; POS, the payments less successful refunds. 0 when the person on the till may not see it.
16018
+ * The period\'s sales in euros (not cents): online, the net total of the orders neither rejected nor fully refunded, less their completed refunds; POS, the payments less successful refunds. 0 when the person on the till may not see it.
15927
16019
  * @type {number}
15928
16020
  * @memberof OrderSummaryDto
15929
16021
  */
@@ -21802,7 +21894,7 @@ export interface PosOrderSuboptionDto {
21802
21894
  */
21803
21895
  export interface PosOrderSummaryDto {
21804
21896
  /**
21805
- * How many orders of the period count: online, every order not rejected; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
21897
+ * How many orders of the period count: online, every order neither rejected nor fully refunded; POS, every order not fully refunded (with a payment filter, only those with a matching payment). 0 when the person on the till may not see it.
21806
21898
  * @type {number}
21807
21899
  * @memberof PosOrderSummaryDto
21808
21900
  */
@@ -21814,7 +21906,7 @@ export interface PosOrderSummaryDto {
21814
21906
  */
21815
21907
  'rejectedOrders': number;
21816
21908
  /**
21817
- * The period\'s sales in euros (not cents): online, the net total of the orders not rejected; POS, the payments less successful refunds. 0 when the person on the till may not see it.
21909
+ * The period\'s sales in euros (not cents): online, the net total of the orders neither rejected nor fully refunded, less their completed refunds; POS, the payments less successful refunds. 0 when the person on the till may not see it.
21818
21910
  * @type {number}
21819
21911
  * @memberof PosOrderSummaryDto
21820
21912
  */
@@ -29407,6 +29499,12 @@ export interface SalesReportStaffMemberDto {
29407
29499
  * @memberof SalesReportStaffMemberDto
29408
29500
  */
29409
29501
  'staffId': string;
29502
+ /**
29503
+ * The staff member\'s name; null for the orders that name nobody, or a person who left the venue
29504
+ * @type {string}
29505
+ * @memberof SalesReportStaffMemberDto
29506
+ */
29507
+ 'staffName': string | null;
29410
29508
  /**
29411
29509
  * Orders not refunded, or refunded in part (the POS app\'s totalOrders)
29412
29510
  * @type {number}
@@ -35765,6 +35863,18 @@ export interface UpsertConfigDto {
35765
35863
  * @memberof UpsertConfigDto
35766
35864
  */
35767
35865
  'productDetailLayout'?: ProductDetailLayout;
35866
+ /**
35867
+ *
35868
+ * @type {KioskLayout}
35869
+ * @memberof UpsertConfigDto
35870
+ */
35871
+ 'layout'?: KioskLayout;
35872
+ /**
35873
+ *
35874
+ * @type {UpsellMode}
35875
+ * @memberof UpsertConfigDto
35876
+ */
35877
+ 'upsellMode'?: UpsellMode;
35768
35878
  /**
35769
35879
  * Whether the kiosk prints the receipt without asking. Absent keeps the stored value.
35770
35880
  * @type {boolean}
@@ -36695,6 +36805,103 @@ export interface VenueFoundDto {
36695
36805
  */
36696
36806
  'chainId': string | null;
36697
36807
  }
36808
+ /**
36809
+ *
36810
+ * @export
36811
+ * @interface VenueKioskDto
36812
+ */
36813
+ export interface VenueKioskDto {
36814
+ /**
36815
+ * The kiosk\'s station id
36816
+ * @type {string}
36817
+ * @memberof VenueKioskDto
36818
+ */
36819
+ 'id': string;
36820
+ /**
36821
+ * The kiosk\'s name
36822
+ * @type {string}
36823
+ * @memberof VenueKioskDto
36824
+ */
36825
+ 'name': string;
36826
+ /**
36827
+ * What the kiosk\'s order numbers start with; empty for none
36828
+ * @type {string}
36829
+ * @memberof VenueKioskDto
36830
+ */
36831
+ 'prefix': string;
36832
+ /**
36833
+ * The device\'s Hardware ID, as it shows it
36834
+ * @type {string}
36835
+ * @memberof VenueKioskDto
36836
+ */
36837
+ 'hardwareId': string;
36838
+ /**
36839
+ *
36840
+ * @type {Status}
36841
+ * @memberof VenueKioskDto
36842
+ */
36843
+ 'status': Status;
36844
+ /**
36845
+ *
36846
+ * @type {VenueKioskDtoTerminal}
36847
+ * @memberof VenueKioskDto
36848
+ */
36849
+ 'terminal': VenueKioskDtoTerminal | null;
36850
+ /**
36851
+ * When the kiosk was first linked to the venue, ISO 8601
36852
+ * @type {string}
36853
+ * @memberof VenueKioskDto
36854
+ */
36855
+ 'createdAt': string;
36856
+ /**
36857
+ * When the kiosk last changed, ISO 8601
36858
+ * @type {string}
36859
+ * @memberof VenueKioskDto
36860
+ */
36861
+ 'updatedAt': string;
36862
+ }
36863
+
36864
+
36865
+ /**
36866
+ * The payment terminal linked to the kiosk; null when it has none
36867
+ * @export
36868
+ * @interface VenueKioskDtoTerminal
36869
+ */
36870
+ export interface VenueKioskDtoTerminal {
36871
+ /**
36872
+ * The payment terminal\'s id
36873
+ * @type {string}
36874
+ * @memberof VenueKioskDtoTerminal
36875
+ */
36876
+ 'id': string;
36877
+ /**
36878
+ *
36879
+ * @type {PaymentProvider}
36880
+ * @memberof VenueKioskDtoTerminal
36881
+ */
36882
+ 'provider': PaymentProvider;
36883
+ /**
36884
+ * The terminal\'s label; null when it was given none
36885
+ * @type {string}
36886
+ * @memberof VenueKioskDtoTerminal
36887
+ */
36888
+ 'label': string | null;
36889
+ }
36890
+
36891
+
36892
+ /**
36893
+ *
36894
+ * @export
36895
+ * @interface VenueKiosksDto
36896
+ */
36897
+ export interface VenueKiosksDto {
36898
+ /**
36899
+ * The venue\'s kiosks, active and inactive, oldest first
36900
+ * @type {Array<VenueKioskDto>}
36901
+ * @memberof VenueKiosksDto
36902
+ */
36903
+ 'kiosks': Array<VenueKioskDto>;
36904
+ }
36698
36905
  /**
36699
36906
  *
36700
36907
  * @export
@@ -36714,6 +36921,58 @@ export interface VenueListEntryDto {
36714
36921
  */
36715
36922
  'businessName': string;
36716
36923
  }
36924
+ /**
36925
+ *
36926
+ * @export
36927
+ * @interface VenuePaymentTerminalDto
36928
+ */
36929
+ export interface VenuePaymentTerminalDto {
36930
+ /**
36931
+ * The payment terminal\'s id, the one a kiosk is linked to
36932
+ * @type {string}
36933
+ * @memberof VenuePaymentTerminalDto
36934
+ */
36935
+ 'id': string;
36936
+ /**
36937
+ *
36938
+ * @type {PaymentProvider}
36939
+ * @memberof VenuePaymentTerminalDto
36940
+ */
36941
+ 'provider': PaymentProvider;
36942
+ /**
36943
+ * The terminal\'s label; null when it was given none
36944
+ * @type {string}
36945
+ * @memberof VenuePaymentTerminalDto
36946
+ */
36947
+ 'label': string | null;
36948
+ /**
36949
+ * The terminal\'s own id at its provider, as printed on the device
36950
+ * @type {string}
36951
+ * @memberof VenuePaymentTerminalDto
36952
+ */
36953
+ 'hardwareId': string;
36954
+ /**
36955
+ * The id of the station, a kiosk\'s or a till\'s, the terminal is linked to; null when it is free
36956
+ * @type {string}
36957
+ * @memberof VenuePaymentTerminalDto
36958
+ */
36959
+ 'stationId': string | null;
36960
+ }
36961
+
36962
+
36963
+ /**
36964
+ *
36965
+ * @export
36966
+ * @interface VenuePaymentTerminalsDto
36967
+ */
36968
+ export interface VenuePaymentTerminalsDto {
36969
+ /**
36970
+ * The venue\'s payment terminals as stored, oldest first; a terminal is stored once a till has discovered it
36971
+ * @type {Array<VenuePaymentTerminalDto>}
36972
+ * @memberof VenuePaymentTerminalsDto
36973
+ */
36974
+ 'terminals': Array<VenuePaymentTerminalDto>;
36975
+ }
36717
36976
  /**
36718
36977
  *
36719
36978
  * @export
@@ -36824,7 +37083,7 @@ export interface VenueProviderOutcomeDto {
36824
37083
  */
36825
37084
  'rowsChanged': number;
36826
37085
  /**
36827
- * Whether the channel is on, as its row reads after the change: the first active row, else the first row, by store id
37086
+ * Whether the channel is on, as its row reads after the change: the first active row, else the newest row, by createdAt and then id
36828
37087
  * @type {boolean}
36829
37088
  * @memberof VenueProviderOutcomeDto
36830
37089
  */
@@ -36844,6 +37103,52 @@ export interface VenueProviderOutcomeDto {
36844
37103
  }
36845
37104
 
36846
37105
 
37106
+ /**
37107
+ *
37108
+ * @export
37109
+ * @interface VenueProviderStateDto
37110
+ */
37111
+ export interface VenueProviderStateDto {
37112
+ /**
37113
+ *
37114
+ * @type {ProviderEnum}
37115
+ * @memberof VenueProviderStateDto
37116
+ */
37117
+ 'channel': ProviderEnum;
37118
+ /**
37119
+ * Whether the channel is on, as its row reads: the first active row, else the newest row, by createdAt and then id
37120
+ * @type {boolean}
37121
+ * @memberof VenueProviderStateDto
37122
+ */
37123
+ 'isActive': boolean;
37124
+ /**
37125
+ * Whether the channel\'s orders are accepted without the till, as the same row reads
37126
+ * @type {boolean}
37127
+ * @memberof VenueProviderStateDto
37128
+ */
37129
+ 'autoAccept': boolean;
37130
+ /**
37131
+ * The integrations the same row takes
37132
+ * @type {Array<IntegrationType>}
37133
+ * @memberof VenueProviderStateDto
37134
+ */
37135
+ 'integrations': Array<IntegrationType>;
37136
+ }
37137
+
37138
+
37139
+ /**
37140
+ *
37141
+ * @export
37142
+ * @interface VenueProvidersDto
37143
+ */
37144
+ export interface VenueProvidersDto {
37145
+ /**
37146
+ * One entry per own channel (those PUT adds a row for when the venue has none) the venue has rows on, active or not, by channel name. Empty when it has none
37147
+ * @type {Array<VenueProviderStateDto>}
37148
+ * @memberof VenueProvidersDto
37149
+ */
37150
+ 'providers': Array<VenueProviderStateDto>;
37151
+ }
36847
37152
  /**
36848
37153
  *
36849
37154
  * @export
@@ -61622,6 +61927,44 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
61622
61927
 
61623
61928
 
61624
61929
 
61930
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61932
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61933
+
61934
+ return {
61935
+ url: toPathString(localVarUrlObj),
61936
+ options: localVarRequestOptions,
61937
+ };
61938
+ },
61939
+ /**
61940
+ * One entry per own channel the venue has rows on, active or not, by channel name: the channels this path\'s PUT adds a row for when the venue has none. A channel with several rows reads from the row PUT on this path answers with: the first active row, else the newest, by createdAt and then id. Nothing is changed.
61941
+ * @summary Read whether each of a venue\'s own channels is on and auto-accepting, and its integrations
61942
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
61943
+ * @param {*} [options] Override http request option.
61944
+ * @throws {RequiredError}
61945
+ */
61946
+ getVenueProviders: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
61947
+ // verify required parameter 'businessId' is not null or undefined
61948
+ assertParamExists('getVenueProviders', 'businessId', businessId)
61949
+ const localVarPath = `/api/v2/venues/{businessId}/providers`
61950
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
61951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61952
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61953
+ let baseOptions;
61954
+ if (configuration) {
61955
+ baseOptions = configuration.baseOptions;
61956
+ }
61957
+
61958
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61959
+ const localVarHeaderParameter = {} as any;
61960
+ const localVarQueryParameter = {} as any;
61961
+
61962
+ // authentication JWT-auth required
61963
+ // http bearer authentication required
61964
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
61965
+
61966
+
61967
+
61625
61968
  setSearchParams(localVarUrlObj, localVarQueryParameter);
61626
61969
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61627
61970
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -61854,6 +62197,17 @@ export const ProviderApiFp = function(configuration?: Configuration) {
61854
62197
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOnboardingStatus(channel, businessId, options);
61855
62198
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
61856
62199
  },
62200
+ /**
62201
+ * One entry per own channel the venue has rows on, active or not, by channel name: the channels this path\'s PUT adds a row for when the venue has none. A channel with several rows reads from the row PUT on this path answers with: the first active row, else the newest, by createdAt and then id. Nothing is changed.
62202
+ * @summary Read whether each of a venue\'s own channels is on and auto-accepting, and its integrations
62203
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
62204
+ * @param {*} [options] Override http request option.
62205
+ * @throws {RequiredError}
62206
+ */
62207
+ async getVenueProviders(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenueProvidersDto>> {
62208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVenueProviders(businessId, options);
62209
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
62210
+ },
61857
62211
  /**
61858
62212
  * Asked once the owner has signed in to Uber Eats, with the session\'s state; ubereats-service\'s list is answered as it is.
61859
62213
  * @summary The Uber Eats stores the signed-in owner can connect
@@ -61956,6 +62310,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
61956
62310
  getOnboardingStatus(channel: ProviderEnum, businessId: number, options?: any): AxiosPromise<GetOnboardingStatus200Response> {
61957
62311
  return localVarFp.getOnboardingStatus(channel, businessId, options).then((request) => request(axios, basePath));
61958
62312
  },
62313
+ /**
62314
+ * One entry per own channel the venue has rows on, active or not, by channel name: the channels this path\'s PUT adds a row for when the venue has none. A channel with several rows reads from the row PUT on this path answers with: the first active row, else the newest, by createdAt and then id. Nothing is changed.
62315
+ * @summary Read whether each of a venue\'s own channels is on and auto-accepting, and its integrations
62316
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
62317
+ * @param {*} [options] Override http request option.
62318
+ * @throws {RequiredError}
62319
+ */
62320
+ getVenueProviders(businessId: number, options?: any): AxiosPromise<VenueProvidersDto> {
62321
+ return localVarFp.getVenueProviders(businessId, options).then((request) => request(axios, basePath));
62322
+ },
61959
62323
  /**
61960
62324
  * Asked once the owner has signed in to Uber Eats, with the session\'s state; ubereats-service\'s list is answered as it is.
61961
62325
  * @summary The Uber Eats stores the signed-in owner can connect
@@ -62053,6 +62417,16 @@ export interface ProviderApiInterface {
62053
62417
  */
62054
62418
  getOnboardingStatus(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): AxiosPromise<GetOnboardingStatus200Response>;
62055
62419
 
62420
+ /**
62421
+ * One entry per own channel the venue has rows on, active or not, by channel name: the channels this path\'s PUT adds a row for when the venue has none. A channel with several rows reads from the row PUT on this path answers with: the first active row, else the newest, by createdAt and then id. Nothing is changed.
62422
+ * @summary Read whether each of a venue\'s own channels is on and auto-accepting, and its integrations
62423
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
62424
+ * @param {*} [options] Override http request option.
62425
+ * @throws {RequiredError}
62426
+ * @memberof ProviderApiInterface
62427
+ */
62428
+ getVenueProviders(businessId: number, options?: AxiosRequestConfig): AxiosPromise<VenueProvidersDto>;
62429
+
62056
62430
  /**
62057
62431
  * Asked once the owner has signed in to Uber Eats, with the session\'s state; ubereats-service\'s list is answered as it is.
62058
62432
  * @summary The Uber Eats stores the signed-in owner can connect
@@ -62158,6 +62532,18 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
62158
62532
  return ProviderApiFp(this.configuration).getOnboardingStatus(channel, businessId, options).then((request) => request(this.axios, this.basePath));
62159
62533
  }
62160
62534
 
62535
+ /**
62536
+ * One entry per own channel the venue has rows on, active or not, by channel name: the channels this path\'s PUT adds a row for when the venue has none. A channel with several rows reads from the row PUT on this path answers with: the first active row, else the newest, by createdAt and then id. Nothing is changed.
62537
+ * @summary Read whether each of a venue\'s own channels is on and auto-accepting, and its integrations
62538
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
62539
+ * @param {*} [options] Override http request option.
62540
+ * @throws {RequiredError}
62541
+ * @memberof ProviderApi
62542
+ */
62543
+ public getVenueProviders(businessId: number, options?: AxiosRequestConfig) {
62544
+ return ProviderApiFp(this.configuration).getVenueProviders(businessId, options).then((request) => request(this.axios, this.basePath));
62545
+ }
62546
+
62161
62547
  /**
62162
62548
  * Asked once the owner has signed in to Uber Eats, with the session\'s state; ubereats-service\'s list is answered as it is.
62163
62549
  * @summary The Uber Eats stores the signed-in owner can connect
@@ -70876,6 +71262,592 @@ export class VendureSellerApi extends BaseAPI implements VendureSellerApiInterfa
70876
71262
  }
70877
71263
 
70878
71264
 
71265
+ /**
71266
+ * VenueKiosksApi - axios parameter creator
71267
+ * @export
71268
+ */
71269
+ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configuration) {
71270
+ return {
71271
+ /**
71272
+ * Only the fields sent change. status ACTIVE on a removed kiosk puts it back in use, asks the licence exactly as a claim does, and makes it the station the device resolves to. Every other change keeps the kiosk\'s updatedAt, so it never takes the device from a venue it moved to (the device resolves to its station with the newest updatedAt), and changes only a kiosk in use: one removed meanwhile answers 409. status INACTIVE takes the kiosk out of use and unlinks its terminal; on a kiosk already removed it answers the kiosk unchanged. Any other change of a removed kiosk is refused. The kiosk\'s kept station is forgotten, so the device sees the change on its next request.
71273
+ * @summary Rename a kiosk, change its prefix, or put it in or out of use
71274
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71275
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71276
+ * @param {ChangeKioskDto} changeKioskDto
71277
+ * @param {*} [options] Override http request option.
71278
+ * @throws {RequiredError}
71279
+ */
71280
+ changeVenueKiosk: async (businessId: number, stationId: string, changeKioskDto: ChangeKioskDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
71281
+ // verify required parameter 'businessId' is not null or undefined
71282
+ assertParamExists('changeVenueKiosk', 'businessId', businessId)
71283
+ // verify required parameter 'stationId' is not null or undefined
71284
+ assertParamExists('changeVenueKiosk', 'stationId', stationId)
71285
+ // verify required parameter 'changeKioskDto' is not null or undefined
71286
+ assertParamExists('changeVenueKiosk', 'changeKioskDto', changeKioskDto)
71287
+ const localVarPath = `/api/v2/venues/{businessId}/kiosks/{stationId}`
71288
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
71289
+ .replace(`{${"stationId"}}`, encodeURIComponent(String(stationId)));
71290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71292
+ let baseOptions;
71293
+ if (configuration) {
71294
+ baseOptions = configuration.baseOptions;
71295
+ }
71296
+
71297
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
71298
+ const localVarHeaderParameter = {} as any;
71299
+ const localVarQueryParameter = {} as any;
71300
+
71301
+ // authentication JWT-auth required
71302
+ // http bearer authentication required
71303
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71304
+
71305
+
71306
+
71307
+ localVarHeaderParameter['Content-Type'] = 'application/json';
71308
+
71309
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71310
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71311
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71312
+ localVarRequestOptions.data = serializeDataIfNeeded(changeKioskDto, localVarRequestOptions, configuration)
71313
+
71314
+ return {
71315
+ url: toPathString(localVarUrlObj),
71316
+ options: localVarRequestOptions,
71317
+ };
71318
+ },
71319
+ /**
71320
+ * The kiosk shows its Hardware ID on its Getting started screen until it is linked; the id is trimmed and written in the case the device sends it (an iOS vendor id upper case, an Android id lower case). A device that is one of the venue\'s tills, in use or not, or active at another venue, is refused first, before the licence is asked. A kiosk already in use here is only renamed, with no licence check. Otherwise the licence is read from the license server and must have the kiosk add-on; then, under a lock on the venue\'s kiosks and then one on the device, the device\'s other uses are checked again and the venue\'s active kiosks with this one must fit the licence\'s kiosk limit. The venue\'s station of the device becomes an active kiosk (type KIOSK), created when the venue has none (device KIOSK_STAND, prefix empty unless sent), with the name sent, and becomes the station the device resolves to; the kiosk then continues on its next check. A kiosk the venue already had, inactive, counts like a new one. Nothing is claimed unchecked: when the licence cannot be read, the claim is refused.
71321
+ * @summary Link a kiosk to the venue by the Hardware ID it shows
71322
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71323
+ * @param {ClaimKioskDto} claimKioskDto
71324
+ * @param {*} [options] Override http request option.
71325
+ * @throws {RequiredError}
71326
+ */
71327
+ claimVenueKiosk: async (businessId: number, claimKioskDto: ClaimKioskDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
71328
+ // verify required parameter 'businessId' is not null or undefined
71329
+ assertParamExists('claimVenueKiosk', 'businessId', businessId)
71330
+ // verify required parameter 'claimKioskDto' is not null or undefined
71331
+ assertParamExists('claimVenueKiosk', 'claimKioskDto', claimKioskDto)
71332
+ const localVarPath = `/api/v2/venues/{businessId}/kiosks`
71333
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
71334
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71335
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71336
+ let baseOptions;
71337
+ if (configuration) {
71338
+ baseOptions = configuration.baseOptions;
71339
+ }
71340
+
71341
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
71342
+ const localVarHeaderParameter = {} as any;
71343
+ const localVarQueryParameter = {} as any;
71344
+
71345
+ // authentication JWT-auth required
71346
+ // http bearer authentication required
71347
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71348
+
71349
+
71350
+
71351
+ localVarHeaderParameter['Content-Type'] = 'application/json';
71352
+
71353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71355
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71356
+ localVarRequestOptions.data = serializeDataIfNeeded(claimKioskDto, localVarRequestOptions, configuration)
71357
+
71358
+ return {
71359
+ url: toPathString(localVarUrlObj),
71360
+ options: localVarRequestOptions,
71361
+ };
71362
+ },
71363
+ /**
71364
+ * paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
71365
+ * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
71366
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71367
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71368
+ * @param {LinkKioskTerminalDto} linkKioskTerminalDto
71369
+ * @param {*} [options] Override http request option.
71370
+ * @throws {RequiredError}
71371
+ */
71372
+ linkVenueKioskTerminal: async (businessId: number, stationId: string, linkKioskTerminalDto: LinkKioskTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
71373
+ // verify required parameter 'businessId' is not null or undefined
71374
+ assertParamExists('linkVenueKioskTerminal', 'businessId', businessId)
71375
+ // verify required parameter 'stationId' is not null or undefined
71376
+ assertParamExists('linkVenueKioskTerminal', 'stationId', stationId)
71377
+ // verify required parameter 'linkKioskTerminalDto' is not null or undefined
71378
+ assertParamExists('linkVenueKioskTerminal', 'linkKioskTerminalDto', linkKioskTerminalDto)
71379
+ const localVarPath = `/api/v2/venues/{businessId}/kiosks/{stationId}/terminal`
71380
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
71381
+ .replace(`{${"stationId"}}`, encodeURIComponent(String(stationId)));
71382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71384
+ let baseOptions;
71385
+ if (configuration) {
71386
+ baseOptions = configuration.baseOptions;
71387
+ }
71388
+
71389
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
71390
+ const localVarHeaderParameter = {} as any;
71391
+ const localVarQueryParameter = {} as any;
71392
+
71393
+ // authentication JWT-auth required
71394
+ // http bearer authentication required
71395
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71396
+
71397
+
71398
+
71399
+ localVarHeaderParameter['Content-Type'] = 'application/json';
71400
+
71401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71403
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71404
+ localVarRequestOptions.data = serializeDataIfNeeded(linkKioskTerminalDto, localVarRequestOptions, configuration)
71405
+
71406
+ return {
71407
+ url: toPathString(localVarUrlObj),
71408
+ options: localVarRequestOptions,
71409
+ };
71410
+ },
71411
+ /**
71412
+ * Every kiosk station of the venue, active or removed, oldest first, with its linked payment terminal. Read from the database every time.
71413
+ * @summary List the venue\'s kiosks
71414
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71415
+ * @param {*} [options] Override http request option.
71416
+ * @throws {RequiredError}
71417
+ */
71418
+ listVenueKiosks: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
71419
+ // verify required parameter 'businessId' is not null or undefined
71420
+ assertParamExists('listVenueKiosks', 'businessId', businessId)
71421
+ const localVarPath = `/api/v2/venues/{businessId}/kiosks`
71422
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
71423
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71424
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71425
+ let baseOptions;
71426
+ if (configuration) {
71427
+ baseOptions = configuration.baseOptions;
71428
+ }
71429
+
71430
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
71431
+ const localVarHeaderParameter = {} as any;
71432
+ const localVarQueryParameter = {} as any;
71433
+
71434
+ // authentication JWT-auth required
71435
+ // http bearer authentication required
71436
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71437
+
71438
+
71439
+
71440
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71442
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71443
+
71444
+ return {
71445
+ url: toPathString(localVarUrlObj),
71446
+ options: localVarRequestOptions,
71447
+ };
71448
+ },
71449
+ /**
71450
+ * The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
71451
+ * @summary List the venue\'s payment terminals, for linking one to a kiosk
71452
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71453
+ * @param {*} [options] Override http request option.
71454
+ * @throws {RequiredError}
71455
+ */
71456
+ listVenuePaymentTerminals: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
71457
+ // verify required parameter 'businessId' is not null or undefined
71458
+ assertParamExists('listVenuePaymentTerminals', 'businessId', businessId)
71459
+ const localVarPath = `/api/v2/venues/{businessId}/payment-terminals`
71460
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
71461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71463
+ let baseOptions;
71464
+ if (configuration) {
71465
+ baseOptions = configuration.baseOptions;
71466
+ }
71467
+
71468
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
71469
+ const localVarHeaderParameter = {} as any;
71470
+ const localVarQueryParameter = {} as any;
71471
+
71472
+ // authentication JWT-auth required
71473
+ // http bearer authentication required
71474
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71475
+
71476
+
71477
+
71478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71480
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71481
+
71482
+ return {
71483
+ url: toPathString(localVarUrlObj),
71484
+ options: localVarRequestOptions,
71485
+ };
71486
+ },
71487
+ /**
71488
+ * The kiosk is set INACTIVE and its terminal unlinked; its row stays, so its orders keep their station and it can be claimed again. It no longer counts against the licence, and the kiosk shows its Getting started screen on its next check. Nothing is deleted. A kiosk already removed is answered as it is, unchanged.
71489
+ * @summary Remove a kiosk from use
71490
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71491
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71492
+ * @param {*} [options] Override http request option.
71493
+ * @throws {RequiredError}
71494
+ */
71495
+ removeVenueKiosk: async (businessId: number, stationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
71496
+ // verify required parameter 'businessId' is not null or undefined
71497
+ assertParamExists('removeVenueKiosk', 'businessId', businessId)
71498
+ // verify required parameter 'stationId' is not null or undefined
71499
+ assertParamExists('removeVenueKiosk', 'stationId', stationId)
71500
+ const localVarPath = `/api/v2/venues/{businessId}/kiosks/{stationId}`
71501
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
71502
+ .replace(`{${"stationId"}}`, encodeURIComponent(String(stationId)));
71503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71504
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71505
+ let baseOptions;
71506
+ if (configuration) {
71507
+ baseOptions = configuration.baseOptions;
71508
+ }
71509
+
71510
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
71511
+ const localVarHeaderParameter = {} as any;
71512
+ const localVarQueryParameter = {} as any;
71513
+
71514
+ // authentication JWT-auth required
71515
+ // http bearer authentication required
71516
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71517
+
71518
+
71519
+
71520
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71522
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71523
+
71524
+ return {
71525
+ url: toPathString(localVarUrlObj),
71526
+ options: localVarRequestOptions,
71527
+ };
71528
+ },
71529
+ }
71530
+ };
71531
+
71532
+ /**
71533
+ * VenueKiosksApi - functional programming interface
71534
+ * @export
71535
+ */
71536
+ export const VenueKiosksApiFp = function(configuration?: Configuration) {
71537
+ const localVarAxiosParamCreator = VenueKiosksApiAxiosParamCreator(configuration)
71538
+ return {
71539
+ /**
71540
+ * Only the fields sent change. status ACTIVE on a removed kiosk puts it back in use, asks the licence exactly as a claim does, and makes it the station the device resolves to. Every other change keeps the kiosk\'s updatedAt, so it never takes the device from a venue it moved to (the device resolves to its station with the newest updatedAt), and changes only a kiosk in use: one removed meanwhile answers 409. status INACTIVE takes the kiosk out of use and unlinks its terminal; on a kiosk already removed it answers the kiosk unchanged. Any other change of a removed kiosk is refused. The kiosk\'s kept station is forgotten, so the device sees the change on its next request.
71541
+ * @summary Rename a kiosk, change its prefix, or put it in or out of use
71542
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71543
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71544
+ * @param {ChangeKioskDto} changeKioskDto
71545
+ * @param {*} [options] Override http request option.
71546
+ * @throws {RequiredError}
71547
+ */
71548
+ async changeVenueKiosk(businessId: number, stationId: string, changeKioskDto: ChangeKioskDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenueKioskDto>> {
71549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeVenueKiosk(businessId, stationId, changeKioskDto, options);
71550
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71551
+ },
71552
+ /**
71553
+ * The kiosk shows its Hardware ID on its Getting started screen until it is linked; the id is trimmed and written in the case the device sends it (an iOS vendor id upper case, an Android id lower case). A device that is one of the venue\'s tills, in use or not, or active at another venue, is refused first, before the licence is asked. A kiosk already in use here is only renamed, with no licence check. Otherwise the licence is read from the license server and must have the kiosk add-on; then, under a lock on the venue\'s kiosks and then one on the device, the device\'s other uses are checked again and the venue\'s active kiosks with this one must fit the licence\'s kiosk limit. The venue\'s station of the device becomes an active kiosk (type KIOSK), created when the venue has none (device KIOSK_STAND, prefix empty unless sent), with the name sent, and becomes the station the device resolves to; the kiosk then continues on its next check. A kiosk the venue already had, inactive, counts like a new one. Nothing is claimed unchecked: when the licence cannot be read, the claim is refused.
71554
+ * @summary Link a kiosk to the venue by the Hardware ID it shows
71555
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71556
+ * @param {ClaimKioskDto} claimKioskDto
71557
+ * @param {*} [options] Override http request option.
71558
+ * @throws {RequiredError}
71559
+ */
71560
+ async claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenueKioskDto>> {
71561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimVenueKiosk(businessId, claimKioskDto, options);
71562
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71563
+ },
71564
+ /**
71565
+ * paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
71566
+ * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
71567
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71568
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71569
+ * @param {LinkKioskTerminalDto} linkKioskTerminalDto
71570
+ * @param {*} [options] Override http request option.
71571
+ * @throws {RequiredError}
71572
+ */
71573
+ async linkVenueKioskTerminal(businessId: number, stationId: string, linkKioskTerminalDto: LinkKioskTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenueKioskDto>> {
71574
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkVenueKioskTerminal(businessId, stationId, linkKioskTerminalDto, options);
71575
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71576
+ },
71577
+ /**
71578
+ * Every kiosk station of the venue, active or removed, oldest first, with its linked payment terminal. Read from the database every time.
71579
+ * @summary List the venue\'s kiosks
71580
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71581
+ * @param {*} [options] Override http request option.
71582
+ * @throws {RequiredError}
71583
+ */
71584
+ async listVenueKiosks(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenueKiosksDto>> {
71585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVenueKiosks(businessId, options);
71586
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71587
+ },
71588
+ /**
71589
+ * The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
71590
+ * @summary List the venue\'s payment terminals, for linking one to a kiosk
71591
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71592
+ * @param {*} [options] Override http request option.
71593
+ * @throws {RequiredError}
71594
+ */
71595
+ async listVenuePaymentTerminals(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalsDto>> {
71596
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVenuePaymentTerminals(businessId, options);
71597
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71598
+ },
71599
+ /**
71600
+ * The kiosk is set INACTIVE and its terminal unlinked; its row stays, so its orders keep their station and it can be claimed again. It no longer counts against the licence, and the kiosk shows its Getting started screen on its next check. Nothing is deleted. A kiosk already removed is answered as it is, unchanged.
71601
+ * @summary Remove a kiosk from use
71602
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71603
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71604
+ * @param {*} [options] Override http request option.
71605
+ * @throws {RequiredError}
71606
+ */
71607
+ async removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenueKioskDto>> {
71608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeVenueKiosk(businessId, stationId, options);
71609
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71610
+ },
71611
+ }
71612
+ };
71613
+
71614
+ /**
71615
+ * VenueKiosksApi - factory interface
71616
+ * @export
71617
+ */
71618
+ export const VenueKiosksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
71619
+ const localVarFp = VenueKiosksApiFp(configuration)
71620
+ return {
71621
+ /**
71622
+ * Only the fields sent change. status ACTIVE on a removed kiosk puts it back in use, asks the licence exactly as a claim does, and makes it the station the device resolves to. Every other change keeps the kiosk\'s updatedAt, so it never takes the device from a venue it moved to (the device resolves to its station with the newest updatedAt), and changes only a kiosk in use: one removed meanwhile answers 409. status INACTIVE takes the kiosk out of use and unlinks its terminal; on a kiosk already removed it answers the kiosk unchanged. Any other change of a removed kiosk is refused. The kiosk\'s kept station is forgotten, so the device sees the change on its next request.
71623
+ * @summary Rename a kiosk, change its prefix, or put it in or out of use
71624
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71625
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71626
+ * @param {ChangeKioskDto} changeKioskDto
71627
+ * @param {*} [options] Override http request option.
71628
+ * @throws {RequiredError}
71629
+ */
71630
+ changeVenueKiosk(businessId: number, stationId: string, changeKioskDto: ChangeKioskDto, options?: any): AxiosPromise<VenueKioskDto> {
71631
+ return localVarFp.changeVenueKiosk(businessId, stationId, changeKioskDto, options).then((request) => request(axios, basePath));
71632
+ },
71633
+ /**
71634
+ * The kiosk shows its Hardware ID on its Getting started screen until it is linked; the id is trimmed and written in the case the device sends it (an iOS vendor id upper case, an Android id lower case). A device that is one of the venue\'s tills, in use or not, or active at another venue, is refused first, before the licence is asked. A kiosk already in use here is only renamed, with no licence check. Otherwise the licence is read from the license server and must have the kiosk add-on; then, under a lock on the venue\'s kiosks and then one on the device, the device\'s other uses are checked again and the venue\'s active kiosks with this one must fit the licence\'s kiosk limit. The venue\'s station of the device becomes an active kiosk (type KIOSK), created when the venue has none (device KIOSK_STAND, prefix empty unless sent), with the name sent, and becomes the station the device resolves to; the kiosk then continues on its next check. A kiosk the venue already had, inactive, counts like a new one. Nothing is claimed unchecked: when the licence cannot be read, the claim is refused.
71635
+ * @summary Link a kiosk to the venue by the Hardware ID it shows
71636
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71637
+ * @param {ClaimKioskDto} claimKioskDto
71638
+ * @param {*} [options] Override http request option.
71639
+ * @throws {RequiredError}
71640
+ */
71641
+ claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: any): AxiosPromise<VenueKioskDto> {
71642
+ return localVarFp.claimVenueKiosk(businessId, claimKioskDto, options).then((request) => request(axios, basePath));
71643
+ },
71644
+ /**
71645
+ * paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
71646
+ * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
71647
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71648
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71649
+ * @param {LinkKioskTerminalDto} linkKioskTerminalDto
71650
+ * @param {*} [options] Override http request option.
71651
+ * @throws {RequiredError}
71652
+ */
71653
+ linkVenueKioskTerminal(businessId: number, stationId: string, linkKioskTerminalDto: LinkKioskTerminalDto, options?: any): AxiosPromise<VenueKioskDto> {
71654
+ return localVarFp.linkVenueKioskTerminal(businessId, stationId, linkKioskTerminalDto, options).then((request) => request(axios, basePath));
71655
+ },
71656
+ /**
71657
+ * Every kiosk station of the venue, active or removed, oldest first, with its linked payment terminal. Read from the database every time.
71658
+ * @summary List the venue\'s kiosks
71659
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71660
+ * @param {*} [options] Override http request option.
71661
+ * @throws {RequiredError}
71662
+ */
71663
+ listVenueKiosks(businessId: number, options?: any): AxiosPromise<VenueKiosksDto> {
71664
+ return localVarFp.listVenueKiosks(businessId, options).then((request) => request(axios, basePath));
71665
+ },
71666
+ /**
71667
+ * The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
71668
+ * @summary List the venue\'s payment terminals, for linking one to a kiosk
71669
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71670
+ * @param {*} [options] Override http request option.
71671
+ * @throws {RequiredError}
71672
+ */
71673
+ listVenuePaymentTerminals(businessId: number, options?: any): AxiosPromise<VenuePaymentTerminalsDto> {
71674
+ return localVarFp.listVenuePaymentTerminals(businessId, options).then((request) => request(axios, basePath));
71675
+ },
71676
+ /**
71677
+ * The kiosk is set INACTIVE and its terminal unlinked; its row stays, so its orders keep their station and it can be claimed again. It no longer counts against the licence, and the kiosk shows its Getting started screen on its next check. Nothing is deleted. A kiosk already removed is answered as it is, unchanged.
71678
+ * @summary Remove a kiosk from use
71679
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71680
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71681
+ * @param {*} [options] Override http request option.
71682
+ * @throws {RequiredError}
71683
+ */
71684
+ removeVenueKiosk(businessId: number, stationId: string, options?: any): AxiosPromise<VenueKioskDto> {
71685
+ return localVarFp.removeVenueKiosk(businessId, stationId, options).then((request) => request(axios, basePath));
71686
+ },
71687
+ };
71688
+ };
71689
+
71690
+ /**
71691
+ * VenueKiosksApi - interface
71692
+ * @export
71693
+ * @interface VenueKiosksApi
71694
+ */
71695
+ export interface VenueKiosksApiInterface {
71696
+ /**
71697
+ * Only the fields sent change. status ACTIVE on a removed kiosk puts it back in use, asks the licence exactly as a claim does, and makes it the station the device resolves to. Every other change keeps the kiosk\'s updatedAt, so it never takes the device from a venue it moved to (the device resolves to its station with the newest updatedAt), and changes only a kiosk in use: one removed meanwhile answers 409. status INACTIVE takes the kiosk out of use and unlinks its terminal; on a kiosk already removed it answers the kiosk unchanged. Any other change of a removed kiosk is refused. The kiosk\'s kept station is forgotten, so the device sees the change on its next request.
71698
+ * @summary Rename a kiosk, change its prefix, or put it in or out of use
71699
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71700
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71701
+ * @param {ChangeKioskDto} changeKioskDto
71702
+ * @param {*} [options] Override http request option.
71703
+ * @throws {RequiredError}
71704
+ * @memberof VenueKiosksApiInterface
71705
+ */
71706
+ changeVenueKiosk(businessId: number, stationId: string, changeKioskDto: ChangeKioskDto, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
71707
+
71708
+ /**
71709
+ * The kiosk shows its Hardware ID on its Getting started screen until it is linked; the id is trimmed and written in the case the device sends it (an iOS vendor id upper case, an Android id lower case). A device that is one of the venue\'s tills, in use or not, or active at another venue, is refused first, before the licence is asked. A kiosk already in use here is only renamed, with no licence check. Otherwise the licence is read from the license server and must have the kiosk add-on; then, under a lock on the venue\'s kiosks and then one on the device, the device\'s other uses are checked again and the venue\'s active kiosks with this one must fit the licence\'s kiosk limit. The venue\'s station of the device becomes an active kiosk (type KIOSK), created when the venue has none (device KIOSK_STAND, prefix empty unless sent), with the name sent, and becomes the station the device resolves to; the kiosk then continues on its next check. A kiosk the venue already had, inactive, counts like a new one. Nothing is claimed unchecked: when the licence cannot be read, the claim is refused.
71710
+ * @summary Link a kiosk to the venue by the Hardware ID it shows
71711
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71712
+ * @param {ClaimKioskDto} claimKioskDto
71713
+ * @param {*} [options] Override http request option.
71714
+ * @throws {RequiredError}
71715
+ * @memberof VenueKiosksApiInterface
71716
+ */
71717
+ claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
71718
+
71719
+ /**
71720
+ * paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
71721
+ * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
71722
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71723
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71724
+ * @param {LinkKioskTerminalDto} linkKioskTerminalDto
71725
+ * @param {*} [options] Override http request option.
71726
+ * @throws {RequiredError}
71727
+ * @memberof VenueKiosksApiInterface
71728
+ */
71729
+ linkVenueKioskTerminal(businessId: number, stationId: string, linkKioskTerminalDto: LinkKioskTerminalDto, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
71730
+
71731
+ /**
71732
+ * Every kiosk station of the venue, active or removed, oldest first, with its linked payment terminal. Read from the database every time.
71733
+ * @summary List the venue\'s kiosks
71734
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71735
+ * @param {*} [options] Override http request option.
71736
+ * @throws {RequiredError}
71737
+ * @memberof VenueKiosksApiInterface
71738
+ */
71739
+ listVenueKiosks(businessId: number, options?: AxiosRequestConfig): AxiosPromise<VenueKiosksDto>;
71740
+
71741
+ /**
71742
+ * The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
71743
+ * @summary List the venue\'s payment terminals, for linking one to a kiosk
71744
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71745
+ * @param {*} [options] Override http request option.
71746
+ * @throws {RequiredError}
71747
+ * @memberof VenueKiosksApiInterface
71748
+ */
71749
+ listVenuePaymentTerminals(businessId: number, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalsDto>;
71750
+
71751
+ /**
71752
+ * The kiosk is set INACTIVE and its terminal unlinked; its row stays, so its orders keep their station and it can be claimed again. It no longer counts against the licence, and the kiosk shows its Getting started screen on its next check. Nothing is deleted. A kiosk already removed is answered as it is, unchanged.
71753
+ * @summary Remove a kiosk from use
71754
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71755
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71756
+ * @param {*} [options] Override http request option.
71757
+ * @throws {RequiredError}
71758
+ * @memberof VenueKiosksApiInterface
71759
+ */
71760
+ removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
71761
+
71762
+ }
71763
+
71764
+ /**
71765
+ * VenueKiosksApi - object-oriented interface
71766
+ * @export
71767
+ * @class VenueKiosksApi
71768
+ * @extends {BaseAPI}
71769
+ */
71770
+ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
71771
+ /**
71772
+ * Only the fields sent change. status ACTIVE on a removed kiosk puts it back in use, asks the licence exactly as a claim does, and makes it the station the device resolves to. Every other change keeps the kiosk\'s updatedAt, so it never takes the device from a venue it moved to (the device resolves to its station with the newest updatedAt), and changes only a kiosk in use: one removed meanwhile answers 409. status INACTIVE takes the kiosk out of use and unlinks its terminal; on a kiosk already removed it answers the kiosk unchanged. Any other change of a removed kiosk is refused. The kiosk\'s kept station is forgotten, so the device sees the change on its next request.
71773
+ * @summary Rename a kiosk, change its prefix, or put it in or out of use
71774
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71775
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71776
+ * @param {ChangeKioskDto} changeKioskDto
71777
+ * @param {*} [options] Override http request option.
71778
+ * @throws {RequiredError}
71779
+ * @memberof VenueKiosksApi
71780
+ */
71781
+ public changeVenueKiosk(businessId: number, stationId: string, changeKioskDto: ChangeKioskDto, options?: AxiosRequestConfig) {
71782
+ return VenueKiosksApiFp(this.configuration).changeVenueKiosk(businessId, stationId, changeKioskDto, options).then((request) => request(this.axios, this.basePath));
71783
+ }
71784
+
71785
+ /**
71786
+ * The kiosk shows its Hardware ID on its Getting started screen until it is linked; the id is trimmed and written in the case the device sends it (an iOS vendor id upper case, an Android id lower case). A device that is one of the venue\'s tills, in use or not, or active at another venue, is refused first, before the licence is asked. A kiosk already in use here is only renamed, with no licence check. Otherwise the licence is read from the license server and must have the kiosk add-on; then, under a lock on the venue\'s kiosks and then one on the device, the device\'s other uses are checked again and the venue\'s active kiosks with this one must fit the licence\'s kiosk limit. The venue\'s station of the device becomes an active kiosk (type KIOSK), created when the venue has none (device KIOSK_STAND, prefix empty unless sent), with the name sent, and becomes the station the device resolves to; the kiosk then continues on its next check. A kiosk the venue already had, inactive, counts like a new one. Nothing is claimed unchecked: when the licence cannot be read, the claim is refused.
71787
+ * @summary Link a kiosk to the venue by the Hardware ID it shows
71788
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71789
+ * @param {ClaimKioskDto} claimKioskDto
71790
+ * @param {*} [options] Override http request option.
71791
+ * @throws {RequiredError}
71792
+ * @memberof VenueKiosksApi
71793
+ */
71794
+ public claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: AxiosRequestConfig) {
71795
+ return VenueKiosksApiFp(this.configuration).claimVenueKiosk(businessId, claimKioskDto, options).then((request) => request(this.axios, this.basePath));
71796
+ }
71797
+
71798
+ /**
71799
+ * paymentTerminalId names one of the venue\'s stored terminals, or null unlinks the kiosk\'s terminal. A terminal another kiosk or till holds is refused, never taken from it. The kiosk\'s kept station is forgotten, so the kiosk pays on the new terminal from its next request.
71800
+ * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
71801
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71802
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71803
+ * @param {LinkKioskTerminalDto} linkKioskTerminalDto
71804
+ * @param {*} [options] Override http request option.
71805
+ * @throws {RequiredError}
71806
+ * @memberof VenueKiosksApi
71807
+ */
71808
+ public linkVenueKioskTerminal(businessId: number, stationId: string, linkKioskTerminalDto: LinkKioskTerminalDto, options?: AxiosRequestConfig) {
71809
+ return VenueKiosksApiFp(this.configuration).linkVenueKioskTerminal(businessId, stationId, linkKioskTerminalDto, options).then((request) => request(this.axios, this.basePath));
71810
+ }
71811
+
71812
+ /**
71813
+ * Every kiosk station of the venue, active or removed, oldest first, with its linked payment terminal. Read from the database every time.
71814
+ * @summary List the venue\'s kiosks
71815
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71816
+ * @param {*} [options] Override http request option.
71817
+ * @throws {RequiredError}
71818
+ * @memberof VenueKiosksApi
71819
+ */
71820
+ public listVenueKiosks(businessId: number, options?: AxiosRequestConfig) {
71821
+ return VenueKiosksApiFp(this.configuration).listVenueKiosks(businessId, options).then((request) => request(this.axios, this.basePath));
71822
+ }
71823
+
71824
+ /**
71825
+ * The venue\'s stored terminals, oldest first, each with the station it is linked to. A terminal is stored once a till discovered it at its provider (POST /v1/terminal/discover); this route asks no provider.
71826
+ * @summary List the venue\'s payment terminals, for linking one to a kiosk
71827
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71828
+ * @param {*} [options] Override http request option.
71829
+ * @throws {RequiredError}
71830
+ * @memberof VenueKiosksApi
71831
+ */
71832
+ public listVenuePaymentTerminals(businessId: number, options?: AxiosRequestConfig) {
71833
+ return VenueKiosksApiFp(this.configuration).listVenuePaymentTerminals(businessId, options).then((request) => request(this.axios, this.basePath));
71834
+ }
71835
+
71836
+ /**
71837
+ * The kiosk is set INACTIVE and its terminal unlinked; its row stays, so its orders keep their station and it can be claimed again. It no longer counts against the licence, and the kiosk shows its Getting started screen on its next check. Nothing is deleted. A kiosk already removed is answered as it is, unchanged.
71838
+ * @summary Remove a kiosk from use
71839
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
71840
+ * @param {string} stationId The kiosk\&#39;s station id, as the venue\&#39;s kiosk list answers it
71841
+ * @param {*} [options] Override http request option.
71842
+ * @throws {RequiredError}
71843
+ * @memberof VenueKiosksApi
71844
+ */
71845
+ public removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig) {
71846
+ return VenueKiosksApiFp(this.configuration).removeVenueKiosk(businessId, stationId, options).then((request) => request(this.axios, this.basePath));
71847
+ }
71848
+ }
71849
+
71850
+
70879
71851
  /**
70880
71852
  * VivaApi - axios parameter creator
70881
71853
  * @export