@munchi_oy/core 1.9.134 → 1.9.135

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
@@ -34088,6 +34088,187 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
34088
34088
  }
34089
34089
 
34090
34090
 
34091
+ /**
34092
+ * CashManagementV6Api - axios parameter creator
34093
+ * @export
34094
+ */
34095
+ export const CashManagementV6ApiAxiosParamCreator = function (configuration?: Configuration) {
34096
+ return {
34097
+ /**
34098
+ * The same answer as v1. In team mode, a role without Report::ViewCashLogs gets an empty page, and a role without Report::ViewAll gets only the entries of the person unlocked on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
34099
+ * @summary Cash logs, narrowed to the person working on the till
34100
+ * @param {string} businessId Id of the venue whose cash logs are read
34101
+ * @param {TimeSpan} [timeSpan] Time span
34102
+ * @param {string} [start] Start date
34103
+ * @param {string} [end] End date
34104
+ * @param {number} [page] Page number
34105
+ * @param {number} [rowPerPage] Rows per page
34106
+ * @param {string} [timezone] Timezone of the period asked for (default \"UTC\")
34107
+ * @param {*} [options] Override http request option.
34108
+ * @throws {RequiredError}
34109
+ */
34110
+ listCashLogsForTill: async (businessId: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, timezone?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34111
+ // verify required parameter 'businessId' is not null or undefined
34112
+ assertParamExists('listCashLogsForTill', 'businessId', businessId)
34113
+ const localVarPath = `/api/v6/cash-management/{businessId}/logs`
34114
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
34115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34117
+ let baseOptions;
34118
+ if (configuration) {
34119
+ baseOptions = configuration.baseOptions;
34120
+ }
34121
+
34122
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34123
+ const localVarHeaderParameter = {} as any;
34124
+ const localVarQueryParameter = {} as any;
34125
+
34126
+ // authentication JWT-auth required
34127
+ // http bearer authentication required
34128
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34129
+
34130
+ if (timeSpan !== undefined) {
34131
+ localVarQueryParameter['timeSpan'] = timeSpan;
34132
+ }
34133
+
34134
+ if (start !== undefined) {
34135
+ localVarQueryParameter['start'] = start;
34136
+ }
34137
+
34138
+ if (end !== undefined) {
34139
+ localVarQueryParameter['end'] = end;
34140
+ }
34141
+
34142
+ if (page !== undefined) {
34143
+ localVarQueryParameter['page'] = page;
34144
+ }
34145
+
34146
+ if (rowPerPage !== undefined) {
34147
+ localVarQueryParameter['rowPerPage'] = rowPerPage;
34148
+ }
34149
+
34150
+ if (timezone !== undefined) {
34151
+ localVarQueryParameter['timezone'] = timezone;
34152
+ }
34153
+
34154
+
34155
+
34156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34159
+
34160
+ return {
34161
+ url: toPathString(localVarUrlObj),
34162
+ options: localVarRequestOptions,
34163
+ };
34164
+ },
34165
+ }
34166
+ };
34167
+
34168
+ /**
34169
+ * CashManagementV6Api - functional programming interface
34170
+ * @export
34171
+ */
34172
+ export const CashManagementV6ApiFp = function(configuration?: Configuration) {
34173
+ const localVarAxiosParamCreator = CashManagementV6ApiAxiosParamCreator(configuration)
34174
+ return {
34175
+ /**
34176
+ * The same answer as v1. In team mode, a role without Report::ViewCashLogs gets an empty page, and a role without Report::ViewAll gets only the entries of the person unlocked on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
34177
+ * @summary Cash logs, narrowed to the person working on the till
34178
+ * @param {string} businessId Id of the venue whose cash logs are read
34179
+ * @param {TimeSpan} [timeSpan] Time span
34180
+ * @param {string} [start] Start date
34181
+ * @param {string} [end] End date
34182
+ * @param {number} [page] Page number
34183
+ * @param {number} [rowPerPage] Rows per page
34184
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
34185
+ * @param {*} [options] Override http request option.
34186
+ * @throws {RequiredError}
34187
+ */
34188
+ async listCashLogsForTill(businessId: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, timezone?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashLogsPaginatedDto>> {
34189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCashLogsForTill(businessId, timeSpan, start, end, page, rowPerPage, timezone, options);
34190
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34191
+ },
34192
+ }
34193
+ };
34194
+
34195
+ /**
34196
+ * CashManagementV6Api - factory interface
34197
+ * @export
34198
+ */
34199
+ export const CashManagementV6ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34200
+ const localVarFp = CashManagementV6ApiFp(configuration)
34201
+ return {
34202
+ /**
34203
+ * The same answer as v1. In team mode, a role without Report::ViewCashLogs gets an empty page, and a role without Report::ViewAll gets only the entries of the person unlocked on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
34204
+ * @summary Cash logs, narrowed to the person working on the till
34205
+ * @param {string} businessId Id of the venue whose cash logs are read
34206
+ * @param {TimeSpan} [timeSpan] Time span
34207
+ * @param {string} [start] Start date
34208
+ * @param {string} [end] End date
34209
+ * @param {number} [page] Page number
34210
+ * @param {number} [rowPerPage] Rows per page
34211
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
34212
+ * @param {*} [options] Override http request option.
34213
+ * @throws {RequiredError}
34214
+ */
34215
+ listCashLogsForTill(businessId: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, timezone?: string, options?: any): AxiosPromise<CashLogsPaginatedDto> {
34216
+ return localVarFp.listCashLogsForTill(businessId, timeSpan, start, end, page, rowPerPage, timezone, options).then((request) => request(axios, basePath));
34217
+ },
34218
+ };
34219
+ };
34220
+
34221
+ /**
34222
+ * CashManagementV6Api - interface
34223
+ * @export
34224
+ * @interface CashManagementV6Api
34225
+ */
34226
+ export interface CashManagementV6ApiInterface {
34227
+ /**
34228
+ * The same answer as v1. In team mode, a role without Report::ViewCashLogs gets an empty page, and a role without Report::ViewAll gets only the entries of the person unlocked on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
34229
+ * @summary Cash logs, narrowed to the person working on the till
34230
+ * @param {string} businessId Id of the venue whose cash logs are read
34231
+ * @param {TimeSpan} [timeSpan] Time span
34232
+ * @param {string} [start] Start date
34233
+ * @param {string} [end] End date
34234
+ * @param {number} [page] Page number
34235
+ * @param {number} [rowPerPage] Rows per page
34236
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
34237
+ * @param {*} [options] Override http request option.
34238
+ * @throws {RequiredError}
34239
+ * @memberof CashManagementV6ApiInterface
34240
+ */
34241
+ listCashLogsForTill(businessId: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, timezone?: string, options?: AxiosRequestConfig): AxiosPromise<CashLogsPaginatedDto>;
34242
+
34243
+ }
34244
+
34245
+ /**
34246
+ * CashManagementV6Api - object-oriented interface
34247
+ * @export
34248
+ * @class CashManagementV6Api
34249
+ * @extends {BaseAPI}
34250
+ */
34251
+ export class CashManagementV6Api extends BaseAPI implements CashManagementV6ApiInterface {
34252
+ /**
34253
+ * The same answer as v1. In team mode, a role without Report::ViewCashLogs gets an empty page, and a role without Report::ViewAll gets only the entries of the person unlocked on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
34254
+ * @summary Cash logs, narrowed to the person working on the till
34255
+ * @param {string} businessId Id of the venue whose cash logs are read
34256
+ * @param {TimeSpan} [timeSpan] Time span
34257
+ * @param {string} [start] Start date
34258
+ * @param {string} [end] End date
34259
+ * @param {number} [page] Page number
34260
+ * @param {number} [rowPerPage] Rows per page
34261
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
34262
+ * @param {*} [options] Override http request option.
34263
+ * @throws {RequiredError}
34264
+ * @memberof CashManagementV6Api
34265
+ */
34266
+ public listCashLogsForTill(businessId: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, timezone?: string, options?: AxiosRequestConfig) {
34267
+ return CashManagementV6ApiFp(this.configuration).listCashLogsForTill(businessId, timeSpan, start, end, page, rowPerPage, timezone, options).then((request) => request(this.axios, this.basePath));
34268
+ }
34269
+ }
34270
+
34271
+
34091
34272
  /**
34092
34273
  * ChannelMenuApi - axios parameter creator
34093
34274
  * @export
@@ -38907,13 +39088,461 @@ export class HistoryApi extends BaseAPI implements HistoryApiInterface {
38907
39088
  * @throws {RequiredError}
38908
39089
  * @memberof HistoryApi
38909
39090
  */
38910
- public getOrderHistoryOnline(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
38911
- return HistoryApiFp(this.configuration).getOrderHistoryOnline(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
38912
- }
39091
+ public getOrderHistoryOnline(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
39092
+ return HistoryApiFp(this.configuration).getOrderHistoryOnline(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
39093
+ }
39094
+
39095
+ /**
39096
+ *
39097
+ * @summary Get order history for POS V5
39098
+ * @param {Array<number>} businessIds Business ID selected
39099
+ * @param {TimeSpan} [timeSpan] Time span
39100
+ * @param {string} [start] Start date
39101
+ * @param {string} [end] End date
39102
+ * @param {number} [page] Page number
39103
+ * @param {number} [rowPerPage] Number of rows per page
39104
+ * @param {Array<ProviderEnum>} [provider] Provider
39105
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39106
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39107
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39108
+ * @param {Array<OrderType>} [orderType] Order type
39109
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39110
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39111
+ * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
39112
+ * @param {*} [options] Override http request option.
39113
+ * @throws {RequiredError}
39114
+ * @memberof HistoryApi
39115
+ */
39116
+ public getOrderHistoryPOSV5(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
39117
+ return HistoryApiFp(this.configuration).getOrderHistoryPOSV5(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
39118
+ }
39119
+
39120
+ /**
39121
+ *
39122
+ * @summary Get order history for POS V5
39123
+ * @param {Array<number>} businessIds Business ID selected
39124
+ * @param {TimeSpan} [timeSpan] Time span
39125
+ * @param {string} [start] Start date
39126
+ * @param {string} [end] End date
39127
+ * @param {number} [page] Page number
39128
+ * @param {number} [rowPerPage] Number of rows per page
39129
+ * @param {Array<ProviderEnum>} [provider] Provider
39130
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39131
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39132
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39133
+ * @param {Array<OrderType>} [orderType] Order type
39134
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39135
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39136
+ * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
39137
+ * @param {*} [options] Override http request option.
39138
+ * @throws {RequiredError}
39139
+ * @memberof HistoryApi
39140
+ */
39141
+ public getOrderHistoryPOSV5Internal(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
39142
+ return HistoryApiFp(this.configuration).getOrderHistoryPOSV5Internal(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
39143
+ }
39144
+ }
39145
+
39146
+
39147
+ /**
39148
+ * HistoryV6Api - axios parameter creator
39149
+ * @export
39150
+ */
39151
+ export const HistoryV6ApiAxiosParamCreator = function (configuration?: Configuration) {
39152
+ return {
39153
+ /**
39154
+ * The same answer as v1. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list. Online orders are listed for everyone, whoever is on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
39155
+ * @summary Online order history, with what the person working on the till may not see zeroed
39156
+ * @param {Array<number>} businessIds Business ID selected
39157
+ * @param {TimeSpan} [timeSpan] Time span
39158
+ * @param {string} [start] Start date
39159
+ * @param {string} [end] End date
39160
+ * @param {number} [page] Page number
39161
+ * @param {number} [rowPerPage] Number of rows per page
39162
+ * @param {Array<ProviderEnum>} [provider] Provider
39163
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39164
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39165
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39166
+ * @param {Array<OrderType>} [orderType] Order type
39167
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39168
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39169
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39170
+ * @param {*} [options] Override http request option.
39171
+ * @throws {RequiredError}
39172
+ */
39173
+ listOnlineOrderHistoryForTill: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39174
+ // verify required parameter 'businessIds' is not null or undefined
39175
+ assertParamExists('listOnlineOrderHistoryForTill', 'businessIds', businessIds)
39176
+ const localVarPath = `/api/v6/history/orders`;
39177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39179
+ let baseOptions;
39180
+ if (configuration) {
39181
+ baseOptions = configuration.baseOptions;
39182
+ }
39183
+
39184
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39185
+ const localVarHeaderParameter = {} as any;
39186
+ const localVarQueryParameter = {} as any;
39187
+
39188
+ // authentication JWT-auth required
39189
+ // http bearer authentication required
39190
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
39191
+
39192
+ if (timeSpan !== undefined) {
39193
+ localVarQueryParameter['timeSpan'] = timeSpan;
39194
+ }
39195
+
39196
+ if (start !== undefined) {
39197
+ localVarQueryParameter['start'] = start;
39198
+ }
39199
+
39200
+ if (end !== undefined) {
39201
+ localVarQueryParameter['end'] = end;
39202
+ }
39203
+
39204
+ if (businessIds) {
39205
+ localVarQueryParameter['businessIds'] = businessIds;
39206
+ }
39207
+
39208
+ if (page !== undefined) {
39209
+ localVarQueryParameter['page'] = page;
39210
+ }
39211
+
39212
+ if (rowPerPage !== undefined) {
39213
+ localVarQueryParameter['rowPerPage'] = rowPerPage;
39214
+ }
39215
+
39216
+ if (provider) {
39217
+ localVarQueryParameter['provider'] = provider;
39218
+ }
39219
+
39220
+ if (paymentType) {
39221
+ localVarQueryParameter['paymentType'] = paymentType;
39222
+ }
39223
+
39224
+ if (orderStatus) {
39225
+ localVarQueryParameter['orderStatus'] = orderStatus;
39226
+ }
39227
+
39228
+ if (paymentStatus) {
39229
+ localVarQueryParameter['paymentStatus'] = paymentStatus;
39230
+ }
39231
+
39232
+ if (orderType) {
39233
+ localVarQueryParameter['orderType'] = orderType;
39234
+ }
39235
+
39236
+ if (paymentTypePos) {
39237
+ localVarQueryParameter['paymentTypePos'] = paymentTypePos;
39238
+ }
39239
+
39240
+ if (invoiceCompanyId !== undefined) {
39241
+ localVarQueryParameter['invoiceCompanyId'] = invoiceCompanyId;
39242
+ }
39243
+
39244
+ if (timezone !== undefined) {
39245
+ localVarQueryParameter['timezone'] = timezone;
39246
+ }
39247
+
39248
+
39249
+
39250
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39252
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39253
+
39254
+ return {
39255
+ url: toPathString(localVarUrlObj),
39256
+ options: localVarRequestOptions,
39257
+ };
39258
+ },
39259
+ /**
39260
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
39261
+ * @summary POS order history, narrowed to the person working on the till
39262
+ * @param {Array<number>} businessIds Business ID selected
39263
+ * @param {TimeSpan} [timeSpan] Time span
39264
+ * @param {string} [start] Start date
39265
+ * @param {string} [end] End date
39266
+ * @param {number} [page] Page number
39267
+ * @param {number} [rowPerPage] Number of rows per page
39268
+ * @param {Array<ProviderEnum>} [provider] Provider
39269
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39270
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39271
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39272
+ * @param {Array<OrderType>} [orderType] Order type
39273
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39274
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39275
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39276
+ * @param {*} [options] Override http request option.
39277
+ * @throws {RequiredError}
39278
+ */
39279
+ listOrderHistoryForTill: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39280
+ // verify required parameter 'businessIds' is not null or undefined
39281
+ assertParamExists('listOrderHistoryForTill', 'businessIds', businessIds)
39282
+ const localVarPath = `/api/v6/history/orders/pos`;
39283
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39284
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39285
+ let baseOptions;
39286
+ if (configuration) {
39287
+ baseOptions = configuration.baseOptions;
39288
+ }
39289
+
39290
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39291
+ const localVarHeaderParameter = {} as any;
39292
+ const localVarQueryParameter = {} as any;
39293
+
39294
+ // authentication JWT-auth required
39295
+ // http bearer authentication required
39296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
39297
+
39298
+ if (timeSpan !== undefined) {
39299
+ localVarQueryParameter['timeSpan'] = timeSpan;
39300
+ }
39301
+
39302
+ if (start !== undefined) {
39303
+ localVarQueryParameter['start'] = start;
39304
+ }
39305
+
39306
+ if (end !== undefined) {
39307
+ localVarQueryParameter['end'] = end;
39308
+ }
39309
+
39310
+ if (businessIds) {
39311
+ localVarQueryParameter['businessIds'] = businessIds;
39312
+ }
39313
+
39314
+ if (page !== undefined) {
39315
+ localVarQueryParameter['page'] = page;
39316
+ }
39317
+
39318
+ if (rowPerPage !== undefined) {
39319
+ localVarQueryParameter['rowPerPage'] = rowPerPage;
39320
+ }
39321
+
39322
+ if (provider) {
39323
+ localVarQueryParameter['provider'] = provider;
39324
+ }
39325
+
39326
+ if (paymentType) {
39327
+ localVarQueryParameter['paymentType'] = paymentType;
39328
+ }
39329
+
39330
+ if (orderStatus) {
39331
+ localVarQueryParameter['orderStatus'] = orderStatus;
39332
+ }
39333
+
39334
+ if (paymentStatus) {
39335
+ localVarQueryParameter['paymentStatus'] = paymentStatus;
39336
+ }
39337
+
39338
+ if (orderType) {
39339
+ localVarQueryParameter['orderType'] = orderType;
39340
+ }
39341
+
39342
+ if (paymentTypePos) {
39343
+ localVarQueryParameter['paymentTypePos'] = paymentTypePos;
39344
+ }
39345
+
39346
+ if (invoiceCompanyId !== undefined) {
39347
+ localVarQueryParameter['invoiceCompanyId'] = invoiceCompanyId;
39348
+ }
39349
+
39350
+ if (timezone !== undefined) {
39351
+ localVarQueryParameter['timezone'] = timezone;
39352
+ }
39353
+
39354
+
39355
+
39356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39358
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39359
+
39360
+ return {
39361
+ url: toPathString(localVarUrlObj),
39362
+ options: localVarRequestOptions,
39363
+ };
39364
+ },
39365
+ }
39366
+ };
39367
+
39368
+ /**
39369
+ * HistoryV6Api - functional programming interface
39370
+ * @export
39371
+ */
39372
+ export const HistoryV6ApiFp = function(configuration?: Configuration) {
39373
+ const localVarAxiosParamCreator = HistoryV6ApiAxiosParamCreator(configuration)
39374
+ return {
39375
+ /**
39376
+ * The same answer as v1. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list. Online orders are listed for everyone, whoever is on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
39377
+ * @summary Online order history, with what the person working on the till may not see zeroed
39378
+ * @param {Array<number>} businessIds Business ID selected
39379
+ * @param {TimeSpan} [timeSpan] Time span
39380
+ * @param {string} [start] Start date
39381
+ * @param {string} [end] End date
39382
+ * @param {number} [page] Page number
39383
+ * @param {number} [rowPerPage] Number of rows per page
39384
+ * @param {Array<ProviderEnum>} [provider] Provider
39385
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39386
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39387
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39388
+ * @param {Array<OrderType>} [orderType] Order type
39389
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39390
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39391
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39392
+ * @param {*} [options] Override http request option.
39393
+ * @throws {RequiredError}
39394
+ */
39395
+ async listOnlineOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderHistoryResponseDto>> {
39396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOnlineOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options);
39397
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39398
+ },
39399
+ /**
39400
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
39401
+ * @summary POS order history, narrowed to the person working on the till
39402
+ * @param {Array<number>} businessIds Business ID selected
39403
+ * @param {TimeSpan} [timeSpan] Time span
39404
+ * @param {string} [start] Start date
39405
+ * @param {string} [end] End date
39406
+ * @param {number} [page] Page number
39407
+ * @param {number} [rowPerPage] Number of rows per page
39408
+ * @param {Array<ProviderEnum>} [provider] Provider
39409
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39410
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39411
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39412
+ * @param {Array<OrderType>} [orderType] Order type
39413
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39414
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39415
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39416
+ * @param {*} [options] Override http request option.
39417
+ * @throws {RequiredError}
39418
+ */
39419
+ async listOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderHistoryPosResponseDtoV2>> {
39420
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options);
39421
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39422
+ },
39423
+ }
39424
+ };
39425
+
39426
+ /**
39427
+ * HistoryV6Api - factory interface
39428
+ * @export
39429
+ */
39430
+ export const HistoryV6ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
39431
+ const localVarFp = HistoryV6ApiFp(configuration)
39432
+ return {
39433
+ /**
39434
+ * The same answer as v1. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list. Online orders are listed for everyone, whoever is on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
39435
+ * @summary Online order history, with what the person working on the till may not see zeroed
39436
+ * @param {Array<number>} businessIds Business ID selected
39437
+ * @param {TimeSpan} [timeSpan] Time span
39438
+ * @param {string} [start] Start date
39439
+ * @param {string} [end] End date
39440
+ * @param {number} [page] Page number
39441
+ * @param {number} [rowPerPage] Number of rows per page
39442
+ * @param {Array<ProviderEnum>} [provider] Provider
39443
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39444
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39445
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39446
+ * @param {Array<OrderType>} [orderType] Order type
39447
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39448
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39449
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39450
+ * @param {*} [options] Override http request option.
39451
+ * @throws {RequiredError}
39452
+ */
39453
+ listOnlineOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: any): AxiosPromise<OrderHistoryResponseDto> {
39454
+ return localVarFp.listOnlineOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(axios, basePath));
39455
+ },
39456
+ /**
39457
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
39458
+ * @summary POS order history, narrowed to the person working on the till
39459
+ * @param {Array<number>} businessIds Business ID selected
39460
+ * @param {TimeSpan} [timeSpan] Time span
39461
+ * @param {string} [start] Start date
39462
+ * @param {string} [end] End date
39463
+ * @param {number} [page] Page number
39464
+ * @param {number} [rowPerPage] Number of rows per page
39465
+ * @param {Array<ProviderEnum>} [provider] Provider
39466
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39467
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39468
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39469
+ * @param {Array<OrderType>} [orderType] Order type
39470
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39471
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39472
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39473
+ * @param {*} [options] Override http request option.
39474
+ * @throws {RequiredError}
39475
+ */
39476
+ listOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: any): AxiosPromise<OrderHistoryPosResponseDtoV2> {
39477
+ return localVarFp.listOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(axios, basePath));
39478
+ },
39479
+ };
39480
+ };
39481
+
39482
+ /**
39483
+ * HistoryV6Api - interface
39484
+ * @export
39485
+ * @interface HistoryV6Api
39486
+ */
39487
+ export interface HistoryV6ApiInterface {
39488
+ /**
39489
+ * The same answer as v1. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list. Online orders are listed for everyone, whoever is on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
39490
+ * @summary Online order history, with what the person working on the till may not see zeroed
39491
+ * @param {Array<number>} businessIds Business ID selected
39492
+ * @param {TimeSpan} [timeSpan] Time span
39493
+ * @param {string} [start] Start date
39494
+ * @param {string} [end] End date
39495
+ * @param {number} [page] Page number
39496
+ * @param {number} [rowPerPage] Number of rows per page
39497
+ * @param {Array<ProviderEnum>} [provider] Provider
39498
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39499
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39500
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39501
+ * @param {Array<OrderType>} [orderType] Order type
39502
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39503
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39504
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39505
+ * @param {*} [options] Override http request option.
39506
+ * @throws {RequiredError}
39507
+ * @memberof HistoryV6ApiInterface
39508
+ */
39509
+ listOnlineOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig): AxiosPromise<OrderHistoryResponseDto>;
39510
+
39511
+ /**
39512
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
39513
+ * @summary POS order history, narrowed to the person working on the till
39514
+ * @param {Array<number>} businessIds Business ID selected
39515
+ * @param {TimeSpan} [timeSpan] Time span
39516
+ * @param {string} [start] Start date
39517
+ * @param {string} [end] End date
39518
+ * @param {number} [page] Page number
39519
+ * @param {number} [rowPerPage] Number of rows per page
39520
+ * @param {Array<ProviderEnum>} [provider] Provider
39521
+ * @param {Array<PaymentTypeEnum>} [paymentType] Payment type
39522
+ * @param {Array<OrderStatusEnum>} [orderStatus] Order status
39523
+ * @param {Array<PaymentStatus>} [paymentStatus] Payment status
39524
+ * @param {Array<OrderType>} [orderType] Order type
39525
+ * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
39526
+ * @param {string} [invoiceCompanyId] Filter by invoice company ID
39527
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
39528
+ * @param {*} [options] Override http request option.
39529
+ * @throws {RequiredError}
39530
+ * @memberof HistoryV6ApiInterface
39531
+ */
39532
+ listOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig): AxiosPromise<OrderHistoryPosResponseDtoV2>;
39533
+
39534
+ }
38913
39535
 
39536
+ /**
39537
+ * HistoryV6Api - object-oriented interface
39538
+ * @export
39539
+ * @class HistoryV6Api
39540
+ * @extends {BaseAPI}
39541
+ */
39542
+ export class HistoryV6Api extends BaseAPI implements HistoryV6ApiInterface {
38914
39543
  /**
38915
- *
38916
- * @summary Get order history for POS V5
39544
+ * The same answer as v1. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list. Online orders are listed for everyone, whoever is on the till. A till with nobody unlocked on the server gets the v1 answer unchanged.
39545
+ * @summary Online order history, with what the person working on the till may not see zeroed
38917
39546
  * @param {Array<number>} businessIds Business ID selected
38918
39547
  * @param {TimeSpan} [timeSpan] Time span
38919
39548
  * @param {string} [start] Start date
@@ -38927,18 +39556,18 @@ export class HistoryApi extends BaseAPI implements HistoryApiInterface {
38927
39556
  * @param {Array<OrderType>} [orderType] Order type
38928
39557
  * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
38929
39558
  * @param {string} [invoiceCompanyId] Filter by invoice company ID
38930
- * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
39559
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
38931
39560
  * @param {*} [options] Override http request option.
38932
39561
  * @throws {RequiredError}
38933
- * @memberof HistoryApi
39562
+ * @memberof HistoryV6Api
38934
39563
  */
38935
- public getOrderHistoryPOSV5(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
38936
- return HistoryApiFp(this.configuration).getOrderHistoryPOSV5(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
39564
+ public listOnlineOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
39565
+ return HistoryV6ApiFp(this.configuration).listOnlineOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
38937
39566
  }
38938
39567
 
38939
39568
  /**
38940
- *
38941
- * @summary Get order history for POS V5
39569
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
39570
+ * @summary POS order history, narrowed to the person working on the till
38942
39571
  * @param {Array<number>} businessIds Business ID selected
38943
39572
  * @param {TimeSpan} [timeSpan] Time span
38944
39573
  * @param {string} [start] Start date
@@ -38952,13 +39581,13 @@ export class HistoryApi extends BaseAPI implements HistoryApiInterface {
38952
39581
  * @param {Array<OrderType>} [orderType] Order type
38953
39582
  * @param {Array<PaymentMethod>} [paymentTypePos] Payment type POS
38954
39583
  * @param {string} [invoiceCompanyId] Filter by invoice company ID
38955
- * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
39584
+ * @param {string} [timezone] Timezone of the period asked for (default \&quot;UTC\&quot;)
38956
39585
  * @param {*} [options] Override http request option.
38957
39586
  * @throws {RequiredError}
38958
- * @memberof HistoryApi
39587
+ * @memberof HistoryV6Api
38959
39588
  */
38960
- public getOrderHistoryPOSV5Internal(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
38961
- return HistoryApiFp(this.configuration).getOrderHistoryPOSV5Internal(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
39589
+ public listOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig) {
39590
+ return HistoryV6ApiFp(this.configuration).listOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(this.axios, this.basePath));
38962
39591
  }
38963
39592
  }
38964
39593
 
@@ -53674,6 +54303,320 @@ export class ReportApi extends BaseAPI implements ReportApiInterface {
53674
54303
  }
53675
54304
 
53676
54305
 
54306
+ /**
54307
+ * ReportV6Api - axios parameter creator
54308
+ * @export
54309
+ */
54310
+ export const ReportV6ApiAxiosParamCreator = function (configuration?: Configuration) {
54311
+ return {
54312
+ /**
54313
+ * The same answer as v5. In team mode, totals and sections the role of the person unlocked on the till may not see are returned as zero or an empty list, and without Report::ViewAll only that person\'s orders and refunds are counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
54314
+ * @summary End-of-day report, narrowed to the person working on the till
54315
+ * @param {Array<number>} businessIds Business ID selected
54316
+ * @param {TimeSpan} [timeSpan] Time span
54317
+ * @param {string} [start] Start date
54318
+ * @param {string} [end] End date
54319
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54320
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54321
+ * @param {*} [options] Override http request option.
54322
+ * @throws {RequiredError}
54323
+ */
54324
+ getEndOfDayReportForTill: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54325
+ // verify required parameter 'businessIds' is not null or undefined
54326
+ assertParamExists('getEndOfDayReportForTill', 'businessIds', businessIds)
54327
+ const localVarPath = `/api/v6/report/end-of-day`;
54328
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54329
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54330
+ let baseOptions;
54331
+ if (configuration) {
54332
+ baseOptions = configuration.baseOptions;
54333
+ }
54334
+
54335
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54336
+ const localVarHeaderParameter = {} as any;
54337
+ const localVarQueryParameter = {} as any;
54338
+
54339
+ // authentication JWT-auth required
54340
+ // http bearer authentication required
54341
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
54342
+
54343
+ if (timeSpan !== undefined) {
54344
+ localVarQueryParameter['timeSpan'] = timeSpan;
54345
+ }
54346
+
54347
+ if (start !== undefined) {
54348
+ localVarQueryParameter['start'] = start;
54349
+ }
54350
+
54351
+ if (end !== undefined) {
54352
+ localVarQueryParameter['end'] = end;
54353
+ }
54354
+
54355
+ if (businessIds) {
54356
+ localVarQueryParameter['businessIds'] = businessIds;
54357
+ }
54358
+
54359
+ if (timezone !== undefined) {
54360
+ localVarQueryParameter['timezone'] = timezone;
54361
+ }
54362
+
54363
+ if (provider !== undefined) {
54364
+ localVarQueryParameter['provider'] = provider;
54365
+ }
54366
+
54367
+
54368
+
54369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54371
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54372
+
54373
+ return {
54374
+ url: toPathString(localVarUrlObj),
54375
+ options: localVarRequestOptions,
54376
+ };
54377
+ },
54378
+ /**
54379
+ * The same e-mail as v5, with the report narrowed as in v6 end-of-day. The cash-log e-mail goes out only when the person may see cash logs (Report::ViewCashLogs), with only their own entries without Report::ViewAll.
54380
+ * @summary E-mail the end-of-day report, narrowed to the person working on the till
54381
+ * @param {Array<number>} businessIds Business ID selected
54382
+ * @param {SendReportEmailDto} sendReportEmailDto
54383
+ * @param {TimeSpan} [timeSpan] Time span
54384
+ * @param {string} [start] Start date
54385
+ * @param {string} [end] End date
54386
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54387
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54388
+ * @param {*} [options] Override http request option.
54389
+ * @throws {RequiredError}
54390
+ */
54391
+ sendEndOfDayReportForTill: async (businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54392
+ // verify required parameter 'businessIds' is not null or undefined
54393
+ assertParamExists('sendEndOfDayReportForTill', 'businessIds', businessIds)
54394
+ // verify required parameter 'sendReportEmailDto' is not null or undefined
54395
+ assertParamExists('sendEndOfDayReportForTill', 'sendReportEmailDto', sendReportEmailDto)
54396
+ const localVarPath = `/api/v6/report/email`;
54397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54398
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54399
+ let baseOptions;
54400
+ if (configuration) {
54401
+ baseOptions = configuration.baseOptions;
54402
+ }
54403
+
54404
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
54405
+ const localVarHeaderParameter = {} as any;
54406
+ const localVarQueryParameter = {} as any;
54407
+
54408
+ // authentication JWT-auth required
54409
+ // http bearer authentication required
54410
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
54411
+
54412
+ if (timeSpan !== undefined) {
54413
+ localVarQueryParameter['timeSpan'] = timeSpan;
54414
+ }
54415
+
54416
+ if (start !== undefined) {
54417
+ localVarQueryParameter['start'] = start;
54418
+ }
54419
+
54420
+ if (end !== undefined) {
54421
+ localVarQueryParameter['end'] = end;
54422
+ }
54423
+
54424
+ if (businessIds) {
54425
+ localVarQueryParameter['businessIds'] = businessIds;
54426
+ }
54427
+
54428
+ if (timezone !== undefined) {
54429
+ localVarQueryParameter['timezone'] = timezone;
54430
+ }
54431
+
54432
+ if (provider !== undefined) {
54433
+ localVarQueryParameter['provider'] = provider;
54434
+ }
54435
+
54436
+
54437
+
54438
+ localVarHeaderParameter['Content-Type'] = 'application/json';
54439
+
54440
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54442
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54443
+ localVarRequestOptions.data = serializeDataIfNeeded(sendReportEmailDto, localVarRequestOptions, configuration)
54444
+
54445
+ return {
54446
+ url: toPathString(localVarUrlObj),
54447
+ options: localVarRequestOptions,
54448
+ };
54449
+ },
54450
+ }
54451
+ };
54452
+
54453
+ /**
54454
+ * ReportV6Api - functional programming interface
54455
+ * @export
54456
+ */
54457
+ export const ReportV6ApiFp = function(configuration?: Configuration) {
54458
+ const localVarAxiosParamCreator = ReportV6ApiAxiosParamCreator(configuration)
54459
+ return {
54460
+ /**
54461
+ * The same answer as v5. In team mode, totals and sections the role of the person unlocked on the till may not see are returned as zero or an empty list, and without Report::ViewAll only that person\'s orders and refunds are counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
54462
+ * @summary End-of-day report, narrowed to the person working on the till
54463
+ * @param {Array<number>} businessIds Business ID selected
54464
+ * @param {TimeSpan} [timeSpan] Time span
54465
+ * @param {string} [start] Start date
54466
+ * @param {string} [end] End date
54467
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54468
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54469
+ * @param {*} [options] Override http request option.
54470
+ * @throws {RequiredError}
54471
+ */
54472
+ async getEndOfDayReportForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndOfDayReportDtoV4>> {
54473
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEndOfDayReportForTill(businessIds, timeSpan, start, end, timezone, provider, options);
54474
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54475
+ },
54476
+ /**
54477
+ * The same e-mail as v5, with the report narrowed as in v6 end-of-day. The cash-log e-mail goes out only when the person may see cash logs (Report::ViewCashLogs), with only their own entries without Report::ViewAll.
54478
+ * @summary E-mail the end-of-day report, narrowed to the person working on the till
54479
+ * @param {Array<number>} businessIds Business ID selected
54480
+ * @param {SendReportEmailDto} sendReportEmailDto
54481
+ * @param {TimeSpan} [timeSpan] Time span
54482
+ * @param {string} [start] Start date
54483
+ * @param {string} [end] End date
54484
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54485
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54486
+ * @param {*} [options] Override http request option.
54487
+ * @throws {RequiredError}
54488
+ */
54489
+ async sendEndOfDayReportForTill(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
54490
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendEndOfDayReportForTill(businessIds, sendReportEmailDto, timeSpan, start, end, timezone, provider, options);
54491
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54492
+ },
54493
+ }
54494
+ };
54495
+
54496
+ /**
54497
+ * ReportV6Api - factory interface
54498
+ * @export
54499
+ */
54500
+ export const ReportV6ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
54501
+ const localVarFp = ReportV6ApiFp(configuration)
54502
+ return {
54503
+ /**
54504
+ * The same answer as v5. In team mode, totals and sections the role of the person unlocked on the till may not see are returned as zero or an empty list, and without Report::ViewAll only that person\'s orders and refunds are counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
54505
+ * @summary End-of-day report, narrowed to the person working on the till
54506
+ * @param {Array<number>} businessIds Business ID selected
54507
+ * @param {TimeSpan} [timeSpan] Time span
54508
+ * @param {string} [start] Start date
54509
+ * @param {string} [end] End date
54510
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54511
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54512
+ * @param {*} [options] Override http request option.
54513
+ * @throws {RequiredError}
54514
+ */
54515
+ getEndOfDayReportForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: any): AxiosPromise<EndOfDayReportDtoV4> {
54516
+ return localVarFp.getEndOfDayReportForTill(businessIds, timeSpan, start, end, timezone, provider, options).then((request) => request(axios, basePath));
54517
+ },
54518
+ /**
54519
+ * The same e-mail as v5, with the report narrowed as in v6 end-of-day. The cash-log e-mail goes out only when the person may see cash logs (Report::ViewCashLogs), with only their own entries without Report::ViewAll.
54520
+ * @summary E-mail the end-of-day report, narrowed to the person working on the till
54521
+ * @param {Array<number>} businessIds Business ID selected
54522
+ * @param {SendReportEmailDto} sendReportEmailDto
54523
+ * @param {TimeSpan} [timeSpan] Time span
54524
+ * @param {string} [start] Start date
54525
+ * @param {string} [end] End date
54526
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54527
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54528
+ * @param {*} [options] Override http request option.
54529
+ * @throws {RequiredError}
54530
+ */
54531
+ sendEndOfDayReportForTill(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: any): AxiosPromise<void> {
54532
+ return localVarFp.sendEndOfDayReportForTill(businessIds, sendReportEmailDto, timeSpan, start, end, timezone, provider, options).then((request) => request(axios, basePath));
54533
+ },
54534
+ };
54535
+ };
54536
+
54537
+ /**
54538
+ * ReportV6Api - interface
54539
+ * @export
54540
+ * @interface ReportV6Api
54541
+ */
54542
+ export interface ReportV6ApiInterface {
54543
+ /**
54544
+ * The same answer as v5. In team mode, totals and sections the role of the person unlocked on the till may not see are returned as zero or an empty list, and without Report::ViewAll only that person\'s orders and refunds are counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
54545
+ * @summary End-of-day report, narrowed to the person working on the till
54546
+ * @param {Array<number>} businessIds Business ID selected
54547
+ * @param {TimeSpan} [timeSpan] Time span
54548
+ * @param {string} [start] Start date
54549
+ * @param {string} [end] End date
54550
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54551
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54552
+ * @param {*} [options] Override http request option.
54553
+ * @throws {RequiredError}
54554
+ * @memberof ReportV6ApiInterface
54555
+ */
54556
+ getEndOfDayReportForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: AxiosRequestConfig): AxiosPromise<EndOfDayReportDtoV4>;
54557
+
54558
+ /**
54559
+ * The same e-mail as v5, with the report narrowed as in v6 end-of-day. The cash-log e-mail goes out only when the person may see cash logs (Report::ViewCashLogs), with only their own entries without Report::ViewAll.
54560
+ * @summary E-mail the end-of-day report, narrowed to the person working on the till
54561
+ * @param {Array<number>} businessIds Business ID selected
54562
+ * @param {SendReportEmailDto} sendReportEmailDto
54563
+ * @param {TimeSpan} [timeSpan] Time span
54564
+ * @param {string} [start] Start date
54565
+ * @param {string} [end] End date
54566
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54567
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54568
+ * @param {*} [options] Override http request option.
54569
+ * @throws {RequiredError}
54570
+ * @memberof ReportV6ApiInterface
54571
+ */
54572
+ sendEndOfDayReportForTill(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: AxiosRequestConfig): AxiosPromise<void>;
54573
+
54574
+ }
54575
+
54576
+ /**
54577
+ * ReportV6Api - object-oriented interface
54578
+ * @export
54579
+ * @class ReportV6Api
54580
+ * @extends {BaseAPI}
54581
+ */
54582
+ export class ReportV6Api extends BaseAPI implements ReportV6ApiInterface {
54583
+ /**
54584
+ * The same answer as v5. In team mode, totals and sections the role of the person unlocked on the till may not see are returned as zero or an empty list, and without Report::ViewAll only that person\'s orders and refunds are counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
54585
+ * @summary End-of-day report, narrowed to the person working on the till
54586
+ * @param {Array<number>} businessIds Business ID selected
54587
+ * @param {TimeSpan} [timeSpan] Time span
54588
+ * @param {string} [start] Start date
54589
+ * @param {string} [end] End date
54590
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54591
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54592
+ * @param {*} [options] Override http request option.
54593
+ * @throws {RequiredError}
54594
+ * @memberof ReportV6Api
54595
+ */
54596
+ public getEndOfDayReportForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: AxiosRequestConfig) {
54597
+ return ReportV6ApiFp(this.configuration).getEndOfDayReportForTill(businessIds, timeSpan, start, end, timezone, provider, options).then((request) => request(this.axios, this.basePath));
54598
+ }
54599
+
54600
+ /**
54601
+ * The same e-mail as v5, with the report narrowed as in v6 end-of-day. The cash-log e-mail goes out only when the person may see cash logs (Report::ViewCashLogs), with only their own entries without Report::ViewAll.
54602
+ * @summary E-mail the end-of-day report, narrowed to the person working on the till
54603
+ * @param {Array<number>} businessIds Business ID selected
54604
+ * @param {SendReportEmailDto} sendReportEmailDto
54605
+ * @param {TimeSpan} [timeSpan] Time span
54606
+ * @param {string} [start] Start date
54607
+ * @param {string} [end] End date
54608
+ * @param {string} [timezone] Timezone of the period (default \&quot;UTC\&quot;)
54609
+ * @param {ProviderEnum} [provider] Order source (default MunchiPos)
54610
+ * @param {*} [options] Override http request option.
54611
+ * @throws {RequiredError}
54612
+ * @memberof ReportV6Api
54613
+ */
54614
+ public sendEndOfDayReportForTill(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: ProviderEnum, options?: AxiosRequestConfig) {
54615
+ return ReportV6ApiFp(this.configuration).sendEndOfDayReportForTill(businessIds, sendReportEmailDto, timeSpan, start, end, timezone, provider, options).then((request) => request(this.axios, this.basePath));
54616
+ }
54617
+ }
54618
+
54619
+
53677
54620
  /**
53678
54621
  * ReservationsApi - axios parameter creator
53679
54622
  * @export