@munchi_oy/core 2.14.3 → 2.15.1

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
@@ -4757,6 +4757,18 @@ export interface CreateMunchiGiftCardDto {
4757
4757
  * @memberof CreateMunchiGiftCardDto
4758
4758
  */
4759
4759
  'purchaserEmail'?: string;
4760
+ /**
4761
+ * Whether the card is emailed to purchaserEmail once it is ACTIVE: at once for a card sold ACTIVE, when its order is paid for one sold PENDING. Absent: true. Without purchaserEmail nothing is sent.
4762
+ * @type {boolean}
4763
+ * @memberof CreateMunchiGiftCardDto
4764
+ */
4765
+ 'sendEmail'?: boolean;
4766
+ /**
4767
+ * The message shown in the card\'s email, 1 to 300 characters once the spaces around it are dropped: the buyer\'s own words. Absent or only spaces: none.
4768
+ * @type {string}
4769
+ * @memberof CreateMunchiGiftCardDto
4770
+ */
4771
+ 'message'?: string;
4760
4772
  /**
4761
4773
  * The country code of the buyer\'s phone, 1 to 8 characters as sent; spaces around it are dropped
4762
4774
  * @type {string}
@@ -5045,6 +5057,33 @@ export interface CreatePaymentMethodDtoGiftCardCredentials {
5045
5057
  */
5046
5058
  'uniquePosDeviceId'?: string;
5047
5059
  }
5060
+ /**
5061
+ *
5062
+ * @export
5063
+ * @interface CreatePaymentTerminalDto
5064
+ */
5065
+ export interface CreatePaymentTerminalDto {
5066
+ /**
5067
+ *
5068
+ * @type {TerminalProvider}
5069
+ * @memberof CreatePaymentTerminalDto
5070
+ */
5071
+ 'provider': TerminalProvider;
5072
+ /**
5073
+ * The provider\'s own id of the terminal, trimmed: for viva the terminal ID (TID) in Viva\'s portal, digits only (16010572); for nets the terminal ID (TID), digits only (72102200); for worldline the terminal\'s serial number, letters and digits (253SKD884468). The payment is sent to the provider with this id, so it must be the id the provider knows
5074
+ * @type {string}
5075
+ * @memberof CreatePaymentTerminalDto
5076
+ */
5077
+ 'hardwareId': string;
5078
+ /**
5079
+ * The terminal\'s name, as the venue\'s staff call it
5080
+ * @type {string}
5081
+ * @memberof CreatePaymentTerminalDto
5082
+ */
5083
+ 'label': string;
5084
+ }
5085
+
5086
+
5048
5087
  /**
5049
5088
  *
5050
5089
  * @export
@@ -5374,11 +5413,17 @@ export interface CreateVenueGiftCardDto {
5374
5413
  */
5375
5414
  'note'?: string;
5376
5415
  /**
5377
- * The message shown in the card\'s email, 1 to 300 characters: the buyer\'s or the store\'s own words. Absent: none.
5416
+ * The message shown in the card\'s email, 1 to 300 characters once the spaces around it are dropped: the buyer\'s or the store\'s own words. Absent or only spaces: none.
5378
5417
  * @type {string}
5379
5418
  * @memberof CreateVenueGiftCardDto
5380
5419
  */
5381
5420
  'message'?: string;
5421
+ /**
5422
+ *
5423
+ * @type {GiftCardLanguage}
5424
+ * @memberof CreateVenueGiftCardDto
5425
+ */
5426
+ 'language'?: GiftCardLanguage;
5382
5427
  /**
5383
5428
  * Whether the card is emailed to buyerEmail at once. Absent: true. Without buyerEmail nothing is sent.
5384
5429
  * @type {boolean}
@@ -5410,6 +5455,8 @@ export interface CreateVenueGiftCardDto {
5410
5455
  */
5411
5456
  'expiresAt'?: string | null;
5412
5457
  }
5458
+
5459
+
5413
5460
  /**
5414
5461
  *
5415
5462
  * @export
@@ -9231,6 +9278,20 @@ export const GiftCardIssue = {
9231
9278
  export type GiftCardIssue = typeof GiftCardIssue[keyof typeof GiftCardIssue];
9232
9279
 
9233
9280
 
9281
+ /**
9282
+ *
9283
+ * @export
9284
+ * @enum {string}
9285
+ */
9286
+
9287
+ export const GiftCardLanguage = {
9288
+ En: 'en',
9289
+ Fi: 'fi'
9290
+ } as const;
9291
+
9292
+ export type GiftCardLanguage = typeof GiftCardLanguage[keyof typeof GiftCardLanguage];
9293
+
9294
+
9234
9295
  /**
9235
9296
  *
9236
9297
  * @export
@@ -9782,7 +9843,15 @@ export interface GiftCardSettingsDto {
9782
9843
  * @memberof GiftCardSettingsDto
9783
9844
  */
9784
9845
  'terms': string | null;
9846
+ /**
9847
+ *
9848
+ * @type {GiftCardLanguage}
9849
+ * @memberof GiftCardSettingsDto
9850
+ */
9851
+ 'emailLanguage': GiftCardLanguage | null;
9785
9852
  }
9853
+
9854
+
9786
9855
  /**
9787
9856
  * Where the store\'s gift cards can be spent
9788
9857
  * @export
@@ -27586,6 +27655,19 @@ export interface ReleasedLicenceHoldsDto {
27586
27655
  */
27587
27656
  'nextAfterVenueId': number | null;
27588
27657
  }
27658
+ /**
27659
+ *
27660
+ * @export
27661
+ * @interface RenamePaymentTerminalDto
27662
+ */
27663
+ export interface RenamePaymentTerminalDto {
27664
+ /**
27665
+ * The terminal\'s new name; nothing else of the terminal changes
27666
+ * @type {string}
27667
+ * @memberof RenamePaymentTerminalDto
27668
+ */
27669
+ 'label': string;
27670
+ }
27589
27671
  /**
27590
27672
  *
27591
27673
  * @export
@@ -34457,6 +34539,21 @@ export const TerminalConnectionType = {
34457
34539
  export type TerminalConnectionType = typeof TerminalConnectionType[keyof typeof TerminalConnectionType];
34458
34540
 
34459
34541
 
34542
+ /**
34543
+ *
34544
+ * @export
34545
+ * @enum {string}
34546
+ */
34547
+
34548
+ export const TerminalProvider = {
34549
+ Viva: 'viva',
34550
+ Nets: 'nets',
34551
+ Worldline: 'worldline'
34552
+ } as const;
34553
+
34554
+ export type TerminalProvider = typeof TerminalProvider[keyof typeof TerminalProvider];
34555
+
34556
+
34460
34557
  /**
34461
34558
  *
34462
34559
  * @export
@@ -37060,7 +37157,15 @@ export interface UpdateGiftCardSettingsDto {
37060
37157
  * @memberof UpdateGiftCardSettingsDto
37061
37158
  */
37062
37159
  'terms'?: string | null;
37160
+ /**
37161
+ *
37162
+ * @type {GiftCardLanguage}
37163
+ * @memberof UpdateGiftCardSettingsDto
37164
+ */
37165
+ 'emailLanguage'?: GiftCardLanguage | null;
37063
37166
  }
37167
+
37168
+
37064
37169
  /**
37065
37170
  * Where the store\'s gift cards can be spent, both channels. Absent: unchanged.
37066
37171
  * @export
@@ -37572,7 +37677,15 @@ export interface UpdateVenueGiftCardDto {
37572
37677
  * @memberof UpdateVenueGiftCardDto
37573
37678
  */
37574
37679
  'buyerEmail': string | null;
37680
+ /**
37681
+ *
37682
+ * @type {GiftCardLanguage}
37683
+ * @memberof UpdateVenueGiftCardDto
37684
+ */
37685
+ 'language'?: GiftCardLanguage | null;
37575
37686
  }
37687
+
37688
+
37576
37689
  /**
37577
37690
  *
37578
37691
  * @export
@@ -38831,6 +38944,12 @@ export interface VenueGiftCardDetailDto {
38831
38944
  * @memberof VenueGiftCardDetailDto
38832
38945
  */
38833
38946
  'message': string | null;
38947
+ /**
38948
+ *
38949
+ * @type {GiftCardLanguage}
38950
+ * @memberof VenueGiftCardDetailDto
38951
+ */
38952
+ 'language': GiftCardLanguage | null;
38834
38953
  /**
38835
38954
  *
38836
38955
  * @type {VenueGiftCardDetailDtoLastEmail}
@@ -39153,7 +39272,7 @@ export interface VenuePaymentTerminalDto {
39153
39272
  */
39154
39273
  export interface VenuePaymentTerminalsDto {
39155
39274
  /**
39156
- * The venue\'s payment terminals as stored, oldest first; a terminal is stored once a till has discovered it
39275
+ * The venue\'s payment terminals as stored, oldest first; a terminal is stored once a till has discovered it at its provider, or once Munchi ops added it
39157
39276
  * @type {Array<VenuePaymentTerminalDto>}
39158
39277
  * @memberof VenuePaymentTerminalsDto
39159
39278
  */
@@ -76606,6 +76725,50 @@ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configu
76606
76725
  options: localVarRequestOptions,
76607
76726
  };
76608
76727
  },
76728
+ /**
76729
+ * Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
76730
+ * @summary Add a payment terminal to the venue (Munchi admins only)
76731
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
76732
+ * @param {CreatePaymentTerminalDto} createPaymentTerminalDto
76733
+ * @param {*} [options] Override http request option.
76734
+ * @throws {RequiredError}
76735
+ */
76736
+ createVenuePaymentTerminal: async (businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
76737
+ // verify required parameter 'businessId' is not null or undefined
76738
+ assertParamExists('createVenuePaymentTerminal', 'businessId', businessId)
76739
+ // verify required parameter 'createPaymentTerminalDto' is not null or undefined
76740
+ assertParamExists('createVenuePaymentTerminal', 'createPaymentTerminalDto', createPaymentTerminalDto)
76741
+ const localVarPath = `/api/v2/venues/{businessId}/payment-terminals`
76742
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
76743
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
76744
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
76745
+ let baseOptions;
76746
+ if (configuration) {
76747
+ baseOptions = configuration.baseOptions;
76748
+ }
76749
+
76750
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
76751
+ const localVarHeaderParameter = {} as any;
76752
+ const localVarQueryParameter = {} as any;
76753
+
76754
+ // authentication JWT-auth required
76755
+ // http bearer authentication required
76756
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
76757
+
76758
+
76759
+
76760
+ localVarHeaderParameter['Content-Type'] = 'application/json';
76761
+
76762
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
76763
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76764
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76765
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentTerminalDto, localVarRequestOptions, configuration)
76766
+
76767
+ return {
76768
+ url: toPathString(localVarUrlObj),
76769
+ options: localVarRequestOptions,
76770
+ };
76771
+ },
76609
76772
  /**
76610
76773
  * 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.
76611
76774
  * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
@@ -76693,7 +76856,7 @@ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configu
76693
76856
  };
76694
76857
  },
76695
76858
  /**
76696
- * 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.
76859
+ * 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), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
76697
76860
  * @summary List the venue\'s payment terminals, for linking one to a kiosk
76698
76861
  * @param {number} businessId The venue\&#39;s orderingBusinessId
76699
76862
  * @param {*} [options] Override http request option.
@@ -76767,6 +76930,96 @@ export const VenueKiosksApiAxiosParamCreator = function (configuration?: Configu
76767
76930
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76768
76931
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76769
76932
 
76933
+ return {
76934
+ url: toPathString(localVarUrlObj),
76935
+ options: localVarRequestOptions,
76936
+ };
76937
+ },
76938
+ /**
76939
+ * The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
76940
+ * @summary Remove a payment terminal from the venue (Munchi admins only)
76941
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
76942
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
76943
+ * @param {*} [options] Override http request option.
76944
+ * @throws {RequiredError}
76945
+ */
76946
+ removeVenuePaymentTerminal: async (businessId: number, paymentTerminalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
76947
+ // verify required parameter 'businessId' is not null or undefined
76948
+ assertParamExists('removeVenuePaymentTerminal', 'businessId', businessId)
76949
+ // verify required parameter 'paymentTerminalId' is not null or undefined
76950
+ assertParamExists('removeVenuePaymentTerminal', 'paymentTerminalId', paymentTerminalId)
76951
+ const localVarPath = `/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}`
76952
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
76953
+ .replace(`{${"paymentTerminalId"}}`, encodeURIComponent(String(paymentTerminalId)));
76954
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
76955
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
76956
+ let baseOptions;
76957
+ if (configuration) {
76958
+ baseOptions = configuration.baseOptions;
76959
+ }
76960
+
76961
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
76962
+ const localVarHeaderParameter = {} as any;
76963
+ const localVarQueryParameter = {} as any;
76964
+
76965
+ // authentication JWT-auth required
76966
+ // http bearer authentication required
76967
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
76968
+
76969
+
76970
+
76971
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
76972
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76973
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76974
+
76975
+ return {
76976
+ url: toPathString(localVarUrlObj),
76977
+ options: localVarRequestOptions,
76978
+ };
76979
+ },
76980
+ /**
76981
+ * Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
76982
+ * @summary Rename one of the venue\'s payment terminals (Munchi admins only)
76983
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
76984
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
76985
+ * @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
76986
+ * @param {*} [options] Override http request option.
76987
+ * @throws {RequiredError}
76988
+ */
76989
+ renameVenuePaymentTerminal: async (businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
76990
+ // verify required parameter 'businessId' is not null or undefined
76991
+ assertParamExists('renameVenuePaymentTerminal', 'businessId', businessId)
76992
+ // verify required parameter 'paymentTerminalId' is not null or undefined
76993
+ assertParamExists('renameVenuePaymentTerminal', 'paymentTerminalId', paymentTerminalId)
76994
+ // verify required parameter 'renamePaymentTerminalDto' is not null or undefined
76995
+ assertParamExists('renameVenuePaymentTerminal', 'renamePaymentTerminalDto', renamePaymentTerminalDto)
76996
+ const localVarPath = `/api/v2/venues/{businessId}/payment-terminals/{paymentTerminalId}`
76997
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
76998
+ .replace(`{${"paymentTerminalId"}}`, encodeURIComponent(String(paymentTerminalId)));
76999
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77000
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
77001
+ let baseOptions;
77002
+ if (configuration) {
77003
+ baseOptions = configuration.baseOptions;
77004
+ }
77005
+
77006
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
77007
+ const localVarHeaderParameter = {} as any;
77008
+ const localVarQueryParameter = {} as any;
77009
+
77010
+ // authentication JWT-auth required
77011
+ // http bearer authentication required
77012
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
77013
+
77014
+
77015
+
77016
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77017
+
77018
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
77019
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77020
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77021
+ localVarRequestOptions.data = serializeDataIfNeeded(renamePaymentTerminalDto, localVarRequestOptions, configuration)
77022
+
76770
77023
  return {
76771
77024
  url: toPathString(localVarUrlObj),
76772
77025
  options: localVarRequestOptions,
@@ -76807,6 +77060,18 @@ export const VenueKiosksApiFp = function(configuration?: Configuration) {
76807
77060
  const localVarAxiosArgs = await localVarAxiosParamCreator.claimVenueKiosk(businessId, claimKioskDto, options);
76808
77061
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
76809
77062
  },
77063
+ /**
77064
+ * Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
77065
+ * @summary Add a payment terminal to the venue (Munchi admins only)
77066
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77067
+ * @param {CreatePaymentTerminalDto} createPaymentTerminalDto
77068
+ * @param {*} [options] Override http request option.
77069
+ * @throws {RequiredError}
77070
+ */
77071
+ async createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalDto>> {
77072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVenuePaymentTerminal(businessId, createPaymentTerminalDto, options);
77073
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
77074
+ },
76810
77075
  /**
76811
77076
  * 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.
76812
77077
  * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
@@ -76832,7 +77097,7 @@ export const VenueKiosksApiFp = function(configuration?: Configuration) {
76832
77097
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
76833
77098
  },
76834
77099
  /**
76835
- * 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.
77100
+ * 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), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
76836
77101
  * @summary List the venue\'s payment terminals, for linking one to a kiosk
76837
77102
  * @param {number} businessId The venue\&#39;s orderingBusinessId
76838
77103
  * @param {*} [options] Override http request option.
@@ -76854,6 +77119,31 @@ export const VenueKiosksApiFp = function(configuration?: Configuration) {
76854
77119
  const localVarAxiosArgs = await localVarAxiosParamCreator.removeVenueKiosk(businessId, stationId, options);
76855
77120
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
76856
77121
  },
77122
+ /**
77123
+ * The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
77124
+ * @summary Remove a payment terminal from the venue (Munchi admins only)
77125
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77126
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77127
+ * @param {*} [options] Override http request option.
77128
+ * @throws {RequiredError}
77129
+ */
77130
+ async removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalDto>> {
77131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeVenuePaymentTerminal(businessId, paymentTerminalId, options);
77132
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
77133
+ },
77134
+ /**
77135
+ * Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
77136
+ * @summary Rename one of the venue\'s payment terminals (Munchi admins only)
77137
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77138
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77139
+ * @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
77140
+ * @param {*} [options] Override http request option.
77141
+ * @throws {RequiredError}
77142
+ */
77143
+ async renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VenuePaymentTerminalDto>> {
77144
+ const localVarAxiosArgs = await localVarAxiosParamCreator.renameVenuePaymentTerminal(businessId, paymentTerminalId, renamePaymentTerminalDto, options);
77145
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
77146
+ },
76857
77147
  }
76858
77148
  };
76859
77149
 
@@ -76887,6 +77177,17 @@ export const VenueKiosksApiFactory = function (configuration?: Configuration, ba
76887
77177
  claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: any): AxiosPromise<VenueKioskDto> {
76888
77178
  return localVarFp.claimVenueKiosk(businessId, claimKioskDto, options).then((request) => request(axios, basePath));
76889
77179
  },
77180
+ /**
77181
+ * Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
77182
+ * @summary Add a payment terminal to the venue (Munchi admins only)
77183
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77184
+ * @param {CreatePaymentTerminalDto} createPaymentTerminalDto
77185
+ * @param {*} [options] Override http request option.
77186
+ * @throws {RequiredError}
77187
+ */
77188
+ createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: any): AxiosPromise<VenuePaymentTerminalDto> {
77189
+ return localVarFp.createVenuePaymentTerminal(businessId, createPaymentTerminalDto, options).then((request) => request(axios, basePath));
77190
+ },
76890
77191
  /**
76891
77192
  * 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.
76892
77193
  * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
@@ -76910,7 +77211,7 @@ export const VenueKiosksApiFactory = function (configuration?: Configuration, ba
76910
77211
  return localVarFp.listVenueKiosks(businessId, options).then((request) => request(axios, basePath));
76911
77212
  },
76912
77213
  /**
76913
- * 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.
77214
+ * 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), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
76914
77215
  * @summary List the venue\'s payment terminals, for linking one to a kiosk
76915
77216
  * @param {number} businessId The venue\&#39;s orderingBusinessId
76916
77217
  * @param {*} [options] Override http request option.
@@ -76930,6 +77231,29 @@ export const VenueKiosksApiFactory = function (configuration?: Configuration, ba
76930
77231
  removeVenueKiosk(businessId: number, stationId: string, options?: any): AxiosPromise<VenueKioskDto> {
76931
77232
  return localVarFp.removeVenueKiosk(businessId, stationId, options).then((request) => request(axios, basePath));
76932
77233
  },
77234
+ /**
77235
+ * The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
77236
+ * @summary Remove a payment terminal from the venue (Munchi admins only)
77237
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77238
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77239
+ * @param {*} [options] Override http request option.
77240
+ * @throws {RequiredError}
77241
+ */
77242
+ removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: any): AxiosPromise<VenuePaymentTerminalDto> {
77243
+ return localVarFp.removeVenuePaymentTerminal(businessId, paymentTerminalId, options).then((request) => request(axios, basePath));
77244
+ },
77245
+ /**
77246
+ * Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
77247
+ * @summary Rename one of the venue\'s payment terminals (Munchi admins only)
77248
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77249
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77250
+ * @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
77251
+ * @param {*} [options] Override http request option.
77252
+ * @throws {RequiredError}
77253
+ */
77254
+ renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: any): AxiosPromise<VenuePaymentTerminalDto> {
77255
+ return localVarFp.renameVenuePaymentTerminal(businessId, paymentTerminalId, renamePaymentTerminalDto, options).then((request) => request(axios, basePath));
77256
+ },
76933
77257
  };
76934
77258
  };
76935
77259
 
@@ -76962,6 +77286,17 @@ export interface VenueKiosksApiInterface {
76962
77286
  */
76963
77287
  claimVenueKiosk(businessId: number, claimKioskDto: ClaimKioskDto, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
76964
77288
 
77289
+ /**
77290
+ * Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
77291
+ * @summary Add a payment terminal to the venue (Munchi admins only)
77292
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77293
+ * @param {CreatePaymentTerminalDto} createPaymentTerminalDto
77294
+ * @param {*} [options] Override http request option.
77295
+ * @throws {RequiredError}
77296
+ * @memberof VenueKiosksApiInterface
77297
+ */
77298
+ createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalDto>;
77299
+
76965
77300
  /**
76966
77301
  * 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.
76967
77302
  * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
@@ -76985,7 +77320,7 @@ export interface VenueKiosksApiInterface {
76985
77320
  listVenueKiosks(businessId: number, options?: AxiosRequestConfig): AxiosPromise<VenueKiosksDto>;
76986
77321
 
76987
77322
  /**
76988
- * 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.
77323
+ * 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), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
76989
77324
  * @summary List the venue\'s payment terminals, for linking one to a kiosk
76990
77325
  * @param {number} businessId The venue\&#39;s orderingBusinessId
76991
77326
  * @param {*} [options] Override http request option.
@@ -77005,6 +77340,29 @@ export interface VenueKiosksApiInterface {
77005
77340
  */
77006
77341
  removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig): AxiosPromise<VenueKioskDto>;
77007
77342
 
77343
+ /**
77344
+ * The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
77345
+ * @summary Remove a payment terminal from the venue (Munchi admins only)
77346
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77347
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77348
+ * @param {*} [options] Override http request option.
77349
+ * @throws {RequiredError}
77350
+ * @memberof VenueKiosksApiInterface
77351
+ */
77352
+ removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalDto>;
77353
+
77354
+ /**
77355
+ * Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
77356
+ * @summary Rename one of the venue\'s payment terminals (Munchi admins only)
77357
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77358
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77359
+ * @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
77360
+ * @param {*} [options] Override http request option.
77361
+ * @throws {RequiredError}
77362
+ * @memberof VenueKiosksApiInterface
77363
+ */
77364
+ renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: AxiosRequestConfig): AxiosPromise<VenuePaymentTerminalDto>;
77365
+
77008
77366
  }
77009
77367
 
77010
77368
  /**
@@ -77041,6 +77399,19 @@ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
77041
77399
  return VenueKiosksApiFp(this.configuration).claimVenueKiosk(businessId, claimKioskDto, options).then((request) => request(this.axios, this.basePath));
77042
77400
  }
77043
77401
 
77402
+ /**
77403
+ * Munchi ops store a card terminal for the venue by the id its provider gives it, so a kiosk or till can take it. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161); the venue\'s own logins are refused. hardwareId is checked against its provider\'s shape: Viva\'s and Nets\' terminal ID (TID) are digits, a Worldline terminal\'s serial number letters and digits. The provider is not asked: the terminal must already be registered on the venue\'s account at the provider, or its payments are refused there. The terminal is stored free, linked to no station. A terminal id the venue already stores, under any provider, is refused; so is a Worldline terminal another venue stores, since Worldline finds a terminal by its id alone. Viva and Nets terminals may be stored at several venues, as discover stores them.
77404
+ * @summary Add a payment terminal to the venue (Munchi admins only)
77405
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77406
+ * @param {CreatePaymentTerminalDto} createPaymentTerminalDto
77407
+ * @param {*} [options] Override http request option.
77408
+ * @throws {RequiredError}
77409
+ * @memberof VenueKiosksApi
77410
+ */
77411
+ public createVenuePaymentTerminal(businessId: number, createPaymentTerminalDto: CreatePaymentTerminalDto, options?: AxiosRequestConfig) {
77412
+ return VenueKiosksApiFp(this.configuration).createVenuePaymentTerminal(businessId, createPaymentTerminalDto, options).then((request) => request(this.axios, this.basePath));
77413
+ }
77414
+
77044
77415
  /**
77045
77416
  * 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.
77046
77417
  * @summary Link one of the venue\'s payment terminals to a kiosk, or unlink it
@@ -77068,7 +77439,7 @@ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
77068
77439
  }
77069
77440
 
77070
77441
  /**
77071
- * 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.
77442
+ * 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), or once Munchi ops added it (POST payment-terminals); this route asks no provider.
77072
77443
  * @summary List the venue\'s payment terminals, for linking one to a kiosk
77073
77444
  * @param {number} businessId The venue\&#39;s orderingBusinessId
77074
77445
  * @param {*} [options] Override http request option.
@@ -77091,6 +77462,33 @@ export class VenueKiosksApi extends BaseAPI implements VenueKiosksApiInterface {
77091
77462
  public removeVenueKiosk(businessId: number, stationId: string, options?: AxiosRequestConfig) {
77092
77463
  return VenueKiosksApiFp(this.configuration).removeVenueKiosk(businessId, stationId, options).then((request) => request(this.axios, this.basePath));
77093
77464
  }
77465
+
77466
+ /**
77467
+ * The terminal\'s row is deleted; payments made on it keep its id in their own records. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Refused while a kiosk or till holds the terminal, and while a payment, reversal or refund started on it in the last 24 hours is still waiting on the terminal. Both are read under a lock on the terminal, so a link made meanwhile is never undone silently. A Viva or Nets terminal still on the venue\'s provider account is stored again on a till\'s next discover.
77468
+ * @summary Remove a payment terminal from the venue (Munchi admins only)
77469
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77470
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77471
+ * @param {*} [options] Override http request option.
77472
+ * @throws {RequiredError}
77473
+ * @memberof VenueKiosksApi
77474
+ */
77475
+ public removeVenuePaymentTerminal(businessId: number, paymentTerminalId: string, options?: AxiosRequestConfig) {
77476
+ return VenueKiosksApiFp(this.configuration).removeVenuePaymentTerminal(businessId, paymentTerminalId, options).then((request) => request(this.axios, this.basePath));
77477
+ }
77478
+
77479
+ /**
77480
+ * Only the label changes; the provider and its terminal id stay, and a kiosk or till holding the terminal keeps paying on it and shows the new label from its next request. Only a Munchi admin\'s ticket or Munchi\'s own Clerk key may (D161). Two renames at once both write; the later one\'s label stays.
77481
+ * @summary Rename one of the venue\'s payment terminals (Munchi admins only)
77482
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
77483
+ * @param {string} paymentTerminalId The payment terminal\&#39;s id, as the venue\&#39;s terminal list answers it
77484
+ * @param {RenamePaymentTerminalDto} renamePaymentTerminalDto
77485
+ * @param {*} [options] Override http request option.
77486
+ * @throws {RequiredError}
77487
+ * @memberof VenueKiosksApi
77488
+ */
77489
+ public renameVenuePaymentTerminal(businessId: number, paymentTerminalId: string, renamePaymentTerminalDto: RenamePaymentTerminalDto, options?: AxiosRequestConfig) {
77490
+ return VenueKiosksApiFp(this.configuration).renameVenuePaymentTerminal(businessId, paymentTerminalId, renamePaymentTerminalDto, options).then((request) => request(this.axios, this.basePath));
77491
+ }
77094
77492
  }
77095
77493
 
77096
77494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munchi_oy/core",
3
- "version": "2.14.3",
3
+ "version": "2.15.1",
4
4
  "description": "Munchi Core SDK - Core utilities and types",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
2
  // Run 'pnpm version:sync' to update this file.
3
- export const VERSION = "2.14.3";
3
+ export const VERSION = "2.15.1";