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